modified armGetActiveAlarm function to get detail alarm code