Timeout Issue: Resetting Digital Pin on XBEE Router AT When No Message from Coordinator API

Hello everyone,

I have two XBEE modules and need help setting that up. I want to use one of them as a Coordinator API and the other XBEE as a Router AT. The Coordinator is connected to a microcontroller and sends a periodic control message (1000 ms) to the Router to control the Router’s D1 digital pin HIGH or LOW. I’m using the XCTU software to configure both XBEEs. The whole system is working fine. I need help setting up the Router such that if the Coordinator stops sending messages for any reason, or the connection is lost, reset the D1 pin to LOW after a short period (2000 ms, for example).
Any assistance on configuring the router to reset the D1 pin to LOW after 2000 ms, if the Coordinator stops sending messages, would be greatly appreciated!

@Mahmoud the function you are looking for does not exists on the XBee versions of the XBee 3 modules. This is an option that only exists on the XBee 802.15.4 versions when using DIO line passing and not via a remote AT command.

@mvut

Thank you for your response! I appreciate the clarification.

I actually have XBee 802.15.4 modules, so I can use this feature.

Would it be possible to achieve the same functionality in my setup? I want to control a digital pin on the “slave” XBee from the “master” using periodic messages. If the master stops sending messages for any reason, I need the digital pin on the slave to reset to LOW after a short period (e.g., 2000 ms).

Looking forward to your insights! Thanks again.

Then you should not be adjusting the settings using a remote AT command but directly via a DIO line pass as described at XBee 802.15.4 Digital Input/Output Line Passing | Digi International

Note that there is no such thing as a Router in 802.15.4.

@mvut - Thank you for your help and cooperation.

I reviewed the article you suggested; however, it appears that it focuses on hardware setup, while my application requires control through the UART interface.

In my setup, I have one XBEE “Master” connected to a microcontroller (MCU) via UART, and another XBEE “Slave” with an LED connected to its D1 pin. The objective is to control the LED through the Master by sending periodic control messages from the MCU. If the MCU fails to send messages for any reason, the digital pin on the Slave should reset to LOW after a short period, for example, 2000 ms. I have no physical connections to the Master’s XBEE digital pins.

I’m wondering if there is any way to configure the XBEEs using the XCTU to handle my case.

Thank you!

Mahmoud, what I sent you the link for is the only option for what you want to do. There is no other option for this. At least not without using an external processor and your own application to do the timing, triggering Etc options.