No Commissioning/Joining between JN5168 DimmableLight and JN5168 ControlBridge

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

No Commissioning/Joining between JN5168 DimmableLight and JN5168 ControlBridge

ソリューションへジャンプ
2,555件の閲覧回数
georgiradkov
Contributor II

Hello,

I need some help with JN5168 commissioning/Joining

Here is my setup:
- Using 2 x JN5168-001-M00
- Programmer - ft232rl - no problems with programming
- all needed LEDs and Switches from DR1175 and DR1174 (DIO8, RESETN, WhiteLeds(PWM))

- First JN5168 module is programmed with "JN-AN-1216-Zigbee-3-0-IoT-ControlBridge"
                              -> "ZigbeeNodeControlBridge_JN5168_FULL_FUNC_DEVICE_1000000.bin"

- Second JN5168 module is programmed with BeyondStudio compiled "DimmableLight_JN5168_DR1175.bin" from "JN-AN-1218-Zigbee-3-0-Light-Bulb"

Here is the problem:

I start ControlBridge and set all configs according to "JN-AN-1216-ZigBee-3-0-IoT-ControlBridge-UserGuide" or

"HMB-N1983 Hands-On Workshop"
- Set CMSK = 20
- Set EPID = 0
- Set Type = Coordinator
- Start NWK
- Permit Join = "0 and FF" or "FFFC and FE" according to UserGuide's

Then RESET "DimmableLight" and "DimmableLight" is sending this via UART:

Stack low water mark is at 04006c78
***********************************************
* LIGHT NODE RESET *
***********************************************
APP: Entering APP_vInitResources()
APP: Initialising resources...
APP_vInitialiseNode

Zll recovered state 00

Set a random pan

Factory new start up
PDM: Capacity 27
PDM: Occupancy 36
APP: Entering BDB_vStart()
APP: Entering APP_vMainLoop()
APP: BDB No Networks
APP: BDB No Networks -> Wait On 11

It is strange that there is Coordinator but no Networks and "DimmableLight" can't connect to network.
The Coordinator isn't showing anything about new device. Discover Devices doesn't find any devices. Start Scan also.

This Response isn't showing

join.png
Some Testings I've made:

- ControlBridge is finding only "AN1229_ZBP_SleepingEndDevice_JN5168" device from "ZigBee PRO Application Template for ZigBee 3.0"
- All JN-AN-1217-Zigbee-3-0-Base-Device are working perfectly with "DimmableLight" devices

So Please give me a hint how to Join DimmableLight to ControlBridge

Thanks

ラベル(1)
1 解決策
1,836件の閲覧回数
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Giorgi,

I am working with that application notes.

Please see my set up.

1.Programm the Dimmable Light Device and Reset

   I changed the device configuration, the JN is looking up only on channel 24.

pastedImage_2.png

pastedImage_6.png

2. Set CMSK Channel 24

3. Start NWK

4.Permit Join

pastedImage_1.png

5. Reset the Device again and it will be scan for available networks.

6. The device joins as a Router.

pastedImage_4.png

You can toggle the led with the ON/OFF Cluster

pastedImage_7.png

Regards,

Mario

元の投稿で解決策を見る

6 返答(返信)
1,837件の閲覧回数
layengchan
Contributor I

Dear all

I found the app.zpcfg of JN-AN-1217. It is in the Common\Source directory. Very sorry. But I hope you can help in my problem of no commissioning or joining. I have entered "form", "steer" and "find" at the uart of coordinator. If there is any steps I have missed out, please let me know. Thank you

0 件の賞賛
返信
1,837件の閲覧回数
layengchan
Contributor I

Hi

I have the same problem of no commissioning and joining. However I am using JN-AN-1217 Coordinator and Router. That is, I flash Coordinator_JN5168_DONGLE.bin to one JN5168 board and the Router_JN5168_DR1175.bin to another JN5168 board. My intention is to use the uart to send the commands. I get the following response on the uart of coordinator after i key in form, steer :

23:54:26.823> APP: Entering APP_vInitialise()
23:54:26.823> Initialising UART ...Done
23:54:26.823> APP_vInitialiseCoordinator at line 154
23:54:26.823> Recovered Application State 0 On Network 0
23:54:26.823> APP: Entering BDB_vStart()
23:54:26.823> APP: Entering APP_vMainLoop()
23:54:42.075> APP-EVT: Event 2, NodeState=1
23:54:42.075> BDB: Forming Centralized Nwk
23:54:43.138> APP-EVT: Request Nwk Formation 00
23:54:44.260> BDB: APP_vGenCallback [0 4]
23:54:44.260> APP-BDB: NwkFormation Success
23:54:44.260> APP-ZDO: Network started Channel = 11

