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

Add Zigbee initial support for EmberZNet protocol #8709

Merged
merged 2 commits into from
Jun 16, 2020

Conversation

s-hadinger
Copy link
Collaborator

Description:

[Experimental] Initial support for EmberZNet protocol (Sonoff Zigbee bridge). It only allows to send/receive messages to further develop the stack. Zigbee stack is not yet functional.

Added #define USE_ZIGBEE_ZNP and #define USE_ZIGBEE_EZSP to choose at compile time the Zigbee chip. ZNP is CC2530, EZSP is EFR32.

Added ZbEZSPSend <hex> command to send raw commands to EFR32. is the logical payload. The command automatically adds: escaping of reserved bytes (stuffing), pseudo-randomization for DATA frames, CRC16 calculation and EOF byte.

Added ZbEZSPReceived event to report low level received message.

Ex:

ZbEZSPSend C0
18:55:33 RSL: RESULT = {"ZbEZSPSend":"Done"}
18:55:34 ZIG: {"ZbEZSPReceived":"C1020B"}

Related issue (if applicable): fixes #8583 (please keep issue open)

Checklist:

  • The pull request is done against the latest dev branch
  • Only relevant files were touched
  • Only one feature/fix was added per PR.
  • The code change is tested and works on core ESP8266 V.2.7.1
  • The code change is tested and works on core ESP32 V.1.12.2
  • I accept the CLA.

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass

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

Successfully merging this pull request may close these issues.

Adventures with Sonoff Zigbee Bridge
2 participants