Einly
January 2nd, 2005, 10:51 PM
Dear all,
I wish to continuously read the serial port and keep it in a temporary place. After 1kByte of data is collected in the temporary place, the main program will be notified and will process the data. At the same time the reading thread keeps on running and fill in the temporary place. May I know does anyone have any idea how this can be done? How many threads should I create? What is the best method to do this? How to continuously read the serialport and transfer data? Using timer? How to stop the reading process?
Thanks a lot
I wish to continuously read the serial port and keep it in a temporary place. After 1kByte of data is collected in the temporary place, the main program will be notified and will process the data. At the same time the reading thread keeps on running and fill in the temporary place. May I know does anyone have any idea how this can be done? How many threads should I create? What is the best method to do this? How to continuously read the serialport and transfer data? Using timer? How to stop the reading process?
Thanks a lot