S
Steven Licciardi
I am using various P/Invoking for serial comms to communicate with a custom
built device from a PPC2003 device. Everything works fine normally,
however, on occasion it is required that I output a character to the custom
device, collect the response data, process the data, then repeat the process
any number of times (done in a thread). On occasion the custom device sends
extra undesirable data (variable amount) to the PDA after I have collected
the good data and before I output my new character to the serial port. What
I would like to do is clear the serial buffer before I output the new
character, is there any way of doing this? I notice there is a PurgeComm
function, but can find no implementation of this in .NET CF.
Any advice appreciated,
Steven
built device from a PPC2003 device. Everything works fine normally,
however, on occasion it is required that I output a character to the custom
device, collect the response data, process the data, then repeat the process
any number of times (done in a thread). On occasion the custom device sends
extra undesirable data (variable amount) to the PDA after I have collected
the good data and before I output my new character to the serial port. What
I would like to do is clear the serial buffer before I output the new
character, is there any way of doing this? I notice there is a PurgeComm
function, but can find no implementation of this in .NET CF.
Any advice appreciated,
Steven