2 posts / 0 new
Last post
2862707555
Offline
Last seen:1 year 8 months ago
Joined:2019-03-26 01:11
585 两个芯片交互

你好!

想用两个585互传信息,测试了好久DSPS例程,没有找到办法。
我用的是dsps_device_dma和dsps_host_dma。
能否帮我下以下问题:

1)device代码在什么地方(用什么函数)读取host传来的数据? device代码在什么地方(用什么函数)传数据给host?

谢谢了

Keywords:
Device:
CYibin
Offline
Last seen:3 months 2 days ago
Staff
Joined:2017-12-14 02:48
你好,

你好,

主机- >设备,设备接收数据,从底层到上层,数据的流向是:

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

设备-> host,device 发送数据,从上层到底层,数据流向是:

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