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.

L2CAP_SIGNAL_EVENT 该事件是怎么产生的?



SDK:simplelink_cc13x2_26x2_sdk_4_30_00_54

ic:cc2652rb1f

Hi  TI,

你好,我在开发OAD功能。在我向oad_reset_char(ffd1:0x01)之后,该ch确实收到消息。但是并没有重启设备进入OadPersistApp,手动按开发板reset按钮才能进入OadPersistApp。对比通过 PC btool OAD的方式,发现btool在收到oad_reset_char(ffd1:0x01),SimplePeripheral_processStackMsg会收到L2CAP_SIGNAL_EVENT事件,从而设备重启,所以请教下,该事件是由OAD target产生的还是oad distributor发出的?怎么才能正确产生该事件?

  • 这个事件是由主机端产生的,应该是oad distributor产生的

    /**
    * @brief OSAL L2CAP_SIGNAL_EVENT message format.
    *
    * This message is used to deliver an
    * incoming Signaling command up to an upper layer application.
    */
    typedef struct
    {
    osal_event_hdr_t hdr; //!< L2CAP_SIGNAL_EVENT and status
    uint16 connHandle; //!< connection message was received on
    uint8 id; //!< identifier to match responses with requests
    uint8 opcode; //!< type of command: @ref L2CAP_SIGNALING_CODES_DEFINES
    l2capSignalCmd_t cmd; //!< command data
    } l2capSignalEvent_t;