How to use Scene Cluster in JN5169?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to use Scene Cluster in JN5169?

8,894 次查看
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

标签 (1)
0 项奖励
回复
7 回复数

8,658 次查看
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 项奖励
回复

8,658 次查看
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 项奖励
回复

8,658 次查看
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 项奖励
回复

8,658 次查看
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 项奖励
回复

8,658 次查看
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 项奖励
回复

8,658 次查看
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 项奖励
回复

8,658 次查看
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 项奖励
回复