Skip to content
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

Closed
badubo opened this issue May 4, 2018 · 39 comments
Closed

connect serial to IP150 #2

badubo opened this issue May 4, 2018 · 39 comments

Comments

@badubo
Copy link

badubo commented May 4, 2018

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

@jpbarraca
Copy link
Collaborator

Hi. Please enable full debug with packet dumps and send the trace.

@badubo
Copy link
Author

badubo commented May 7, 2018

Here it is

root@DietPi:~/pai# python3 main.py
2018-05-04 12:39:10,535 - INFO - PAI - Starting Paradox Alarm Interface
2018-05-04 12:39:10,536 - INFO - PAI - Console Log level set to 10
2018-05-04 12:39:10,536 - INFO - PAI - Using MQTT Interface
2018-05-04 12:39:10,778 - DEBUG - PAI - Registering Interface mqtt
2018-05-04 12:39:10,802 - INFO - PAI.mqtt_interface - MQTT Broker Connected
2018-05-04 12:39:11,780 - INFO - PAI - Using Serial Connection
2018-05-04 12:39:11,782 - DEBUG - PAI.serial_connection - Opening Serial port: /dev/serial0
2018-05-04 12:39:11,784 - DEBUG - PAI.serial_connection - Serial port open!
2018-05-04 12:39:11,784 - INFO - PAI - Starting...
2018-05-04 12:39:11,785 - INFO - PAI.paradox - Connecting to panel
2018-05-04 12:39:11,789 - DEBUG - PAI.paradox - PC -> A 72 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2018-05-04 12:39:17,047 - DEBUG - PAI.paradox - PC -> A 72 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2018-05-04 12:39:22,305 - DEBUG - PAI.paradox - PC -> A 72 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2018-05-04 12:39:27,563 - DEBUG - PAI.paradox - PC -> A 72 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2018-05-04 12:39:32,821 - DEBUG - PAI.paradox - PC -> A 72 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2018-05-04 12:39:38,079 - DEBUG - PAI.paradox - PC -> A 72 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2018-05-04 12:39:43,336 - ERROR - PAI - Unable to connect to alarm
2018-05-04 12:39:43,337 - DEBUG - PAI - Stopping all interfaces
2018-05-04 12:39:43,338 - DEBUG - PAI - mqtt
2018-05-04 12:39:43,339 - DEBUG - PAI.mqtt_interface - Stopping MQTT Interface
2018-05-04 12:39:43,340 - INFO - PAI.mqtt_interface - MQTT Broker Disconnected
2018-05-04 12:39:44,345 - DEBUG - PAI - All Interfaces stopped
2018-05-04 12:39:44,346 - INFO - PAI - Good bye!

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).
So, I will have either to completely disconnect the IP150 or only hook to the TX in // and get only events (I can control the alarm with the wired zones)
Thanks for your help and your great work
Laurent

@jpbarraca
Copy link
Collaborator

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.

@badubo
Copy link
Author

badubo commented May 7, 2018

