Announcement

Collapse
No announcement yet.

UART receive event not fired

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • UART receive event not fired

    I have a serial connection to my host system and I'm using the
    SerialRegisterForNotification() function to be informed on incoming serial data.

    Code:
    if(!SerialRegisterForNotification(SYSTEM_MODBUS_SERIAL_PORT, SystemReadModbusBufferISR))
    {
       TLOG(TLOG_SEVERITY_ERR, "Could not register RX notification");
       return (FALSE);
    }
    But sometimes after restarting my Matchport AR device the event won't ever be fired and my function SystemReadModbusBufferISR() is never being called.
    The register function has no error return.

    I'm using the BDM version of the Matchport.

    Any idea what could lead to that problem?
    Is there a time restriction when to register the notification?
    Or is it better to poll for new data instead of using the notification?

    Any help is appreciated.

    Michael
Working...
X