Comm32 Logo
Home Button   

Topic:   Event Handling on OnComm

By: PaistePosted on: Aug 2 2010 at 10:47:25 PM
Hi,

when handling incoming data in OnComm event the data sent with .output will be sent after exiting this OnComm event fired by incoming data.

We have an LCD-display that sends key event. We get OnComm fired and we need to output data to display. Because we have more data than display can handle at time we need to have some breaks. Now the whole data will be sent after exiting OnComm sub and after all the breaks and we get full buffer on display.

I didn't had this problem with MSComm32.

regards,
Paiste

By: SupportPosted on: Aug 3 2010 at 10:32:43 AM
Hello. I'm not sure I understand 100% Maybe we should exchange a couple of emails.

Are you saying that:-

1. LCD send data to the computer.
2. The incoming data triggers an OnComm event (Receive)
3. In the oncomm receive event you send data back to the LCD. The data is too big for the LCD so you send it in smaller packets with pauses.
4. None of the data actually gets sent until the OnComm event exits at which time ALL the packets of the data are sent at once causing a buffer overflow on the LCD.

Is that what you're saying ? Could you confirm that please?
Could you maybe send us an email including a copy of the OnComm event.

support@comm32.com