ZigBee Coordinator using NRF52840

Hai,

I'm using nrf52840 to develop a Zigbee coordinator.

I found some examples in NRF sdk and NRF connect sdk.

I have some doubts regarding that. (I'm new to ZigBee)

1. How many sub devices can add in nrf52840 as an coordinator? (I already read some questions, I found that maximum is 32 but 24 is tested. is it true I have another question)

2. How to increase a sub device count? (can we add external memory to increase devices?)

3. I have some sensors and switches, I tried to connect and read through ZigBee CLI commands program in nrf52840, I can read and write attributes. Instead of cli commands i want to without cli commands.  For example : If the device connected to coordinator (nrf52840) .it should automatically read and display name and type and device and then available clusters. Also i want to control from the coordinator. (Bulbs) Do u have any reference example like this?

Best regards 

Bosemani

  • Hi Bosemani,

    We've picked up your case and will be working on giving you the answers to your questions. However I'm going out of office for a few days so the case will be reassigned to my colleague who will pick up where I left shortly!

    Kind regards,
    Andreas

  • Hello Bosemani,

    Yes. We have the nRF5 SDK and the nRF Connect SDK. Long story short, the nRF Connect SDK is the current SDK, and the nRF5 SDK is currently in maintenance mode. Meaning no further development will be done to the nRF5 SDK.

    1. How many sub devices can add in nrf52840 as an coordinator? (I already read some questions, I found that maximum is 32 but 24 is tested. is it true I have another question)

    Where did you find this? It may be correct, but it could also be that you found the number of supported routers in the network. If that is the case, each of these routers can have several children. But since you are looking at a Zigbee Coordinator, you may be correct. Perhaps it will be clearer if you can point to where you found this.

    2. Same as 1).

    3: Perhaps you want to look into the NCS\nrf\samples\zigbee\light_switch sample. To make a generic Zigbee coordinator that supports all devices is not trivial. Remember that these typically run on larger devices with a screen and an input (usually some website or mobile app, such as the Amazon Echo device + mobile app) where you can add, remove, display devices and interface them. If you want this on an nRF, you need to keep track of what devices that joined. Then I suggest that you look at the implementation of the CLI example. What API that is being used when you use the CLI commands. You can either use the nRF5 SDK -> CLI example, or you can look into the "shell" sample found in NCS\nrf\samples\zigbee\shell, which does more or less the same. Then you need to look at the implementation to see what API that is being used when you discover what endpoints the devices have, what it does when you bind them and subscribe to them.

    At least for starting, this is something to look into. Then you can let us know if anything is unclear or if you are stuck on something.

    Best of luck, and best regards,

    Edvin

  • Hai  

    Thank you for Quick response

    For 1st point I'm now clear after referred one of your answer (Link)

    Now I took nrf5 sdk example "nrf5_sdk_for_thread_and_zigbee_v4.2.0_af27f76\examples\zigbee\light_control\light_coordinator"

    I have one Tuya ZigBee switch. I tried to add that switch it was joined to network successfully. (I conformed by logs)

    I read the clusters using CLI command program 

    I got this 

    uart:~$ zdo simple_desc_req 0x9298 1
    src_addr=0x9298 ep=1 profile_id=0x0104 app_dev_id=0x0 app_dev_ver=0x1 in_clusters=0x0000,0x0001,0x0006 out_clusters=0x0019,0x000a
    Done

    Now I'm coming to Light Coordinator example,

    After adding switch to the network.

    how to get the ON/OFF commands in coordinator send by the Switch?

    I didn't seen any callback function in coordinator example.

    How to register call back and any other functions need to add to get that?

    I'm not clear in this step. can you explain the steps? 

    Best Regards 

    Bosemani

  • Hello  

    Now I'm able to get button press event in coordinator.

    I just merged Bulb example and coordinator example. By registering ZB_AF_SET_ENDPOINT_HANDLER now I'm getting callback.

    Now I have another doubt. I have door sensor and PIR sensor also. how can I get callback for this?

    Can you it update fast..

    Thank you

    Best regards

    Bosemani.

Related