View unanswered posts | View active topics It is currently Wed Jun 19, 2013 3:25 am



Reply to topic  [ 29 posts ]  Go to page: 1, 2  Next
 I replaced Serial Bridge with SerialPortX 
Author Message
User avatar

Joined: Jun 14, 2006
Posts: 500
Post I replaced Serial Bridge with SerialPortX
I have been using SB for a few years now to control my EasyDaq relay boards. Since it runs on Rosetta which may not make it into the next OSX version, I thought it time to see if I could find a replacement and I did with SerialPortX. It allows me to read and write to the EasyDaq board using Applescript.

It is basically an Applescripting Addition to extend Applescripts capabilities. I dropped the osax file into ~/Library/ScriptingAdditions, modified my original SB applescript for SerialPortX and bingo I'm in business.

Available free at http://mysite.verizon.net/vzenuoqe/MacSoft.html

bob


Wed Mar 16, 2011 12:45 pm
Profile
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6848
Location: Austin, Texas
Post Re: I replaced Serial Bridge with SerialPortX
Excellent news - I knew v1.1 had some issues, glad to see they were apparently addressed in v2.0.

_________________
Jay (Indigo Support)
Image


Wed Mar 16, 2011 1:12 pm
Profile WWW
User avatar

Joined: Nov 18, 2008
Posts: 1741
Location: Berkeley, CA
Post Re: I replaced Serial Bridge with SerialPortX
Is the latest version 10.6 compatible? You might want to check the console log to see it it is throwing any errors.


Wed Mar 16, 2011 2:17 pm
Profile

Joined: May 27, 2007
Posts: 690
Location: NC
Post Re: I replaced Serial Bridge with SerialPortX
I found SB to be more reliable over time then SPX.


Thu Mar 17, 2011 6:48 pm
Profile
User avatar

Joined: Jun 14, 2006
Posts: 500
Post Re: I replaced Serial Bridge with SerialPortX
I fixed an error I made in my Applescript and now it's working like a charm. I've been using it for a couple of weeks now and the only problem is the one I induced myself. It's running a 24 relay board and a wireless 8 relay board with up to 100 relay cycles/Indigo applescript actions per day.

I am using BTW, the latest version for SL.

bob


Tue Mar 22, 2011 12:42 pm
Profile
User avatar

Joined: Jun 14, 2006
Posts: 500
Post Re: I replaced Serial Bridge with SerialPortX
Just an update on Serialport X; a few changes to the script and it has been running 100%. I have come up with a script that in the event of a power failure/reboot the script will assign the correct USB port number to my relay board. Previously if the USB port number changed I had to set it manually as you have to do in Serial Bridge.

Soon OS X will not support Rosetta and Serialport X has been the answer for me.

bob


Wed Apr 13, 2011 7:32 am
Profile

Joined: Jul 10, 2004
Posts: 195
Post Re: I replaced Serial Bridge with SerialPortX
I tried to get it to work with my Jandy. Cannot communicate.


serialport open "/dev/cu.usbserial"
serialport write "&pump?" & return to "/dev/cu.usbserial"
set x to serialport bytes available "/dev/cu.usbserial"
serialport close "/dev/cu.usbserial"


Gers no data from Jandy. Read is 0 bytes


Sun Jul 10, 2011 11:36 am
Profile

Joined: Nov 20, 2009
Posts: 182
Location: Houston
Post Re: I replaced Serial Bridge with SerialPortX
I'm not of an AppleScript expert to understand WHY this is, but you have to assign the open serialport to a name, and then refer to it that way.

Try something like this:

Code: Select all
Set JandyDevice to "/dev/cu.usbserial"
Set Jandy to serialport open JandyDevice
serialport write "&pump?" & return to Jandy
set x to serialport read Jandy
serialport close Jandy


On another note... I'm trying to psyche myself up to do a Pentair Plugin for Indigo 5. This looks like the exact same syntax my Pentair setup uses. By any chance are they the same? Maybe someone else is doing a plugin for Jandy which I can use on my Pentair. Does anyone have a link to Jandy's RS232 protocol?

_________________
http://nerdhome.jimdo.com


Sun Jul 10, 2011 1:33 pm
Profile WWW
User avatar

Joined: Jun 14, 2006
Posts: 500
Post Re: I replaced Serial Bridge with SerialPortX
You need to list the actual USB port number like this;

Code: Select all
set JandyDevice to "/dev/cu.usbserial-A7006BBo"


The USB port number can be found at /Dev


Mon Jul 11, 2011 12:53 pm
Profile

Joined: Jul 10, 2004
Posts: 195
Post Re: I replaced Serial Bridge with SerialPortX
Actually the "/dev/cu.usbserial" is the identifier for my USB/serial adaptor. This is one of the choices on SerialPortX list.


Mon Jul 11, 2011 1:59 pm
Profile

Joined: Jul 10, 2004
Posts: 195
Post Re: I replaced Serial Bridge with SerialPortX
I now have SerialportX working with 10.7 to control my Jandy. Will post revisions to Jandy attachment


Sat Jul 23, 2011 11:48 am
Profile

Joined: Nov 07, 2003
Posts: 200
Post Re: I replaced Serial Bridge with SerialPortX
I have managed to get SPX working with my KeySpan USB/Serial converter. That's the good news. The bad: the DSC 4401 interface I've been using successfully for years (Serial Bridge ->KeySpan ->DSC 4401) signals my main DSC alarm system if the port the 4401 is attached to isn't "open" on the KeySpan. With Serial Bridge, just having the "connection" document for that port open was fine. But, using SPX, I can't seem to get the 4401 to believe it is "connected", with the result that my main alarm signals a "trouble" event with an annoying beep every 10 seconds. I realize this is a specialized circumstance, but any ideas would be appreciated. Thanks.


Sun Jul 24, 2011 2:30 pm
Profile

Joined: May 27, 2007
Posts: 690
Location: NC
Post Re: I replaced Serial Bridge with SerialPortX
Just shooting from the hip, but could it be a CTS/DTR issue?

HFTobeason wrote:I have managed to get SPX working with my KeySpan USB/Serial converter. That's the good news. The bad: the DSC 4401 interface I've been using successfully for years (Serial Bridge ->KeySpan ->DSC 4401) signals my main DSC alarm system if the port the 4401 is attached to isn't "open" on the KeySpan. With Serial Bridge, just having the "connection" document for that port open was fine. But, using SPX, I can't seem to get the 4401 to believe it is "connected", with the result that my main alarm signals a "trouble" event with an annoying beep every 10 seconds. I realize this is a specialized circumstance, but any ideas would be appreciated. Thanks.


Sun Jul 24, 2011 2:34 pm
Profile

Joined: Nov 07, 2003
Posts: 200
Post Re: I replaced Serial Bridge with SerialPortX
If I had any idea what CTS/DTR meant, I might be able to respond appropriately!


Sun Jul 24, 2011 2:40 pm
Profile

Joined: May 27, 2007
Posts: 690
Location: NC
Post Re: I replaced Serial Bridge with SerialPortX
HFTobeason wrote:If I had any idea what CTS/DTR meant, I might be able to respond appropriately!

Its a handshaking deal for serial port stuff.
Everything the same hardware-wise, just changed from SB to SPX? (been a long time since I played with SPX, I found it unreliable)


Sun Jul 24, 2011 2:49 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 29 posts ]  Go to page: 1, 2  Next

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

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