| Author |
Message |
|
pgershon
Joined: Jul 10, 2004 Posts: 195
|
 Re: Serial Bridge and Jandy
Apologize for not being more helpful but I am fighting my way through a lightening strike issue and just got my Mac USB to Serial functioning again (new adaptor). I believe the QQ revision refers to the Jandy logic board, not the serial adaptor. I have two, a new QQ and old K revision. I will try my old Serial Adaptor and my brand new one with both. My old one is likely blown from the lightening, as everything else connected to the Jandy was.
|
| Thu Jun 30, 2011 10:14 pm |
|
 |
|
yergeyj
Joined: Dec 29, 2004 Posts: 239
|
 Re: Serial Bridge and Jandy
pgershon wrote:Apologize for not being more helpful but I am fighting my way through a lightening strike issue and just got my Mac USB to Serial functioning again (new adaptor). I believe the QQ revision refers to the Jandy logic board, not the serial adaptor. I have two, a new QQ and old K revision. I will try my old Serial Adaptor and my brand new one with both. My old one is likely blown from the lightening, as everything else connected to the Jandy was.
Do you have an old and a new Aqualink RS Serial Adaptor as well, or just a new USB-Serial adaptor? If you have a new Jandy Aqualink Serial Adaptor, do you also have the manual for it, or know where to find it online? Having the manual for the current version of Jandy's adaptor will tell me if the commands "should" still work. Jim
|
| Fri Jul 01, 2011 4:32 am |
|
 |
|
Lexguyy
Joined: Nov 06, 2010 Posts: 2
|
 Re: Serial Bridge and Jandy
I noted above in this thread (and posted my event log) that I'm still getting two way communication through the serial bridge/Serial Adapter and rev QQ. However, I'm not able to get Indigo 5 (or 4) and the script to translate them into Indigo variables. The problem according to Jandy is that since the Aqualink RS PCB (main controller) rev. QQ was introduced the communication to the "old" Serial Adapter has changed. This must be causing the script problem as well?? They said a new Serial Adapter will be available "at the end of July", when I called about three weeks ago. I'm not sure if there is a workaround by revising the script, but I get the feeling the new Serial Adapter won't be ready that soon. My guess is that the script needs to be rewritten or changed to a 5.0 plugin. Jandy (now owned by Zodiac) has helpful tech support now! Maybe they will email you the rev. QQ change log to help you. Try Melodie at tech support 800 822-7933 ext 3900.
|
| Fri Jul 01, 2011 10:07 am |
|
 |
|
asw24b
Joined: Dec 30, 2007 Posts: 179 Location: Los Altos Hills, CA
|
 Re: Serial Bridge and Jandy
Lexguyy wrote:I noted above in this thread (and posted my event log) that I'm still getting two way communication through the serial bridge/Serial Adapter and rev QQ. However, I'm not able to get Indigo 5 (or 4) and the script to translate them into Indigo variables. The problem according to Jandy is that since the Aqualink RS PCB (main controller) rev. QQ was introduced the communication to the "old" Serial Adapter has changed. This must be causing the script problem as well?? They said a new Serial Adapter will be available "at the end of July", when I called about three weeks ago. I'm not sure if there is a workaround by revising the script, but I get the feeling the new Serial Adapter won't be ready that soon. My guess is that the script needs to be rewritten or changed to a 5.0 plugin. Jandy (now owned by Zodiac) has helpful tech support now! Maybe they will email you the rev. QQ change log to help you. Try Melodie at tech support 800 822-7933 ext 3900.
I called them, and they said they were not aware of any issues. The "new" adapter allows control of the JandyColor LED lights with a single command. The tech guy SWEARS that there is no other fix in the new adapter. Mike
Last edited by asw24b on Fri Jul 01, 2011 3:34 pm, edited 1 time in total.
|
| Fri Jul 01, 2011 12:18 pm |
|
 |
|
yergeyj
Joined: Dec 29, 2004 Posts: 239
|
 Re: Serial Bridge and Jandy
