Serial Communication - Laptop and PDA
-
Hello, I am a beginner in the world of Embedded VC++ programming and am confronted with the following problem: I have a PDA (iPAQ, Win CE OS) connected to my Laptop. I have to implement a program such that i can write data to the COM port which the PDA has to read and display.Now, I can write seperate read and write programs, but how can I run it simultaneously?Moreover, if the port is open for writing by one program can I open it for reading by another program at the same time?Any pointers in clearing the above queries is most welcome. Thanks a lot for your time, Deepa.
-
Hello, I am a beginner in the world of Embedded VC++ programming and am confronted with the following problem: I have a PDA (iPAQ, Win CE OS) connected to my Laptop. I have to implement a program such that i can write data to the COM port which the PDA has to read and display.Now, I can write seperate read and write programs, but how can I run it simultaneously?Moreover, if the port is open for writing by one program can I open it for reading by another program at the same time?Any pointers in clearing the above queries is most welcome. Thanks a lot for your time, Deepa.
Deepa Gopal wrote: if the port is open for writing by one program can I open it for reading by another program at the same time? From my undestanding, since the two programs are running on different machines (laptop and PDA), you just have to make sure both sides have opened the same port using the same settings (e.g. Parity, Flow Control..etc). Have the PDA continously reading any incoming data (ReaadFile()) and the laptop to send the data whenever you like. Hope it helps in some way.