serial loger update

pull/46/head
shaun feakes 2018-03-16 09:32:54 -05:00
parent 46d8a5a2f6
commit ff8f1843be
5 changed files with 17 additions and 3 deletions

View File

@ -46,6 +46,18 @@ Manual install for init-d systems
* Web interface has a lot of fixed layout items that as specific to my implimentation. The HTML & CSS need a complete overhall and re-though to support different configurations.
* There is code to control different light modes/shows, but it's not finished and no documentation will be provided until it is finished. It will not work unless you have this exact setup Haywood ColorLogic/Aqualink RS8.
# Aqualink Versions tested
This was designed for Jandy Aqualink RS, so should work with AqualinkRS and iAqualink Combo controll panels. At the moment it will not work with Aqualink PDA / AquaPalm and NON Combo iAqualink.
Below are versions :-
| Version | Notes |
| ---------------------------------- |---------------------------------------------------------------------------------------------------------|
| JANDY AquaLinkRS 8157 REV MMM | Everything working |
| Jandy AquaLinkRS B0029223 REV T.2 | Everything working |
| Jandy iAqualink E0260801 REV R | All except temprature setpoints. This is a combo board that supports iAqualink & AqualinkRS |
| AquaLink PDA / AquaPalm | Not usable, work in progress. |
Please post details in issues section if you have one not listed above.
## Hardware
You will need a [USB2RS485](https://www.amazon.com/OctagonStar-Converter-Adapter-Interface-FT232RL/dp/B01LCFRR3E/) adapter connected to your pool equiptmeent RS buss interface. (If you have an inside controller mounted on your wall, this is usually best place, if not the outside control panel is the next best place). Then a computer running linux connected to that USB2RS485 adapter. Code is designed & developed for raspberry pi zero w, so any computer with that as a minimum should work.

View File

@ -663,7 +663,7 @@ void main_loop() {
logMessage(LOG_ERR, "Bad packet length, reconnecting\n");
blank_read = MAX_ZERO_READ_BEFORE_RECONNECT;
} else if (packet_length == 0) {
logMessage(LOG_DEBUG_SERIAL, "Nothing read on serial\n");
//logMessage(LOG_DEBUG_SERIAL, "Nothing read on serial\n");
blank_read++;
} else if (packet_length > 0) {
blank_read = 0;

Binary file not shown.

Binary file not shown.

View File

@ -9,7 +9,7 @@
#include "aq_serial.h"
#include "utils.h"
#define SLOG_MAX 20
#define SLOG_MAX 40
typedef struct serial_id_log {
unsigned char ID;
@ -98,6 +98,8 @@ int main(int argc, char *argv[]) {
}
logMessage(LOG_DEBUG_SERIAL, "\n");
if (sindex >= SLOG_MAX)
logMessage(LOG_DEBUG_SERIAL, "Ran out of storage, some ID's were not captured, please increase SLOG_MAX and recompile\n");
logMessage(LOG_DEBUG_SERIAL, "ID's found\n");
for (i=0; i <= sindex; i++) {
logMessage(LOG_DEBUG_SERIAL, "ID 0x%02hhx is %s\n",slog[i].ID, slog[i].inuse==true?"in use":"not used");