[Rxtx] phidgets

Trent Jarvi tjarvi at qbang.org
Sun Dec 27 07:45:24 MST 2009



On Sun, 27 Dec 2009, M.Dec-GMail wrote:

>
> ----- Original Message -----
> From: "Dr. Douglas Lyon" <lyon at docjava.com>
> Subject: [Rxtx] phidgets
>
>> Has any tried a network interface to the serial port via RXTX?
>
> This is very interesting idea but in my opinion TCP/IP network has nothing
> to serial.
>
> You may prepare client-server connector via TCP/IP (or UDP) where both sides
> will client and server in the same time (cross-connected).
> Using data from this conection you may do everything - for example - open
> serial ports remotelly using your own commands which will fire local action
> (on the remote side) like serialPort.open() from Java code.
> Than you have to encapsulate 'serial data' in packets to be transmitted to
> remote serial and extract it on remote side for sending to remote's local
> serial...
>
> Here is veeeery old article how to do network connection in Java.
> http://www.javaworld.com/jw-12-1996/jw-12-sockets.html
>
> Generally very simple solution, but needs one protocol more to separate
> 'serial data stream' from 'commands for serial control stream' if using the
> same network socket/port.
> You may use two pairs of ports and do 'data socket' near 'commands socket'
> as well.
>
> I did something like this, but not in Java - it was complete TCP/IP module
> (NM7010) connected to small microcontroller with serial.
>

GPIB is like serial as well.  Instrument manufacturers are starting to 
look at a two socket connection to replicate the capability of RS485 over 
high speed ethernet.

http://www.ivifoundation.org/downloads/Class%20Specifications/IVI-6%201_HiSLIP-Draft-2009-10-29.pdf

--
Trent Jarvi
tjarvi at qbang.org



More information about the Rxtx mailing list