CC2650是用simpleswitch程序修改的按键后发送数据,抓包如下图,但是CC2530那边没任何反应,收不到。请帮忙看看数据发送哪里不对?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
CC2650是用simpleswitch程序修改的按键后发送数据,抓包如下图,但是CC2530那边没任何反应,收不到。请帮忙看看数据发送哪里不对?
非要绑定才能发么?发送不是可以随便发么?抓包数据如下。我感觉好像没有联网成功,协调器发网络状态,终端不发在网的状态信息。CC2650-01.psd
static void Switch_processZStackMsgs(zstackmsg_genericReq_t *pMsg)
{
switch(pMsg->hdr.event)
{
case zstackmsg_CmdIDs_DEV_STATE_CHANGE_IND:
{
// The ZStack Thread is indicating a State change
zstackmsg_devStateChangeInd_t *pInd =
(zstackmsg_devStateChangeInd_t *)pMsg;
// Only process the state change if it actually changed.
if(savedState != pInd->req.state)
{
// Save the new state
savedState = pInd->req.state;
if( (pInd->req.state == zstack_DevState_DEV_ZB_COORD)
|| (pInd->req.state == zstack_DevState_DEV_ROUTER)
|| (pInd->req.state == zstack_DevState_DEV_END_DEVICE) )
{
// The device is part of a network, get the device's
// network parameters.
pNwkInfo = zclport_getDeviceInfo(zswEntity);
// Update the display with network information
giSwScreenMode = SWITCH_MAINMODE;
Switch_updateLcdDisplay();
Board_Led_control(board_led_type_LED1,
board_led_state_OFF);
你就用一个ZC(CC2530),一个ZED(CC2650)去测试一下。
或者去debug看一下是否能进入zstack_DevState_DEV_END_DEVICE,我在看了你的抓包文件发现只有一个ZED和一个ZC。