View unanswered posts | View active topics It is currently Wed May 22, 2013 10:20 pm



Reply to topic  [ 49 posts ]  Go to page: 1, 2, 3, 4  Next
 Serial Bridge and Jandy 
Author Message

Joined: May 18, 2010
Posts: 1
Post Serial Bridge and Jandy
I downloaded serial bridge and also the scripts attachment for Jandy Aqualink RS and it says to "Name" the serial connection "Jandy Aqualink RS Serial Adaptor" is it possible that there are too many letters in this "name" because it wont take this name for my serial connection. So I tried to edit the script and change the name, but it always says
Jandy Startup
Error script error: in file "Jandy Aqualink attachmentv2.scpt"
Error script error: Serial Bridge got an error: serial connection not found (-1703)
Error error dispatching event to attachment script (-1753)
Error script error: Serial Bridge got an error: serial connection not found (-1708)

Hopefully its something stupid and I can learn from this...But I have wasted WAAAAYYYY too much time going in circles, lol....Any help would be GREATLY appreciated...


edit: ok got that fixed by naming the connection inside the default script settings :)

now, the next question is how do I execute "Jandy Getstatus()"



Thanks

Allen


Mon May 24, 2010 8:59 pm
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11692
Location: Texas
Post Re: Serial Bridge and Jandy
ajenkins702 wrote:now, the next question is how do I execute "Jandy Getstatus()"

Try creating a repeating Time/Date Action inside Indigo, set its action type to Execute AppleScript, and paste this into the embedded field:

Code: Select all
JandyGetStatus()

_________________
Image


Mon May 31, 2010 9:36 am
Profile WWW

Joined: Feb 15, 2006
Posts: 16
Location: Laguna Niguel, CA
Post Re: Serial Bridge and Jandy
I'm having the same problem with naming "jandy Aqualink RS Serial Adaptor" as a new connection in Serial Bridge. It looks like it is one character too long. How do I rename it? The Jandy AppleScript is looking for the complete name. Thanks!


Wed May 18, 2011 6:03 pm
Profile WWW
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11692
Location: Texas
Post Re: Serial Bridge and Jandy
Open the Jandy Aqualink attachment.scpt file inside the Script Editor application. Near the top you'll see where the connection name is specified. Just change that and save the file, then reload attachments inside Indigo (or start and stop Indigo).

I'm hopeful someone will convert that attachment AppleScript into an Indigo Plugin now that we have a good way to natively add support for devices like this. Then you won't need to use Serial Bridge at all.

_________________
Image


Fri May 20, 2011 12:17 pm
Profile WWW

