ZDO Passthrough with escaping

XBee Programmable API in PAN_INIT sets AO like this:

	xbee_cmd_simple(&xdev, "AO", 0);
	xbee_cmd_simple(&xdev, "AO", 1);
	xbee_cmd_simple(&xdev, "AO", 3);
	xbee_cmd_simple(&xdev, "AO", 0);

The documentation says that mode 3 is the same as mode 1 but with ZDO passthrough. So based on that, is there any way to have both ZDO passthrough AND escaping?

At first I thought it might be a bit mask, but X-CTU doesn’t seem to let you set anything other than 0-3.


Which XBee module and firmware version are you using?

I’m using XBee Programmable SDK version 1.5.7. The radio firmware is the latest “Router” (in this case) firmware.

I think part of my problem was that I mixed up AO and AP for a while. Re-reading the docs I can see AP is the one that controls escaping and it is independent of AO. So for my escaping question, I need to change the question a little …

Looking through pan_init.c as well as all the other code in the 1.5.7 SDK (using grep --recursive), it doesn’t actually set ‘AP’ anywhere – at least not by calling xbee_cmd_simple(). So this is now making me think that it assumes that it assumes it’s set a certain way.