你好,
UART BLE中央项目是关贸总协定客户。这意味着它可以在外围设备上执行读写和来自外围设备的提示通知。
因此,移动应用程序外设必须充当GATT服务器(从CyPress设备接收写入并向CyPress设备发送通知)。
不是从Android应用程序发送通知,而是尝试发送写?如果是这样,写会失败。
您需要从Android应用程序发送通知,该通知将在UART中央项目的AppsBel.c中触发CyByLyEvtGATCK-HANDLYValueNTF事件,然后由HealuuARTrxCuffic API处理。
当做,
- Madhu Sudhan
以上来自于百度翻译
以下为原文
Hi,
The UART BLE Central project is a GATT Client. Which means it can perform read and write on the peripheral device and accpet notifications from the peripheral.
So the mobile app peripheral must act as a GATT Server (Receives write from the Cypress Device and sends notifications to the Cypress device).
Instead of sending notifications from the android app, are you trying to send write? If so the write would fail.
You need to send notifications from the android app which will trigger a CYBLE_EVT_GATTC_HANDLE_VALUE_NTF event in the app_ble.c of the UART Central project and is in turn handled by the HandleUartRxTraffic API.
Regards,
- Madhu Sudhan
你好,
UART BLE中央项目是关贸总协定客户。这意味着它可以在外围设备上执行读写和来自外围设备的提示通知。
因此,移动应用程序外设必须充当GATT服务器(从CyPress设备接收写入并向CyPress设备发送通知)。
不是从Android应用程序发送通知,而是尝试发送写?如果是这样,写会失败。
您需要从Android应用程序发送通知,该通知将在UART中央项目的AppsBel.c中触发CyByLyEvtGATCK-HANDLYValueNTF事件,然后由HealuuARTrxCuffic API处理。
当做,
- Madhu Sudhan
以上来自于百度翻译
以下为原文
Hi,
The UART BLE Central project is a GATT Client. Which means it can perform read and write on the peripheral device and accpet notifications from the peripheral.
So the mobile app peripheral must act as a GATT Server (Receives write from the Cypress Device and sends notifications to the Cypress device).
Instead of sending notifications from the android app, are you trying to send write? If so the write would fail.
You need to send notifications from the android app which will trigger a CYBLE_EVT_GATTC_HANDLE_VALUE_NTF event in the app_ble.c of the UART Central project and is in turn handled by the HandleUartRxTraffic API.
Regards,
- Madhu Sudhan
举报