View unanswered posts | View active topics It is currently Thu May 23, 2013 12:36 am



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

Joined: Mar 31, 2008
Posts: 738
Post Re: I replaced Serial Bridge with SerialPortX
Could you guys post the general things that need to be changed in a script when moving from from SB to SPX, and possible pitfalls?


Sun Jul 24, 2011 2:55 pm
Profile

Joined: May 27, 2007
Posts: 689
Location: NC
Post Re: I replaced Serial Bridge with SerialPortX
Change your way of thinking.
The docs for SPX are sparse, but enough to get going. (I felt SPX easier to use)

Easiest to have 2 serial ports, one running CoolTerm or the like other your AS. Once you get the coms runing off to the guts of your app.


Sun Jul 24, 2011 3:01 pm
Profile

Joined: Nov 07, 2003
Posts: 200
Post Re: I replaced Serial Bridge with SerialPortX
Absolutely nothing changed, hardware-wise. I coded up a test version of my DSC script, just to see how it would do. This open port issue is going to stop me upgrading to Lion, at least on that machine. I'm going to continue to fiddle - maybe there's some way I missing to get SPX to "tell" the KeySpan that the port is "open" permanently.


Sun Jul 24, 2011 3:03 pm
Profile

Joined: May 27, 2007
Posts: 689
Location: NC
Post Re: I replaced Serial Bridge with SerialPortX
I know the keyspan is 'it' (well was 'it') but I've used without prob, the FTDI and Proflic versions.

Have you tried a simple loopback to see if you are getting data out? (if a 9pin, jump pins 2&3, don't have the 25 pin version memorized)

Whats the flow of the SB script?
Who sends data first? the AS or the DSC.
Does the DSC do replies (or aks?)

You may have to loop to keep it alive on the DSC end.


Sun Jul 24, 2011 3:14 pm
Profile

Joined: Nov 07, 2003
Posts: 200
Post Re: I replaced Serial Bridge with SerialPortX
Have you tried a simple loopback to see if you are getting data out? (if a 9pin, jump pins 2&3, don't have the 25 pin version memorized)

Whats the flow of the SB script?
Who sends data first? the AS or the DSC.
Does the DSC do replies (or aks?)

You may have to loop to keep it alive on the DSC end.


Ah - hadn't thought of jumping pins - I'll have to fiddle.

The AS asks for data, the DSC interface replies. That part's all working fine.


Sun Jul 24, 2011 3:20 pm
Profile

Joined: Nov 26, 2009
Posts: 925
Location: Kalispell, MT
Post Re: I replaced Serial Bridge with SerialPortX
Hey,

I need to send my USB Arduino a serial command. Can that be done using Serial Port X directly
without any adapters?

The Arduino app is showing the board as usbmodem21.
Any chance I could get a sample script to send a "1" to it
using Serial Port X?

Something like?

serialport open "/dev/cu.usbmodem21"
serialport write "1" & return to "/dev/cu.usbmodem21"
set x to serialport bytes available "/dev/cu.usbmodem21"
serialport close "/dev/cu.usbmodem21"


Thanks,

Carl


Last edited by ckeyes888 on Wed Nov 09, 2011 1:23 pm, edited 1 time in total.



Wed Nov 09, 2011 11:48 am
Profile
User avatar

Joined: Nov 18, 2008
Posts: 1721
Location: Berkeley, CA
Post Re: I replaced Serial Bridge with SerialPortX
ckeyes888 wrote:...I need to sen my USB Arduino a serial command. Can that be done using Serial Port X directly
without any adapters?...

Have you tried using the simple serial plugin? It may do exactly what you want.

BTW, can you describe what you are using the arduino for? I think that with the advent of plugins these boards may become quite useful with Indigo.


Wed Nov 09, 2011 11:57 am
Profile

Joined: Nov 26, 2009
Posts: 925
Location: Kalispell, MT
Post Re: I replaced Serial Bridge with SerialPortX
The Arduino is on a remote machine, so no Indigo running. I still haven't had the nerve
to run 5 yet either...everything's working so well.
It's controlling an overhead 16m strip of LPD8806 LED lights that surrounds our hot tub.
I have a number of programs to setup that will provide effects lighting
with audio for whatever mood one may want for their dip.
I just send the remote machine a script from Indigo to handle the audio but
am having trouble figuring out the serial Arduino commands for the lights.

Thought I might also have the color of the lights reflect the current temp of the water as well,
nice for a distant look to see if it's warmed up yet. Definitely a WIP.

Thanks,

Carl


Wed Nov 09, 2011 1:22 pm
Profile
User avatar

Joined: Nov 18, 2008
Posts: 1721
Location: Berkeley, CA
Post Re: I replaced Serial Bridge with SerialPortX
Hmm. Not sure if the license allows it, but you might think about running Indigo 5 on the remote machine and then connecting the two Indigo servers. There are a number of ways to do that, but @perry's cynical network plugin would probably work well.


Wed Nov 09, 2011 1:39 pm
Profile

Joined: Nov 05, 2006
Posts: 13
Post Re: I replaced Serial Bridge with SerialPortX
SerialPort X is not longer on the referenced page...any idea where one can get it?

_________________
David Clonts


Sun Dec 04, 2011 10:40 am
Profile

Joined: May 27, 2007
Posts: 689
Location: NC
Post Re: I replaced Serial Bridge with SerialPortX
dclonts wrote:SerialPort X is not longer on the referenced page...any idea where one can get it?



Google is your friend (sorta)
http://mac.softpedia.com/get/Communicat ... rt-X.shtml


Sun Dec 04, 2011 11:09 am
Profile

Joined: Nov 07, 2003
Posts: 200
Post Re: I replaced Serial Bridge with SerialPortX
Yeah, but the developer's page seems to have vanished -- http://mysite.verizon.net/vzenuoqe/MacSoft.html now points to http://alteredhorizons.infiniteserve.com/home/MacSoft.html which doesn't exist.


Sun Dec 04, 2011 11:13 am
Profile

Joined: May 27, 2007
Posts: 689
Location: NC
Post Re: I replaced Serial Bridge with SerialPortX
well what do you want? the actual useable program or don't need after a download a homepage for it?


Sun Dec 04, 2011 11:17 am
Profile

Joined: Nov 05, 2006
Posts: 13
Post Re: I replaced Serial Bridge with SerialPortX
yeah, the links on SoftPedia are bad too...cant find the actual software anywhere.

_________________
David Clonts


Thu Dec 08, 2011 1:05 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 29 posts ]  Go to page: Previous  1, 2

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.