Curious... anyone play with JS for RS232 send/receive?

479 views
Skip to first unread message

Jared Kuroiwa

unread,
Sep 11, 2012, 5:45:17 PM9/11/12
to honolulu-...@googlegroups.com
Just got a call from a friend that wanted something to a medical control device using RS232 and I figured why not try and do it with a browser instead of something compiled. I've seen a few implementations of Node.js for Arduino projects through USB and figure it can't be that different, right?

Any pointers?

Thanks in advance!

David Cornejo

unread,
Sep 11, 2012, 6:34:05 PM9/11/12
to honolulu-...@googlegroups.com
Is there such a thing as a browser-side node.js implementation?

--
 
 

Dongie Agnir

unread,
Sep 11, 2012, 6:34:11 PM9/11/12
to honolulu-...@googlegroups.com
Are you thinking about having the interface in the browser, and it sends the requests back to a server that controls the hardware, or having the browser communicate directly with the serial port?  AFAIK, there's no way to do the latter...at least without something like a Java Applet.

Dongie

On Wed, Sep 12, 2012 at 11:45 AM, Jared Kuroiwa <jkur...@gmail.com> wrote:

--
 
 

Jared Kuroiwa

unread,
Sep 11, 2012, 6:57:30 PM9/11/12
to honolulu-...@googlegroups.com

Dongie Agnir

unread,
Sep 11, 2012, 10:24:34 PM9/11/12
to honolulu-...@googlegroups.com
http://brandontilley.com/2012/03/02/controlling-an-arduino-from-nodejs.html

That code for node runs on the server side though, not in the browser--the browser js code just makes ajax requests back to the server.  JS code running in browser wouldn't be able to read/write to a serial port.

Either way, sounds like an interesting project.  Can I ask what type of device you're trying to communicate with?

Dongie

--
 
 

Jared Kuroiwa

unread,
Sep 11, 2012, 10:30:49 PM9/11/12
to honolulu-...@googlegroups.com
It's a syringe pump.

I've attached the manual for it.

Thanks,
Jared
PSD4_Manual_8892-01b.pdf
Reply all
Reply to author
Forward
0 new messages