On_ser_overrun Event

Top  Previous  Next



Generated when data overrun has occurred in the RX buffer of the serial port.



See Also:

Handling Buffer Overruns



Another on_ser_overrun event for a particular port is never generated until the previous one is processed. When the event handler for this event is entered the ser.num property is automatically switched to the port on which this event was generated.

Data overruns are a common occurrence on serial lines. The overrun happens when the serial data is arriving into the RX buffer faster than your application is able to extract it, the buffer runs out of space and "misses" some incoming data.

Data overruns are typically prevented through the use of RTS/CTS flow control (see the ser.flowcontrol property).