My laptop should manage two peripherals connected at two USB ports.
I'm going to use the synaser unit of Synapse and in particular the TBlockSerial class.
It is important for my application not only to receive data from each peripheral, but also to know WHEN the data come in, because my software has to correctly combine and elaborate the pieces of information coming in from the two peripherals.
I have read this documentation on "OnStatus":
http://ararat.cz/synapse/doku.php/public:howto:onstatusIf I have well understood, this mechanism calls a procedure of mine AS SOON AS some data comes in. So when this event happens my program would check the timer, take the data and save it together with its arrival time.
Is this correct ?
But later I read this:
http://ararat.cz/synapse/doku.php/public:howto:readeventaccording to which there exists no read event in Synapse.
This is the contrary of what I understood about OnStatus. Isn't OnStatus the handler of an event ? I used to think that when THookSocketReason = HR_CanRead, that was the signal that some data had come in and upon this event I could fetch the data.
If this system doesn't work, can you suggest me any other method to get the exact arrival time of the data to the USB port ?
Thank you.