quangdien
Newbie level 3
Hi everybody,
I have a sensor to capture the fingerprint image and then send to PC via Serial COM Port. And I use MSCOMM Control 6.0 for transfering & receiving data in Serial COM Port. Here below is the structure of the data which the sensor send to me :
HEADER : 6 bytes
DATA : Fingerprint Image 280 x 240 = 67200 bytes !!!
FOOTER : 4 bytes
But the buffer of MSCOMM Control is only 32768 ( = 2^15 ). Therefore, now my problem is the size of that image is too large to receive in buffer. The buffer is overflow !!! In this situation, I think there are 3 ways to solve it :
+ Incearse the size of the MSCOMM's buffer.
+ Use other class for transfering & receiving data in Serial COM Port with the buffer enough large.
+ Parallel processing : doing both receiving data from sensor and saving data from buffer to other place ... simultaneously.
But I don't know how to implement above methods !!! Please kindly help me or you can show me other solutions ... THIS IS MY FINAL PROJECT FOR GRADUATING MY UNIVERSITY and the deadline is coming nearly, so, again, please help me !!!
Thank you very much !!!
Best regards,
Quang Dien
Email to me : quangdien12jan@yahoo.com
I have a sensor to capture the fingerprint image and then send to PC via Serial COM Port. And I use MSCOMM Control 6.0 for transfering & receiving data in Serial COM Port. Here below is the structure of the data which the sensor send to me :
HEADER : 6 bytes
DATA : Fingerprint Image 280 x 240 = 67200 bytes !!!
FOOTER : 4 bytes
But the buffer of MSCOMM Control is only 32768 ( = 2^15 ). Therefore, now my problem is the size of that image is too large to receive in buffer. The buffer is overflow !!! In this situation, I think there are 3 ways to solve it :
+ Incearse the size of the MSCOMM's buffer.
+ Use other class for transfering & receiving data in Serial COM Port with the buffer enough large.
+ Parallel processing : doing both receiving data from sensor and saving data from buffer to other place ... simultaneously.
But I don't know how to implement above methods !!! Please kindly help me or you can show me other solutions ... THIS IS MY FINAL PROJECT FOR GRADUATING MY UNIVERSITY and the deadline is coming nearly, so, again, please help me !!!
Thank you very much !!!
Best regards,
Quang Dien
Email to me : quangdien12jan@yahoo.com