Hello All,

Sorry, a couple more questions regarding serial communications in Mina...

On Apr 1, 2014, at 9:45 AM, Archer, Garry wrote:

...
Basically, I was going to develop a Mina-enabled test program listening for 
requests on the RS-232 COM port using a "SerialAcceptor."
...
It was easy to write a Mina-enabled program to send data through the COM port 
using the SerialConnector class.

In review, here are the fundamental Mina serial classes:

Interfaces
    SerialSession
    SerialSessionConfig

Classes
    SerialAddress
    SerialAddressEditor
    SerialConnector

Note there is a missing "SerialAcceptor" class.  Mina stopped short of giving 
us this.

Up until now, my Mina projects have been using solely TCP/IP connections.  I am 
currently tasked with providing serial communications between a machine that 
only has a serial RS-232 port and a Web application that is hosted by a Mac 
(deploying it on a PC is not an option!).

I have hardware ("terminal port server") that encapsulates the serial data from 
the machine into TCP/IP packets to send over an Ethernet.  The Mac is in a 
remote location.

Somehow, I have to set up "virtual COM port" software on the Mac (pretty much 
only available for Windows and Linux!).

The virtual COM port, typically set up on a PC, receives the TCP/IP packets and 
extracts the serial data useful for a PC application.

If I had a SerialAcceptor my IoHandler can parse the message just like an 
IoHandler for a NioSocketAcceptor in a regular TCP/IP application.

In the absence of a Mina SerialAcceptor does anyone know how to (a) set up a 
virtual COM port on a Mac and (b) write a class that in essence does the job of 
a SerialAcceptor?

Please bear in mind I have no experience programming applications using serial 
communications (and who does, these days?!)

(I have been researching [a], but I wondered what the consensus here on the 
Mina users group may have)

Regards,

Garry Archer
Systems Programmer
Department of Pathology
Yale School of Medicine

Reply via email to