471,350 Members | 1,490 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

[REPOST] Sorry, very important 'bout Serial com

Hi there,

I'm developing an application to catch OBD sensors' data from my car.
I connect it via a RS232 interface.
Now.
with HyperTerminal I can connect and send/receive data, but I'd like to do
this from inside my C# program.
Anyone can write down a very small (or tell how to do it myself) application
containing methods like WriteToSerialPort(string what) and
ReadFromSerialPort(what)?

Using the built in control SerialPort, I can correctly open a port, and
write something to it (commands like "ATX" and other worked fine from
HyperTerminal), but I can't read nothing, using SerialPort.ReadLine(). This
method always generates a Timeout exception.

What's wrong?
To send, for example, the "ATX" command through the serial port, I use
SerialPort.Write("ATX"), but nothing seems to happen.

Hope someone will help me soon!!!
Andrea

Dec 23 '05 #1
0 768

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Mike Lundell | last post: by
7 posts views Thread by Frank | last post: by
14 posts views Thread by Steve McLellan | last post: by
5 posts views Thread by Adrian Parker | last post: by
1 post views Thread by Jeffrey Frabutt | last post: by
1 post views Thread by Robert Dufour | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.