This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Zigbee multi_sensor example + Zigbee CLI. Unable to bind.

Hi,
I've just compiled clean examples from Zigbee and Thread SDK 4.1.0 and I'm following instructions from here:
I've got CLI on the nRF dongle and multi_sensor example loaded on nrf52DK, another dongle is used for the traffic sniffing.
```
https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v4.1.0%2Fzigbee_multi_sensor_example.html&cp=7_3_3_8_5_3_1&anchor=zigbee_multi_sensor_example_test

```

I am able to join the network, match descriptor, and get the addresses, but I cannot bind the devices.
```
zdo bind on f4ce36947ce4e2a6 10 f4ce36efda1451dd 64 0x0403 0x05b9
>
Error: Bind/unbind request timed out
```
I'm attaching wireshark log.
Can you please provide me some extra information on that topic?
Am I doing something wrong regarding the binding process?
Looking forward to hearing from you.

1856.multi_sensor_dump.pcapng

Parents
  • Hi,

    Please make sure that you're using the correct addresses when binding. From the documentation the command is:

    "zdo bind on 0b010e1585785ce7 10 0b010ee031137990 64 0x0402 0x05b9"

    Here's an explanation of the different parts of the command:

    • 0b010e1585785ce7: the long address of the device to be binded to the CLI Agent, so the multi sensor in your case
    • 10: the endpoint of the multi sensor (when you issued the command "zdo match_desc 0xffff 0xffff 0x0104 2 0x0402 0x0403 0" you got the source address and endpoint, where endpoint was the ep=10 part)
    • 0b010ee031137990: the long address of the CLI Agent
    • 64: the endpoint of the CLI Agent
    • 0x0402: the source cluster ID, which in this case is the temperature measurement cluster (you can find a list over different Zigbee Cluster IDs here).
    • 0x05b9: the short address of your sensor, so the src_addr you got when issuing the command "zdo match_desc 0xffff 0xffff 0x0104 2 0x0402 0x0403 0"

    Hope this helps solve your problem!

    Best regards,

    Marte

  • Thanks for your fast response.
    I think I'm using the correct addresses.
    I'm attaching CLI log with commands that was executed during sniffing. 

    > bdb role zc                                                                                                                                
    Coordinator set                                                                                                                              
    Done                                                                                                                                         
    > bdb start                                                                                                                                  
    Started coordinator                                                                                                                          
    Done                                                                                                                                         
    > reset                                                                                                                                      
                                                                                                                                                 
    > bdb role zc                                                                                                                                
    Coordinator set                                                                                                                              
    Done                                                                                                                                         
    > bdb start                                                                                                                                  
    Started coordinator                                                                                                                          
    Done                                                                                                                                         
    > reset                                                                                                                                      
    >                                                                                                                                            
    > bdb role zc                                                                                                                                
    Coordinator set                                                                                                                              
    Done                                                                                                                                         
    > bdb start                                                                                                                                  
    Started coordinator                                                                                                                          
    Done                                                                                                                                         
    > zdo match_desc 0xffff 0xffff 0x0104 2 0x0402 0x0403 0                                                                                      
    Sending broadcast request.                                                                                                                   
    >                                                                                                                                            
    src_addr=3AA6 ep=10                                                                                                                          
    zdo ieee_addr 3AA6                                                                                                                           
    > f4ce36947ce4e2a6                                                                                                                           
    Done                                                                                                                                         
    zdo eui64                                                                                                                                    
    f4ce36efda1451dd                                                                                                                             
    Done                                                                                                                                         
    > zdo bind on f4ce36947ce4e2a6 10 f4ce36efda1451dd 64 0x0402 0x05b9                                                                          
    >                                                                                                                                            
    Error: Bind/unbind request timed out                                                                                                         
                                                                                                                                                 
    Done                                                                                                                                         
    zdo bind on f4ce36947ce4e2a6 10 f4ce36efda1451dd 64 0x0403 0x05b9                                                                            
    >                                                                                                                                            
    Error: Bind/unbind request timed out     
    

  • Hi,

    From your CLI log I can see that you've forgotten to change the last part of the bind command, 0x05b9. This should be the short address of your sensor, so instead you should use the following command, where 0x05b9 is switched out with 0x3AA6:

    zdo bind on f4ce36947ce4e2a6 10 f4ce36efda1451dd 64 0x0402 0x3AA6

    The documentation of the example doesn't specify that this is the short address of your device, so it's easy to overlook.

    Best regards,

    Marte

Reply
  • Hi,

    From your CLI log I can see that you've forgotten to change the last part of the bind command, 0x05b9. This should be the short address of your sensor, so instead you should use the following command, where 0x05b9 is switched out with 0x3AA6:

    zdo bind on f4ce36947ce4e2a6 10 f4ce36efda1451dd 64 0x0402 0x3AA6

    The documentation of the example doesn't specify that this is the short address of your device, so it's easy to overlook.

    Best regards,

    Marte

Children
Related