Re: Control your Jandy equipment from your PC with a $15 ada
Here is what i got. Simulator still saying no connection.
Here is what i got. Simulator still saying no connection.
# ls -l /dev/ttyUSB*
crw-rw---- 1 root uucp 188, 0 Jan 6 12:00 /dev/ttyUSB0
VegasMike said:As far as I know it doesn't require an internet connection. We just want to control it from internet connected devices.
We are connecting a computer to the RS485 port. There is a USB to RS485 adapter. Then you need to wire the adapter to the pool panel because it doesn't have a port, just a place to attach the wires.
# python aquadisplay.py
RS485 : opening RS485 port /dev/ttyUSB0
RS485 : synchronized
RS485 : ready
RS485 : --> 1002 22 02 005c569042 ba 1003
RS485 : --> 1002 00 01 0000 13 1003
RS485 : --> 1002 13 00 25 1003
RS485 : --> 1002 22 02 005c569042 ba 1003
RS485 : --> 1002 00 01 0000 13 1003
RS485 : --> 1002 18 00 2a 1003
RS485 : --> 1002 22 02 005c569042 ba 1003
RS485 : --> 1002 00 01 0000 13 1003
RS485 : --> 1002 19 00 2b 1003
RS485 : --> 1002 22 02 005c569042 ba 1003
RS485 : --> 1002 00 01 0000 13 1003
RS485 : --> 1002 1a 00 2c 1003
RS485 : --> 1002 22 02 005c569042 ba 1003
RS485 : --> 1002 00 01 0000 13 1003
RS485 : --> 1002 1b 00 2d 1003
RS485 : --> 1002 22 02 005c569042 ba 1003
RS485 : --> 1002 00 01 0000 13 1003
RS485 : --> 1002 20 00 32 1003
RS485 : --> 1002 22 02 005c569042 ba 1003
RS485 : --> 1002 00 01 0000 13 1003
RS485 : --> 1002 21 00 33 1003
RS485 : --> 1002 22 02 005c569042 ba 1003
RS485 : --> 1002 00 01 0000 13 1003
RS485 : --> 1002 23 00 35 1003
# python aquadisplay.py raw
RS485 : ready
RS485 : 10022202005c569042ba100300100200
RS485 : 01000013100310024000521003100222
RS485 : 02005c569042ba100300100200010000
RS485 : 1310031002410053100310022202005c
RS485 : 569042ba100300100200010000131003
RS485 : 1002420054100310022202005c569042
RS485 : ba100300100200010000131003100243
RS485 : 0055100310022202005c569042ba1003
RS485 : 00100200010000131003100210000022
RS485 : 100310022202005c569042ba10030010
RS485 : 02000100001310031002110023100310
RS485 : 022202005c569042ba10030010020001
RS485 : 00001310031002120024100310022202
RS485 : 005c569042ba10030010020001000013
RS485 : 10031002130025100310022202005c56
RS485 : 9042ba10030010020001000013100310
RS485 : 0218002a100310022202005c569042ba
RS485 : 10030010020001000013100310021900
RS485 : 2b100310022202005c569042ba100300
RS485 : 10020001000013100310021a002c1003
RS485 : 10022202005c569042ba100300100200
# wget [url]https://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz[/url]
# tar -xvf pip-1.3.1.tar.gz
# cd pip-1.3.1
# python setup.py install
# cd ..
# pip install pyserial
That just happens to be the address of my SpaLink controller. This program just listens in on whatever conversations are happening between the Aqualink controller and other devices. Depending on what device(s) you have, things will look different. It doesn't let you control anything.VegasMike said:Also, you mention address 0x22. What exactly is that and how are you coming to that address? Am I supposed to "listen" at a certain address? How do I get the value?