on uart of router:

23:03:11.432>
23:03:11.432> ***********************************************
23:03:11.432> * ROUTER RESET *
23:03:11.432> ***********************************************
23:03:11.432> ALL UP

Any advice rendered as to how to get commissioning and joining done would be deeply appreciated. 

Also I realise that this application JN-AN-1217 has its own .zpcfg file to create the endpoint and clusters used on the endpoint. Is it possible to direct me to where I can get the example .zpcfg file as a base to modify the code rather than creating a new one which is different from JN-AN-1217 and therefore having to modify the codes. Hope you understand what I mean. Again any help rendered is deeply appreciated. I am a newbie to zigbee. Just as a side

0 件の賞賛
返信
1,836件の閲覧回数
georgiradkov
Contributor II

Thank you Mario for fast response. Your reply was 100% helpful.

To be honest I don't know how I managed to run this example. I've just reprogram all modules maybe 3-4 times with different .bin files. And then used your guidance. I think there was left some persistent data that needs to be erased.

I'll leave some thoughts here for other developers who are facing the same issues

1. In this example I've used :
JN516x ZigBee 3.0 SDK - Build Number 1745

ZigBee 3.0 IoT Control Bridge - 1010
ZigBee 3.0 Light Bulbs - 1006

2. Binary files used:
Coordinator - precompiled ZigbeeNodeControlBridge_JN5168_FULL_FUNC_DEVICE_1000000 from JN-AN-1216
Node - DimmableLight_NtagIcode_JN5168_DR1175 from JN-AN-1218
DimmableLight is compiled with:
make LIGHT=DimmableLight TRACE=1 JENNIC_CHIP_FAMILY=JN516x JENNIC_CHIP=JN5168 DR=DR1175 OTA=0 OTA_ENCRYPTED=0

3. After Start NWK on IoT Control Bridge, you should see:

Type: 0x8000
(Status)
Length: 4
Status: 0x00 (Success)
SQN: 0x00
Message:
Type: 0x8024
(Network Up)
Status: 0x01
Short Address: 0x0000
Extended Address: 0x158D00019A1B12
Channel: 20

If (Network Up) replay is missing maybe something is not OK. (With me sometimes it worked, sometimes it didn't)

I'm attaching tested .bin files to help other developers.

0 件の賞賛
返信
1,837件の閲覧回数
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Giorgi,

I am working with that application notes.

Please see my set up.

1.Programm the Dimmable Light Device and Reset

   I changed the device configuration, the JN is looking up only on channel 24.

pastedImage_2.png

pastedImage_6.png

2. Set CMSK Channel 24

3. Start NWK

4.Permit Join

pastedImage_1.png

5. Reset the Device again and it will be scan for available networks.

6. The device joins as a Router.

pastedImage_4.png

You can toggle the led with the ON/OFF Cluster

pastedImage_7.png

Regards,

Mario

1,836件の閲覧回数
georgiradkov
Contributor II

Hi Mario, everything is 100% working thanks to you.

I've rebuild DimmableLight and changed Channel Mask in ZPS Configuration editor.

Strange thing is that DimmableLight does not change default channel but it works. When there is no networks it says

APP: BDB No Networks -> Wait On 11

In your example you set channel to 24

APP: BDB No Networks -> Wait On 24

How did you do that?

Did you used ZPS Configuration Editor only

pastedImage_1.png

                                      (picture is only for illustration)

Or you have made other changes in the project?

Thanks.

Georgi

0 件の賞賛
返信
1,836件の閲覧回数
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Georgi,

If you are working with the JN-AN-1217 and if you want to work only on a single channel.

Please open the bdb_options.h

#else
//#warning Single channel only!
#define BDB_PRIMARY_CHANNEL_SET                 (1<<24)                     /* bdbPrimaryChannelSet e.g. (0x02108800)  */
#define BDB_SECONDARY_CHANNEL_SET               (0)                         /* bdbSecondaryChannelSet e.g. (0x07FFF800 ^ BDB_PRIMARY_CHANNEL_SET) */
#define BDBC_TL_PRIMARY_CHANNEL_SET             (1<<24)                     /* bdbcTLPrimaryChannelSet */
#define BDBC_TL_SECONDARY_CHANNEL_SET           (24)                               /* bdbcTLSecondaryChannelSet */
#endif

Then, the app.zpscfg file, select the RF Channels and the Properties option select only the channel that you want to True.

pastedImage_1.png

Regards,

Mario