How to use Scene Cluster in JN5169?

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

How to use Scene Cluster in JN5169?

2,244 Views
huy_phamhuu_hus
Contributor I

Hello,

I am making a Switch with 4 endpoints. I am going to apply Scene cluster for this device but when I enable Scene cluster by adding the following define in zcl_option.h :

#define CLD_SCENES

#define SCENES_SERVER
The project build failed: undefined reference to `vSaveScenesNVM'

Then I search on the internet and copy file: app_scenes.h/c from here into my project. It seems to be good when building. But when I flash program (file Bin) to chip JN5169, The program did not run, nothing happens.

Then I change some defines in zcl_option.h:

#define CLD_SCENES_MAX_NUMBER_OF_SCENES (10)
#define CLD_SCENES_MAX_SCENE_STORAGE_BYTES (16)

The program run but Stack dump when Initialize.  

Can you help me to troubleshoot this problem, Help me how to use Scene Cluster?

Thanks and Best regards,

Huy

Labels (1)
0 Kudos
Reply
7 Replies

2,008 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Huy Pham,

Could you please look at the JN-AN-1218? It implements the Scenes Cluster.

Did you add, your makefile, the next define? APPSRC += app_scenes.c

Regards,

Mario

0 Kudos
Reply

2,008 Views
huy_phamhuu_hus
Contributor I

Hi Mario,

I already added make file APPSRC += app_scenes.c.

I just have copied file app_scenes.h/c and some setting of Scenes Cluster in zcl_options.h. It was built well but when I flash program. It was not running.

Are there any special parameters for Scenes Cluter? Or JN5169 ran out of RAM? How I can check it?

Could you please help me find the problem?

Thanks and Regards,

Huy

0 Kudos
Reply

2,008 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Huy,

Are you working on the JN-AN-1220? 

Did you add the clusters in the zpscfg file?

Regards,

Mario

0 Kudos
Reply

2,008 Views
huy_phamhuu_hus
Contributor I

Hi Mario,

I am working on JN-AN-1217-Zigbee-3-0-Base-Device.

I send you my project: link here. Could you please find out what the problem was?

My project is Switch, the zpscfg file is app_switch.zpscfg.

I am looking for your reply soon.

Thank you very much!

Huy

0 Kudos
Reply

2,008 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Huy,

I was checking your app_switch.zpscfg file. You are not defining the scene cluster.

Please look at the files attached.

Regards,

Mario

0 Kudos
Reply

2,008 Views
huy_phamhuu_hus
Contributor I

Hi Mario,

You got the wrong zpscfg and zcl_option file. Please look attach at the files attached for those files.

I look forward to hearing your feedback soon!

Regards,

Huy

0 Kudos
Reply

2,008 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Huy,

I am running your example and it compiles without problems.

pastedImage_1.png

I compiled successfully and it works.

Regards,

Mario

0 Kudos
Reply