-
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
connect serial to IP150 #2
Comments
Hi. Please enable full debug with packet dumps and send the trace. |
Here it is root@DietPi:~/pai# python3 main.py But, since, I contacted a paradox representative (obviously they don't want to give too much information) and he confirmed that the serial communication between IP150 and PCS250 (the device that should be connected to this output) is not the same as for the serial port (and indeed, the frames have not the same format). |
I would like very much to support the IP150 module, and some other software (https://github.com/Tertiush/ParadoxIP150v2) supports this. Porting the interface to PAI is rather simple. However, because I do not own a IP150, I cannot test this without further help. |
Unfortunately, mine is a v4.10, so not compatible with the Tertiush library. :( |
Do you know if your panel has more than one serial port? |
Thers is only one serial port (it's a mg5050) there is an ebus connector above the vdmp module, but I think that it is not the same as the serial port. |
If there isn't another serial port and the Tertiush library doesn't work, I'm don't know how to proceed. I know there were changes in version 4.10 that broke some interfaces. However I don't know what changed. Can you debug the messages exchanged? |
Hi, |
Can you submit your changes so that we support a fully passive mode? |
I made very quick and dirty changes by commenting the code, I will make a cleaner version and submit it to you as soon as I finished |
That would be great. Thanks |
Hey, I'd like to jump in here and offer to help code some of the Ip150. I also forked Tertuish's original code (and added all the logging to file rather than print, and individual MQTT messages for zones). https://github.com/psyciknz/ParadoxIP150v2 I see you've got the heartbeat status (x50 x0 x80 [x00-x06]) messages going for serial. I can't see any differences in the winload and the calls I'm making, but the replies aren't coming back. I have an older ip150 on an SP6000 that the v2 code of Tertuish's still works pretty well with, but I'd like to extend it. |
Thanks for you help. If you wish to exchange some ideias, please add my contact in Hangouts. If there are more people interested maybe we can create a slack channel. Regarding the ip150, all collaboration is welcome as I do not have the module but it can be readily integrated. Especially older versions. Are you able to login to the module and exchange the initial messages? |
Email has been sent with a python dumps of login |
I own a paradox SP7000 with IP150 that has the latest firmware, i managed to loop the rx/tx wires to a TTL USB adapter connected to my raspberry pi, i am currently trying to use your script but i am stuck at this...: 2018-07-08 17:34:47,032 - ERROR - PAI.paradox - Connect error During handling of the above exception, another exception occurred: Traceback (most recent call last): Can you please give some assistance? |
Can you try the current version? Also: Can someone send me a windload dump? I'm trying to add a new interface to emulate a IP150. |
using the latest version but i still cant shake that error... if you have the time to tell me how i can do a winload dump im happy to help |
Start Wireshark, capture all tcp packets in Port 10000. Start babyware and connect using normal security. Export the result to a pcap file. Regarding the bug, what version of python and constructs are you using? |
ok so i am trying to capture the tcp parcket on port 10000 with wireshark but the problem is that i can no longer acces the ip150 by ip from babyware i need to use dns or panel s/n wich results in no packets... |
:( what about the python and constructs version? |
Python 3.5.3 If needed i can provide ssh access for testing or TeamViewer if you have an ideea how we can make wireshark capture the packets. I am willing to help test anything |
anyone any ideas regarding my connection issues? |
Can you enable the full debug including packet dumps and post the results? It seems like the reply you are getting is not the one we expect. It is parsed but seems to be of a different type. |
@iondarie Made a commit to handle these situations. It may not always fix the issue but it will detect what is happening. |
2018-08-31 21:22:19,705 - INFO - PAI - Starting Paradox Alarm Interface During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Please use the latest version from the repository. |
2018-09-01 04:59:19,141 - INFO - PAI - Starting Paradox Alarm Interface During handling of the above exception, another exception occurred: Traceback (most recent call last): I don't think I ever changed the default "paradox" password |
AFAIK, the panel should not send that message with all 0. Have you managed to get any other software working? Can you sniff the traffic from a IP150? |
i can see it working for a little wile with https://github.com/spinza/paradox_mqtt
It clearely connects for a short while, while runing the script i started moving in my kitchen so the motion sensor would see me and if you look in the messages you will see "Bucatarie" |
this thing is eating me alive =)) ill try to bypass the ip150 traffic trough my laptop's lan port to see if i can sniff anything. |
PAI follows the documented process of connecting to the Panel, while Spinza follows a method obtained from a capture (I think). It seems like there is an alternative approach of connecting. The log you provided should be enough for me to implement it. Thanks. |
I thank you for trying to help us all, i am sorry i cannot do more. I am still trying to find a way to wireshark the traffic from the dns if you have any ideas i am willing to try |
Just start wireshark, create a filter with "ip host ADDRESS" where address is the IP address of your IP150. Start babywire and you should see packets flowing. |
I wish it was that easy but since i have the latest FW 4.30 on my IP150, i cannot access it by ip, it will only connect to babyware to dns or panel sn |
Can you find the IP through the DNS? |
i know the ip of the ip150 it is 192.168.1.89 but i cannot connect to it, i tried setting up a ddwrt with a tcpdump please find the file attached, i dont knwo if it has something useful in it, i had to dump the full ip because if i tried to dump only 10000 port the file would be empty. |
please contact me through hangouts, skype or other platform and lets follow in #4 |
@psyciknz Can you move the discussion about IP150 to a new topic so that we close this? |
I not sure I’ve contributed to this one at all. Sure close it. |
Hi,
I have a IP150 and I would like to still use it together with your interface.
I connected my RPI to the serial output of the IP150 (so not on the panel). I get 37 bytes events from a console attached to the uart.
But using your library, it cannot connect. (No reply from the InitiateCommunication message). Seems that I can only get messages, but not sending them.
Do you have some experience with using this connection?
Note that using the regular socket on the panel, the library is working
Thanks
The text was updated successfully, but these errors were encountered: