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?
After I restart CPU,all models including light & stream model worked because reset operation waked IC.So it is strange!