Change ID dinamically via AT commands (zigbee th reg)


I’m working with arduino and xbee s2c(zigbee th reg).

Now I’m trying to make my particular system to pair the devices.

First, I want to change one xbee to a “default” network(ID),then search for not registered xbees, regirter them, and then make them to change to the “communication” network(ID). When the search is complete, that xbee also goes to the communication network.

Things go right the first attempt, the xbee changes ID, make contact with the other xbee with that ID, make them change it, and then it changes its ID itself and make contact another time with them with the new ID.

The commands I’ve used are the next ones:

ATID3232(for example)

The problem is that it’s not stable, if I want to make the process again with other ID for the “default” and “communication” channel, maybe they never start talking, even being in the same ID (make sure using ATID and reading the response)


If you are wanting to change the ID field on a remote module to a given value, you will have to use API mode. So in your application, the coordinator would have to do the following:

Set ID to default value
Allow Joining to occur
Send a remote AT command to change the ID value on the remote module (end devices first with farthest node first). Then work to the routers and the closest node to the coordinator last.

Change the ID value on the coordinator to the new value and allow Joining to re-occur.

Digi Support