-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Periodical disconnecting #284
Comments
After some minutes...
|
Is it local connection or via SWAN? |
Thank you for interesting. Connection is only local via IP100. Connection bare is false. |
Hmm. Strange. Are you sure your local network works well? I use EVO192 and IP150 and never experience any unexpected disconnects. |
I have a network with Mikrotik components, RouterBoard. My network working fine. I have not a IP150, but IP100. |
@proasnet post config here. Do not hijack other threads |
My configuration is
|
|
Keep alive interval 50 I tried today, from 10. This change was not effect for resolve problem. Now I have 10 back and still trying connect. |
|
|
So is it better now after migration? |
It depends on how this question is meant. The whole HA system is much faster and there is no problem with the system freezing. PAI had connection problems even before the migration, as you can see from my posts, I described the problem a long time ago. RPI3 was very slow for my amount of automations and CPU freezes 1-2 times a day. This problem is solved with the move to x86 and SSD |
I also wondered if it is possible to use the Moxa nPort 5110, which I have unused at home, instead of the IP100 with your accessory. I once tried it as a connection bare, but it didn't work. It has different IP ports and does not support telnet, it is a virtual COM port, and is not supported by HA. I have a wired eth connection, and there is no wifi available, so I can't use the ESP32. Is it possible to add MOXA nPort support to PAI? It would be a solution between IP150 and ESP32 telnet. Please take this as an idea that can be rejected. |
I used a USB to serial port adapter plugged into RPI to talk to the Panel with PAI. It works good enough. But connection still stalls 3-5 times per day. Which is not critical as it reconnects quite fast. |
I have no idea what is Moxa nPort... If you can implement connection via that then I think I can accept a pull request for that. |
nPort is ethernet serial server, low cost, is similar as telnet via esp in your PAI project, but this device standard using drivers in OS and create remotelly COM port. That have linux TTY drivers ( or windows ). but I can not install this drivers to HASSOS. It using TCP/UDP, and maybe configured by web interface in some modes for a pc. |
Hi @proasnet you have to set the serial communication settings on the nport directly (baudrate, parity, etc) and then you can use any tcp client to connect & communicate with it (netcat or so) |
I think PAI does support 'socket://IP_ADDRESS_OF_CONVERTER:TCP_PORT' already. So I think no updates on PAI side are required. |
Interesting. Thank you. I will test it in near time. Update: 2022-08-11 03:55:45,179 - ERROR - PAI.paradox.hardware.evo.panel - ChecksumError Error in path (parsing) -> checksum |
Having the same issue with disconnecting every 2 min. Have been using this for over a year now and only started about a week ago with no explanation why. I'm using ESPHome with UART on a NodeMCU esp8266. Log from PAI: 2023-03-03 07:13:57,832 - INFO - PAI.paradox.connections.connection - Connection established |
Same here. Posted my issue here: #349 (comment) |
UPDATE: Solved -- Irrelevant to the software, it was a network issue.
|
UPDATE2: Solved -- Irrelevant to the software, it was a network issue.
|
2.60 is too old firmware. |
True, it's so old actually that I'm afraid to upgrade to be honest 😅 Update: it seems that it was a network problem, there was a rogue DHCP server enabled on a range extender that created trouble, for some devices IP100 included. It's weird that it only affected some devices, but it's corrected now.. |
But I doubt that PAI works correctly with firmware version 2.60. |
It works surprising well actually, integrated on home assistant for basic management and remote alerting. |
Alarm system
EVO HD, IP100
Environment
RPI
Git branch
Which Git branch you use. Did you tried "dev" branch? Please try before posting.
Describe the bug
Periodical connecting/disconecting to panel
To Reproduce
After restart a host, or lost ethernet connection between HA and IP100 and renew
Logs
Some days PAI working, some days periodicaly connecting to panel, not working
2022-03-07 12:35:07,658 - ERROR - PAI.paradox.paradox - Timeout while connecting to panel. Is an other connection active? 2022-03-07 12:35:07,666 - ERROR - PAI - Unable to connect to alarm 2022-03-07 12:35:09,680 - ERROR - PAI.paradox.lib.handlers - No handler for message 5 Detail: Container: fields = Container: data = b'RC\x00\x00\x16|\x00\x00\x00H\x00\x00\x00\x00\x00\x00'... (truncated, total 66) value = Container: po = Container: command = 5 status = Container: reserved = False alarm_reporting_pending = False Winload_connected = True NeWare_connected = False packet_length = 67 control = Container: ram_access = False bus_address = 0 address = 5756 data = b'\x00\x00\x00H\x00\x00\x00\x00\x00\x00\x00\x00\x00H\x00\x00'... (truncated, total 60) offset1 = 0 offset2 = 66 length = 66 checksum = b'\xd7' (total 1) 2022-03-07 12:35:20,828 - INFO - PAI.paradox.paradox - Disconnecting from the Alarm Panel 2022-03-07 12:35:20,829 - INFO - PAI.paradox.paradox - Clean Session 2022-03-07 12:35:20,830 - INFO - PAI.paradox.paradox - Cleaning previous session. Closing connection 2022-03-07 12:35:20,838 - ERROR - PAI.paradox.connections.protocols - Connection was closed: None 2022-03-07 12:35:20,839 - ERROR - PAI.paradox.connections.connection - Connection was lost 2022-03-07 12:35:20,842 - INFO - PAI.paradox.paradox - Disconnected from the Alarm Panel 2022-03-07 12:35:25,674 - INFO - PAI - Starting... 2022-03-07 12:35:25,675 - INFO - PAI.paradox.paradox - Disconnecting from the Alarm Panel 2022-03-07 12:35:25,676 - INFO - PAI.paradox.paradox - Clean Session 2022-03-07 12:35:25,678 - INFO - PAI.paradox.paradox - Connecting to interface 2022-03-07 12:35:25,679 - INFO - PAI.paradox.connections.ip.connection - Connecting. Try 1/3 2022-03-07 12:35:25,728 - INFO - PAI.paradox.connections.connection - Connection established 2022-03-07 12:35:25,730 - INFO - PAI.paradox.connections.ip.commands - Authenticating with IP Module 2022-03-07 12:35:25,880 - INFO - PAI.paradox.connections.ip.commands - Authentication Success. IP(IP100) Module version 101, firmware: 5.20, serial: 7000ee3e 2022-03-07 12:35:26,295 - INFO - PAI.paradox.connections.ip.commands - Session successfully established with IP Module 2022-03-07 12:35:26,296 - INFO - PAI.paradox.paradox - Connecting to Panel 2022-03-07 12:35:26,495 - INFO - PAI.paradox.paradox - Panel Identified EVOHD version 7.31 build 1 2022-03-07 12:35:26,496 - INFO - PAI.paradox.paradox - Initiating panel connection 2022-03-07 12:35:26,709 - INFO - PAI.paradox.hardware.evo.panel - Installer login 2022-03-07 12:35:26,899 - INFO - PAI.paradox.hardware.evo.panel - Authentication Success 2022-03-07 12:35:26,900 - INFO - PAI.paradox.paradox - Connection OK 2022-03-07 12:35:26,901 - INFO - PAI.paradox.paradox - Loading data from panel memory 2022-03-07 12:35:26,902 - INFO - PAI.paradox.hardware.panel - Loading definitions 2022-03-07 12:35:26,903 - INFO - PAI.paradox.hardware.panel - Updating Definitions from Panel 2022-03-07 12:35:28,283 - INFO - PAI.paradox.hardware.panel - Zone definitions loaded (1.38s) 2022-03-07 12:35:28,422 - INFO - PAI.paradox.hardware.panel - Partition definitions loaded (0.14s) 2022-03-07 12:35:33,680 - ERROR - PAI.paradox.paradox - Timeout while connecting to panel. Is an other connection active? 2022-03-07 12:35:33,684 - ERROR - PAI - Unable to connect to alarm 2022-03-07 12:35:35,670 - ERROR - PAI.paradox.lib.handlers - No handler for message 5 Detail: Container: fields = Container: data = b'RC\x00\x00\x0c,\x00\x00\x00H\x00\x00\x00\x00\x00\x00'... (truncated, total 66) value = Container: po = Container: command = 5 status = Container: reserved = False alarm_reporting_pending = False Winload_connected = True NeWare_connected = False packet_length = 67 control = Container: ram_access = False bus_address = 0 address = 3116 data = b'\x00\x00\x00H\x00\x00\x00\x00\x00\x00\x00\x00\x00H\x00\x00'... (truncated, total 60) offset1 = 0 offset2 = 66 length = 66 checksum = b'\x04' (total 1) 2022-03-07 12:35:46,636 - INFO - PAI.paradox.paradox - Disconnecting from the Alarm Panel 2022-03-07 12:35:46,637 - INFO - PAI.paradox.paradox - Clean Session 2022-03-07 12:35:46,638 - INFO - PAI.paradox.paradox - Cleaning previous session. Closing connection 2022-03-07 12:35:46,648 - ERROR - PAI.paradox.connections.protocols - Connection was closed: None 2022-03-07 12:35:46,649 - ERROR - PAI.paradox.connections.connection - Connection was lost 2022-03-07 12:35:46,654 - INFO - PAI.paradox.paradox - Disconnected from the Alarm Panel 2022-03-07 12:35:52,693 - INFO - PAI - Starting... 2022-03-07 12:35:52,694 - INFO - PAI.paradox.paradox - Disconnecting from the Alarm Panel 2022-03-07 12:35:52,696 - INFO - PAI.paradox.paradox - Clean Session 2022-03-07 12:35:52,698 - INFO - PAI.paradox.paradox - Connecting to interface 2022-03-07 12:35:52,699 - INFO - PAI.paradox.connections.ip.connection - Connecting. Try 1/3 2022-03-07 12:35:52,749 - INFO - PAI.paradox.connections.connection - Connection established 2022-03-07 12:35:52,750 - INFO - PAI.paradox.connections.ip.commands - Authenticating with IP Module 2022-03-07 12:35:52,901 - INFO - PAI.paradox.connections.ip.commands - Authentication Success. IP(IP100) Module version 101, firmware: 5.20, serial: 7000ee3e 2022-03-07 12:35:53,317 - INFO - PAI.paradox.connections.ip.commands - Session successfully established with IP Module 2022-03-07 12:35:53,318 - INFO - PAI.paradox.paradox - Connecting to Panel 2022-03-07 12:35:53,516 - INFO - PAI.paradox.paradox - Panel Identified EVOHD version 7.31 build 1 2022-03-07 12:35:53,516 - INFO - PAI.paradox.paradox - Initiating panel connection 2022-03-07 12:35:53,731 - INFO - PAI.paradox.hardware.evo.panel - Installer login 2022-03-07 12:35:53,908 - INFO - PAI.paradox.hardware.evo.panel - Authentication Success 2022-03-07 12:35:53,909 - INFO - PAI.paradox.paradox - Connection OK 2022-03-07 12:35:53,910 - INFO - PAI.paradox.paradox - Loading data from panel memory 2022-03-07 12:35:53,911 - INFO - PAI.paradox.hardware.panel - Loading definitions 2022-03-07 12:35:53,912 - INFO - PAI.paradox.hardware.panel - Updating Definitions from Panel 2022-03-07 12:35:55,283 - INFO - PAI.paradox.hardware.panel - Zone definitions loaded (1.37s) 2022-03-07 12:35:55,423 - INFO - PAI.paradox.hardware.panel - Partition definitions loaded (0.14s)
The text was updated successfully, but these errors were encountered: