This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to implement ZStack-Lighting Control Bridge in ZNP

Other Parts Discussed in Thread: CC2530, CC2531, CC2591, AM3517

Hi there,

I have a cc2530+cc2591 board with ZNP, it just looks like a cc2531 dongle but has UART Tx/Rx wired.

Recently, I read about zigbee lighting gateway http://processors.wiki.ti.com/index.php/ZigBee_Lighting_Gateway_SW.

I am using AM3517 and trying to communicate with this ZNP thru UART and active it as a coordinator. 

I built up "Client Application" (android client) and "TI Linux SW" into AM3517 just like the diagram of the SW architecture shown in the document.

I can send commands (SWRA444) thru /dev/ttyS0 to CC2530ZNP and get responses  all correctly.

My question is, how do I implement the third block which is "ZStack-lighting control bridge"? Can this block all be implemented into cc2530ZNP? What is the hardware of this block? 

Thanks.

  •  

    Hi,

        Sorry if this is confusing, I will add a section to the http://processors.wiki.ti.com/index.php/ZigBee_Lighting_Gateway_SW wiki to make this clear.

    You should refer to the below (higher level) wiki first, it explains the FW and HW that should be used.

    http://processors.wiki.ti.com/index.php/ZigBee_Lighting_Gateway

    The Lighting GW example does not use the ZNP (ZigBee Network Prcessor) Architecture. Instead it has the profile and application layers running on the CC253x and exposes a higher level/more abstract interface over the UART/USB interface.

    Regards, TC.

  • Thanks TC.

    I though its a reference for ZNP development because the document's file structure is under the ZNP example.

    Is that possible to replace original ZNP with that you mentioned about running profile and application layers on cc253x and then I can send commands from AM3517 to it over UART interface? such as getting devices list or getting binding table, and so on.  How do I to do that? or I can simply replace it with  ZLight FW?

    Thanks.

  • This is a very specific use case for Lighting and not general home automation. The CC253x ZLL control bridge FW sets up a ZigBee Light Link Network which HA devices can not join (ZLL is a different profile to HA, ZLL devices can join HA networks but not vice versa).

    As the use case is known and limited we can put all profile layer and application into the FW. HA is more general and has many use cases (Lighting, Heating Security ....) and as such we cannot be sure all required features can be included in black box SW.

    So to answer your question:

    Patrick Shih said:

    Is that possible to replace original ZNP with that you mentioned about running profile and application layers on cc253x and then I can send commands from AM3517 to it over UART interface? such as getting devices list or getting binding table, and so on.  How do I to do that? or I can simply replace it with  ZLight FW

    Yes, as long as your target profile is ZLL and the use case is limited to Lighting. If not then you can port the ZLL control bridge to ZStack-Home, this will work for the Lighting use case and need some tweaks to support other use cases you need to support.

    Regards, TC.

     

  • Thanks for your explanation TC,

    this really point out my issue and I took a deeper look in the case.

    Yes TC, for now, ZLighting is just a start up in my case that can guide me how to develop related products. more applications and profiles will be involved in further. So, I am thinking about keeping applications and profiles out from ZNP maybe is a good idea after I read this, Creating a ZigBee® Smart Energy Device with the MSP430F54xx and the CC2530-ZNP.

    Is that possible programs running on MSP430 can be migrated onto linux-based system? In my caes, the AM3517 is acted as a gateway (also a control center) with a ZNP (should be started as coordinator) attached via UART and I really don't want to put any other processor on that board. 

    If there has any similar case I can study to will be nice.

    Thanks.