users@grizzly.java.net

Re: Serial com port communication

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 03 Jun 2008 15:25:44 -0700

Salut,


Georges Goebel wrote:
> Hi,
>
> I took your presentation from the javaone and tried to implement the
> communication.
>
> ConnectorHandler connection =
> crtl.acquireConnectorHandler(Controller.Protocol.CUSTOM);


So far I suspect you need to extend the ConnectorHandler interface and
implement you own one. Is that what you did? All the serial port
implementation needs to go inside that class (let's call it
CommConnectorHandler).
>
> But the “connect” method of the ConnectorHandler object takes a
> SocketAdress object as parameter, which I don’t have in serial port
> communication. Do you have any hint for me to resolve this Problem ?

Now you bring a good point. Should we need to probably extend/add a new
API for the connect() interface that just take the port?

Thanks!

-- Jeanfrancois


>
>
> Georges Goebel