Link to home
Start Free TrialLog in
Avatar of beavis601
beavis601

asked on

Echo serial port to console in C (windows)

I am completely new to programming in C and am trying to access and read serial ports. I am trying to listen to COM1. What I am trying to do is to sit in a while loop and have the serial messages echoed to the console. Any help would be greatly appreciated. I am very new to C and do not understand very much of it. I am using the gcc compiler on a Windows XP machine.

Any help and/or code would be greatly appreciated

Thank you!
Avatar of beavis601
beavis601

ASKER

To clarify, I want to be able to open a serial port and listen for incoming streams.

while(1)
wait for messages to come in and send them to my own buffer to be echoed to the console
SOLUTION
Avatar of pgnatyuk
pgnatyuk
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial