This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I have Service UUID and its only two characteristics UUID which is Tx (App to BLE) and Rx(BLE device to APP) on iOS App. Unable to get Data from command.

I have one Service UUID and its only two characteristics UUID which is Tx (App to BLE) and Rx(BLE device to APP) to get different type of data e.g. Heart rate, Sleep data, motion data etc. . Unable to get Data from command. Protocol identification mark is 0xA9

There is BLE communication protocol as following Byte1 (Protocol Command Identification Mark) Byte2 (Command) Byte3 (Serial number)
Byte4 (Data length)
Byte5..ByteN (Data content)
ByteN+1 (CRC)

And Command Description for example Heart Rate Data Request 0x26 Heart Rate Data Returned 0x27

So, I am able to connect with smart BLE device.

  1. Able get its service UUID.
  2. Able get Service Characteristics Type Tx UUID (write and writeWithoutResponse) and Rx UUID (notify).

But I am unable to understand how to get Data for Heart Rate from BLE Device.

If I am only trying to read Rx UUID data value is not getting for Heart Rate.

How to get Data for different commands.

I have few things to clarification as following

  1. Reference bracelet increase B80-087
  2. Modify the protocol heart rate,increase blood pressure, oxygen two bits, since these two value are worth to a heart rate, heart rate so that along with the upload. This is currently dedicated to the two-bit B80-87 device.

Commands are as following

  1. Heart rate data request is 0x26
  2. Heart rate data returned is 0x27

And Data Format Description are as following

  1. [phone] heart rate data request ---> Equipment

Byte4 has Length 0

  1. [Heart] set up automatic test phone ----> Equipment

Byte4 (Length : 6) , Byte5(Measurement enable: 1 turn, 0 Close), Byte6 (Starting time: Time), Byte7(Starting time: Minute), Byte8(End Time: time), Byte9(End Time: Minute),Byte10(Measurement Interval in minutes A multiple of 10).

  1. [Return] heart rate data devices --> phone

Byte4(Length: 4+3*N), Byte5(Year), Byte6(Month),Byte7(day),Byte8(Number of heart rate data),Byte9(Time),Byte10(Minute),Byte11(Heart rate values) and optionals are Byte12(Blood pressure),Byte13(Blood oxygen value)

Heart rate data(data group 1..N)

(Dedicated to B80-087) Byte9(Time),Byte10(Minute),Byte11(Heart rate values) and optionals are Byte12(Blood pressure),Byte13(Blood oxygen value) Heart rate data(data group 1..N)

  1. Heart rate data to respond to phone ----> Equipment Byte4 (Length:1),Byte5(0: successfully received 1:reception failed).

Note: Heat rate and heart rate data in response to the return instruction data consistent

Related