Personal electronic device based on personal security system