Dear Sir/Madam,
My customer wants to make communicate each other with two devises, she found a problem during test.
Would you please help to resolve this issue?
[H/W and SDK information]
DVK ; LP-CC2652RB
IDE ; Code Composer Studio
SDK ; SimpleLink CC13x2 26x2 SDK (4.10.00.78)
Example code ; ‘zc_sw’ and ‘zc_light’ (in zstack)
[Test #1]
This is a general test procedure. It’s OK.
- Downloaded into DVK after build ‘zc_sw’, I will call it ‘SW device’ .
- Downloaded into DVK after build ‘zc_light’, I will call it ‘Light device’ .
- ‘SW device’ created a bind to ‘Light device’.
- Pressed BTN2 on ‘SW device’.
- The light in ‘Light device’ is toggled.
[Test #2]
‘SW device’ send few data to ‘Light device’. It’s OK.
- Added few data in payload based on ‘zc_sw’.
- Downloaded into DVK after build ‘zc_sw’, I will call it ‘SW device’ .
- Downloaded into DVK after build ‘zc_light’, I will call it ‘Light device’ .
- ‘SW device’ created a bind to ‘Light device’.
- Pressed BTN2 on ‘SW device’.
- The light in ‘Light device’ is toggled and checked data that ‘Light device’ received from ‘SW device’ .
[Test #3] ;
‘Light device’ send few data to ‘SW device’. ‘SW device’ can’t receive data from ‘Light device’.
- Added code below to ‘zc_light’ to send data to ‘SW device’.
====================================
static void zclSampleLight_processKey(uint32_t _btn, Button_EventMask _buttonEvents)
{
.
.
.
if(key == CONFIG_BTN_RIGHT)
{
zstack_getZCLFrameCounterRsp_t rsp;
User_Test_Value++;
Toggle_Led_Flag ^= 1;
Zstackapi_getZCLFrameCounterReq(appServiceTaskId, &rsp);
if(Toggle_Led_Flag == 0)
zclGeneral_SendOnOff_CmdOn( SAMPLELIGHT_ENDPOINT, &zclSampleLight_DstAddr, FALSE, rsp.zclFrameCounter );
else
zclGeneral_SendOnOff_CmdOff( SAMPLELIGHT_ENDPOINT, &zclSampleLight_DstAddr, FALSE, rsp.zclFrameCounter );
}
}
====================================
- Downloaded into DVK after build ‘zc_sw’, I will call it ‘SW device’ .
- Downloaded into DVK after build ‘zc_light’, I will call it ‘Light device’ .
- ‘SW device’ created a bind to ‘Light device’.
- Pressed BTN2 on ‘Light device’.
- Checked data that ‘SW device’ received from ‘Light device’ .
->> ‘SW device’ didn’t receive data from ‘Light device’
Would you please give any advice for this?
Or Is there a more suitable example for bidirectional communication?
Thanks,
YY.