kk7ds / pynx584

Python library and server for talking to NX584/NX8E interfaces
GNU General Public License v3.0
29 stars 26 forks source link

No response from NX584, only repeating interface configuration #8

Closed bnubile closed 6 years ago

bnubile commented 7 years ago

I have been trying to get PYNX584 working with my alarm panel with no luck. It is connected with a null modem cable and all I can get out of it is repeating feedback of "interface configuration" received. See below.

pi@PIE3:~ $ nx584_server --debug --serial /dev/ttyUSB1 --baudrate 38400 2017-09-26 19:38:54,902 main INFO Ready 2017-09-26 19:38:54,933 controller INFO Loaded extensions [] 2017-09-26 19:38:54,950 _internal INFO * Running on http://127.0.0.1:5007/ 2017-09-26 19:38:56,190 controller DEBUG Sending queued [59, 17, 9, 26, 19, 38, 3] 2017-09-26 19:38:56,624 controller DEBUG Parsing raw ASCII line '0B81352E3338520DFA0D00581B86' 2017-09-26 19:38:56,624 controller DEBUG Received: 1 Interface Configuration (data [53, 46, 51, 56, 82, 13, 250, 13, 0, 88]) 2017-09-26 19:38:57,877 controller DEBUG Sending queued [35, 0] 2017-09-26 19:38:59,125 controller DEBUG Parsing raw ASCII line '0B81352E3338520DFA0D00581B86' 2017-09-26 19:38:59,126 controller DEBUG Received: 1 Interface Configuration (data [53, 46, 51, 56, 82, 13, 250, 13, 0, 88]) 2017-09-26 19:39:00,379 controller DEBUG Sending queued [35, 1] 2017-09-26 19:39:01,625 controller DEBUG Parsing raw ASCII line '0B81352E3338520DFA0D00581B86' 2017-09-26 19:39:01,626 controller DEBUG Received: 1 Interface Configuration (data [53, 46, 51, 56, 82, 13, 250, 13, 0, 88]) 2017-09-26 19:39:02,879 controller DEBUG Sending queued [35, 2] 2017-09-26 19:39:04,125 controller DEBUG Parsing raw ASCII line '0B81352E3338520DFA0D00581B86' 2017-09-26 19:39:04,126 controller DEBUG Received: 1 Interface Configuration (data [53, 46, 51, 56, 82, 13, 250, 13, 0, 88]) 2017-09-26 19:39:05,379 controller DEBUG Sending queued [35, 3] 2017-09-26 19:39:06,624 controller DEBUG Parsing raw ASCII line '0B81352E3338520DFA0D00581B86' 2017-09-26 19:39:06,625 controller DEBUG Received: 1 Interface Configuration (data [53, 46, 51, 56, 82, 13, 250, 13, 0, 88]) 2017-09-26 19:39:07,877 controller DEBUG Sending queued [35, 4] 2017-09-26 19:39:09,124 controller DEBUG Parsing raw ASCII line '0B81352E3338520DFA0D00581B86' 2017-09-26 19:39:09,125 controller DEBUG Received: 1 Interface Configuration (data [53, 46, 51, 56, 82, 13, 250, 13, 0, 88]) 2017-09-26 19:39:10,378 controller DEBUG Sending queued [35, 5] 2017-09-26 19:39:11,625 controller DEBUG Parsing raw ASCII line '0B81352E3338520DFA0D00581B86' 2017-09-26 19:39:11,626 controller DEBUG Received: 1 Interface Configuration (data [53, 46, 51, 56, 82, 13, 250, 13, 0, 88]) 2017-09-26 19:39:12,878 controller DEBUG Sending queued [35, 6] 2017-09-26 19:39:14,125 controller DEBUG Parsing raw ASCII line '0B81352E3338520DFA0D00581B86' 2017-09-26 19:39:14,126 controller DEBUG Received: 1 Interface Configuration (data [53, 46, 51, 56, 82, 13, 250, 13, 0, 88]) 2017-09-26 19:39:15,378 controller DEBUG Sending queued [35, 7] 2017-09-26 19:39:16,624 controller DEBUG Parsing raw ASCII line '0B81352E3338520DFA0D00581B86' 2017-09-26 19:39:16,625 controller DEBUG Received: 1 Interface Configuration (data [53, 46, 51, 56, 82, 13, 250, 13, 0, 88]) 2017-09-26 19:39:19,123 controller DEBUG Parsing raw ASCII line '0B81352E3338520DFA0D00581B86' 2017-09-26 19:39:19,124 controller DEBUG Received: 1 Interface Configuration (data [53, 46, 51, 56, 82, 13, 250, 13, 0, 88]) 2017-09-26 19:39:21,623 controller DEBUG Parsing raw ASCII line '0B81352E3338520DFA0D00581B86' 2017-09-26 19:39:21,624 controller DEBUG Received: 1 Interface Configuration (data [53, 46, 51, 56, 82, 13, 250, 13, 0, 88]) 2017-09-26 19:39:24,123 controller DEBUG Parsing raw ASCII line '0B81352E3338520DFA0D00581B86' 2017-09-26 19:39:24,124 controller DEBUG Received: 1 Interface Configuration (data [53, 46, 51, 56, 82, 13, 250, 13, 0, 88])

I also have a NX590E board in the alarm panel. I use that to connect the DL900 software to it via Ethernet. I have confirmed that the baud rate matches and that ASCII is enabled. If I change those settings I get real garbage that comes out and pynx584 will throw errors being unable to decode what it receives. Have tried multiple usb to serial adapters with the same result. Using a straight through cable gets no response. Using the null modem cable I get the above sequence. The send/receive lights on the usb to serial adaptor line up with the send and receive commands from the program. I'm not sure if the NX590E board which ties to the data bus of the NX8E mainboard is causing this kind of strange interferance. My next move is to power down the whole alarm panel, disconnect the NX590E and try again, but was looking to see if anyone else had any ideas. Thanks

bnubile commented 6 years ago

I tried removing the NX590E but got the same result. Any ideas on what the alarm keeps returning?

Pre10der commented 6 years ago

@bnubile - Did you have any luck with this? I have a NX-584E and a slightly different the NX-595E (Comnav) board installed in the same panel. The NX-584E seems to send the ethernet port offline (lights flash, but will not communicate with the network). The NX584E seems to operate ok. Curious to know if you ever got the NX590 and the NX584E to coexist with each other.

bnubile commented 6 years ago

No, removing the NX590E did not make any changes to the repeating ASCII line I would get back of "0B81352E3338520DFA0D00581B86". I restored the board and I then went on a "try every setting" spree and still got nowhere, only to have the NX590E board lock up and stop responding based on whatever combination of settings I selected. I then reset the NX590E and put back all the original settings - of which I got my repeating ASCII line back. I've been trying on and off for literally like 10 years to get this NX8E alarm board to communicate with something and have never been able to get it talk.

Pre10der commented 6 years ago

Thanks. It's interesting. I have managed to get my NX584E talking to pynx584 (a few outstanding issues to troubleshoot, but they are code related I feel). However, I cannot get the 584E and the 595E to co-exist. Same symptom, the 595E locks up and stops responding to ethernet packets. I can however continue to configure it vie the keypads and it sees as though it is connected ok, just no ethernet.

bnubile commented 6 years ago

Figured out the issue. The cable/connect from the NX8E board was faulty. I put in a new P-003 cable and it is now working.!