Skip to content
stormluke edited this page Nov 10, 2014 · 2 revisions

Characteristics

Only includes Mili service (0xfee0).

UUID Description Properties
0xff01 Device Info Read
0xff02 Device Name Read, Write
0xff03 Notification Read, Notify
0xff04 User Info Read, Write
0xff05 Control Point Write
0xff06 Realtime Steps Read, Notify
0xff07 Activity Data Read, Notify
0xff08 Firmware Data Write without response
0xff09 LE Params Read, Write
0xff0a Datetime Read, Write
0xff0b Statistics Read, Write
0xff0c Battery Info Read, Notify
0xff0d Test Read, Write
0xff0e Sensor Data Read, Notify

Basics

Integer is encoded in little endian.

String is encoded in UTF-8.

Date:

00 01 02 03 04 05
year month day hour minute second

Device Info

00 - 03 04 05 06 07 08 - 11 12 - 15
feature appearance hardwareVersion profileVersion firmwareVersion

00 - 07 is deviceID.

Device Name

00 - 19
nameString

Notification

See Notification.

User Info

00 - 03 04 05 06 07 08 09 - 18 19
uid gender age height weight type alias checksum
  • gender: 0 - female, 1 - male.
  • type: 0 - normal, 1 - clearData, 2 - retainData
  • checksum: = CRC8(00-18) ^ theLastMACAddressByte

Control Point

See ControlPoint.

Realtime Steps

00 - 01
realtimeSteps

Activity Data

Meta - Data - Data - Data ... (n = count) - Meta - Data ...

Last Meta's count is 00.

Meta

00 01 - 06 07 - 08 09 - 10
type timeStamp duration count

Data

00 01 02
intensity steps category

Firmware Data

TODO

LE Params

00 - 01 02 - 03 04 - 05 06 - 07 08 - 09 10 - 11
connIntMin connIntMax latency timeout connInt advInt

Datetime

00 - 05 06 - 11
newerDate olderDate

When write Datetime, set olderDate all bytes to 0xff.

Statistics

00 - 03 04 - 07 08 - 11 12 - 15 16 - 19
wake vibrate light conn adv

Battery Info

00 01 - 06 07 08
level lastCharge chargesCount status

Test

See Test.

Sensor Data

00 - 01 02 - 03 04 - 05 06 - 07 ...
index axis1 axis2 axis3 repeat