AD2pHat won't talk to Vista panel

General Discussion

AD2pHat won't talk to Vista panel

Postby 4832M5 » Thu Jul 02, 2020 2:32 pm

Hello.

Have a AD2pHAT that will talk with Pi3B but no messages to/from Vista panel

>telnet 127.0.0.1 10000
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
C
!>
!CONFIG>MODE=A&CONFIGBITS=ff04&ADDRESS=18&LRR=N&COM=N&EXP=NNNNN&REL=NNNN&MASK=ffffffff&DEDUPLICATE=N
!Reading configuration.
!UART init.

Output of a screen session
>screen /dev/serial0 11500
```
!>C
!CONFIG>MODE=A&CONFIGBITS=ff04&ADDRESS=18&LRR=N&COM=N&EXP=NNNNN&REL=NNNN&MASK=ffffffff&DEDUPLICATE=N
!Reading configuration.
!UART init.
!VER:ffffffff,V2.2a.8.9b-306,TX;RX;SM;VZ;RF;ZX;RE;AU;3X;CG;DD;MF;L2;KE;M2;CB;DS;ER;CR
!>Ademco/DSC Mode A/D (A) :>A
!>Keypad Address (18) :>
!WARNING. Do not enable a module if the physical module exists on the system.
!Zone Expanders Y/N Max allowed: 02
!>expander module #01 ZN 09-16 (N) :>
!>expander module #02 ZN 17-24 (N) :>
!>expander module #03 ZN 25-32 (N) :>
!>expander module #04 ZN 33-40 (N) :>
!>expander module #05 ZN 41-48 (N) :>
!Relay Modules Y/N Max allowed: 04
!>relay module #01 (N) :>
!>relay module #02 (N) :>
!>relay module #03 (N) :>
!>relay module #04 (N) :>
!>Emulate Long Range Radio Y/N: (N) :>
!>Emulate modem COM Y/N: (N) :>
!>Address Filter Mask (ffffffff) :>plicate (N) :>
!>Config Bits (ff04) :>
!Reading configuration.
!UART init.
!VER:ffffffff,V2.2a.8.9b-306,TX;RX;SM;VZ;RF;ZX;RE;AU;3X;CG;DD;MF;L2;KE;M2;CB;DS;ER;CR
!Sending.....done
```
Several forum message indicate that should see the familiar messages such as "****DISARMED**** Ready to Arm" or whatever. Further tried sending some arm key sequences via Screen and Telnet. Got no response as seen from other Alpha panels on alarm system. The last !Sending.....done above is such an attempt

System information
Vista-21iPLTE running firmware 4.1.16
*191 set to [1][0], address 18 enabled, (have Alpha keypads on 16 & 17)
Pi3b running Buster Lite, manual build from AD wiki.
comm via serial0 (ttyAMA0)
LED on A2DpHat is blinking at about 2 to 3 times per second.
NOTE the AD2pHAT came loaded with beta software V2.2a.8.9b-306


Web app always has keyboard in "Please wait...loading"
snippet from log when running web app


NoDeviceError: ('Error opening device at alarm:10000', error(111, 'Connection refused'))
2020-07-01 20:03:26,323 ERROR: Device not found: Error opening device at alarm:10000 [in /opt/alarmdecoder-webapp/ad2web/decoder.py:545]
2020-07-01 20:03:31,327 INFO: Attempting to reconnect to the AlarmDecoder [in /opt/alarmdecoder-webapp/ad2web/decoder.py:541]
2020-07-01 20:03:31,394 WARNING: Open failed: Error opening device at alarm:10000 [in /opt/alarmdecoder-webapp/ad2web/decoder.py:305]
Traceback (most recent call last):
File "/opt/alarmdecoder-webapp/ad2web/decoder.py", line 302, in open
self.device.open(baudrate=self._device_baudrate, no_reader_thread=no_reader_thread)
File "/opt/alarmdecoder/alarmdecoder/decoder.py", line 277, in open
no_reader_thread=no_reader_thread)
File "/opt/alarmdecoder/alarmdecoder/devices/socket_device.py", line 208, in open
raise NoDeviceError('Error opening device at {0}:{1}'.format(self._host, self._port), err)
NoDeviceError: ('Error opening device at alarm:10000', error(111, 'Connection refused'))

thanks for any help.
M.
4832M5
newt
newt
 
Posts: 2
Joined: Thu Jul 02, 2020 7:32 am

Re: AD2pHat won't talk to Vista panel

Postby 4832M5 » Thu Jul 30, 2020 3:26 pm

Update:
Telnet to device - get normal alarm status. Can send disarm cmds, they are received by Vista alarm (other panels respond).

Keyboard screen just sits in "waiting...."
All other screens/tabs in webapp appear to work as expected.


...:{
4832M5
newt
newt
 
Posts: 2
Joined: Thu Jul 02, 2020 7:32 am

Re: AD2pHat won't talk to Vista panel

Postby mathewss » Sun Oct 04, 2020 2:33 pm

I missed this :( did you get this sorted?

Best
SM
mathewss
Moderator
Moderator
 
Posts: 121
Joined: Fri Dec 06, 2013 11:14 am

Re: AD2pHat won't talk to Vista panel

Postby ansenlabardee » Tue Oct 20, 2020 11:13 am

I'm having a similar issue but what I've noticed is that ser2sock is actually crashing when I have the home assistant (HA) integration enabled and the webapp service running. I've also noticed that when I run ser2sock without dameonizing it and have the webapp service stopped on the pi HA is able to access ser2sock without crashing it... I'm happy to roubleshoot further but I'm not too sure what to check next.
ansenlabardee
newt
newt
 
Posts: 1
Joined: Tue Oct 20, 2020 5:47 am

Re: AD2pHat won't talk to Vista panel

Postby mathewss » Tue Oct 20, 2020 1:53 pm

I think the most common cause of this is confusion in the webapp setup.

The default settings for webapp configure ser2sock to share the AD2 then for the main connection it sets the webapp to connect to ser2sock for everything. If two processes such as ser2sock and the webapp both try to access /dev/ttyAMA0 or /dev/ttyUSB0 etc they will have crazy results.

Please confirm the webapp is configured to connect to localhost on port 10000 and that it shares the AD2* to other systems. Then you can have other systems connect to port 10000 on the Pi's IP address.

Best
Sean M.
mathewss
Moderator
Moderator
 
Posts: 121
Joined: Fri Dec 06, 2013 11:14 am


Return to General

Who is online

Users browsing this forum: No registered users and 6 guests