espressif / esp-zigbee-sdk

Espressif Zigbee SDK
Apache License 2.0
131 stars 20 forks source link

Route record (TZ-922) #359

Open HOSTEER opened 3 weeks ago

HOSTEER commented 3 weeks ago

Is your feature request related to a problem?

Not having access to the available devices, and their related path cost and relay count

Describe the solution you'd like.

A get function to look out the route record data, table 3-59 Route Record Table Entry Format from rev 22 of Zigbee specification

Describe alternatives you've considered.

use a Zigbee sniffer to guess what should be the data in the route record by looking the route request and reply frames

Additional context.

When benchmarking the latency of the data transission across mesh network it's dificult to know the number of router a packet is passing through just by looking the Zigbee sniffer

xieqinan commented 2 weeks ago

@HOSTEER ,

The esp_zb_nwk_get_next_route() seems to meet your requirement.

HOSTEER commented 2 weeks ago

The esp_zb_nwk_get_next_route() is missing some variables of the route record. There is the destination adress for sure but the relay count and the path are missing.