-
-
Notifications
You must be signed in to change notification settings - Fork 298
Beurer Sanitas
Erik Johansson edited this page Dec 4, 2018
·
1 revision
Protocol description for Beurer/Sanitas scales (code).
-
<sb>
: start byte (e7 or f7) -
<alt sb Y>
: alternative start byte (eY or fY) -
<uid>
: user ID (8 bytes, BE) -
<name>
: 3 characters (bytes) -
<timestamp>
: unix timestamp (4 bytes) -
<weight>
: 2 bytes, BE (unit g / 50) -
<impedance>
: 2 bytes, BE
All protocol bytes are in hex. Writes are done to characteristic 0xffe1 on the service 0xffe0. This is also where notifications are received from.
- Enable notifications.
- Write:
<alt sb 6> 01
- Notification:
<alt sb 6> 00 20
- Write:
<alt sb 9> <timestamp>
- Write:
<sb> 4f <uid>
- Notification:
<sb> f0 4f <??> <battery> <wthr> <fthr> <unit> <ue> <urwe> <ume> <version>
<uid>
can be given as all 0 (or other invalid user id) to query scale status only.
-
<battery>
: battery level -
<wthr>
: weight threshold (unit g / 100) -
<fthr>
: fat threshold -
<unit>
: 1 = kg, 2 = lb, 4 = st -
<ue>, <urwe>, <ume>
: user (reference weight, measurement) exists -
<version>
: scale version
- Write:
<sb> 4e <wthr> <fthr>
- Notification:
<sb> f0 4e 00
Thresholds in original app:
- 0x28 0xdc (4.0 22.0)
- 0x14 0xdc (2.0 22.0)
- 0x0a 0x14 (1.0 2.0)
After scale reset: 0x14 0x14 (2.0 2.0)
- Write:
<sb> 4d <unit>
- Notification:
<sb> f0 4d 00
- Write:
<alt sb a> 2
- Write:
<sb> 33
- Notification:
<sb> f0 33 00 <count> <max>
- Notification:
<sb> 34 <count> <current> <uid> <name> <year>
- Write:
<sb> f1 34 <count> <current>
- Goto 3 if
<count> != <current>
- Write:
<sb> 36 <uid>
- Notification:
<sb> f0 36 00 <name> <year> <month> <day> <height> <sex|activity>
-
<month>
: January == 0 -
<sex|activity>
: sex (female = 0x00, male = 0x80) | activity level 1 - 5
- Write:
<sb> 31 <uid> <name> <year> <month> <day> <height> <sex|activity>
- Notification:
<sb> f0 31 00
- Perform initial measurement.
Status in notification: 00 (ok), 01 (full), 02 (uid taken), 03 (name used)
- Write:
<sb> 35 <uid> ... (same as when adding user)
- Notification:
<sb> f0 35 00
- Write:
<sb> 32 <uid>
- Notification:
<sb> f0 32 00
- Write:
<sb> 40 <uid>
- Notification:
<sb> f0 40 00
- Notification:
<sb> 58 <status> <weight>
- Write:
<sb> f1 58 <status> <weight MSB>
- Goto 3 if
<status> != 0
- Notification:
<sb> 59 <count> <current> 01 <uid>
- Write:
<sb> f1 59 <count> <current>
- Notification:
<sb> 59 <count> <current> <11 bytes data>
- Write:
<sb> f1 59 <count> <current>
- Goto 8 if
<count> != <current>
- Step 1 selects the user with the given ID.
-
<status>
: 0 for stable measurement, 1 otherwise - All
<data>
from step 8 is joined and parsed as a measurement.
- Write:
<sb> 41 <uid>
- Notification:
<sb> f0 41 <count> 00
- Notification:
<sb> 42 <count> <current> <11 bytes data>
- Write:
<sb> f1 42 <count> <current>
- Goto 3 if
<count> != <current>
- All
<data>
from step 3 is joined and parsed as<count> / 2
measurement(s).
- Write:
<sb> 43 <uid>
- Notification:
<sb> f0 43 00
22 bytes of data:
<timestamp> <weight> <impedance> <fat> <water> <muscle> <bone> <BMR> <AMR> <BMI>
- Write:
<sb> 46
- Notification:
<sb> f0 46 00
- Notification:
<sb> 47 <count> <current> <mem> <timestamp> <weight> <impedance>
- Write:
<sb> f1 47 <count> <current>
- Goto 3 if
<count> != <current>
-
<mem>
: index in memory (stays constant after removal)
- Write:
<sb> 4b <uid> <timestamp> <weight> <impedance> <mem>
- Notification:
<sb> f0 4b 00
- Notification:
<sb> 4c <count> <current> <11 bytes data>
- Write:
<sb> f1 4c <count> <current>
- Goto 3 if
<count> != <current>
- All
<data>
from step 3 is joined and parsed as a measurement.
- Write:
<sb> 49 <mem>
- Notification:
<sb> f0 49 00