what modules best for communicationg with a UART with cygwin

what modules best for communicationg with a UART with cygwin

am 27.09.2005 11:07:14 von Klaus

Hi,

Ideally I'd like to writa an application, that can work under
* linux
* windows (active perl)
* cygwin

I'd like to connect to a UART device with 115k 8n1 and operate in a
similiar way than Net::Telnet (though I'm also open to other send/expect
models).


Is there one module, that would run under all three environments and
where I 'just' had to change the device names or are there only
different modules, that I had to wrap around to create similar behaviour
and keep the rest of the code identical.


Thanks a lot for any suggestions and bye


Klaus

Re: what modules best for communicationg with a UART with cygwin

am 29.09.2005 13:55:30 von Klaus

Hi,


I answered this question (partially) myself.

For cygwin: Device::SerialPort
For linux: Device::SerialPort


(though it does not autoinstall with perl -E CPAN -e shell
It fails during testing. I had to do "make install" manually)


So far I didn't succeed to get
Win32::SerialPort installed. (PPM problems)



The API however is not exactly like Net::Telnet, so I'll have to wrap in
order to have scripts, that can easily switch between a UART console and
a telnet session.


bye


Klaus





Klaus wrote:
> Hi,
>
> Ideally I'd like to writa an application, that can work under
> * linux
> * windows (active perl)
> * cygwin
>
> I'd like to connect to a UART device with 115k 8n1 and operate in a
> similiar way than Net::Telnet (though I'm also open to other send/expect
> models).
>
>
> Is there one module, that would run under all three environments and
> where I 'just' had to change the device names or are there only
> different modules, that I had to wrap around to create similar behaviour
> and keep the rest of the code identical.
>
>
> Thanks a lot for any suggestions and bye
>
>
> Klaus