Replies: 7 comments 3 replies
-
This looks like a bad serial connection, the polarity is correct, but the quality looks to be the issue. So maybe try different cable / connecting at a different point etc. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for your quick response! I wonder if it is the USB type A to USB micro C adapter that is used to connect the FTDI cable to the Pi Zero, or it is the FTDI cable itself? Any recommendations for an adapter that will be more reliable? For the cable I bought the one you recommended from Amazon. |
Beta Was this translation helpful? Give feedback.
-
Id be more inclined to say it’s not the USB cables, but that physical RS485 cabling. Ie cable (or connection) from panel to USB2RS485 adapter. |
Beta Was this translation helpful? Give feedback.
-
Thanks, for the feedback. I did an experiment and replaced the Pi Zero with a Pi 4 I had lying around; when I did that, I didn't use the adapter anymore, and that eliminated all the RS Serial errors. It seems to be stable now, so definitely the adapter introduced some noise in the line. I still get the Panl&Prog errors. Are these also related to cabling or they are due to mistakes on the aqualinkd conf file? Most of those seem to be present after boot and they don't appear anymore after a while. Making progress :) |
Beta Was this translation helpful? Give feedback.
-
Programming errors come from AqualinkD not getting messages it expects from the panel. Checksum / serial errors are usually the cause of that. I can't recall if Rev E has been tested, so it might be something to do with that revision. If you turn on debugging logging (at startup using the config file) and post the output, that should help figure it out. |
Beta Was this translation helpful? Give feedback.
-
Thanks, I enabled DEBUG and recaptured the output when the system boots. I have attached the log file |
Beta Was this translation helpful? Give feedback.
-
I think we are getting to the bottom of this. As you saw Slowing down AqualinkD, made the loosing connection with control panel problem worse, ie the panel wasn’t receiving messages quickly enough so thinks the connection is dead. But the value of 20 is 1/2 the actual time, a value above 40ms should cause that issue. (The timing debug messages in AqualinkD shows you the time it is actually taking). Is AqualinkD is showing replying to messages in 0.020, but my guess is it’s probably above 0.040 at the control panel. Other than AqualinkD, there are two things in the way of the speed in which messages are sent, one is the Linux kernel, the 2nd is the USB2RS485 device. So first set One other thing try uncommon this setting in aqualinkd.conf |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am having a hard time making aqualinkd to work with my RS6 panel. I get some checksum errors and incomplete information with the serial logger:
AqualinkD serial_logger V2.2
Notice: RS Serial: Port /dev/ttyUSB0 low latency mode is set
Notice: RS Serial: Logging serial information!
Please wait.|
Notice: RS Serial: RS485 interface received 600 packets in 13 seconds (~46.15 Msg/Sec)
Notice: RS Serial: Jandy Control Panel Model :
Notice: RS Serial: Jandy Control Panel Version :
Notice: RS Serial: Jandy ID's found
Notice: RS Serial: ID 0x08 is in use <-- RS Keypad
Notice: RS Serial: ID 0x09 is not used <-- can use for Aqualinkd
Notice: RS Serial: ID 0x0a is not used <-- can use for Aqualinkd
Notice: RS Serial: ID 0x0b is not used <-- can use for Aqualinkd
Notice: RS Serial:
Notice: RS Serial: Suggested aqualinkd.conf values
Notice: RS Serial: -------------------------
Notice: RS Serial: device_id = 0x09
Notice: RS Serial: -------------------------
Log output:
Aug 13 00:43:27 raspberrypi aqualinkd[706]: AllButton: Control Panel revision E
Aug 13 00:43:27 raspberrypi aqualinkd[706]: RS Serial: Serial read bad Jandy checksum, ignoring
Aug 13 00:43:27 raspberrypi aqualinkd[706]: RS Serial: Read Jandy packet BAD PACKET To 0xff of type Probe | HEX: 0x10|0x02|0xff|0x00|0x10|0x02|0x08|0x02|0x00|0x00|0x00|0x00|0x00|0x1c|0x10|0x03|
Aug 13 00:43:30 raspberrypi aqualinkd[706]: AllButton: RS Message :- '6521 REV E'
Aug 13 00:43:30 raspberrypi aqualinkd[706]: AllButton: Control Panel version 6521 REV E
Aug 13 00:43:30 raspberrypi aqualinkd[706]: AllButton: Control Panel revision E
Aug 13 00:43:30 raspberrypi aqualinkd[706]: AllButton: RS Message :- '6521 REV E'
Aug 13 00:43:30 raspberrypi aqualinkd[706]: AllButton: Control Panel version 6521 REV E
Aug 13 00:43:30 raspberrypi aqualinkd[706]: AllButton: Control Panel revision E
Aug 13 00:43:30 raspberrypi aqualinkd[706]: AllButton: RS Message :- '6521 REV E'
Aug 13 00:43:30 raspberrypi aqualinkd[706]: AllButton: Control Panel version 6521 REV E
Aug 13 00:43:30 raspberrypi aqualinkd[706]: AllButton: Control Panel revision E
Aug 13 00:43:30 raspberrypi aqualinkd[706]: RS Serial: Serial read bad Jandy checksum, ignoring
Aug 13 00:43:30 raspberrypi aqualinkd[706]: RS Serial: Read Jandy packet BAD PACKET To 0x10 of type Probe | HEX: 0x10|0x02|0x10|0x00|0x22|0x10|0xff|0x00|0x10|0x02|0x08|0x02|0x00|0x00|0x00|0x00|0x00|0x1c|0x10|0x03|
Aug 13 00:43:43 raspberrypi aqualinkd[706]: AllButton: RS Message :- '6521 REV E'
Aug 13 00:43:43 raspberrypi aqualinkd[706]: AllButton: Control Panel version 6521 REV E
Aug 13 00:43:43 raspberrypi aqualinkd[706]: AllButton: Control Panel revision E
Aug 13 00:43:43 raspberrypi aqualinkd[706]: AllButton: RS Message :- '6521 REV E'
Aug 13 00:43:43 raspberrypi aqualinkd[706]: AllButton: Control Panel version 6521 REV E
Aug 13 00:43:43 raspberrypi aqualinkd[706]: AllButton: Control Panel revision E
Aug 13 00:43:43 raspberrypi aqualinkd[706]: AllButton: RS Message :- '6521 REV E'
Aug 13 00:43:43 raspberrypi aqualinkd[706]: AllButton: Control Panel version 6521 REV E
Aug 13 00:43:43 raspberrypi aqualinkd[706]: AllButton: Control Panel revision E
Aug 13 00:43:43 raspberrypi aqualinkd[706]: RS Serial: Serial read bad Jandy checksum, ignoring
Aug 13 00:43:43 raspberrypi aqualinkd[706]: RS Serial: Read Jandy packet BAD PACKET To 0xf0 of type Probe | HEX: 0x10|0x02|0xf0|0x00|0x10|0x02|0x08|0x02|0x00|0x00|0x00|0x00|0x00|0x1c|0x10|0x03|
Aug 13 00:43:45 raspberrypi aqualinkd[706]: AllButton: RS Message :- '6521 REV E'
Aug 13 00:43:45 raspberrypi aqualinkd[706]: AllButton: Control Panel version 6521 REV E
Aug 13 00:43:45 raspberrypi aqualinkd[706]: AllButton: Control Panel revision E
Aug 13 00:43:45 raspberrypi aqualinkd[706]: AllButton: RS Message :- '6521 REV E'
Aug 13 00:43:45 raspberrypi aqualinkd[706]: AllButton: Control Panel version 6521 REV E
Aug 13 00:43:45 raspberrypi aqualinkd[706]: AllButton: Control Panel revision E
Aug 13 00:43:45 raspberrypi aqualinkd[706]: AllButton: RS Message :- '6521 REV E'
Aug 13 00:43:45 raspberrypi aqualinkd[706]: AllButton: Control Panel version 6521 REV E
Aug 13 00:43:45 raspberrypi aqualinkd[706]: AllButton: Control Panel revision E
Aug 13 00:43:47 raspberrypi aqualinkd[706]: AllButton: RS Message :- '6521 REV E'
Aug 13 00:43:47 raspberrypi aqualinkd[706]: AllButton: Control Panel version 6521 REV E
Aug 13 00:43:47 raspberrypi aqualinkd[706]: AllButton: Control Panel revision E
Aug 13 00:43:47 raspberrypi aqualinkd[706]: AllButton: RS Message :- '6521 REV E'
Aug 13 00:43:47 raspberrypi aqualinkd[706]: AllButton: Control Panel version 6521 REV E
Aug 13 00:43:47 raspberrypi aqualinkd[706]: AllButton: Control Panel revision E
Aug 13 00:43:48 raspberrypi aqualinkd[706]: AllButton: RS Message :- '6521 REV E'
Aug 13 00:43:48 raspberrypi aqualinkd[706]: AllButton: Control Panel version 6521 REV E
Aug 13 00:43:48 raspberrypi aqualinkd[706]: AllButton: Control Panel revision E
Aug 13 00:44:11 raspberrypi aqualinkd[706]: AllButton: RS Message :- '6521 REV E'
Aug 13 00:44:11 raspberrypi aqualinkd[706]: AllButton: Control Panel version 6521 REV E
Aug 13 00:44:11 raspberrypi aqualinkd[706]: AllButton: Control Panel revision E
Aug 13 00:44:11 raspberrypi aqualinkd[706]: AllButton: RS Message :- '6521 REV E'
Aug 13 00:44:11 raspberrypi aqualinkd[706]: AllButton: Control Panel version 6521 REV E
Aug 13 00:44:11 raspberrypi aqualinkd[706]: AllButton: Control Panel revision E
Aug 13 00:44:11 raspberrypi aqualinkd[706]: AllButton: RS Message :- '6521 REV E'
Aug 13 00:44:11 raspberrypi aqualinkd[706]: AllButton: Control Panel version 6521 REV E
Aug 13 00:44:11 raspberrypi aqualinkd[706]: AllButton: Control Panel revision E
Aug 13 00:44:11 raspberrypi aqualinkd[706]: RS Serial: Serial read bad Jandy checksum, ignoring
Aug 13 00:44:11 raspberrypi aqualinkd[706]: RS Serial: Read Jandy packet BAD PACKET To 0x10 of type Probe | HEX: 0x10|0x02|0x10|0x00|0x22|0x10|0xff|0x00|0x10|0x02|0x08|0x02|0x00|0x00|0x00|0x00|0x00|0x1c|0x10|0x03|
Aug 13 00:59:03 raspberrypi aqualinkd[753]: AqualinkD: Config BTN Spa_Heater = label Spa Heater |
Aug 13 00:59:03 raspberrypi aqualinkd[753]: AqualinkD: Config BTN Solar_Heater = label Solar Heater |
Aug 13 00:59:03 raspberrypi aqualinkd[754]: NetService:Starting network services thread
Aug 13 00:59:03 raspberrypi aqualinkd[754]: NetService:Starting web server on port 80
Aug 13 00:59:03 raspberrypi aqualinkd[754]: NetService:Starting MQTT client to localhost:1884
Aug 13 00:59:03 raspberrypi aqualinkd[754]: RS Serial: Port /dev/ttyUSB0 low latency mode is set
Aug 13 00:59:03 raspberrypi aqualinkd[754]: AqualinkD: Listening to Aqualink RS8 on serial port: /dev/ttyUSB0
Aug 13 00:59:03 raspberrypi aqualinkd[754]: AqualinkD: Waiting for Control Panel probe
Aug 13 00:59:03 raspberrypi aqualinkd[754]: AqualinkD: Got probe on '0x09' Standard Protocol
Aug 13 00:59:03 raspberrypi aqualinkd[754]: AqualinkD: Starting communication with Control Panel
Aug 13 00:59:26 raspberrypi aqualinkd[754]: AllButton: Control Panel version 6521 REV E
Aug 13 00:59:26 raspberrypi aqualinkd[754]: AllButton: Control Panel revision E
Aug 13 00:59:26 raspberrypi aqualinkd[754]: Panl&Prog: Starting programming thread 'Get Heater setpoints'
Aug 13 00:59:26 raspberrypi aqualinkd[754]: Panl&Prog: Starting programming thread 'Get Freeze protect'
Aug 13 00:59:26 raspberrypi aqualinkd[754]: RS Serial: Serial read bad Jandy checksum, ignoring
Aug 13 00:59:26 raspberrypi aqualinkd[754]: RS Serial: Read Jandy packet BAD PACKET To 0x00 of type PDA HlightChars | HEX: 0x10|0x02|0x00|0x10|0x02|0x08|0x02|0x00|0x00|0x00|0x00|0x00|0x1c|0x10|0x03|
Aug 13 00:59:26 raspberrypi aqualinkd[754]: AllButton: Control Panel version 6521 REV E
Aug 13 00:59:26 raspberrypi aqualinkd[754]: AllButton: Control Panel revision E
Aug 13 00:59:26 raspberrypi aqualinkd[754]: AllButton: Control Panel version 6521 REV E
Aug 13 00:59:26 raspberrypi aqualinkd[754]: AllButton: Control Panel revision E
Aug 13 00:59:27 raspberrypi aqualinkd[754]: Panl&Prog: Did not receive expected reply from last RS SEND command, resending '0x09'
Aug 13 01:00:12 raspberrypi aqualinkd[754]: AllButton: Control Panel version 6521 REV E
Aug 13 01:00:12 raspberrypi aqualinkd[754]: AllButton: Control Panel revision E
Aug 13 01:00:12 raspberrypi aqualinkd[754]: AllButton: Control Panel version 6521 REV E
Aug 13 01:00:12 raspberrypi aqualinkd[754]: AllButton: Control Panel revision E
Aug 13 01:00:12 raspberrypi aqualinkd[754]: AllButton: Control Panel version 6521 REV E
Aug 13 01:00:12 raspberrypi aqualinkd[754]: AllButton: Control Panel revision E
Aug 13 01:01:02 raspberrypi aqualinkd[754]: AllButton: Control Panel version 6521 REV E
Aug 13 01:01:02 raspberrypi aqualinkd[754]: AllButton: Control Panel revision E
Aug 13 01:01:02 raspberrypi aqualinkd[754]: AllButton: Control Panel version 6521 REV E
Aug 13 01:01:02 raspberrypi aqualinkd[754]: AllButton: Control Panel revision E
Aug 13 01:01:02 raspberrypi aqualinkd[754]: AllButton: Control Panel version 6521 REV E
Aug 13 01:01:02 raspberrypi aqualinkd[754]: AllButton: Control Panel revision E
Aug 13 01:01:27 raspberrypi aqualinkd[754]: Panl&Prog: Thread (Get Heater setpoints) 0x8b1c68 timeout waiting for thread (Get Freeze protect) 0x8b1650 to finish
Aug 13 01:01:52 raspberrypi aqualinkd[754]: AllButton: Control Panel version 6521 REV E
Aug 13 01:01:52 raspberrypi aqualinkd[754]: AllButton: Control Panel revision E
Aug 13 01:01:52 raspberrypi aqualinkd[754]: AllButton: Control Panel version 6521 REV E
Aug 13 01:01:52 raspberrypi aqualinkd[754]: AllButton: Control Panel revision E
Aug 13 01:01:52 raspberrypi aqualinkd[754]: AllButton: Control Panel version 6521 REV E
Aug 13 01:01:52 raspberrypi aqualinkd[754]: AllButton: Control Panel revision E
Aug 13 01:01:54 raspberrypi aqualinkd[754]: Panl&Prog: Did not receive expected reply from last RS SEND command, resending '0x09'
Aug 13 01:02:02 raspberrypi aqualinkd[754]: AllButton: Control Panel version 6521 REV E
Aug 13 01:02:02 raspberrypi aqualinkd[754]: AllButton: Control Panel revision E
Aug 13 01:02:02 raspberrypi aqualinkd[754]: AllButton: Control Panel version 6521 REV E
Aug 13 01:02:02 raspberrypi aqualinkd[754]: AllButton: Control Panel revision E
Aug 13 01:02:02 raspberrypi aqualinkd[754]: AllButton: Control Panel version 6521 REV E
Aug 13 01:02:02 raspberrypi aqualinkd[754]: AllButton: Control Panel revision E
Aug 13 01:02:07 raspberrypi aqualinkd[754]: AllButton: Control Panel version 6521 REV E
Aug 13 01:02:07 raspberrypi aqualinkd[754]: AllButton: Control Panel revision E
Aug 13 01:02:07 raspberrypi aqualinkd[754]: AllButton: Control Panel version 6521 REV E
Aug 13 01:02:07 raspberrypi aqualinkd[754]: AllButton: Control Panel revision E
Aug 13 01:02:08 raspberrypi aqualinkd[754]: AllButton: Control Panel version 6521 REV E
Aug 13 01:02:08 raspberrypi aqualinkd[754]: AllButton: Control Panel revision E
Aug 13 01:02:10 raspberrypi aqualinkd[754]: Panl&Prog: Did not receive expected reply from last RS SEND command, resending '0x09'
Aug 13 01:02:10 raspberrypi aqualinkd[754]: AllButton: Control Panel version 6521 REV E
Aug 13 01:02:10 raspberrypi aqualinkd[754]: AllButton: Control Panel revision E
Aug 13 01:02:10 raspberrypi aqualinkd[754]: AllButton: Control Panel version 6521 REV E
Aug 13 01:02:10 raspberrypi aqualinkd[754]: AllButton: Control Panel revision E
Aug 13 01:02:10 raspberrypi aqualinkd[754]: AllButton: Control Panel version 6521 REV E
Aug 13 01:02:10 raspberrypi aqualinkd[754]: AllButton: Control Panel revision E
Aug 13 01:02:10 raspberrypi aqualinkd[754]: AllButton: Could not select REVIEW menu
Aug 13 01:02:10 raspberrypi aqualinkd[754]: AllButton: Can't get freeze setpoints from Control Panel
None of the pool buttons on the web interface responds correctly, usually I test the lights and after I turn them on, they turn off on their own a couple of seconds later.
I have double-checked the wiring (+ and -) and it is correct. I am using the FTDI USB-RS485-WE-180 serial 1.8M wire end cable, does this looks like a bad Serial cable?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions