Using the NXP Zigbee Control bridge in Router Mode and send Serial Commands

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using the NXP Zigbee Control bridge in Router Mode and send Serial Commands

Jump to solution
1,615 Views
dmsherazi
Contributor IV

Regarding the Zigbee ControlBridge Application

My first question would be : whats the diffrence between DeviceType cordinator and router?

 

Is it that the when we set NXP Control Bridge as router , it can be added to a network that is created by another Control Bridge as a cordinator?
If so will it accept most of the Control Bridge serial commands for example to call a scene or set color of lights etc via the serial port?.

If its so my goal is to use one Control Bridge as a cordinator and another few as routers that are connected to an mcu with a LCD display. From these displays I need to be able to use the UI to control the zigbee devices, but I dont want them to be acting as cordinators!

My Intention is to use the Control Bridge router as a router , but to be able to send the serial commands as well. So my main MCU can send a light ON/OFF command through the serial port to the Control Bridge - Router and the Control Bridge Router will send that command via Zigbee . Is it achievable?

 

0 Kudos
Reply
1 Solution
1,525 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

I apologize for the misunderstanding. Please consider that JN5189/88T is preferred for any new new Zigbee®, Thread design.

Could you please confirm that you followed step 4.1 Programming the JN516x/JN517x Device and 4.2.1 Connecting to the Control Bridge?

Have you already started a network on the Coordinator side (step 4.2.2 Configuring and Starting a Network)? Which are the input parameters you are using for Permit join on your Coordinator?

As mentioned in JN-AN-1216 User Guide, section 4.2.2, Control bridge starts as a Coordinator. Instead of

  1. Then I set the device type to ROUTER 

  2. Now I restart the Control Bridge Device that should work as a router 

please try Erase PD > Set Type to ROUTER > Start Scan, without resetting the device.

If this issue persists, would it be possible for you to share a sniffer log (using, for example, Wireshark or Ubiqua) of the specific devices involved in this scenario? Also, you can try with Erase PD on both devices and repeating the entire setup procedure.

Regards,
Eduardo.

View solution in original post

7 Replies
1,579 Views
dmsherazi
Contributor IV

Hi and thanks for the detailed answer. I tried to use zgwui to test my case. When i set the device your to router through the command. It doesn't respond to serial commands like get version. Should i be using the full function device firmware?

 

0 Kudos
Reply
1,553 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

Could you please provide more details about your issue? Are you able to establish the connection with your device?

Just to confirm, did you follow step 5.1 Programming the DK006 Device and 5.2.1 Connecting to the Control Bridge (from Control Bridge User Guide)?

Some commands will receive a Status message only, and some of them will receive optional data messages depending on the command. Serial Command Set describes expected responses for each command.

Regards,
Eduardo.

1,499 Views
dmsherazi
Contributor IV

Although it worked for me for the JN5168 module nut when I tried with DK6 kit , and used firmware 

dostshah_1-1671712830564.png

 

Following your instructions
 

As mentioned in JN-AN-1216 User Guide, section 4.2.2, Control bridge starts as a Coordinator.Instead of

  1. Then I set the device type to ROUTER 

  2. Now I restart the Control Bridge Device that should work as a router 

please try Erase PD > Set Type to ROUTER > Start Scan,without resetting the device.

 

I get this error when I press the start Scan button on ZGWUI

dostshah_2-1671712975268.png

 

0 Kudos
Reply
1,541 Views
dmsherazi
Contributor IV

Any ways the detailed issue is like

I have used JN-AN-1216 for the router control bridge made  changes to the build variables to build for JN5168 and built ZigbeeNodeControlBridge_JN5168_GP_Proxy_FULL_FUNC_DEVICE_115200.bin firmware , uploaded to the router module.

Now I use ZGWUI and do the following 

  1.  Set Up COM PORT 
  2. press get version button and I get reply as followsdostshah_0-1671625739885.png

     

  3. Then I set the device type to ROUTER
     dostshah_1-1671625811459.png

     

  4. Now I restart the Control Bridge Device that should work as a router 
    dostshah_2-1671625899886.png

     

  5. Now on my ControlBridge that is having the cordinator firmware , I would set permit join to true for about 3 minutes
  6. On ZGWUI which is controlling the JN5168 Full function control bridge and set type as router I press the Start Scan button.
    dostshah_3-1671626158098.png

     

  7. This should in my knowledge put the Router Control bridge in Network Search mode and the Cordinator should be able to add it , But I dont see any device announce on the Cordinator. If I would put any other zigbee device in network serach mode it will get added
    dostshah_4-1671626284507.png

     

  8.  
0 Kudos
Reply
1,526 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

I apologize for the misunderstanding. Please consider that JN5189/88T is preferred for any new new Zigbee®, Thread design.

Could you please confirm that you followed step 4.1 Programming the JN516x/JN517x Device and 4.2.1 Connecting to the Control Bridge?

Have you already started a network on the Coordinator side (step 4.2.2 Configuring and Starting a Network)? Which are the input parameters you are using for Permit join on your Coordinator?

As mentioned in JN-AN-1216 User Guide, section 4.2.2, Control bridge starts as a Coordinator. Instead of

  1. Then I set the device type to ROUTER 

  2. Now I restart the Control Bridge Device that should work as a router 

please try Erase PD > Set Type to ROUTER > Start Scan, without resetting the device.

If this issue persists, would it be possible for you to share a sniffer log (using, for example, Wireshark or Ubiqua) of the specific devices involved in this scenario? Also, you can try with Erase PD on both devices and repeating the entire setup procedure.

Regards,
Eduardo.

1,543 Views
dmsherazi
Contributor IV
I have JN5168 and JN5169 as my router control bridge devices and in the Docs the User Guide has no 5.2.1 section.

0 Kudos
Reply
1,594 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello @dmsherazi,

Zigbee device types are defined by the ZigBee Alliance, and a device type is a software entity that determines the functionality supported by a node. A network node can support more than one device type.

Coordinator, Router, or End Device are ZigBee node types. Every network must have one Coordinator; this device starts the network, allows child nodes to join the network through it, can have children and can therefore be parents.
On the other hand, a network may have many routers that allows other nodes to join the network through it and can be both a child and a parent.

This is an example of a Zigbee mesh network
 

EduardoZamora_0-1671049878679.png

Control Bridge allows the user to set the node type to Coordinator, Router or End Device. For more information on how to set up the Control Bridge and manage the network devices, please refer to JN-AN-1247 folder > Docs > JN-AN-1247-Zigbee-3-0-ControlBridge-UserGuide.

Regarding to your application, it should be possible to use an MCU instead of the PC/ZGWUI to send commands to Control Bridge. You can find the Serial Command Set in JN-AN-1247-Zigbee-3-0-ControlBridge-UserGuide, Appendix B.

Please consult the Zigbee documentation inside JN5189 SDK folder > docs > wireless > Zigbee.

Regards,
Eduardo.