Closed tasosstr closed 2 years ago
https://github.com/ParadoxAlarmInterface/pai/issues/259#issuecomment-965802376
How can I check if this are accepted ?
Also I found this https://github.com/ParadoxAlarmInterface/pai/issues/259#issuecomment-941938497
But without this, but with direct connection Rx and Tx pins from Paradox to ESP32 the BabyWare are working and I can read or Program the board, why pai is not working ?
I have add a Level converter from 3.3V to 5V for Rx and Tx (like this https://www.ebay.com/itm/221919114584?mkevt=1&mkcid=1&mkrid=711-53200-19255-0&campid=5338179998&toolid=10019&customid=MakerAdvisorT), again Babyware it is working with Creating TCP/IP Serial port (Virtual) but the PAI is not connecting at all ! ! !
I thing the problem are here: IP_CONNECTION_BARE: True ?
Could be the BaudRate ?
2022-04-02 04:15:02,823 - ERROR - PAI.paradox.connections.protocols - Connection was closed: None 2022-04-02 04:15:02,824 - ERROR - PAI.paradox.connections.connection - Connection was lost 2022-04-02 04:15:04,819 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 1/3): 2022-04-02 04:15:04,870 - ERROR - PAI.paradox.connections.protocols - Connection was closed: None 2022-04-02 04:15:04,871 - ERROR - PAI.paradox.connections.connection - Connection was lost 2022-04-02 04:15:06,867 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 2/3): 2022-04-02 04:15:06,917 - ERROR - PAI.paradox.connections.protocols - Connection was closed: None 2022-04-02 04:15:06,917 - ERROR - PAI.paradox.connections.connection - Connection was lost 2022-04-02 04:15:08,914 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 3/3): 2022-04-02 04:15:08,915 - ERROR - PAI.paradox.paradox - Failed to connect to interface 2022-04-02 04:15:08,915 - ERROR - PAI - Unable to connect to alarm
Any advice please ???????????
Hello you have connected and the ground?
Hello Kostas, Thank you for the reply ! ! !
Yes I have connect the ground.
Καλημέρα φίλε μου, είδα ότι είσαι απο Ελλάδα και σου γράφω στην γλώσσα μας γιατί φοβάμαι ότι η μετάφραση στα Αγγλικά μου δεν είναι και η καλύτερη ...
Έχω κατεβάσει απο εδώ https://www.hhdsoftware.com/ το Virtual Serial Port Tools και κάνω Create TCP/IP Serial Port βάζω την IP του ESP32 192.168.1.109 και Port 23 και μετά τρέχω το BabyWare τότε έχω σύνδεση κανονικά με τον συναγερμό, μπορώ να δώ ή και να αλλάξω παραμέτρους, κάνω disconnect και τρέχο το PAI και έχω τα παραπάνω .
Για το αρχείο pai.conf έχω τα παρακάτω
import logging
LOGGING_LEVEL_CONSOLE: 20 LOGGING_LEVEL_FILE: 40
CONNECTION_TYPE = 'IP'
IP_CONNECTION_HOST = '192.168.1.109' IP_CONNECTION_PORT = 23 IP_CONNECTION_PASSWORD = 'paradox' IP_CONNECTION_BARE: True
PASSWORD = 'χχχ' LABEL_ENCODING = 'paradox-en'
KEEP_ALIVE_INTERVAL: 10
MQTT_ENABLE: True MQTT_HOST = '192.168.1.10' MQTT_PORT = 1883 MQTT_USERNAME = 'admin' MQTT_PASSWORD = 'χχχχ' MQTT_BASE_TOPIC = 'paradox' MQTT_KEEPALIVE: 60 KEEP_ALIVE_INTERVAL: 10**
Τι κάνω λάθος ?
Σε ευχαριστώ εκ των προτέρων.
If babyware connects then PAI should also connect the same way. From the provided log it is not possible to understand what is wrong.
Baud rate does not matter for ip connection
IP_CONNECTION_BARE Must be True
Hello Jevgeni, Thank you for the reply.
It has crazy me, I was try more than 2 days and not connect it yet :-(
Yes I have it IP_CONNECTION_BARE: True but I am feeling is not read it as true, is any other way to add more logs so we can see what create the problem ?
The other thing is when a zone change status I got in log the bellow
2022-04-01 02:35:56 | stdout | 2022-04-01 02:35:56,528 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 1/3): -- | -- | -- 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,819 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'00007d' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,816 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'00007d' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,811 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'00007d' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,808 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'00007d' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,804 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'203031202020202020202020000000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,799 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'203031202020202020202020000000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,795 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'203031202020202020202020000000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,792 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'203031202020202020202020000000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,787 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c01010000000000005a6f6e65' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,783 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c01010000000000005a6f6e65' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,779 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c01010000000000005a6f6e65' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,776 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c01010000000000005a6f6e65' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,772 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,767 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,762 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,760 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,038 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'000000a2'The version I have on SP7000 are the 5.18 on compatibility you have the
SP7000 | 7.14.2 |
---|
In Notes: Both USB to serial (FTDI) and serial via ESP32
Can someone please send me the firmware 7.14.2 to give a try just in case if this solve the problem, Program InField when I hit button Get latest From web Is not connected any more :-(
Dangling data usually means that PAI could not find start/end of the packet. for SP7000 packets should be 37 byte long (If I remember right). I was not developing SP/MG support. I recommend upgrading to 6.x-7.x version but below < 7.50. That might solve the problem.
Hello Jevgeni, Thank you for the reply.
It makes sense 🙂
You are correct, it 37 byte long, for this i am sure.
Thank you in advance
Finally I have found the firmware V7.14 and again nothing still the same, so I was move to investigate more.
I reset it to default (I have two panels one are active and one on bench for play ) but again not working ...
I disconnect the Power from the ESP32 and I see freeze on connecting, so the esp32 was connecting,then I was playing with the settings, something is not clue ... and start and change things.. finally it is working :-) I AM SO HAPPY ! ! ! YOU HAVE DONE FANTASTIC JOB ! ! ! WELL DONE GUYS ! ! !
here is the result
Wrong Setting import logging
LOGGING_LEVEL_CONSOLE: 20 LOGGING_LEVEL_FILE: 40
CONNECTION_TYPE = 'IP'
IP_CONNECTION_HOST = '192.168.1.109' IP_CONNECTION_PORT = 23 IP_CONNECTION_PASSWORD = 'paradox' IP_CONNECTION_BARE: True
PASSWORD = 'χχχ' LABEL_ENCODING = 'paradox-en'
KEEP_ALIVE_INTERVAL: 10
MQTT_ENABLE: True MQTT_HOST = '192.168.1.10' MQTT_PORT = 1883 MQTT_USERNAME = 'admin' MQTT_PASSWORD = 'χχχχ' MQTT_BASE_TOPIC = 'paradox' MQTT_KEEPALIVE: 60 KEEP_ALIVE_INTERVAL: 10**
_Correct Settings ! ! !
**import logging
LOGGING_LEVEL_CONSOLE = 20 LOGGING_LEVEL_FILE = 40
CONNECTION_TYPE = 'IP'
IP_CONNECTION_HOST = '192.168.1.109' IP_CONNECTION_PORT = 23 IP_CONNECTION_PASSWORD = 'paradox' IP_CONNECTION_BARE = True
PASSWORD = 'χχχ' LABEL_ENCODING = 'paradox-en'
MQTT_ENABLE = True MQTT_HOST = '192.168.1.10' MQTT_PORT = 1883 MQTT_USERNAME = 'admin' MQTT_PASSWORD = 'χχχχ' MQTT_BASE_TOPIC = 'paradox' MQTT_KEEPALIVE = 60 KEEP_ALIVEINTERVAL = 10**
------- This -------
CONNECTION_TYPE: IP # Serial or IP
IP_CONNECTION_HOST: '192.168.1.10' # Address of the ESP32 IP_CONNECTION_PORT: 23 # Port of the ESP32 IP_CONNECTION_PASSWORD: 'paradox' # IP Module password. "paradox" is factory default. IP_CONNECTION_BARE: true # Used this for base Serial over TCP tunnels
---- MUST BE CHANCHE TO THIS -----
CONNECTION_TYPE = 'IP' # Serial or IP
IP_CONNECTION_HOST = '192.168.1.10' # Address of the ESP32 IP_CONNECTION_PORT = 23 # Port of the ESP32 IP_CONNECTION_PASSWORD = 'paradox' # IP Module password. "paradox" is factory default. IP_CONNECTION_BARE = True # Used this for base Serial over TCP tunnels
This issue is ready to close.
I want to thank you, all people for the reply ! ! !
Have a nice day ! ! !
Best Regards, Tasos
@tasosstr If you have something to add to the wiki. Please do. Everybody has edit access. Glad that you solved it.
@yozik04 Thank you very much, so i will now close the comment and later today i will update the wiki and i will add the step i do it on docker for Synology
Something happens with the config file, I have replaced with the bellow
Should be at /etc/pai/pai.conf
import logging
LOGGING_LEVEL_CONSOLE: 20 LOGGING_LEVEL_FILE: 40 CONNECTION_TYPE = 'IP' IP_CONNECTION_HOST = '192.168.1.109' IP_CONNECTION_PORT = 23 IP_CONNECTION_PASSWORD = 'paradox' IP_CONNECTION_BARE: True KEEP_ALIVE_INTERVAL: 10 PASSWORD = 'xxxx' MQTT_ENABLE: True MQTT_HOST = '192.168.1.xx' MQTT_PORT = 1883 MQTT_USERNAME = 'admin' MQTT_PASSWORD = 'xxxx' MQTT_BASE_TOPIC = 'paradox' MQTT_KEEPALIVE: 60 KEEP_ALIVE_INTERVAL: 10
and now I have the bellow log
2022-03-31 23:23:36,478 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 1/3): 2022-03-31 23:23:38,527 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 2/3): 2022-03-31 23:23:40,574 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 3/3): 2022-03-31 23:23:40,575 - ERROR - PAI.paradox.paradox - Failed to connect to interface 2022-03-31 23:23:40,575 - ERROR - PAI - Unable to connect to alarm 2022-03-31 23:23:45,594 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 1/3): 2022-03-31 23:23:45,643 - ERROR - PAI.paradox.connections.protocols - Connection was closed: None 2022-03-31 23:23:45,643 - ERROR - PAI.paradox.connections.connection - Connection was lost 2022-03-31 23:23:47,638 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 2/3): 2022-03-31 23:23:47,696 - ERROR - PAI.paradox.connections.protocols - Connection was closed: None 2022-03-31 23:23:47,697 - ERROR - PAI.paradox.connections.connection - Connection was lost 2022-03-31 23:23:49,694 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 3/3): 2022-03-31 23:23:49,694 - ERROR - PAI.paradox.paradox - Failed to connect to interface 2022-03-31 23:23:49,694 - ERROR - PAI - Unable to connect to alarm 2022-03-31 23:23:49,738 - ERROR - PAI.paradox.connections.protocols - Connection was closed: None 2022-03-31 23:23:49,739 - ERROR - PAI.paradox.connections.connection - Connection was lost
It looks like now use the IP ( yes it does, I change the port number and then said I can't connect to IP and Port number) What it is wrong on config file ?
Also when I was trigger an input an paradox SP7000 then the log are
2022-04-01 02:35:56 | stdout | 2022-04-01 02:35:56,528 - INFO - PAI.paradox.connections.ip.connection - Connecting. Try 2/3 -- | -- | -- 2022-04-01 02:35:56 | stdout | 2022-04-01 02:35:56,528 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 1/3): 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,819 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'00007d' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,816 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'00007d' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,811 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'00007d' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,808 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'00007d' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,804 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'203031202020202020202020000000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,799 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'203031202020202020202020000000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,795 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'203031202020202020202020000000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,792 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'203031202020202020202020000000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,787 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c01010000000000005a6f6e65' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,783 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c01010000000000005a6f6e65' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,779 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c01010000000000005a6f6e65' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,776 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c01010000000000005a6f6e65' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,772 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,767 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,762 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,760 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,038 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'000000a2' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,033 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'000000a2' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,025 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'000000a2' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,022 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'000000a2' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,018 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'6e652030312020202020202020200000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,012 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'6e652030312020202020202020200000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,009 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'6e652030312020202020202020200000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,005 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'6e652030312020202020202020200000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,000 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c26010000000000005a6f' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,996 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c26010000000000005a6f' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,993 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c26010000000000005a6f' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,988 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c26010000000000005a6f' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,984 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,979 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,976 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,972 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,923 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'007c' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,919 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'007c' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,915 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'007c' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,911 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'007c' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,906 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'20303120202020202020202000000000' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,903 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'20303120202020202020202000000000' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,898 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'20303120202020202020202000000000' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,894 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'20303120202020202020202000000000' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,891 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c00010000000000005a6f6e65' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,888 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c00010000000000005a6f6e65' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,882 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c00010000000000005a6f6e65' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,878 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c00010000000000005a6f6e65' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,874 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,869 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,866 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,862 - WARNING - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,532 - ERROR - PAI.paradox.connections.connection - Connection was lost