m.kirkland at comcast.net
Wed Dec 30 02:33:50 MST 2009
Yes this is fairly straight forward to do. I have developed several
applications that control serial devices over the Internet. One of them
moves a rather large object located 55 feet off the ground. Its fun to be
off in Internet land some place clicking on some software and knowing that a
big thing in the sky is moving around.
As mentioned by Mariusz, you will quickly discover that you want to do more
then just have the data show up at the other end. To do this you will need
to develop a protocol to tell the other end what to do with the data or to
perform other functions like turn on and off serial control pins or other
remote tasks specific to your application. Rapidly the serial data will
become a small part of your application's protocol. Sometimes this meta data
is called "out of band data".
UDP is not likely a good choice for this as there is no guarantee that the
data will arrive at the other end. I would suggest sticking with TCP. UDP
could also present NAT routing issues.
Some robust error handling is important as network connections will tend to
get dropped over a long period of time.
Some user access control and state management is also a good idea.
Feel free to contact me directly if you want some more info.
From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of
Dr. Douglas Lyon
Sent: Sunday, December 27, 2009 5:24 AM
To: rxtx at qbang.org; lyon at docjava.com
Subject: [Rxtx] phidgets
I have noticed that phidgets used an open API that
enables TCP/IP control of its remote devices:
open(int serial, java.lang.String ipAddress, int port)
Open this Phidget remotely using an IP Address, and a
specific serial number.
The thought occurred to me that this might be a reasonable
interface for serial ports...
Has any tried a network interface to the serial port via RXTX?
Rxtx mailing list
Rxtx at qbang.org
More information about the Rxtx