jn5168

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

jn5168

3,329 Views
ebenmos
Contributor II

Implementing Mesh Network with JN5168 module.

Hi.

In my setup I have 3 Endpoints each has 1 to 3 lights on it. They all joint to same

Network as routers. In the controller side I have an NXP DR1159 Remote Control.

My problem is what to do to implement Mesh Network, meaning to make my Endpoints propagate

"light on /off" command to a remote Endpoint.

My firmware based on JN-AN-1171-ZigBee-LightLink-Demo.

I will appreciate any help.

Ephraim

Labels (2)
0 Kudos
Reply
10 Replies

3,044 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Ephraim,

My problem is what to do to implement Mesh Network, meaning to make my Endpoints propagate

"light on /off" command to a remote Endpoint.

Just to confirm, you want to update the light status to the Remote Control? 

is Remote control connected to the coordinator?  You can set the find and bind, attribute report for a specific time or you can update the light status if you send a command using the dr1199.

Please let me know more about your application.

Regards,

Mario

0 Kudos
Reply

3,044 Views
ebenmos
Contributor II

Hi Mario.

Thanks for prompt reply.

In my setup I have 3 Light on/off Endpoints that I can turn on and off

using the NXP DR1159 Remote Control. My problem is

that I can't turn on and off a light that is away from me (and the remote).

In this case I was expecting that the Endpoint close

to me will propagate the command to the one that is away from me.

I do not ave any coordinator in my setup. This is a ZLL. My Endpoints are

all Routers.

On Mon, 15 Apr 2019 at 20:42, mario_castaneda <admin@community.nxp.com>

0 Kudos
Reply

3,044 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Ephraim,

Who is the Trust Center in your network? Do you have the sniffer log? Could you please send an LQI request to the remote control? I want to be sure if the Light is connected directly to it.

Please see the image attached, you will find the route record that is sending by a router, it is saying that knows another router.

pastedImage_1.png

Please let me know your findings

Regards,

Mario

0 Kudos
Reply

3,044 Views
ebenmos
Contributor II

Mario, thanks again.

I believe that my Trust Center in my Network is my Remote Control.

I do not have any sniffer. Doing my Debug with datalogs.

Just to make sure, All I need is that my Endpopints will Propagate commands

from the Remote Control to the target EP.

Here is the datalog I am getting when commissioning the first Endpoint:

Entering cbZCL_EndpointCallbackCommision task state 1 type 4

Their 0dc88325bb5dd7d9 Mine 0000000000000000 TC 0000000000000000

Accept 134 from 00158d0002293b0d

ZCL_Task got event 22

Entering cbZCL_EndpointCallback

Entering cbZCL_EndpointCallbackEP EVT: Custom 1000

- for 0x1000

Entering cbZCL_EndpointCallbackCommision task state 1 type 4

Their 7a3c90518623a015 Mine 0000000000000000 TC 0000000000000000

Accept 185 from 00158d0001edbf16

Commision task state 1 type 3

Commision task state 2 type 3

Scan done target lqi 185

Send an Id Req to 00158d0001edbf16 Id 65a373ab

Sleep and Poll: Touch lnk in progress

And here is the datalog I am getting when commissioning the second Endpoint:

Entering cbZCL_EndpointCallbackCommision task state 1 type 4

Their 0dc88325bb5dd7d9 Mine b913187c4503d984 TC ffffffffffffffff

Accept 146 from 00158d0002293b0d

Commision task state 1 type 3

Commision task state 2 type 3

Scan done target lqi 146

Send an Id Req to 00158d0002293b0d Id 45040958

Sleep and Poll: Touch lnk in progress

And here is the configuration of my Endpoint:

On Tue, 16 Apr 2019 at 03:36, mario_castaneda <admin@community.nxp.com>

0 Kudos
Reply

3,044 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Ephraim,

All I need is that my Endpoints will Propagate commands from the Remote Control to the target EP.

Are the other routers Certified by Zigbee? are NXP devices?

If you have a JN device, you could program as a sniffer and use the Ubiqua software to see the packets in the air.

What is the value that the API is returning when the packet doesn't achieve the destination.

Regards,

Mario

0 Kudos
Reply

3,044 Views
ebenmos
Contributor II

Hi Mario.

All my devices are NXP devices loaded with Light_OnOffLight from

JN-AN-1171-ZigBee-LightLink-Demo. The Remote Control is

also NXP device loaded with Controller_ColorsceneController from same

application note.

I didn't change anything in code to handle Mesh Networking.

Before I will get into complex debugging with a sniffer, I need to know the

followings:

1. If there is a piece of software I need to write to enable Mesh

Networking?

2. Can Mesh Networking established with the modules that I have?(3 End

Devices configured as Routers and 1 Remote Control).

3. Is Mesh Networking part of the stack? if yes, what I need to do to

enable it?

4. Please note that I don't have coordinator in my setup and I don't want

to add one.

Thanks, Ephraim

On Wed, 17 Apr 2019 at 23:38, mario_castaneda <admin@community.nxp.com>

0 Kudos
Reply

3,044 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi 

1. If there is a piece of software I need to write to enable Mesh Networking?

No, the process that you are following is working

2. Can Mesh Networking established with the modules that I have? (3 End Devices configured as Routers and 1 Remote Control).

Yes, I want to be sure that the routers are updating the routing tables.

3. Is Mesh Networking part of the stack? if yes, what I need to do to enable it?

It is different, the Mesh is supported but you have to be sure that the packets are jumping into the devices, that is the reason for the sniffer log.

Regards,

Mario

0 Kudos
Reply

3,044 Views
ebenmos
Contributor II

Mario.

Thanks a lot.

I think I see now that my Mesh Networking is working fine without doing

anything in code as you said.

Just one more question, is the routing table is updating when I first turn

on new device first time? or when

I am sending a command to a remote device and the stack is using

"Discovery" to find the route and updates the table?

Best regards, Ephraim.

On Fri, 26 Apr 2019 at 20:30, mario_castaneda <admin@community.nxp.com>

0 Kudos
Reply

3,044 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Ephraim,

The routing table will be updated if you send a command and this will try to find the destination. If the router doesn't find the route, it will send a broadcast and wait for an answer.

Regards,

Mario

0 Kudos
Reply

3,044 Views
ebenmos
Contributor II

Thank you.

On Mon, 29 Apr 2019 at 16:30, mario_castaneda <admin@community.nxp.com>