|
SmartSnippets DA1459x SDK
|
This application is a sample implementation of Heart Rate collector as defined by HRP specification 1.0. All features are supported (i.e. both mandatory and optional features).
The application is controlled using command line interface exposed over UART2.
The application supports up to 8 simultaneous connections.
The project is located in the projects/dk_apps/ble_profiles/hrp_collector folder.
To install the project follow the General Installation and Debugging Procedure.
The application is controlled using command line interface (CLI) which can be accessed using serial port available when platform is connected to PC using USB2 connector (e.g. /dev/ttyUSBx or COMx).
To quickly scan and connect to sensor device:
scan start to start scanning for HRP Sensor devices.scan stop to stop scanning. connect 1 to connect to 1st device foundconnect C3:26:2B:63:B1:11 to connect to device with given addressThe connection is established and device is automatically discovered:
As can be seen above, discovery includes following actions:
Ready. message is received, as above. You should see incoming measurement notifications as below. Start and stop scanning procedure.
By default, the application scans for devices which include Heart Rate service UUID (0x180D) in advertising data. To scan for any device in range use optional any parameter, i.e. scan start any.
The returned list of devices includes an index, a device address and a device name (if available).
00.Connect to peripheral device.
The device can be specified by either providing an address or an index of device found during last scan session.
The optional address type applies only when connecting to a device using an address. If not specified, the address type is searched on results from previous scan session or public is used when not available.
Cancel ongoing connection attempt.
Enable and disable Heart Rate Measurement notifications on device with specified <conn_idx>.
This command is provided for debugging purposes. Notifications are always enabled after sensor is connected and there is no need to enable them explicitly.
Disconnect sensor with specified <conn_idx>. If <conn_idx> is not specified disconnect with first sensor on list of connected devices
show connected.Reset energy expended value
Show list of connected/bonded sensors
Unbond sensor with specified address or unbond all bonded sensors
show bonded to see list of bonded sensors to unbond
1.8.16