Other Parts Discussed in Thread: AES-128, Z-STACK
Hi All,
I recently started the development of a bluetooth and zigbee application using TI DMM.
For the setup I have the following:
3 CC1352R launchpads:
- one configured as sniffer - using Ubiqua protocol analyzer, I have set up the network key, and started the protocol analyzer before the boards in the network.
- one running the "dmm_zr_light_remote_display_oad_app_CC1352R1_LAUNCHXL_tirtos_ccs"
- one running the "dmm_zc_switch_remote_display_oad_app_CC1352R1_LAUNCHXL_tirtos_ccs" modified with a callback that is triggered after commisioning by a BLE packet:
Added in zcl_samplesw.c
uint8_t EP = 0; uint8_t transID = 0; uint8_t theMessageData[]={"\0\0\30Hello World"}; //@TST static void tstCallback(){ zstack_getZCLFrameCounterRsp_t pRsp; Zstackapi_getZCLFrameCounterReq(appServiceTaskId, &pRsp); theMessageData[1] = transID++; zstack_afDataReq_t pReq; pReq.dstAddr.addrMode = zstack_AFAddrMode_BROADCAST; // pReq.dstAddr.addr.shortAddr = 0x6c1c; //Not needed for BROADCAST? pReq.dstAddr.endpoint = 0xFF; pReq.pRelayList = NULL; pReq.n_relayList = 0; pReq.srcEndpoint = 0xFF; pReq.clusterID = ZCL_CLUSTER_ID_LIGHTING_BALLAST_CONFIG; pReq.transID = &(pRsp.zclFrameCounter); pReq.options.ackRequest = FALSE; pReq.options.apsSecurity = FALSE; pReq.options.limitConcentrator = FALSE; pReq.options.skipRouting = FALSE; pReq.options.suppressRouteDisc = FALSE; pReq.options.wildcardProfileID = FALSE; pReq.radius = AF_DEFAULT_RADIUS; pReq.n_payload = sizeof(theMessageData); pReq.pPayload = theMessageData; zstack_ZStatusValues rsp = Zstackapi_AfDataReq(appServiceTaskId, &pReq); }
Thank you!
However I face the following problems:
The Ubiqua protocol analyzer, and as well Wireshark cannot Decrypt the packet, I triple checked the TC key in the app and is the same as the default key and the key I put in Wireshark and Ubiqua.
Even so when the callback is called, there is no new message on the network, I cannot see any new packet that is consistent with me triggering the callback, other packets are seen when commisioning and from time to time. When looking at the rsp value it is 0,indicating that the transmission was sucessfull?
Do you have any ideas why the protocol analyzers do not work? Also what I am doing wrong when sending a broadcast message?
PS: I am using the 4.20.01.04 CC13X2 26x2 SDK