Joined: Feb 15, 2006
Posts: 16
Location: Laguna Niguel, CA
Post Re: Serial Bridge and Jandy
Okay, now a new problem:-( jandy script is running and serial bridge is connected but pool variables are not updating (they have ??? instead of values). Also tried Indigo 5, same problem.
Indigo event log;
May 21, 2011 12:45:00 PM
  Schedule                        Aqualink
  Script                          Pump not on when checked.
  Script                          Error trying to get valve status.
Serial Bridge log;
May 21, 2011 12:45:00 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 
  Received         0D 0A 
  Received         21 30 30 20 53 50 41 20 3D 20 30 0D 0A 
  Sent             23 53 50 41 53 50 3F 
  Sent             0D 
  Received         23 53 50 41 53 50 3F 
  Received         0D 0A 
  Received         21 30 30 20 53 50 41 53 50 20 3D 20
I'm assuming the jandy serial adapter is communicating since I'm getting "received" values. But why is it not sensing that the pump is on, variables, etc.? Do you think jandy script is outdated?


Sat May 21, 2011 2:07 pm
Profile WWW
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11692
Location: Texas
Post Re: Serial Bridge and Jandy
I'm not familiar with the Jandy protocol, but maybe newer hardware communicates a bit different.

Instead of calling JandyGetStatus(), which tries to update everything, try calling the individual functions one at a time so you can find out which one of them is failing, or if it is all of them. Here are the individual functions based on the JandyGetStatus() function:

Code: Select all
JandyCheckPump() -- Set Indigo PoolPump variable (created if needed).
JandyGetValveStatus() -- Set Indigo SpaState and PoolState variables (created if needed).
JandyCheckSpaHeat() -- Set Indigo SpaHeat variable (created if needed).
JandyCheckPoolHeat() -- Set Indigo PoolHeat variable (created if needed).
JandyCheckSpaSetpoint() -- Set Indigo SpaSetPoint variable (created if needed).
JandyCheckPoolSetPoint() -- Set Indigo PoolSetPoint variable (created if needed).
JandyGetAirTemp() -- Set Indigo AirTemp variable (created if needed).
JandyGetSpaLightState() -- Set Indigo SpaLight variable (created if needed).
JandyGetPoolLightState() -- Set Indigo PoolLight variable (created if needed).

JandyCheckSpaTemp() -- Set Indigo SpaTemp variable (created if needed) -- only works if spa is ON?
JandyCheckPoolTemp() -- Set Indigo PoolTemp variable (created if needed) -- only works if PoolState is ON?

_________________
Image


Sun May 22, 2011 9:26 am
Profile WWW

Joined: Feb 15, 2006
Posts: 16
Location: Laguna Niguel, CA
Post Re: Serial Bridge and Jandy
Thanks! I've only been able to get airtemp to work intermittently. The valve and pump status are still a problem. See below: (running 5b5)
  Schedule                        Aqualink
  Script                          Pump not on when checked.
  Script                          Error trying to get valve status.
  Error                           script error: in file "Jandy Aqualink attachment.scpt"
  Error                           script error: Can’t make characters 13 thru 16 of "#SPASP?
" into type string. (-1700)
  Error                           error dispatching event to attachment script (-1753)
  Error                           script error: Can’t make characters 13 thru 16 of "#SPASP?
" into type string. (-1708)
  Schedule                        Valves
  Script                          Error trying to get valve status.
  Schedule                        Air Temp
  Error                           script error: in file "Jandy Aqualink attachment.scpt"
  Error                           script error: Can’t get characters 14 thru 17 of "#AIRTMP?
". (-1728)
  Error                           error dispatching event to attachment script (-1753)
  Error                           script error: Can’t get characters 14 thru 17 of "#AIRTMP?
". (-1708)


Sat Jun 04, 2011 5:41 pm
Profile WWW

Joined: Dec 30, 2007
Posts: 179
Location: Los Altos Hills, CA
Post Re: Serial Bridge and Jandy
support wrote:Open the Jandy Aqualink attachment.scpt file inside the Script Editor application. Near the top you'll see where the connection name is specified. Just change that and save the file, then reload attachments inside Indigo (or start and stop Indigo).

I'm hopeful someone will convert that attachment AppleScript into an Indigo Plugin now that we have a good way to natively add support for devices like this. Then you won't need to use Serial Bridge at all.



It's on my list, but my old serial adapter doesn't seem to work correctly with the latest Jandy ROM (version QQ ?).

Mike


Sat Jun 04, 2011 11:50 pm
Profile

Joined: Jul 10, 2004
Posts: 195
Post Re: Serial Bridge and Jandy
I had this working nicely last fall but complete failure now. Not sure what the issue is as there are a few possibilities:

1) Tree hit by lightning - knocked out substantial number of my electronic devices. Means anything is possible. I believe computer is good and all Jandy equipment is replaced.

2) Upgraded to Indigo 5, although I seem to have same issue when I go back to Indigo 4.

Problem is that SerialBridge not loading right:


2011-06-03 20:03:57 Application Loading Bridge Connections
2011-06-03 20:03:58 Loaded settings "Jandy Aqualink RS Serial Adaptor"
2011-06-03 20:03:58 Loaded script "Jandy Aqualink RS Serial Adaptor/script.scpt"
2011-06-03 20:03:58 Application Opening Connection "Jandy Aqualink RS Serial Adaptor" using port "usbserial-A60089QH"
2011-06-03 20:04:00 Sent 23 50 55 4D 50 3F
2011-06-03 20:04:00 Sent 0D
2011-06-03 20:04:00 Received 01
2011-06-03 20:04:00 Received 00 0B
2011-06-03 20:04:00 Received F0
2011-06-03 20:04:01 Error connection script aborted
2011-06-03 20:04:01 Sent 23 53 50 41 3F
2011-06-03 20:04:01 Sent 0D
2011-06-03 20:04:08 Loaded script "Jandy Aqualink RS Serial Adaptor/script.scpt"
2011-06-03 20:04:25 Sent 23 50 55 4D 50 3F
2011-06-03 20:04:25 Sent 0D
2011-06-03 20:04:26 Error connection script aborted
2011-06-03 20:04:32 Received F0
2011-06-03 20:04:32 Received F0 F0 F0
2011-06-03 20:06:56 Application Starting Serial Bridge version 1.0.9
2011-06-03 20:06:57 Application Loading Bridge Connections
2011-06-03 20:06:57 Loaded settings "Jandy Aqualink RS Serial Adaptor"
2011-06-03 20:06:57 Loaded script "Jandy Aqualink RS Serial Adaptor/script.scpt"
2011-06-03 20:06:57 Application Opening Connection "Jandy Aqualink RS Serial Adaptor" using port "usbserial-A60089QH"
2011-06-03 20:06:58 Sent 23 50 55 4D 50 3F
2011-06-03 20:06:58 Sent 0D
2011-06-03 20:07:00 Error connection script aborted
2011-06-03 20:07:11 Received F0
2011-06-03 20:07:11 Received F0


