-deleted-
10 years, 7 months ago.

How to use an Interrupt (ISR) for receiving data with XBee Series 2 in API mode

When using XBee Series 2 in API mode, what is the best way to implement an ISR (Interrupt Service Routine) for when data is received on the UART serial port or RX line of the mbed serial port connected to the XBee: XBee API libraries: http://developer.mbed.org/search/?q=XBee+API

1 Answer

10 years, 7 months ago.

You will just need to put an UART RX interrupt on the xbee port. I don't know what all the libraries implement, but if you make/modify one you could run in the class an RX interrupt, which then in turn calls a user interrupt when it received a complete message.

Accepted Answer

Thank you Erik. I will be able to use the following CookBook and modify an XBee library: https://developer.mbed.org/cookbook/Serial-Interrupts

posted by -deleted- 20 Mar 2015