Home/Support/Support Forum/How do I know if the XBee module has joined a network (spi API mode)?

How do I know if the XBee module has joined a network (spi API mode)?

0 votes
After I send all the AT commands on powerup, I can see the "ASSOCIATE" output blinking, but I haven't been able to find a command to send to the module to query its status.

If I just wait after sending the last initialization command nothing happens, I thought the XBee module was going to indicate me it's status with the nINT line but it does not do that.

What would be the command to send to check if it has already joined? Or check its general status for that matter?

I'm controlling the XBee module with an MCU using the SPI-API mode only and I have no access to the UART, also the module is soldered to a board so no XCTU is possible. Additionally, I'm not using the xbee_ansi_c_lib because it's not well suited for my needs.

Thanks!
asked Mar 28 in ZigBee PRO Featureset (and legacy ZNet 2.5) by m4l490n New to the Community (5 points)

Please log in or register to answer this question.

1 Answer

0 votes
 
Best answer
You are looking for the AT Command: AI
https://www.digi.com/resources/documentation/digidocs/90002002/default.htm#Reference/r_cmd_AI.htm

Which will be 0 when it is connected to a network.
answered Mar 28 by DigiFan23 Seasoned Professional (205 points)
selected Mar 29 by m4l490n
Nice! Thanks! I don't know how that went over my head, there are so many commands.
...