Pira.cz Technical Forum
FM Analysis => P275 FM Analyzer => Topic started by: chuck-wright on April 02, 2019, 05:45:57 pm
-
Hi All,
I would like to read the states of the alarm bits through the COM port, but do not see a way to do this.
Is it possible?
Thanks,
Chuck Wright
KLDK-LP
DIxon, NM USA
-
That's a good question. The alarm outputs are accessible for example using the command
49C,001?h
The value returned is HEX coded byte. It's a sum of following values:
0x80 - Alarm pin 2 active
0x40 - Alarm pin 3 active
0x20 - Alarm pin 4 active
0x10 - Alarm pin 5 active
The lower portion of the byte must be ignored.
So for example if you read 50, it means that pins 3 and 5 are high.
This information is currently valid for the P275 only.
-
Thank you!
I am actually currently using the P175, so suppose I will implement the alarms in software, using other values I can read from the serial interface.
- C
-
In the P175 the solution may be similar, the value is accessible at address 4C6.
-
I'll give it a try, let you know.
Thanks!
- C
-
Works great, thanks! Tested loss of signal and silence detect.
Did notice that the hex characters on input must be in caps.
- C