Forums - Differences between Light model and Stream model,or why CSR MESH Light app receive no stream model mesh message?

2 posts / 0 new
Last post
Differences between Light model and Stream model,or why CSR MESH Light app receive no stream model mesh message?
1502653481
Join Date: 28 Jun 16
Location: Shenzhen in Guangdong province
Posts: 4
Posted: Tue, 2017-06-13 19:12

First,I describled my problems:I ultilised CSRmesh Switch as control panel interfaced with human by buttons meanswhile used CSRmesh Light Application as output interface with LEDs indicating.Originally,LEDs changed their brightness and color.I need to add stream model to send my command with light model in parallel as following:           

LightSetLevel(dst_id_list[0], level, FALSE);//light_client.h:set brightness

#ifdef ENABLE_DATA_MODEL

uint8 testMeshCmd=0xab;

StreamSendDataBlock(0x8002,&testMeshCmd,1);

#endif

But LEDs still changed their color&intensity for program into CSR_MESH_LIGHT_SET_LEVEL case in the mesh message process center function AppProcessCsrMeshEvent,but indicated not entering CSR_MESH_DATA_BLOCK_IND case,why?As my title said,is there some differences betweeen light/power model and stream model?I paused the program,the assembly code paused at code SLEEP indicating CPU was sleeping,but why light model worked ,stream model not worked?

  • Up0
  • Down0
1502653481
Join Date: 28 Jun 16
Location: Shenzhen in Guangdong province
Posts: 4
Posted: Tue, 2017-06-13 20:23

After I restart CPU,all models including light & stream model worked because reset operation waked IC.So it is strange!

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.