Unfortunately, mine is a v4.10, so not compatible with the Tertiush library. :(

@jpbarraca
Copy link
Collaborator

Do you know if your panel has more than one serial port?

@badubo
Copy link
Author

badubo commented May 7, 2018

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.

@jpbarraca
Copy link
Collaborator

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?

@badubo
Copy link
Author

badubo commented May 14, 2018

Hi,
The new IP150 firmware use a completly new protocol (seems they are based on 12 and 24 bytes frames).
For now I hooked only the TX of my panel to the raspberry and removed the connection part of your library, to only listen to live events. I'm happy with this solution, because I already control the arming feature with wired zone and relays. May be I will try later to live without the IP150 and use the full featured version of your library.
Thanks you very much for your help.

@jpbarraca
Copy link
Collaborator

Can you submit your changes so that we support a fully passive mode?

@badubo
Copy link
Author

badubo commented May 14, 2018

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

@jpbarraca
Copy link
Collaborator

That would be great. Thanks

@psyciknz
Copy link

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'm trying to get these going for IP150 and while I can wireshark winload, I need someone to bounce ideas with as need an actively worked on project to get involved with.

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.

@jpbarraca
Copy link
Collaborator

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?

@psyciknz
Copy link

Email has been sent with a python dumps of login

@iondarie
Copy link

iondarie commented Jul 5, 2018

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
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/construct/lib/containers.py", line 100, in getattr
return self[name]
KeyError: 'label'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/root/pai/paradox.py", line 59, in connect
(reply.fields.value.label.decode('latin').strip()),
File "/usr/local/lib/python3.5/dist-packages/construct/lib/containers.py", line 102, in getattr
raise AttributeError(name)
AttributeError: label
2018-07-08 17:34:47,036 - ERROR - PAI - Unable to connect to alarm

Can you please give some assistance?
Thank you,

@jpbarraca
Copy link
Collaborator

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.

@iondarie
Copy link

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

@jpbarraca
Copy link
Collaborator

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?

@iondarie
Copy link

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...

@jpbarraca
Copy link
Collaborator

:( what about the python and constructs version?

@iondarie
Copy link

iondarie commented Jul 24, 2018

Python 3.5.3
Construct 2.9.43

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

@iondarie
Copy link

anyone any ideas regarding my connection issues?

@jpbarraca
Copy link
Collaborator

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.

@jpbarraca
Copy link
Collaborator

@iondarie Made a commit to handle these situations. It may not always fix the issue but it will detect what is happening.

@iondarie
Copy link

iondarie commented Aug 31, 2018

2018-08-31 21:22:19,705 - INFO - PAI - Starting Paradox Alarm Interface
2018-08-31 21:22:19,705 - INFO - PAI - Console Log level set to 10
2018-08-31 21:22:19,706 - INFO - PAI - Using MQTT Interface
2018-08-31 21:22:19,924 - DEBUG - PAI - Registering Interface mqtt
2018-08-31 21:22:19,949 - INFO - PAI.mqtt_interface - MQTT Broker Connected
2018-08-31 21:22:20,927 - INFO - PAI - Using Serial Connection
2018-08-31 21:22:20,928 - DEBUG - PAI.serial_connection - Opening Serial port: /dev/ttyUSB0
2018-08-31 21:22:20,933 - DEBUG - PAI.serial_connection - Serial port open!
2018-08-31 21:22:20,934 - INFO - PAI - Starting...
2018-08-31 21:22:20,935 - INFO - PAI.paradox - Connecting to panel
2018-08-31 21:22:20,939 - DEBUG - PAI.paradox - PC -> A 72 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 72
2018-08-31 21:22:20,983 - DEBUG - PAI.paradox - PC <- A 72 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 72
2018-08-31 21:22:20,987 - DEBUG - PAI.paradox - Container:
fields = Container:
data = b'r\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'... (truncated, total 36)
value = Container:
po = Container:
command = 7
reserved0 = 2
reserved1 = None
offset1 = 0
offset2 = 36
length = 36
checksum = b'r' (total 1)
2018-08-31 21:22:20,990 - INFO - PAI.paradox - Interface connected
2018-08-31 21:22:20,991 - ERROR - PAI.paradox - Connect error
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/construct/lib/containers.py", line 100, in getattr
return self[name]
KeyError: 'label'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/root/pai/paradox.py", line 59, in connect
(reply.fields.value.label.decode('latin').strip()),
File "/usr/local/lib/python3.6/site-packages/construct/lib/containers.py", line 102, in getattr
raise AttributeError(name)
AttributeError: label
2018-08-31 21:22:20,997 - ERROR - PAI - Unable to connect to alarm
2018-08-31 21:22:20,998 - DEBUG - PAI - Stopping all interfaces
2018-08-31 21:22:20,999 - DEBUG - PAI - mqtt
2018-08-31 21:22:21,000 - DEBUG - PAI.mqtt_interface - Stopping MQTT Interface
2018-08-31 21:22:21,002 - INFO - PAI.mqtt_interface - MQTT Broker Disconnected
2018-08-31 21:22:22,008 - DEBUG - PAI - All Interfaces stopped
2018-08-31 21:22:22,009 - INFO - PAI - Good bye!

@jpbarraca
Copy link
Collaborator

Please use the latest version from the repository.
Have you changed your panel password from the default?

@iondarie
Copy link

iondarie commented Sep 1, 2018

2018-09-01 04:59:19,141 - INFO - PAI - Starting Paradox Alarm Interface
2018-09-01 04:59:19,162 - INFO - PAI - Console Log level set to 10
2018-09-01 04:59:19,163 - INFO - PAI - Using MQTT Interface
2018-09-01 04:59:19,328 - DEBUG - PAI - Registering Interface mqtt
2018-09-01 04:59:19,340 - INFO - PAI.mqtt_interface - MQTT Broker Connected
2018-09-01 04:59:20,330 - INFO - PAI - Using Serial Connection
2018-09-01 04:59:20,331 - DEBUG - PAI.serial_connection - Opening Serial port: /dev/ttyUSB0
2018-09-01 04:59:20,334 - DEBUG - PAI.serial_connection - Serial port open!
2018-09-01 04:59:20,335 - INFO - PAI - Starting...
2018-09-01 04:59:20,335 - INFO - PAI.paradox - Connecting to panel
2018-09-01 04:59:20,337 - DEBUG - PAI.paradox - PC -> A 72 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 72
2018-09-01 04:59:26,320 - DEBUG - PAI.paradox - PC -> A 72 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 72
2018-09-01 04:59:26,363 - DEBUG - PAI.paradox - PC <- A 72 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 72
2018-09-01 04:59:26,366 - DEBUG - PAI.paradox - Container:
fields = Container:
data = b'r\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'... (truncated, total 36)
value = Container:
po = Container:
command = 7
reserved0 = 2
reserved1 = None
offset1 = 0
offset2 = 36
length = 36
checksum = b'r' (total 1)
2018-09-01 04:59:26,370 - INFO - PAI.paradox - Interface connected
2018-09-01 04:59:26,371 - ERROR - PAI.paradox - Connect error
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/construct/lib/containers.py", line 100, in getattr
return self[name]
KeyError: 'label'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/root/pai/paradox.py", line 70, in connect
(reply.fields.value.label.decode('latin').strip()),
File "/usr/local/lib/python3.6/site-packages/construct/lib/containers.py", line 102, in getattr
raise AttributeError(name)
AttributeError: label
2018-09-01 04:59:26,378 - ERROR - PAI - Unable to connect to alarm
2018-09-01 04:59:26,379 - DEBUG - PAI - Stopping all interfaces
2018-09-01 04:59:26,379 - DEBUG - PAI - mqtt
2018-09-01 04:59:26,381 - DEBUG - PAI.mqtt_interface - Stopping MQTT Interface
2018-09-01 04:59:26,381 - INFO - PAI.mqtt_interface - MQTT Broker Disconnected
2018-09-01 04:59:27,387 - DEBUG - PAI - All Interfaces stopped
2018-09-01 04:59:27,388 - INFO - PAI - Good bye!

I don't think I ever changed the default "paradox" password

@jpbarraca
Copy link
Collaborator

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?

@iondarie
Copy link

iondarie commented Sep 1, 2018

i can see it working for a little wile with https://github.com/spinza/paradox_mqtt

2018-09-01 11:44:04,040 - paradox_mqtt - INFO - Estasblishing serial connection... 2018-09-01 11:44:04,041 - paradox_mqtt.serial_connection - DEBUG - Initialising Serial_Connection... 2018-09-01 11:44:04,042 - paradox_mqtt.serial_connection - DEBUG - Initialised Serial_Connection. 2018-09-01 11:44:04,042 - paradox_mqtt.serial_connection - DEBUG - Connecting to serial port... 2018-09-01 11:44:04,045 - paradox_mqtt.serial_connection - ERROR - Could not connect to serial port. 2018-09-01 11:44:04,046 - paradox_mqtt - INFO - Connected to serial port. 2018-09-01 11:44:04,046 - paradox_mqtt.paradox - DEBUG - Initialising Paradox class... 2018-09-01 11:44:04,052 - paradox_mqtt.paradox - DEBUG - Initialised Paradox class. 2018-09-01 11:44:04,053 - paradox_mqtt - INFO - Connected to alarm. 2018-09-01 11:44:04,053 - paradox_mqtt.paradox - INFO - Connecting to mqtt. 2018-09-01 11:44:04,067 - paradox_mqtt.paradox - INFO - Connected to mqtt. 2018-09-01 11:44:04,168 - paradox_mqtt.paradox - INFO - Software connecting to alarm. 2018-09-01 11:44:04,169 - paradox_mqtt.paradox - DEBUG - Sending message b'r\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00r'... 2018-09-01 11:44:04,169 - paradox_mqtt.paradox - DEBUG - Message sent. 2018-09-01 11:44:04,270 - paradox_mqtt.paradox - DEBUG - Received message: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00r'
2018-09-01 11:44:04,271 - paradox_mqtt.paradox - DEBUG - Processing message...
2018-09-01 11:44:04,271 - paradox_mqtt.paradox - DEBUG - message[0]= 96
2018-09-01 11:44:04,272 - paradox_mqtt.paradox - DEBUG - High Nibble: 6
2018-09-01 11:44:04,272 - paradox_mqtt.paradox - DEBUG - Low Nibble: 0
2018-09-01 11:44:04,273 - paradox_mqtt.paradox - WARNING - Message checksum fails. Skipping message and flushing input buffer.
2018-09-01 11:44:04,273 - paradox_mqtt.paradox - DEBUG - Sending message b'P\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd0'...
2018-09-01 11:44:04,274 - paradox_mqtt.paradox - DEBUG - Message sent.
2018-09-01 11:44:04,375 - paradox_mqtt.paradox - DEBUG - Received message: b'P\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd0'
2018-09-01 11:44:04,376 - paradox_mqtt.paradox - DEBUG - Processing message...
2018-09-01 11:44:04,376 - paradox_mqtt.paradox - DEBUG - message[0]= 80
2018-09-01 11:44:04,377 - paradox_mqtt.paradox - DEBUG - High Nibble: 5
2018-09-01 11:44:04,377 - paradox_mqtt.paradox - DEBUG - Low Nibble: 0
2018-09-01 11:44:04,378 - paradox_mqtt.paradox - DEBUG - software_direct connected: False
2018-09-01 11:44:04,378 - paradox_mqtt.paradox - DEBUG - Software connected: False
2018-09-01 11:44:04,379 - paradox_mqtt.paradox - DEBUG - Alarm: False
2018-09-01 11:44:04,379 - paradox_mqtt.paradox - DEBUG - Event reporting: False
2018-09-01 11:44:04,380 - paradox_mqtt.paradox - DEBUG - Processing Keep Alive Response...
2018-09-01 11:44:04,380 - paradox_mqtt.paradox - DEBUG - PC time: 2018-09-01 11:44
2018-09-01 11:44:04,381 - paradox_mqtt.paradox - INFO - Time out by 2.0 minutes. Updating.
2018-09-01 11:44:04,382 - paradox_mqtt.paradox - DEBUG - Sending message b'0\x00\x00\x00\x14\x12\t\x01\x0b,\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x9b'...
2018-09-01 11:44:04,382 - paradox_mqtt.paradox - DEBUG - Message sent.
2018-09-01 11:44:04,383 - paradox_mqtt.paradox - DEBUG - input_dc_voltage: 1.40 | power_supply_dc_voltage: 0.00 | battery_dc_voltage: 0.00
2018-09-01 11:44:04,383 - paradox_mqtt.paradox - INFO - Zone 1,"Zone 2", Not open.
2018-09-01 11:44:04,386 - paradox_mqtt.paradox - INFO - Zone 2,"Zone 3", Not open.
2018-09-01 11:44:04,389 - paradox_mqtt.paradox - INFO - Zone 3,"Zone 4", Not open.
2018-09-01 11:44:04,391 - paradox_mqtt.paradox - INFO - Zone 4,"Zone 5", Not open.
2018-09-01 11:44:04,400 - paradox_mqtt.paradox - INFO - Zone 5,"Zone 6", Not open.
2018-09-01 11:44:04,402 - paradox_mqtt.paradox - INFO - Zone 6,"Zone 7", Not open.
2018-09-01 11:44:04,404 - paradox_mqtt.paradox - INFO - Zone 7,"Zone 8", Not open.
2018-09-01 11:44:04,406 - paradox_mqtt.paradox - INFO - Zone 8,"Zone 9", Not open.
2018-09-01 11:44:04,409 - paradox_mqtt.paradox - INFO - Zone 9,"Zone 10", Not open.
2018-09-01 11:44:04,412 - paradox_mqtt.paradox - INFO - Zone 10,"Zone 11", Not open.
2018-09-01 11:44:04,414 - paradox_mqtt.paradox - INFO - Zone 11,"Zone 12", Not open.
2018-09-01 11:44:04,416 - paradox_mqtt.paradox - INFO - Zone 12,"Zone 13", Not open.
2018-09-01 11:44:04,418 - paradox_mqtt.paradox - INFO - Zone 13,"Zone 14", Not open.
2018-09-01 11:44:04,421 - paradox_mqtt.paradox - INFO - Zone 14,"Zone 15", Not open.
2018-09-01 11:44:04,424 - paradox_mqtt.paradox - INFO - Zone 15,"Zone 16", Not open.
2018-09-01 11:44:04,426 - paradox_mqtt.paradox - INFO - Zone 16,"Zone 17", Not open.
2018-09-01 11:44:04,430 - paradox_mqtt.paradox - INFO - Zone 17,"Zone 18", Not open.
2018-09-01 11:44:04,432 - paradox_mqtt.paradox - INFO - Zone 18,"Zone 19", Not open.
2018-09-01 11:44:04,434 - paradox_mqtt.paradox - INFO - Zone 19,"Zone 20", Not open.
2018-09-01 11:44:04,436 - paradox_mqtt.paradox - INFO - Zone 20,"Zone 21", Not open.
2018-09-01 11:44:04,438 - paradox_mqtt.paradox - INFO - Zone 21,"Zone 22", Not open.
2018-09-01 11:44:04,440 - paradox_mqtt.paradox - INFO - Zone 22,"Zone 23", Not open.
2018-09-01 11:44:04,442 - paradox_mqtt.paradox - INFO - Zone 23,"Zone 24", Not open.
2018-09-01 11:44:04,443 - paradox_mqtt.paradox - INFO - Zone 24,"Zone 25", Not open.
2018-09-01 11:44:04,445 - paradox_mqtt.paradox - INFO - Zone 25,"Zone 26", Not open.
2018-09-01 11:44:04,448 - paradox_mqtt.paradox - INFO - Zone 26,"Zone 27", Not open.
2018-09-01 11:44:04,449 - paradox_mqtt.paradox - INFO - Zone 27,"Zone 28", Not open.
2018-09-01 11:44:04,452 - paradox_mqtt.paradox - INFO - Zone 28,"Zone 29", Not open.
2018-09-01 11:44:04,453 - paradox_mqtt.paradox - INFO - Zone 29,"Zone 30", Not open.
2018-09-01 11:44:04,455 - paradox_mqtt.paradox - INFO - Zone 30,"Zone 31", Not open.
2018-09-01 11:44:04,457 - paradox_mqtt.paradox - INFO - Zone 31,"Zone 32", Not open.
2018-09-01 11:44:04,459 - paradox_mqtt.paradox - INFO - Zone 32,"Zone 33", Not open.
2018-09-01 11:44:04,461 - paradox_mqtt.paradox - DEBUG - Sending message b'_ \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x7f'...
2018-09-01 11:44:04,463 - paradox_mqtt.paradox - DEBUG - Message sent.
2018-09-01 11:44:04,564 - paradox_mqtt.paradox - DEBUG - Received message: b'\x00\x00\x00\x00\x14\x12\t\x01\x0b,\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1b\x00'
2018-09-01 11:44:04,565 - paradox_mqtt.paradox - DEBUG - Processing message...
2018-09-01 11:44:04,565 - paradox_mqtt.paradox - DEBUG - message[0]= 0
2018-09-01 11:44:04,566 - paradox_mqtt.paradox - DEBUG - High Nibble: 0
2018-09-01 11:44:04,566 - paradox_mqtt.paradox - DEBUG - Low Nibble: 0
2018-09-01 11:44:04,567 - paradox_mqtt.paradox - WARNING - Message checksum fails. Skipping message and flushing input buffer.
2018-09-01 11:44:04,567 - paradox_mqtt.paradox - DEBUG - Message not 36 byes. Cannot calculate checksum. Message: b'\x00\x00\x00\x00\x14\x12\t\x01\x0b,\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1b\x00'
2018-09-01 11:44:04,568 - paradox_mqtt.paradox - DEBUG - Sending message b'\x00\x00\x00\x00\x14\x12\t\x01\x0b,\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1b\x00'...
2018-09-01 11:44:04,569 - paradox_mqtt.paradox - DEBUG - Message sent.
2018-09-01 11:44:04,870 - paradox_mqtt.paradox - DEBUG - Received message: b'\x00\x00\x00\x00\x14\x12\t\x01!\x88\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1b\x00\x00'
2018-09-01 11:44:04,871 - paradox_mqtt.paradox - DEBUG - Processing message...
2018-09-01 11:44:04,872 - paradox_mqtt.paradox - DEBUG - message[0]= 0
2018-09-01 11:44:04,873 - paradox_mqtt.paradox - DEBUG - High Nibble: 0
2018-09-01 11:44:04,873 - paradox_mqtt.paradox - DEBUG - Low Nibble: 0
2018-09-01 11:44:04,874 - paradox_mqtt.paradox - WARNING - Message checksum fails. Skipping message and flushing input buffer.
2018-09-01 11:44:04,875 - paradox_mqtt.paradox - DEBUG - Message not 36 byes. Cannot calculate checksum. Message: b'P\x00\x1f\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00O'
2018-09-01 11:44:04,876 - paradox_mqtt.paradox - DEBUG - Sending message b'P\x00\x1f\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00O'...
2018-09-01 11:44:04,877 - paradox_mqtt.paradox - DEBUG - Message sent.
2018-09-01 11:44:05,879 - paradox_mqtt.paradox - DEBUG - Message not 36 byes. Cannot calculate checksum. Message: b'P\x00\x1f\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00O'
2018-09-01 11:44:05,881 - paradox_mqtt.paradox - DEBUG - Sending message b'P\x00\x1f\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00O'...
2018-09-01 11:44:05,883 - paradox_mqtt.paradox - DEBUG - Message sent.
2018-09-01 11:44:05,986 - paradox_mqtt.paradox - DEBUG - Received message: b'P\x00\x1f\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00O'
2018-09-01 11:44:05,988 - paradox_mqtt.paradox - DEBUG - Processing message...
2018-09-01 11:44:05,989 - paradox_mqtt.paradox - DEBUG - message[0]= 80
2018-09-01 11:44:05,991 - paradox_mqtt.paradox - DEBUG - High Nibble: 5
2018-09-01 11:44:05,992 - paradox_mqtt.paradox - DEBUG - Low Nibble: 0
2018-09-01 11:44:05,994 - paradox_mqtt.paradox - DEBUG - software_direct connected: False
2018-09-01 11:44:05,996 - paradox_mqtt.paradox - DEBUG - Software connected: False
2018-09-01 11:44:05,998 - paradox_mqtt.paradox - DEBUG - Alarm: False
2018-09-01 11:44:05,999 - paradox_mqtt.paradox - DEBUG - Event reporting: False
2018-09-01 11:44:06,001 - paradox_mqtt.paradox - DEBUG - Processing Keep Alive Response...
2018-09-01 11:44:06,003 - paradox_mqtt.paradox - DEBUG - Final keep alive response.
2018-09-01 11:44:06,004 - paradox_mqtt.paradox - DEBUG - Sending message b'P\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00P'...
2018-09-01 11:44:06,006 - paradox_mqtt.paradox - DEBUG - Message sent.
2018-09-01 11:44:06,107 - paradox_mqtt.paradox - DEBUG - Received message: b'P\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00P'
2018-09-01 11:44:06,108 - paradox_mqtt.paradox - DEBUG - Processing message...
2018-09-01 11:44:06,109 - paradox_mqtt.paradox - DEBUG - message[0]= 80
2018-09-01 11:44:06,110 - paradox_mqtt.paradox - DEBUG - High Nibble: 5
2018-09-01 11:44:06,110 - paradox_mqtt.paradox - DEBUG - Low Nibble: 0
2018-09-01 11:44:06,111 - paradox_mqtt.paradox - DEBUG - software_direct connected: False
2018-09-01 11:44:06,112 - paradox_mqtt.paradox - DEBUG - Software connected: False
2018-09-01 11:44:06,113 - paradox_mqtt.paradox - DEBUG - Alarm: False
2018-09-01 11:44:06,114 - paradox_mqtt.paradox - DEBUG - Event reporting: False
2018-09-01 11:44:06,114 - paradox_mqtt.paradox - DEBUG - Processing Keep Alive Response...
2018-09-01 11:44:06,115 - paradox_mqtt.paradox - ERROR - Can't process this keep alive response:b'P\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00P'
2018-09-01 11:44:06,116 - paradox_mqtt.paradox - DEBUG - Sending message b'P\x00\x0eR\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0'...
2018-09-01 11:44:06,117 - paradox_mqtt.paradox - DEBUG - Message sent.
2018-09-01 11:44:06,218 - paradox_mqtt.paradox - DEBUG - Received message: b'P\x00\x0eR\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0'
2018-09-01 11:44:06,219 - paradox_mqtt.paradox - DEBUG - Processing message...
2018-09-01 11:44:06,220 - paradox_mqtt.paradox - DEBUG - message[0]= 80
2018-09-01 11:44:06,221 - paradox_mqtt.paradox - DEBUG - High Nibble: 5
2018-09-01 11:44:06,221 - paradox_mqtt.paradox - DEBUG - Low Nibble: 0
2018-09-01 11:44:06,222 - paradox_mqtt.paradox - DEBUG - software_direct connected: False
2018-09-01 11:44:06,223 - paradox_mqtt.paradox - DEBUG - Software connected: False
2018-09-01 11:44:06,223 - paradox_mqtt.paradox - DEBUG - Alarm: False
2018-09-01 11:44:06,224 - paradox_mqtt.paradox - DEBUG - Event reporting: False
2018-09-01 11:44:06,225 - paradox_mqtt.paradox - DEBUG - Processing Keep Alive Response...
2018-09-01 11:44:06,226 - paradox_mqtt.paradox - ERROR - Can't process this keep alive response:b'P\x00\x0eR\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0'
2018-09-01 11:44:06,227 - paradox_mqtt.paradox - INFO - Reading all labels...
2018-09-01 11:44:06,227 - paradox_mqtt.paradox - INFO - Reading zone labels...
2018-09-01 11:44:06,329 - paradox_mqtt.paradox - DEBUG - Sending message bytearray(b'P\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')... 2018-09-01 11:44:06,330 - paradox_mqtt.paradox - DEBUG - Message sent. 2018-09-01 11:44:06,431 - paradox_mqtt.paradox - DEBUG - Received message: b'P\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2018-09-01 11:44:06,432 - paradox_mqtt.paradox - DEBUG - Label packet: b'P\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' 2018-09-01 11:44:06,533 - paradox_mqtt.paradox - DEBUG - Sending message bytearray(b'P\x00\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80')... 2018-09-01 11:44:06,534 - paradox_mqtt.paradox - DEBUG - Message sent. 2018-09-01 11:44:06,636 - paradox_mqtt.paradox - DEBUG - Received message: b'P\x00\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80' 2018-09-01 11:44:06,637 - paradox_mqtt.paradox - DEBUG - Label packet: b'P\x00\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80' 2018-09-01 11:44:06,738 - paradox_mqtt.paradox - DEBUG - Sending message bytearray(b'P\x00\x00P\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa0')... 2018-09-01 11:44:06,739 - paradox_mqtt.paradox - DEBUG - Message sent. 2018-09-01 11:44:06,840 - paradox_mqtt.paradox - DEBUG - Received message: b'P\x00\x00P\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa0' 2018-09-01 11:44:06,841 - paradox_mqtt.paradox - DEBUG - Label packet: b'P\x00\x00P\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa0' 2018-09-01 11:44:06,942 - paradox_mqtt.paradox - DEBUG - Sending message bytearray(b'P\x00\x00p\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0')... 2018-09-01 11:44:06,943 - paradox_mqtt.paradox - DEBUG - Message sent. 2018-09-01 11:44:07,545 - paradox_mqtt.paradox - DEBUG - Received message: b'\x00\xe0\x14\x12\t\x01\r+\x01\x02\x00\x00\x00\x00\x00\x00Bucatarie \x00\x00\x00\x00\x00' 2018-09-01 11:44:07,546 - paradox_mqtt.paradox - DEBUG - Label packet: b'\x00\xe0\x14\x12\t\x01\r+\x01\x02\x00\x00\x00\x00\x00\x00Bucatarie \x00\x00\x00\x00\x00' 2018-09-01 11:44:07,547 - paradox_mqtt.paradox - INFO - Zone 7 label set to "� +��

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"

@iondarie
Copy link

iondarie commented Sep 1, 2018

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.

@jpbarraca
Copy link
Collaborator

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.

@iondarie
Copy link

iondarie commented Sep 1, 2018

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

@jpbarraca
Copy link
Collaborator

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.

@iondarie
Copy link

iondarie commented Sep 1, 2018

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

@jpbarraca
Copy link
Collaborator

Can you find the IP through the DNS?

@iondarie
Copy link

iondarie commented Sep 1, 2018

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.

@jpbarraca
Copy link
Collaborator

jpbarraca commented Sep 1, 2018

please contact me through hangouts, skype or other platform and lets follow in #4

@jpbarraca
Copy link
Collaborator

@psyciknz Can you move the discussion about IP150 to a new topic so that we close this?

@psyciknz
Copy link

I not sure I’ve contributed to this one at all. Sure close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants