Skip to content

Commit 1f8001e

Browse files
committed
Updates 2.3.3
1 parent ad8a07c commit 1f8001e

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ Designed to mimic AqualinkRS6 All Button keypad and (like the keypad) is used to
9090
* Improve PDA panels reliability (PDA pannels are slower than RS panels)
9191
* Potentially fixed Pentair VSP / SWG problems since Pentair VSP use a different protocol, this will allow a timed delay for the VSP to post a status messages. Seems to only effect RS485 bus when both a Pentair VSP and Jandy SWG are present.
9292
* Add ```rs485_frame_delay = 4``` to /etc/aqualinkd.conf, 4 is number of milliseconds between frames, 0 will turn off ie no pause.
93+
* PDA Changes to support SWG and Boot.
9394

9495
# Update in Release 2.3.2
9596
* Added support for VSP on panel versions REV 0.1 & 0.2

aq_panel.h

-5
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,4 @@ int PANEL_SIZE();
7575
void initButtons_RS16(struct aqualinkdata *aqdata);
7676
#endif
7777

78-
// Used in equiptment_update_cycle() for additional items on EQUIPMENT STATUS
79-
// TOTAL_BUTTONS is at most 20 so bits 21-31 should be available
80-
#define BOOST_INDEX 21
81-
#define FREEZE_PROTECT_INDEX 22
82-
8378
#endif

pda.c

+12-6
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@
3232
#include "devices_jandy.h"
3333
#include "rs_msg_utils.h"
3434

35+
// Used in equiptment_update_cycle() for additional items on EQUIPMENT STATUS
36+
// TOTAL_BUTTONS is at most 20 so bits 21-31 should be available
37+
#define PDA_BOOST_INDEX 21
38+
#define PDA_FREEZE_PROTECT_INDEX 22
39+
40+
3541
// static struct aqualinkdata _aqualink_data;
3642
static struct aqualinkdata *_aqualink_data;
3743
static unsigned char _last_packet_type;
@@ -157,13 +163,13 @@ void equiptment_update_cycle(int eqID) {
157163
}
158164

159165
if ((_aqualink_data->frz_protect_state == ON) &&
160-
(! (update_equiptment_bitmask & (1 << FREEZE_PROTECT_INDEX)))) {
166+
(! (update_equiptment_bitmask & (1 << PDA_FREEZE_PROTECT_INDEX)))) {
161167
LOG(PDA_LOG,LOG_DEBUG, "Turn off freeze protect not seen in last cycle\n");
162168
_aqualink_data->frz_protect_state = ENABLE;
163169
}
164170

165171
if ((_aqualink_data->boost) &&
166-
(! (update_equiptment_bitmask & (1 << BOOST_INDEX)))) {
172+
(! (update_equiptment_bitmask & (1 << PDA_BOOST_INDEX)))) {
167173
LOG(PDA_LOG,LOG_DEBUG, "Turn off BOOST not seen in last cycle\n");
168174
setSWGboost(_aqualink_data, false);
169175
}
@@ -173,9 +179,9 @@ void equiptment_update_cycle(int eqID) {
173179
char *eqName = NULL;
174180
if (eqID < TOTAL_BUTTONS) {
175181
eqName = _aqualink_data->aqbuttons[eqID].name;
176-
} else if (eqID == FREEZE_PROTECT_INDEX) {
182+
} else if (eqID == PDA_FREEZE_PROTECT_INDEX) {
177183
eqName = "FREEZE PROTECT";
178-
} else if (eqID == BOOST_INDEX) {
184+
} else if (eqID == PDA_BOOST_INDEX) {
179185
eqName = "BOOST";
180186
} else {
181187
eqName = "UNKNOWN";
@@ -668,13 +674,13 @@ void process_pda_packet_msg_long_equiptment_status(const char *msg_line, int lin
668674
else if ((index = rsm_strncasestr(msg, "FREEZE PROTECT", AQ_MSGLEN)) != NULL)
669675
{
670676
_aqualink_data->frz_protect_state = ON;
671-
equiptment_update_cycle(FREEZE_PROTECT_INDEX);
677+
equiptment_update_cycle(PDA_FREEZE_PROTECT_INDEX);
672678
LOG(PDA_LOG,LOG_DEBUG, "Freeze Protect is on\n");
673679
}
674680
else if ((index = rsm_strncasestr(msg, "BOOST", AQ_MSGLEN)) != NULL)
675681
{
676682
setSWGboost(_aqualink_data, true);
677-
equiptment_update_cycle(BOOST_INDEX);
683+
equiptment_update_cycle(PDA_BOOST_INDEX);
678684
}
679685
else if ((_aqualink_data->boost) && ((index = rsm_strncasestr(msg, "REMAIN", AQ_MSGLEN)) != NULL))
680686
{

release/aqualinkd

132 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)