Re: [Gumstix-users] Using ttyS0

Also, what is the default configuration (baud rate etc) of the ttyS0 port?
itamarwe wrote:
>
> I am trying to use the ttyS0 serial port of the my Gumstix Overo FE with
> the Tobi expansion board.
> I tried to compile several programs to communicate through the port but
> nothing seemed to send or receive anything (I connected it to a
> serial->USB device that was connected to my computer).
> I would like to make sure that the hardware works before I continue.
> If I understand correctly, pins 9&10 are the Rx and Tx pins of the ttyS0
> port.
> In order to test the port I tried to short pins 9 and 10, and use cat
> /dev/ttyS0 in order to see
> a mirror of everything I write, but it doesn't work.
> Can anybody suggest why? or suggest a way to test that the hardware is ok?
> Thank you.
>
>
--
View this message in context: http://old.nabble.com/Using-ttyS0-tp32099383p32099434.html
Sent from the Gumstix mailing list archive at Nabble.com.

Thread view

I am trying to use the ttyS0 serial port of the my Gumstix Overo FE with the
Tobi expansion board.
I tried to compile several programs to communicate through the port but
nothing seemed to send or receive anything (I connected it to a serial->USB
device that was connected to my computer).
I would like to make sure that the hardware works before I continue.
If I understand correctly, pins 9&10 are the Rx and Tx pins of the ttyS0
port.
In order to test the port I tried to short pins 9 and 10, and use cat
/dev/ttyS0 in order to see
a mirror of everything I write, but it doesn't work.
Can anybody suggest why? or suggest a way to test that the hardware is ok?
Thank you.
--
View this message in context: http://old.nabble.com/Using-ttyS0-tp32099383p32099383.html
Sent from the Gumstix mailing list archive at Nabble.com.

Also, what is the default configuration (baud rate etc) of the ttyS0 port?
itamarwe wrote:
>
> I am trying to use the ttyS0 serial port of the my Gumstix Overo FE with
> the Tobi expansion board.
> I tried to compile several programs to communicate through the port but
> nothing seemed to send or receive anything (I connected it to a
> serial->USB device that was connected to my computer).
> I would like to make sure that the hardware works before I continue.
> If I understand correctly, pins 9&10 are the Rx and Tx pins of the ttyS0
> port.
> In order to test the port I tried to short pins 9 and 10, and use cat
> /dev/ttyS0 in order to see
> a mirror of everything I write, but it doesn't work.
> Can anybody suggest why? or suggest a way to test that the hardware is ok?
> Thank you.
>
>
--
View this message in context: http://old.nabble.com/Using-ttyS0-tp32099383p32099434.html
Sent from the Gumstix mailing list archive at Nabble.com.

If you are using kernel 2.6.38 or greater the serial port is ttyO2 not
ttyS2 and baud is 115200n8.
Kind regards
James
-----Original Message-----
From: itamarwe [mailto:weiss.itamar@...]
Sent: 20 July 2011 15:07
To: gumstix-users@...
Subject: Re: [Gumstix-users] Using ttyS0
Also, what is the default configuration (baud rate etc) of the ttyS0
port?
itamarwe wrote:
>
> I am trying to use the ttyS0 serial port of the my Gumstix Overo FE
with
> the Tobi expansion board.
> I tried to compile several programs to communicate through the port
but
> nothing seemed to send or receive anything (I connected it to a
> serial->USB device that was connected to my computer).
> I would like to make sure that the hardware works before I continue.
> If I understand correctly, pins 9&10 are the Rx and Tx pins of the
ttyS0
> port.
> In order to test the port I tried to short pins 9 and 10, and use cat
> /dev/ttyS0 in order to see
> a mirror of everything I write, but it doesn't work.
> Can anybody suggest why? or suggest a way to test that the hardware is
ok?
> Thank you.
>
>
--
View this message in context:
http://old.nabble.com/Using-ttyS0-tp32099383p32099434.html
Sent from the Gumstix mailing list archive at Nabble.com.
------------------------------------------------------------------------
------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered
include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private
keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users

Also, you have to take the usual steps regarding RS-232 signal level
conversion.
The Gumstix serial ports use 1.8V, while your computer's RS-232 port (or
USB adapter) requires voltages in the range of 5-15V.
Here is a popular level shifter you can use, which works well with Gumstix:
http://www.sparkfun.com/products/8745
Basically if you don't use the level shifter, your computer won't
recognize the 1.8V pulses produced by the Gumstix as serial
communication, and therefore you will not see any data transferred.
Regards,
Markus
On 11-07-20 10:14 AM, James McGloin wrote:
> If you are using kernel 2.6.38 or greater the serial port is ttyO2 not
> ttyS2 and baud is 115200n8.
>
> Kind regards
>
> James
>
> -----Original Message-----
> From: itamarwe [mailto:weiss.itamar@...]
> Sent: 20 July 2011 15:07
> To: gumstix-users@...
> Subject: Re: [Gumstix-users] Using ttyS0
>
>
> Also, what is the default configuration (baud rate etc) of the ttyS0
> port?
>
>
> itamarwe wrote:
>> I am trying to use the ttyS0 serial port of the my Gumstix Overo FE
> with
>> the Tobi expansion board.
>> I tried to compile several programs to communicate through the port
> but
>> nothing seemed to send or receive anything (I connected it to a
>> serial->USB device that was connected to my computer).
>> I would like to make sure that the hardware works before I continue.
>> If I understand correctly, pins 9&10 are the Rx and Tx pins of the
> ttyS0
>> port.
>> In order to test the port I tried to short pins 9 and 10, and use cat
>> /dev/ttyS0 in order to see
>> a mirror of everything I write, but it doesn't work.
>> Can anybody suggest why? or suggest a way to test that the hardware is
> ok?
>> Thank you.
>>
>>

You can easily find if your port is named "ttyS2" or "ttyO2", by typing
this at the command prompt:
ls /dev/tty*
Regards,
Markus
On 11-07-20 10:14 AM, James McGloin wrote:
> If you are using kernel 2.6.38 or greater the serial port is ttyO2 not
> ttyS2 and baud is 115200n8.
>
> Kind regards
>
> James
>
> -----Original Message-----
> From: itamarwe [mailto:weiss.itamar@...]
> Sent: 20 July 2011 15:07
> To: gumstix-users@...
> Subject: Re: [Gumstix-users] Using ttyS0
>
>
> Also, what is the default configuration (baud rate etc) of the ttyS0
> port?
>
>
> itamarwe wrote:
>> I am trying to use the ttyS0 serial port of the my Gumstix Overo FE
> with
>> the Tobi expansion board.
>> I tried to compile several programs to communicate through the port
> but
>> nothing seemed to send or receive anything (I connected it to a
>> serial->USB device that was connected to my computer).
>> I would like to make sure that the hardware works before I continue.
>> If I understand correctly, pins 9&10 are the Rx and Tx pins of the
> ttyS0
>> port.
>> In order to test the port I tried to short pins 9 and 10, and use cat
>> /dev/ttyS0 in order to see
>> a mirror of everything I write, but it doesn't work.
>> Can anybody suggest why? or suggest a way to test that the hardware is
> ok?
>> Thank you.
>>
>>

Actually, I am using kernel 2.6.38, but I don't have a ttyO2 device.
Nevertheless, I am interested in the ttyS0 port, and I would like to
understand if that
is the device that is connected to the GPIO148 and GPIO151 that are located
on pins 9 and 10 of the Tobi expansion board.
I would like to know how I can test that the hardware works correctly.
Do you think that the default baud of the ttyS0 is also 115200n8?
jmcgloin wrote:
>
> If you are using kernel 2.6.38 or greater the serial port is ttyO2 not
> ttyS2 and baud is 115200n8.
>
> Kind regards
>
> James
>
> -----Original Message-----
> From: itamarwe [mailto:weiss.itamar@...]
> Sent: 20 July 2011 15:07
> To: gumstix-users@...
> Subject: Re: [Gumstix-users] Using ttyS0
>
>
> Also, what is the default configuration (baud rate etc) of the ttyS0
> port?
>
>
> itamarwe wrote:
>>
>> I am trying to use the ttyS0 serial port of the my Gumstix Overo FE
> with
>> the Tobi expansion board.
>> I tried to compile several programs to communicate through the port
> but
>> nothing seemed to send or receive anything (I connected it to a
>> serial->USB device that was connected to my computer).
>> I would like to make sure that the hardware works before I continue.
>> If I understand correctly, pins 9&10 are the Rx and Tx pins of the
> ttyS0
>> port.
>> In order to test the port I tried to short pins 9 and 10, and use cat
>> /dev/ttyS0 in order to see
>> a mirror of everything I write, but it doesn't work.
>> Can anybody suggest why? or suggest a way to test that the hardware is
> ok?
>> Thank you.
>>
>>
>
> --
> View this message in context:
> http://old.nabble.com/Using-ttyS0-tp32099383p32099434.html
> Sent from the Gumstix mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------
> ------
> 10 Tips for Better Web Security
> Learn 10 ways to better secure your business today. Topics covered
> include:
> Web security, SSL, hacker attacks & Denial of Service (DoS), private
> keys,
> security Microsoft Exchange, secure Instant Messaging, and much more.
> http://www.accelacomm.com/jaw/sfnl/114/51426210/
> _______________________________________________
> gumstix-users mailing list
> gumstix-users@...
> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>
>
> ------------------------------------------------------------------------------
> 10 Tips for Better Web Security
> Learn 10 ways to better secure your business today. Topics covered
> include:
> Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
> security Microsoft Exchange, secure Instant Messaging, and much more.
> http://www.accelacomm.com/jaw/sfnl/114/51426210/
> _______________________________________________
> gumstix-users mailing list
> gumstix-users@...
> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>
>
--
View this message in context: http://old.nabble.com/Using-ttyS0-tp32099383p32099914.html
Sent from the Gumstix mailing list archive at Nabble.com.

Community

Help

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

I agree to receive quotes, newsletters and other information from sourceforge.net and its partners regarding IT services and products. I understand that I can withdraw my consent at any time. Please refer to our Privacy Policy or Contact Us for more details