I have two questions about JN5189DK6 SDK.

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

I have two questions about JN5189DK6 SDK.

Jump to solution
2,332 Views
sChameleoNz
Contributor III

1. I imported zigbee coordinator example from JN5189DK6 SDK.

And I tried to change RF channel using zigbee Configuration Editor.

However, it didn't work.

How can I do this?

And what should I do if I want to set specific PANID?

 

2. I tried to import JN-AN-1247 following the JN-AN-1260 document.

But I couldn't do it

I got this error.

sChameleoNz_0-1628426136809.png

I ignored this error, and forced import it.

But I couldn't build the project at this time.

sChameleoNz_1-1628426191758.png

I'd appreciate it if you help me out from this situation.

Labels (3)
0 Kudos
1 Solution
2,238 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @sChameleoNz,

I am sorry, you are right. The AN has not been defined as the Single channel, so the stack will take as reference the Zigbee Configuration Editor, you are working with a wireless SDK example that has been defined in the preprocessor, it has more priority.

Regards,

Mario

View solution in original post

8 Replies
2,303 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @sChameleoNz,

I hope you are doing great.

-And what should I do if I want to set a specific PANID?

It is not possible because our stack is setting this PAN ID randomly, this is part of the specification to avoid any PAN ID conflict

-The SDK management is ok, the error process is correct, it is linking the SDK with the AN.

-Make sure that your project is located in the next path.

"C:\NXP\workspace_JN5189"

-Also, in the makefile be sure that you are selecting the same MCUxpresso version.

# Toolchain paths
TOOLCHAIN_DIR_PATH = ../../../../../MCUXpressoIDE_11.3.1_5262/ide/tools

Regards,

Mario

2,288 Views
sChameleoNz
Contributor III

Hi @mario_castaneda,

Thanks for the reply.

 

1. Channel

How can I change the channel?

sChameleoNz_0-1628597678296.png

I tried to change channel via Zigbee Configuration Editor like above screenshot, but it didn't work.

 

2. SDK

I'm currently using MCUXpressoIDE_11.4.0_6224, therefore I applied this version on your guide.

But the error message was the same as before.

sChameleoNz_1-1628597840972.png

I want to focus on this message.

sChameleoNz_2-1628597962362.png

My SKDPackages folder is like below.

  • C:\Users\username\mcuxpresso\02\SDKPackages\

And there was only two zip files.

sChameleoNz_0-1628598294907.png

How could I resolve this?

 

Many Thanks,

sChameleoNz

0 Kudos
2,279 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi,

1. The table that you are showing is to set the range of the channels that the device will scan to create or join the network

2. Please look at the 5.3 SDK Installation Chapter

You have to save and create the workspace and the SDKPackages following the next paths

C:\NXP\SDKPackages\JN5189DK6

mario_castaneda_0-1628615014765.png

Please let me know if you have any further questions.

Regards,

Mario

 

2,267 Views
sChameleoNz
Contributor III

Hi @mario_castaneda,

Thank you for the guidance.

 

1-1 Channel

Right.

AS you can see in the screenshot, I set a single channel (15).

But the network is formed on channel 12 when I formed a network.

So, it looks like it doesn't work.

1-2 PAN ID

I understood it.

I cannot set a specific PANID.

2 JN-AN-1247

I have to change two more things.

JENNIC_CHIP            ?= JN5189
SDK_FOLDER             ?= SDK_2_6_3_K32W061

Now, I can build it.

 

At last, it remains one thing about channel setting.

I'm looking forward the answer from you.

Regards,

sChameleoNz

0 Kudos
2,262 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @sChameleoNz.

Please look at the next definition in the makefile.

# Channel (0 for default channels)
SINGLE_CHANNEL ?= 0

Also, please look at the bd_options.h file that could help you to set the mask for scan the channels that you want.

#if (SINGLE_CHANNEL < 11 || SINGLE_CHANNEL > 26)
#define BDB_PRIMARY_CHANNEL_SET                 (0x02108800)                 /* bdbPrimaryChannelSet e.g. (0x02108800) */
#define BDB_SECONDARY_CHANNEL_SET               (0x07FFF800 ^ BDB_PRIMARY_CHANNEL_SET)                     /* bdbSecondaryChannelSet e.g. (0x07FFF800 ^ BDB_PRIMARY_CHANNEL_SET) */
#define BDBC_TL_PRIMARY_CHANNEL_SET             (0x02108800)    /* bdbcTLPrimaryChannelSet */
#define BDBC_TL_SECONDARY_CHANNEL_SET           (0x07fff800 ^ BDBC_TL_PRIMARY_CHANNEL_SET) /* bdbcTLSecondaryChannelSet */

 

Regards,

Mario

0 Kudos
2,250 Views
sChameleoNz
Contributor III

Hi @mario_castaneda,

 

That question is about Zigbee Cooredinator example, not a IoT Control Bridge.

I found the code about SINGLE_CHANNEL.

 

 

// bdb_options.h
#define BDB_PRIMARY_CHANNEL_SET                 (1<<SINGLE_CHANNEL)
#define BDB_SECONDARY_CHANNEL_SET               (0)
#define BDBC_TL_PRIMARY_CHANNEL_SET             (0x02108800)
#define BDBC_TL_SECONDARY_CHANNEL_SET           (0x07fff800 ^ BDBC_TL_PRIMARY_CHANNEL_SET)

// bdb_ns.c
#if ((SINGLE_CHANNEL < BDB_CHANNEL_MIN) || (SINGLE_CHANNEL > BDB_CHANNEL_MAX))
    if((!u32ScanChannels) || (u8ScanChannel > BDB_CHANNEL_MAX))
    {
        if(bDoPrimaryScan == FALSE)
#else
    if (TRUE)
    {
#endif

 

 

This is all I found it.

 

I tried directly change the channel.

sChameleoNz_0-1628770875721.png

And it works.

I changed the channel to 15 through Zigbee Configuration Editor and to 14 through the above method.

The result channel was 14.

Then, Why does Zigbee Configuration Editor not work?

And is my method nxp's recommended way?

 

With Regards,

sChameleoNz

0 Kudos
2,239 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @sChameleoNz,

I am sorry, you are right. The AN has not been defined as the Single channel, so the stack will take as reference the Zigbee Configuration Editor, you are working with a wireless SDK example that has been defined in the preprocessor, it has more priority.

Regards,

Mario

2,231 Views
sChameleoNz
Contributor III

Hi @mario_castaneda

Thank you for your support.

Many Thanks,

sChameleoNz

0 Kudos