Windows COM port use

View: New views
4 Messages — Rating Filter:   Alert me  

Windows COM port use

by Borge :: Rate this Message:

| View Threaded | Show Only this Message

Question:

How do I access a Windows COM port from cygwin? I'd like to open a terminal connection to an application I have running in an external MCU. Easy business with TeraTerm but I don't know how to do it from the shell in Cygwin.

Eventually, I want to use Octave to generate some hex data and connect from there.

I'm using 38400 baud 8/N/1 on what TeraTerm sees as COM1. I'm running Cygwin on 32-bit XP.


Thanks,
Borge

P.S A nice-to-have would be to make logical serial ports, where incoming data appears (selectively) in one or both terminals and where outgoing data from the two terminals is mux'ed. That way I can use Octave for data generation and another terminal as command interface.

Anybody heard of functionality like that?


Re: Windows COM port use

by Corinna Vinschen-2 :: Rate this Message:

| View Threaded | Show Only this Message

On Jun 26 01:52, Borge wrote:
>
> Question:
>
> How do I access a Windows COM port from cygwin?
> [...]
> I'm using 38400 baud 8/N/1 on what TeraTerm sees as COM1. I'm running Cygwin
> on 32-bit XP.

Win32 COM1 == Cygwin /dev/ttyS0


Corinna

--
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Re: Windows COM port use

by Borge :: Rate this Message:

| View Threaded | Show Only this Message


Thanks Corinna,

could you also help me specify the baud rate and suggest a program to access the serial port? "telnet /dev/ttyS0" does not cut it, and I can't find a Cygwin Kermit package.

Thanks,
Borge

Corinna Vinschen-2 wrote:
On Jun 26 01:52, Borge wrote:
>
> Question:
>
> How do I access a Windows COM port from cygwin?
> [...]
> I'm using 38400 baud 8/N/1 on what TeraTerm sees as COM1. I'm running Cygwin
> on 32-bit XP.

Win32 COM1 == Cygwin /dev/ttyS0


Corinna

--
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Re: Windows COM port use

by Corinna Vinschen-2 :: Rate this Message:

| View Threaded | Show Only this Message

On Jun 26 02:35, Borge wrote:
> Thanks Corinna,
>
> could you also help me specify the baud rate and suggest a program to access

stty

> the serial port? "telnet /dev/ttyS0" does not cut it, and I can't find a
> Cygwin Kermit package.

If you want terminal functionality, it's agetty in the util-linux package.


Corinna

--
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/