c# reading data from Serial port - How?
Posted on 2008-11-06
I need your help. I usually would prefer to be led in the right direction to find the answer for myself, but in this case, my brain is completely toast from a long, very hard week at work, and I would just LOVE a pre-written solution. If you would be so kind. Then I will learn from the solution how it works. Thanks!
What I need is:
I have a device (a GPS type of device) that constantly pushes communication through a standard serial connection (COM1).
What I need to be able to do is:
1) Open the serial port
2) Listen for a given period of time (say 2 seconds) to the data that is being received via the serial port.
3) populate a multi-line text box with the data that was received from the serial port.
4) close teh serial port
Then I will build additional code surrounding handling the data in the textbox.
Thank you for your help. I truly appreciate it.