Echoing a string to a RS232 com port with Linux
So I took a 9 pin comport connector and soldered wires to pin 3 for transmit 2 for recive and 5 for ground. I eventually want to get it talking to my stamp micro controller.
So I have it hooked up to a computer running Ubuntu Linux. I drug out my dads old oscilloscope to test to see if I get an output through the wire.
To test it I typed in a terminal,
and I get this error,
I also tried ttys1 to make sure I had the right com port. Does anyone here know what I am doing wrong?
So I have it hooked up to a computer running Ubuntu Linux. I drug out my dads old oscilloscope to test to see if I get an output through the wire.
To test it I typed in a terminal,
echo "hello world" > /dev/ttys0
and I get this error,
bash: ttys0: Input/output error
I also tried ttys1 to make sure I had the right com port. Does anyone here know what I am doing wrong?
Comments
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Still some PropSTICK Kit bare PCBs left!
Ok so I used ttyS0 instead and I hit return with no errors but im also not getting anything across the wire :-/
I'm trying to use something called PySerial which uses python to talk to the com port but im not having much luck with that.
Has anyone here done this before who could tell me what I need to do?
Post Edited (BlackCow) : 8/20/2008 3:33:31 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's sunny and warm here. It is always sunny and warm here.... (unless a typhoon blows through).
Tropically, G. Herzog [noparse][[/noparse] 黃鶴 ] in Taiwan
echo "string" > /dev/ttyS0 and the program Minicom both show something on the oscilloscope. Thanks for your help!