0% found this document useful (0 votes)
183 views3 pages

Munication Protocol v0 3

The document describes the communication protocol for a Bluetooth scale. It outlines the service and characteristic UUIDs used for transmitting unlocked data (1.1), locked measurement data (1.2), historical data (1.3), battery level (1.4), time (1.5), OTA updates (1.6), and unit selection (1.7). It also details the broadcast package specifications for advertising device information over Bluetooth.

Uploaded by

Hanif Budiarto
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
183 views3 pages

Munication Protocol v0 3

The document describes the communication protocol for a Bluetooth scale. It outlines the service and characteristic UUIDs used for transmitting unlocked data (1.1), locked measurement data (1.2), historical data (1.3), battery level (1.4), time (1.5), OTA updates (1.6), and unit selection (1.7). It also details the broadcast package specifications for advertising device information over Bluetooth.

Uploaded by

Hanif Budiarto
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Page 1

Core Sea Bluetooth Scale Cloud Edition Communication Protocol v

Communication protocol
1.1 Unlocked data
Service UUID: 0xFFF0
Charateristic UUID: 0xFFF1 notify
Charateristic UUID: 0xFFF2 write
The data format is the same as the 1.2 lock data format

1.2 Locking data


Service UUID: 0x181B
Charateristic UUID: 0x2A9C read,indicate

Byte definition Value Description


0-1 Flags 16bit
2-3 time Uint16 year
4 Uint8 Month 1~12
5 Uint8 Day 1~31
6 Uint8 0~23
7 Uint8 0~59
8 Uint8 Seconds 0~59
9-10 Unt16 First electrode resistance, accuracy 0.1
11-12 Unt16 body weight
13-14 Unt16 Second electrode resistance (if any), accuracy 0.1
15 Uint8 Message properties, see Table 1.
16-19 -- Reserved
Eg: weight scale: resistance is 0 flags 0x0002 byte0:02 byte1:00
Eg: body fat scale (one resistor): flags 0x0306 byte0:06 byte1:03
Eg: body fat scale (two resistors): flags 0x2306 byte0:06 byte1:23
Note: When uint16 data is sent, the low bit is first and the high bit is after.

1.3 Historical data


Service UUID: 0x181B
Charateristic UUID: 0xFA9C (custom)
Indicate
The data format is the same as the 1.2 measurement data format. After the FA9C is indicated, the historical data is spit out and the data is spit out.
Between
Increase the time interval from 0 to 200ms.
Page 2

1.4 Battery power


Service UUID : 0x180F
Charateristic UUID : 0x2A19 read,notify

Consistent with the gatt standard, the power data is 0~100.

1.5 time
Service UUID: 0x1805
Charateristic UUID: 0x2A08 read,write,notify

Byte Value Description


0-1 Uint16 year
2 Uint8 Month 1~12
3 Uint8 Day 1~31
4 Uint8 Time 1~31
5 Uint8 0~59
6 Uint8 Seconds 0~59

1.6 OTA
Service UUID: 0xFAA0
Charateristic UUID: 0xFAA1 notify
Charateristic UUID: 0xFAA2 write

1.7 Synchronous APP unit


Ervice UUID: 0xFFF0
Charateristic UUID: 0xFFF2
Byte Value Description
0 Uint8 Message type
01: Unit switching
1 Uint8 Unit value:
00:kg
01: LB
02: Jin
03:stb
Page 3

2. Broadcast package specification


To access the OKOK Bluetooth device, the broadcast package must meet the specifications to access, and the broadcast package contains the manufacturer.
Data, format requirements are as follows:

Byte Description
0-1 FFF0 (core sea logo)
2 Broadcast version number (current 02)
3 Message properties, see Table 1.
4~5 body weight
6~9 Product ID
10~11 Bluetooth version
12~13 Scale algorithm version
14-19 Mac address

note:
All data is little endian
Table I
Message bodyBit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
Attributes Reserved Unit selection Decimal point Reserved
Bit4-3 unit selection
00 = KG (default)
01 = kg
10 = LB
11 = ST: LB

Bit2-1 decimal number selection


00 = 2 decimal places (default)
01 = 0 decimal place
10 = 1 decimal place
If you keep 1 decimal place, the uploaded weight value is 10 times the actual value. If you keep 2 decimal places, the uploaded weight value is actually
100 times the value, and so on.
Note: 1.ST: LB unit default convention: ST bytes are fixed to integers, and LB bytes are fixed to 1 decimal place. Decimal point at this time
The selection bits represent the decimal places after conversion to other units.

2. Business specifications
If the device takes time, synchronize the time each time the app connects to the device, do not use the device relative time.
The device needs to clear the data after the historical data on the device is read.
When the device broadcasts, the duration is no less than 45 seconds.
When Bluetooth is not connected, the weight is sent in broadcast format; when Bluetooth is connected, the unlocked data is unlocked.
For the data channel, the locked data uses the locked data channel and stops the non-locked data channel transmission.
Some devices (with scales, blood glucose meters, blood pressure monitors), after the panel light is off, at least 60 seconds of connection is required.

You might also like