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.

CC2630 zstack home 1.2.2怎么实现应用层跟内核通信



怎么实现ICALL之间的通信?想实现应用层按下一个按键后,通知底层打开搜索网络功能,5S后关闭,下次再按下按键后再打开搜索网络功能,目前由于应用层和协议栈分开成两个工程了,没法调用之间的函数,也没通过通信。麻烦这个版本的协议栈太难用了。

  • 你可以参考

    zstack_ZStatusValues Zstackapi_DevStartReq(ICall_EntityID appEntity,
    zstack_devStartReq_t *pReq)
    {
    // Build and send the message, then wait of the response message
    return( sendReqDefaultRsp(appEntity, zstackmsg_CmdIDs_DEV_START_REQ, pReq,
    sizeof(zstackmsg_devStartReq_t),
    matchDevStartRsp) );
    }

    然后在

    static bool appMsg( ICall_EntityID srcEntityID, void *pMsg )的switch case里面进行处理