Lexguyy wrote:I noted above in this thread (and posted my event log) that I'm still getting two way communication through the serial bridge/Serial Adapter and rev QQ. However, I'm not able to get Indigo 5 (or 4) and the script to translate them into Indigo variables. The problem according to Jandy is that since the Aqualink RS PCB (main controller) rev. QQ was introduced the communication to the "old" Serial Adapter has changed. This must be causing the script problem as well?? They said a new Serial Adapter will be available "at the end of July", when I called about three weeks ago. I'm not sure if there is a workaround by revising the script, but I get the feeling the new Serial Adapter won't be ready that soon. My guess is that the script needs to be rewritten or changed to a 5.0 plugin. Jandy (now owned by Zodiac) has helpful tech support now! Maybe they will email you the rev. QQ change log to help you. Try Melodie at tech support 800 822-7933 ext 3900.
Lexguyy The variables should get set when you run the JandyGetStatus() command from Indigo, however, it appears that the system thinks your pump is off, so it stops getting the rest of the information, except air temperature, as it cannot determine pool vs. spa valve settings or pool or spa temperature if the pool pump is not on. I'm not sure why, if the pump is on, you are getting a response that it is not? I might suggest that you adopt something like the following as a test script to test each of the commands; just enter each command in place of the #PUMP? and use the Event Log in Script Editor to see how the IntelliTouch responds. - Code: Select all
property SerialConnectionName : "Jandy Aqualink RS Serial Adaptor"
tell application "Serial Bridge" send to source SerialConnectionName string "#PUMP1?" send to source SerialConnectionName byte 13 delay 1 -- Wait for command and response set ResponseString to read string from source SerialConnectionName end tell
Based on your post, and subsequent one, it appears that the new serial adaptor just has new functionality and should work with the "old" scripts for everything they currently contain. I had not seen any activity on this topic in a while (except one quick post last year), and as such hadn't been either watching the forum or thinking about providing any updates to the Jandy scripts. If it appears they are really in use by folks, and still functional with the new boards/adaptors from Zodiac, I will attempt to create an Indigo plugin. Jim
|
| Fri Jul 01, 2011 1:38 pm |
|
 |
|
yergeyj
Joined: Dec 29, 2004 Posts: 239
|
 Re: Serial Bridge and Jandy
support wrote:Hi Jim ... Do you have any experience with python? We have quite a bit of documentation under the Technical Documents section here. You can also look at the plugins we ship with (or that other folks have posted) since all of the source code is included in the plugin. And of course we can help answer any questions you might have.
Matt, I have zero experience with python, but am usually a pretty quick study with new programming. I had done only very basic AppleScripting until I started using it for Indigo, and am now pretty proficient with that. I would certainly be interested in working on a Plugin for the Jandy system, assuming some of the issues with versioning here are not a problem (my system dates from 2008), but could also provide some updates to the existing scripts that run more efficiently and in background. I've been using updated versions of the AppleScripts since 2009, but hadn't seen any obvious interest here, so hadn't bothered with updating (thought I was the only one using them). Do you think it's worth updating the User Contribution AppleScripts while I work on learning python? I started reading some of the online python tutorials, but would love to just dive in with some small projects (obviously not just command line stuff, as I do know Unix and the Terminal pretty well). You mentioned that all of the Indigo Plugins have source code embedded - what program do I need to read/edit them?? Jim
|
| Fri Jul 01, 2011 1:47 pm |
|
 |
|
jay (support)
Site Admin
Joined: Mar 19, 2008 Posts: 6665 Location: Austin, Texas
|
 Re: Serial Bridge and Jandy
Hey Jim, you can use any text editor. An Indigo plugin is just a bundle that contains various text files - XML and python source code. In the Finder, right-click on any plugin and select "Show Package Contents" and it'll open a new window that shows the files in the bundle. FYI, making a bundle is easy: just create a folder in the Finder then change the name to end with ".indigoPlugin" and the icon will change from a folder to the plugin icon... 
_________________ Jay (Indigo Support)
|
| Fri Jul 01, 2011 2:04 pm |
|
 |
|
asw24b
Joined: Dec 30, 2007 Posts: 179 Location: Los Altos Hills, CA
|
 Re: Serial Bridge and Jandy
jay wrote:Hey Jim, you can use any text editor. An Indigo plugin is just a bundle that contains various text files - XML and python source code. In the Finder, right-click on any plugin and select "Show Package Contents" and it'll open a new window that shows the files in the bundle. FYI, making a bundle is easy: just create a folder in the Finder then change the name to end with ".indigoPlugin" and the icon will change from a folder to the plugin icon... 
Still no custom icon, right ? Mike
|
| Fri Jul 01, 2011 3:35 pm |
|
 |
|
matt (support)
Site Admin
Joined: Jan 27, 2003 Posts: 11698 Location: Texas
|
 Re: Serial Bridge and Jandy
Nope, but I need to do that...
_________________
|
| Fri Jul 01, 2011 3:37 pm |
|
 |
|
jay (support)
Site Admin
Joined: Mar 19, 2008 Posts: 6665 Location: Austin, Texas
|
 Re: Serial Bridge and Jandy
For an ".indigoPlugin" bundle? Not yet - super-low on the priority list for obvious reasons, but I may try to get it done for GM... 
_________________ Jay (Indigo Support)
|
| Fri Jul 01, 2011 3:37 pm |
|
 |
|
pgershon
Joined: Jul 10, 2004 Posts: 195
|
 Re: Serial Bridge and Jandy
FYI, I am using a new serial adaptor and will try to post manual.
ITurns out I am using board MM (I had a spare and have not installed my QQ logic board yet). My script is generally communicating now, but the variable names are not working. For example, the script has a command line "set AirTemp to characters 14 thru 17 of ResponseString" but instead of getting the airtemp, the variable value is being set to " AIR".
Not sure what is going on. It looks like Jandy is giving proper output, but Indigo/Serial Bridge not handling. I put some debugging entries into the script but no clue what problem is. I will show script (limited to getting airtemp) and logs in serial bridge and Indigo 5:
Script:
on JandyGetAirTemp() my CheckVariable("AirTemp") tell application "Serial Bridge" log "z" send to source SerialConnectionName string "#AIRTMP?" -- Get air temperature. log "A" send to source SerialConnectionName byte 13 log "b" delay 1 -- Wait for command and response set ResponseString to read string from source SerialConnectionName log "c" end tell set AirTemp to characters 14 thru 17 of ResponseString log ResponseString my SafeSetVariableValue("AirTemp", AirTemp as string) return true end JandyGetAirTemp Serial Bridge Log:
Jul 1, 2011 6:02:43 PM Sent 23 50 55 4D 50 3F Received 23 50 55 4D 50 3F Sent 0D Received 0D 0A Received 21 30 30 20 50 55 4D 50 20 3D 20 31 0D 0A Sent 23 53 50 41 3F Sent 0D Received 23 53 50 41 3F 0D 0A Received 21 30 30 20 53 50 41 20 3D 20 31 0D 0A Sent 23 53 50 41 54 4D 50 3F Sent 0D Received 23 53 50 41 54 4D 50 3F 0D 0A Received 21 30 30 20 53 50 41 54 4D 50 20 3D 20 31 30 32 20 46 0D 0A Sent 23 50 4F 4F 4C 54 4D 50 3F Sent 0D Received 23 50 4F 4F 4C 54 4D 50 3F 0D 0A Received 21 30 30 20 50 4F 4F 4C 54 4D 50 20 3D 20 38 37 20 46 0D 0A Sent 23 53 50 41 48 54 3F Sent 0D Received 23 53 50 41 48 54 3F 0D 0A Received 21 30 30 20 53 50 41 48 54 20 3D 20 32 0D 0A Sent 23 50 4F 4F 4C 48 54 3F Sent 0D Received 23 50 4F 4F 4C 48 54 3F 0D 0A Received 21 30 30 20 50 4F 4F 4C 48 54 20 3D 20 31 0D 0A Sent 23 53 50 41 53 50 3F Sent 0D Received 23 53 50 41 53 50 3F 0D 0A Received 21 30 30 20 53 50 41 53 50 20 3D 20 31 30 34 20 46 0D 0A Sent 23 50 4F 4F 4C 53 50 3F Sent 0D Received 23 50 4F 4F 4C 53 50 3F 0D 0A Received 21 30 30 20 50 4F 4F 4C 53 50 20 3D 20 38 36 20 46 0D 0A Script z Sent 23 41 49 52 54 4D 50 3F Script A Sent 0D Script b Received 23 41 49 52 54 4D 50 3F 0D 0A Received 21 30 30 20 41 49 52 54 4D 50 20 3D 20 38 36 20 46 0D 0A Script c
Indigo Log:
Jul 1, 2011 6:02:28 PM Loading attachments "device target attachment.scpt" script loaded "group target attachment.scpt" script loaded "growl attachment.scpt" script loaded "iTunes attachment.scpt" script loaded "Jandy Aqualink attachment.scpt" script loaded "RCS attachment.scpt" script loaded "scenes attachment.scpt" script loaded "time stamp attachment.scpt" script loaded Action Group Get Jandy Airtemp Script !00 AIRTMP = 86 F #AIRTMP? !00 AIRTMP = 86 F
|
| Fri Jul 01, 2011 4:17 pm |
|
 |
|
yergeyj
Joined: Dec 29, 2004 Posts: 239
|
 Re: Serial Bridge and Jandy
pgershon wrote: ... For example, the script has a command line "set AirTemp to characters 14 thru 17 of ResponseString" but instead of getting the airtemp, the variable value is being set to " AIR".
Serial Bridge Log:
Jul 1, 2011 6:02:43 PM Sent 23 50 55 4D 50 3F Received 23 50 55 4D 50 3F Sent 0D Received 0D 0A Received 21 30 30 20 50 55 4D 50 20 3D 20 31 0D 0A
I think I see one of your problems, which I should have seen earlier - your comment that the variable for air temperature was set to "AIR" helped. You have the Aqualink RS Serial Adaptor set to ECHO mode, so that every command is echoed back, and hence the 14-17th character for the air temperature is incorrectly calculated. The following Apple Script might be useful for simple testing. Just substitute "AIRTMP" with "ECHO=0" to turn off the ECHO mode. - Code: Select all
property SerialConnectionName : "Jandy Aqualink RS Serial Adaptor"
tell application "Serial Bridge" send to source SerialConnectionName string "#AIRTMP?" send to source SerialConnectionName byte 13 delay 1 -- Wait for command and response set ResponseString to read string from source SerialConnectionName end tell
The result in AppleScript should be as follows, if ECHO is off: "!00 AIRTMP = 75 F " The example above returns the following in the Serial Bridge log, with ECHO = 0: Jul 1, 2011 9:06:43 PM Sent 23 41 49 52 54 4D 50 3F Sent 0D Received 21 30 30 20 41 49 52 54 4D 50 20 3D 20 37 35 20 Received 46 0D 0A Hope this helps, Jim
|
| Fri Jul 01, 2011 7:11 pm |
|
 |
|
yergeyj
Joined: Dec 29, 2004 Posts: 239
|
 Re: Serial Bridge and Jandy
ck wrote:They were rather vague, but if I were to guess it would be an updated Serial Adapter. Here's my Serial Bridge log which shows that I'm getting two way communication. However, maybe the script needs an update to "read" the data from the updated Aqualink rev.??
Serial Bridge (the underlines are caused by my iPad formatting for iCal); Sent 23 41 55 58 31 3F Received 23 41 55 58 31 3F Sent 0D Received 0D 0A Received 21 30 30 20 41 55 58 31 20 3D 20 30 0D 0A Sent 23 41 49 52 54 4D 50 3F Sent 0D Received 23 41 49 52 54 4D 50 3F 0D 0A Sent 23 50 55 4D 50 3F Sent 0D Received 23 50 55 4D 21 30 30 20 41 49 52 54 4D 50 20 3D Received 20 37 36 20 46 0D 0A 50 3F 0D 0A Received 21 30 30 20 50 55 4D 50 20 3D 20 31 0D 0A
ck, I think part of your problem is outlined above - i.e. you have ECHO turned on in your Aqualink RS Serial Adaptor, hence the AppleScript that parses responses doesn't work correctly. Jim
|
| Fri Jul 01, 2011 7:14 pm |
|
 |
|
pgershon
Joined: Jul 10, 2004 Posts: 195
|
 Re: Serial Bridge and Jandy
Thank you. My system is working now. I still want to see if it works with the QQ logic board, but the MM logic board works fine.
|
| Fri Jul 01, 2011 9:19 pm |
|
 |
|
asw24b
Joined: Dec 30, 2007 Posts: 179 Location: Los Altos Hills, CA
|
 Re: Serial Bridge and Jandy
pgershon wrote:Thank you. My system is working now. I still want to see if it works with the QQ logic board, but the MM logic board works fine.
I just verified that the serial adapter works fine with the QQ logic board (at least my adapter, which has "C01" firmware works OK). It turns out that I was seeing issues because my pool maintenance people messed with the controller and screwed up the unit codes... There are some new messages (like the one for salt PPM) that don't appear to be documented yet, but the basic comms works just fine ! I am curious what revisions of serial adapter firmware people might have ??? Mike
|
| Sun Jul 03, 2011 9:48 am |
|
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|