Dear all,
Currently, I got a routing problem occurs when I tested a Zigbee network between a Coordinator and a Router. The test's steps are described below:
Question:
Config as SDK:
Hi Dang,
I hope you are doing great.
What is the channel that you are using? there is a lot of obstacles between the devices.
You could send a management LQI and be sure if your device is near to the coordinator. If you do not receive any response you could try to send the APS request when you receive some management LQI response.
Regards,
Mario
Hi Mario,
I use channel 20.
I trying send a management LQI and distance router and coordinator is 20m with value 32
I use the coordinator is jn5169 M06 and the router is jn5169 M00, with power transmission is default 10dm.
Is it affect to send message from Rouer or Coordinator ‘’APS confirm fail’’?
Thanks & Best Regards,
Nha Dang
Hi Dang,
It won't affect the APS confirmed fail. The Coordinator, in this case, is not founding the router. The network is not in the same range of channels as wifi, however, could you please try with channel 11 or 25. The LQI that you are getting is to be sure that the device is in range or if it turned off.
Regards,
Mario
Hi Mario,
Today,
I set coordinator channel is 25 and 1 device (router) join network.
I send a management LQI to router and receive report LQI about 2 - 7.
Then I trying send LQI again , the Router do not report LQI and receive massage "APS confirm fail" with status D4.
After I can`t control the router (distance the router and the coordinator is the same above).
Any idea why, or is there something i need to modify in the control bridge code to receive that report?
Thanks & Best Regards,
Nha Dang
Hi Nha Dang,
Could you please provide the terminal log of your router device and the terminal of the control bridge?
Also, could you please provide the received message view from the ZWGUI.
What is the process that you did for bonding the device?
Regards,
Mario
Hi Mario,
I include file zwgui.txt is terminal log from the ZWGUI.
"What is the process that you did for bonding the device?"
1. Connect coordinator with ZWGUI
2. Set CMSK 25
3. Pemit Join with router
4. Request LQI = 165 when distance the router and the coordinator is 10cm
5. Move Router far from the Coordinator about 10.5m and 15m. After I request LQI is show file zwgui.txt
Hi Nha Dang,
How are you enable the reporting for your device?
Could you please define in your makefile the DEBUG_ZCL?
CFLAGS += -DDEBUG_ZCL
Please provide what are the printing values that you are getting on the case ZPS_EVENT_APS_DATA_CONFIRM when the E_SL_MSG_APS_DATA_CONFIRM_FAILED happens.
Also, when the Router can not find the Coordinator, what is the terminal log that you are getting?
Regards,
Mario
Hi Mario,
I print log on coordinator when the case ZPS_EVENT_APS_DATA_CONFIRM (you can see file log_far_extension.txt):
1. The case D4
RX Start
Data 0x0
Data 0x92
Type 0x92
Data 0x0
Data 0x6
Length 6
Data 0x36
CRC 36
Data 0x707
Data 0x5151
Data 0xf6f6
Data 0x101
Data 0x202
Data 0x101
Got END
bSL_ReadMessage(146, 6, 36)
Packet Type 92
vSL_WriteMessage(32768, 4, 06)Got bdb event 1
ZCL_Task got event 2
CFM: SEP=1 DEP=2 Status=212
2. the case E9
RX Start
Data 0x0
Data 0x92
Type 0x92
Data 0x0
Data 0x6
Length 6
Data 0x36
CRC 36
Data 0x707
Data 0x5151
Data 0xf6f6
Data 0x101
Data 0x202
Data 0x101
Got END
bSL_ReadMessage(146, 6, 36)
Packet Type 92
vSL_WriteMessage(32768, 4, 1d)Got bdb event 1
ZCL_Task got event 2
CFM: SEP=1 DEP=2 Status=233
In my code print
" vLog_Printf(TRACE_ZCL,LOG_DEBUG, "\nCFM: SEP=%d DEP=%d Status=%d\n",
psStackEvent->uEvent.sApsDataConfirmEvent.u8SrcEndpoint,
psStackEvent->uEvent.sApsDataConfirmEvent.u8DstEndpoint,
psStackEvent->uEvent.sApsDataConfirmEvent.u8Status);"
teminal log in flie txt.
Thanks & Best Regards,
Nha Dang
Hi Dang,
I will try to reproduce your issue.
Just to confirm, please see the steps below for reproducing your issue.
1. You create a Zigbee Network
Coordinator JN-AN-1216
Router JN-AN-1217.
2. Then you bind a specific cluster, but the devices are near each other.
How are you binding the clusters?
3. Separate the devices around 20 or 30 m and I will see the APS confirm fail. Am I wrong?
Regards,
Mario
Hi Mario,
1. Yes I use
Coordinator JN-AN-1216.
Router JN-AN-1217.
2. I just Permit Join the router with the coordinator.
3. Yes.
Thank you for your support.
I hope to hear your feedback soon.
Thanks & Best Regards,
Nha Dang
Hi Dang,
I ran some test by my side
The router device is so far from the coordinator range. So, in this case, the Coordinator tries to reach the router device but it doesn't have any route available to reach the device or it doesn't receive any response from the router.
Please look at the ZigBee 3.0 Stack User Guide
However, you know the ZigBee Protocol has a line of sight of 100, bit effective distance could be around 30 m, but also it will depend on the channel, some other wireless protocols, obstacles, the power of the device that is transmitting, temperature, humidity.
The coordinator is sending 3 times the same packets but it can not find the router, this behavior is as expected.
Regards,
Mario
Hello,
Use also zigbee 3.0 but with KW41Z. coordinator to router +/- 15meter inside the office.
But when is use a extra router I can only make direct connection with the coordinator a hop/ mesh dont work with the dimmable light example.
Kind regards,
Bas Weppel