cancel
Showing results for 
Search instead for 
Did you mean: 

ZigBee Coordinator on STM32WB5MMG with Off-The-Shelf devices

TThan
Associate III

Hi All,

I am quite a newby regarding ZigBee since I have been playing around with this since bare a month now. So please be patient if my question might sound stupid or my terminology is not quite "ZigBee-conform".

Short form of my question: Why do non of my off-the-shelf ZigBee devices report to my Coordininator? I guess there is additional code required, but which?

Long form and some background:

I try to associate a off-the-shelf device with a ZigBee-Coordinator. The Coordinator is created on a STM32WB55MMG module with STM32CubeMX. The coordinator starts up well and I get all the debug output I expected. But when I try to associate an off-the-shelf device, it seems to fail.

I implemented the following clusters on Endpoint 1 of my Coordinator device, by checking the appropriate boxes in the STM32CubeMX/Middleware/STM32_WPAN:

Basic (Server)

Identify (Server/Client)

Groups (Server)

On/Off /Server, all callbacks checked)

LevelControl (Server, all callbacks checked)

The reason why I did choose these clusters are the devices I want to connect.

It tested with different devices:

SonOff Wireless Switch SNZB-01

IKEA Tradfri Shortcut Button Typ E1812

All these devices work well with a ZigStar4 USB dongle and ZigBee2MQTT.

But when I start the network forming process with my STM32WB5MMG as coordinator all I get is this log output, an non of the cluster callback functions get called:

[M4 APPLICATION] APP_ZIGBEE_Init
[M4 APPLICATION] **********************************************************
[M4 APPLICATION] WIRELESS COPROCESSOR FW:
[M4 APPLICATION] VERSION ID = 1.13.2
[M4 APPLICATION] FW Type : FFD Zigbee stack
[M4 APPLICATION] Application flashed: ..
[M4 APPLICATION] Channel used: 11
[M4 APPLICATION] Link Key: ZigBeeAlliance09
[M4 APPLICATION] Link Key value: 5a 69 67 42 65 65 41 6c 6c 69 61 6e 63 65 30 39
[M4 APPLICATION] Clusters allocated are:
[M4 APPLICATION] OnOff Server on Endpoint 1
[M4 APPLICATION] **********************************************************
 [M0] [00000000.000][API]   Init_ZigbeeStack_Infrastructure
[M4 APPLICATION] APP_ZIGBEE_StackLayersInit
[M4 APPLICATION] Network config : APP_STARTUP_CENTRALIZED_COORDINATOR
 [M0] [00000000.019][PLATFORM]                  ZbNlmeResetReq : NLME-RESET.request (warmStart = 0)
 [M0] [00000000.014][PLATFORM]                    nwk_scan_req : MLME-SCAN.request (wpan0): type=1, page=0, mask=0x00000800, dur=4
 [M0] [00000000.278][API]  Scan Done  - unscan channels 0x0
 [M0] [00000000.279][PLATFORM]                    nwk_scan_req : MLME-SCAN.request (wpan0): type=0, page=0, mask=0x00000800, dur=4
 [M0] [00000000.542][API]  Scan Done  - unscan channels 0x0
 [M0] [00000000.543][PLATFORM]       nwk_pick_quietest_channel : Found starting channel at 11 (num devices = 1, energy = 255)
 [M0] [00000000.545][PLATFORM]              MLME-START.confirm : ifc:wpan0, channel:11, page: 0, pan:0x6449, status:0x00
 [M0] [00000000.546][PLATFORM]  nwk_handle_scan_conf_form_energy : NLME-NETWORK-FORMATION.request successful (nwkPanId = 0x6449).
[M4 APPLICATION] ZbStartup Callback (status = 0x00)
 [M0] [00000016.048][PLATFORM]                nwk_handle_assoc : Association accepted, sending response (0xbcf9, 0x00124b0022658937)
 [M0] [00000031.469][PLATFORM]              nwk_leave_send_cmd : Sending leave command for 0x00124b0022658937.
 [M0] [00000083.925][PLATFORM]                nwk_handle_assoc : Association accepted, sending response (0x5db2, 0x540f57fffef592e8)
 [M0] [00000086.036][PLATFORM]                nwk_handle_assoc : Association accepted from previous child (0x5db2, 0x540f57fffef592e8)

The 0x00124b0022658937 is the SonOff device and the 0x540f57fffef592e8 is the IKEA.

Any hints or ideas what I am missing to successfully integrate one of these devices into my ZigBee network? Thank you all for any help!

Best Regards

Thomas

1 REPLY 1
Barath
Associate

Hi ST,

I'm also using an SONOFF ZBMINI-L Zigbee 3.0 Smart Switch and trying to establish connection with our STM32WB55RG nucleo-board examples of Zigbee On Off coordinator/distributor/router client.

But all these exmples are initializing to form Network and Blue LED is ON. There the connection is not established. I also tried changing the default channel frequency to 2400MHZ as suggested in Zigbee Alexa demo youtube video.

I'm working on my university project, where I need to demonstrate a universal zigbee-based home automation system.

As per my understanding, the sonoff devices support alexa echo zigbee hub. So, we should be able to control using our zigbee coordinator client system.

Kindly, help me in understanding the issue and let me know if I'm missing something.