Maybe error is my serial adaptor fried? Seems doubtful, but who knows?

All I can say is that when Serial Bridge tries to start, I get countless "Power Failure" messages. Tried moving USB port too - no luck


Sat Jun 11, 2011 7:49 pm
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11692
Location: Texas
Post Re: Serial Bridge and Jandy
Which power line interface are you using with Indigo? And what type of USB/serial adapters are you using? I know there were issues reported a long time ago with the dual Keyspan adapter causing some cross-talk interference or something.

Are you sure you have the correct serial ports chosen in both Indigo and Serial Bridge? If SB were using the same port by accident as Indigo is using for its main interface, then I could see launching SB causing all sort of errors (like power failures) in Indigo.

_________________
Image


Sun Jun 12, 2011 4:56 pm
Profile WWW

Joined: Jul 10, 2004
Posts: 195
Post Re: Serial Bridge and Jandy
Thanks Matt. I think you nailed my problem. Serial Bridge is currently using Port "usbserial-A60089QH". When it worked in the fall, it used port "usbserial". When I look in Indigo 5 prefs, it says I am using "Interface Type 2412u" and serial port "usbserial-A60089QH". Seems like they are conflicting by using same port.

How do tell either Indigo or Serial Bridge to use another port. I do not see other choices on Indigo and Serial Bridge only offers, in addition, "_offline_", "bluetooth modem" and "bluetooth PDA sync"?


Tue Jun 14, 2011 5:29 am
Profile
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6659
Location: Austin, Texas
Post Re: Serial Bridge and Jandy
If you only see one serial port named with the "usbserial=XXXXXXXX" pattern that means that the FTDI driver is only finding one serial-to-USB device on the USB bus. If your 2412 is still working (it uses the same driver as your adaptor apparently), then that means your USB to serial adaptor is probably fried.

_________________
Jay (Indigo Support)
Image


Tue Jun 14, 2011 6:38 am
Profile WWW

Joined: Feb 15, 2006
Posts: 16
Location: Laguna Niguel, CA
Post Re: Serial Bridge and Jandy
pgershon-
Did that work for you? I'm having the same problem, but my Serial connection is communicating properly with the Jandy Serial Adaptor. I called Jandy tech support and they said there is an issue with the latest Aqualink PCB (rev. QQ and higher) and the Serial Adapter. They said a hardware fix will be available in late July. The only value I get back intermittently is "AIRTEMP". How about you?


Tue Jun 14, 2011 7:10 am
Profile WWW

Joined: Dec 30, 2007
Posts: 179
Location: Los Altos Hills, CA
Post Re: Serial Bridge and Jandy
ck wrote:pgershon-
Did that work for you? I'm having the same problem, but my Serial connection is communicating properly with the Jandy Serial Adaptor. I called Jandy tech support and they said there is an issue with the latest Aqualink PCB (rev. QQ and higher) and the Serial Adapter. They said a hardware fix will be available in late July. The only value I get back intermittently is "AIRTEMP". How about you?



I just upgraded to QQ, and I see the same issue.

Did they say which piece of HW (PCB or serial adapter) will be "fixed" ?

Mike


Tue Jun 14, 2011 8:26 am
Profile

Joined: Jul 10, 2004
Posts: 195
Post Re: Serial Bridge and Jandy
Jay: Thanks - I need to get a new serial adaptor. At least that makes sense.

As for the Aqualink PCB issue, I have a rev K board in now (I had a spare) and a rev QQ on order to replace the one that fried. Once I get my serial/USB working again, I can report back as to whether there is a difference between K and QQ in terms of serial connection. I did have the script working perfectly with Indigo last Aug/Sept and my old board (not sure what Rev but between K and QQ).


Tue Jun 14, 2011 9:55 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 49 posts ]  Go to page: 1, 2, 3, 4  Next

Who is online

Users browsing this forum: No registered users and 0 guests


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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.