Zigbee - Getting address map is not reliable, what's the best way to get one?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Zigbee - Getting address map is not reliable, what's the best way to get one?

765 Views
freshmango90
Contributor III

I'm using ZTC Black Box Application. I have one coordinator and many routers.

I tried using apsAddressMap (id = 0xC0) in APSME-GET.request in the application, but it would give me a list of connected node not in consequence.

For example, if I send this command: 02 A3 20 04 C0 00 0A 00 4D

(02 - Sync, A3 20 - APSME-GET.request, 04 - Length, C0 - apsAddressMap, 00 - start of index, 0A - number of devices, 00 - ignored, 4D - checksum)

I'm expected to get 10 devices in the list starting from index 0. Instead this is the list I get from response.

[MAC Addr 8 bytes, Short Addr 2 bytes]

77 77 77 77 00 00 00 00 12 34

00 00 00 00 00 00 00 00 FF FF

77 77 77 77 00 00 00 01 23 45

00 00 00 00 00 00 00 00 FF FF

77 77 77 77 00 00 00 02 34 56

00 00 00 00 00 00 00 00 FF FF

77 77 77 77 00 00 00 03 45 67

00 00 00 00 00 00 00 00 FF FF

77 77 77 77 00 00 00 04 56 78

00 00 00 00 00 00 00 00 FF FF

This gets worse when you turn off some routers and then turn it back on, which will end up something like:

77 77 77 77 00 00 00 00 12 34

00 00 00 00 00 00 00 00 FF FF

00 00 00 00 00 00 00 00 FF FF

00 00 00 00 00 00 00 00 FF FF

77 77 77 77 00 00 00 02 34 56

00 00 00 00 00 00 00 00 FF FF

77 77 77 77 00 00 00 03 45 67

00 00 00 00 00 00 00 00 FF FF

77 77 77 77 00 00 00 04 56 78

00 00 00 00 00 00 00 00 FF FF

because the router with mac address 77 77 77 77 00 00 00 01 is now not part of the "get 10 devices" and it's shown elsewhere. I tried getting more devices, but the maximum I can get is 17 -- probably due to the limit message size.

What's the best solution to this problem? Is there a better way to get the address map? I don't want to use NLME-Get.request with nwkNeighborTable parameter as it would just its connecting devices to itself rather than the list of the devices that's currently in the network. I want to be able to see the list of at least 60 devices.

0 Kudos
1 Reply

509 Views
freshmango90
Contributor III

Commented to get attention.

0 Kudos