Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zdo -n equivalent in API: How to get nwk address by IEEE address with the SDK? (TZ-1144) #432

Open
remenyo opened this issue Sep 16, 2024 · 6 comments
Labels

Comments

@remenyo
Copy link

remenyo commented Sep 16, 2024

Question

How to request network address by ieee address? I want to send requests with esp_zb_aps_data_request, that seemingly only accepts short address, and I did not find the function that allows me to query that by known ieee address.
I would like basically a zigbee equivalent of ARP requests.

Thank you for your help.

Additional context.

Already asked by me as a followup here, but did not get anwser: #395 (comment)

@github-actions github-actions bot changed the title zdo -n equivalent in API: How to get nwk address by IEEE address with the SDK? zdo -n equivalent in API: How to get nwk address by IEEE address with the SDK? (TZ-1144) Sep 16, 2024
@ahmetcobanoglu
Copy link

@remenyo

I believe the function esp_zb_address_short_by_ieee(esp_zb_ieee_addr_t address) should work for this purpose. The device's network table likely stores both IEEE and short addresses. You can handle this using the function above without sending a ZDO command.

@remenyo
Copy link
Author

remenyo commented Sep 18, 2024

The problem is that I know it does not hold in the table, in cases for example when the device is freshly added to the network, knowing only the IEEE addresses of the devices it should control, but not their network addresses.

esp_zb_zdo_ieee_addr_req() gets the IEEE address of a device with a given nwk address, but there is no
esp_zb_zdo_nwk_addr_req() variant. Perhaps it does not exist?

@ahmetcobanoglu
Copy link

@remenyo

You can send a request using: zb_uint8_t zb_zdo_nwk_addr_req(zb_uint8_t param, zb_callback_t cb) You can find the function in the ZBOSS stack. This function can be requested as a Feature Request.

@lpy4105
Copy link
Contributor

lpy4105 commented Sep 19, 2024

@ahmetcobanoglu
Thanks for your answer.

@remenyo
esp_zb_zdo_nwk_addr_req currently not supported, we will add it in the next release.

@remenyo
Copy link
Author

remenyo commented Sep 19, 2024

Thank you for both of you. Should I leave this open until it gets released?

@lpy4105
Copy link
Contributor

lpy4105 commented Sep 19, 2024

Yes, of course

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants