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

Firmware ZDO proxying #1

Closed
puddly opened this issue May 10, 2023 · 2 comments
Closed

Firmware ZDO proxying #1

puddly opened this issue May 10, 2023 · 2 comments

Comments

@puddly
Copy link
Contributor

puddly commented May 10, 2023

Thank you for writing and open sourcing this library! ZBOSS has long been on the radar and your implementation is very clear.

I've skimmed through the source code and noticed that ZBOSS seems to intercept and proxy all ZDO requests, similar to Z-Stack before. Does ZBOSS also successfully send any request to endpoint 0 and intercept the response? Or does it not allow the requests to be sent directly to endpoint 0 in the first place?

Also, do you happen to have a link to the serial protocol documentation? I'm unable to find any of the commands within the ZBOSS source code, nor in Nordic's documentation.

@DamKast
Copy link
Collaborator

DamKast commented May 15, 2023

Does ZBOSS also successfully send any request to endpoint 0 and intercept the response? Or does it not allow the requests to be sent directly to endpoint 0 in the first place?

ZBOSS does actually send ZDO requests when using the APSDE data request command (I can see ZDO packets with the sniffer), but the response is intercepted and is not returned to zigpy. This is why we have to overwrite the Zdo class in order to redefine the request methods to use the specific ZBOSS commands.

Also, do you happen to have a link to the serial protocol documentation? I'm unable to find any of the commands within the ZBOSS source code, nor in Nordic's documentation.

I asked directly DSR and they sent me this documentation.

@Hedda
Copy link
Contributor

Hedda commented May 17, 2023

do you happen to have a link to the serial protocol documentation?

Originally posted by @eexarevsky in zigpy/zigpy#394 (comment)

See there https://cloud.dsr-corporation.com/index.php/s/BAn4LtRWbJjFiAm

Yes, ZBOSS supposes that application does not send ZDO commands as just APS data. Use ZDO API instead.

There are full sources for the host side of ZBOSS NCP there https://developer.nordicsemi.com/Zigbee/ncp_sdk_for_host/ncp_host_v2.2.1.zip

And, remind, Wireshark can parse ZBOSS NCP. But I am in doubt Nordic uses that feature.

@DamKast DamKast closed this as completed Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants