Movesense direct access to GATT endpoints

☆樱花仙子☆ 提交于 2019-12-10 12:07:39

问题


I am trying to read ECG real-time data from a movesense sensor by using another generic BT-LE module.

GATT characteristics can be used for Heart Rate (read or notify) or other predefined services : we simply send a raw command to an endpoint, for example a 0x0100 (START_NOTIFY) on the corresponding UUID for a heart rate notification streaming.

The problem is that with a micro controller and a BT LE module we can not use any of the C, Java, React... libraries since all of the underlying code is not open source ( the movesense device-lib and community-lib do define how to use and program the services, but we can not discover what to send on one of the 2 other services that are defined, the UART service or the Unknown Service, which are probably used by the movesense library to send all of the URL requests).

As a footnote, we access our generic BT-LE module with AT UART commands to communicate to the movesense platform.

Thanks for any help or guidance, FS


回答1:


Have you looked https://bitbucket.org/suunto/movesense-device-lib/src/master/samples/ble_std_services/CustomBleController.cpp

void CustomBleController::OnUartData(uint8_t * p_data, uint16_t length)

for receiving and

send_ble_nus_data(buffer, BUFFER_LENGTH); 

to send using NUS (Nordic UART service).



来源:https://stackoverflow.com/questions/53426044/movesense-direct-access-to-gatt-endpoints

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!