你好!
想用两个585互传信息,测试了好久DSPS例程,没有找到办法。我用的是dsps_device_dma和dsps_host_dma。能否帮我下以下问题:
1)设备代码在什么地方(用什么函数)读取主机传来的数据?设备代码在什么地方(用什么函数)传数据给主机?
谢谢了
你好,
主机 - >设备,设备接收数据,从底层到上层,数据的流向是:
BLE STACK- > GATTC_WRITE_REQ_IND - > gattc_write_req_ind_handler - > sps_server_data_receive - > SPS_SERVER_DATA_WRITE_IND - > user_sps_server_data_write_ind_handler
设备 - >主机,设备发送数据,从上层到底层,数据流向是:
user_send_ble_data - > SPS_SERVER_DATA_TX_REQ - > sps_server_data_tx_req_handler - > sps_server_send_data - > GATTC_SEND_EVT_CMD(GATTC_NOTIFY) - > BLE STACK
你好,
主机 - >设备,设备接收数据,从底层到上层,数据的流向是:
BLE STACK- > GATTC_WRITE_REQ_IND - > gattc_write_req_ind_handler - > sps_server_data_receive - > SPS_SERVER_DATA_WRITE_IND - > user_sps_server_data_write_ind_handler
设备 - >主机,设备发送数据,从上层到底层,数据流向是:
user_send_ble_data - > SPS_SERVER_DATA_TX_REQ - > sps_server_data_tx_req_handler - > sps_server_send_data - > GATTC_SEND_EVT_CMD(GATTC_NOTIFY) - > BLE STACK