Bluetooth Protocol

健身怪兽-动感单车 蓝牙通讯协议
FIT MONSTER BLE Protocol for Bike

版本:V1.0 日期:2024.12.01 编辑:FIT MONSTER

目录 / Catalogue

  1. 文档信息 / Document Information
  2. 协议说明 / Protocol Description
    1. UART 配置 / Uart Config
    2. 数据帧格式 / Data Frame Format
    3. 数据帧描述 / Data Frame Description
    4. 数据类型 / Data Format
    5. 示例说明 / Example Explanation
    6. 表格颜色说明 / Table Color Legend
  3. 获取设备信息 / Device Information Retrieval
    1. 初始化指令介绍 / Initialization Command Introduction
    2. 示例说明(4bit 类型)/ Example Explanation (4-bit type)
  4. 获取设备参数 / Get Device Parameters
    1. 获取设备参数指令 / Get Device Parameters Command
    2. 配置参数表 / Configuration Table for Details
  5. 获取设备状态及数据 / Get Device Status and Data
  6. 获取运动数据 / Get Exercise Data
  7. 设备控制 / Device Control
    1. 设备就绪 / Device Ready
    2. 设备开始/继续 / Device Start/Continue
    3. 设备暂停 / Device Pause
    4. 设备停止 / Device Stop
    5. 设置阻力和坡度 / Set Resistance and Incline
  8. 设置运动模式(非必要)/ Set Exercise Mode (Optional)
  9. 设备扩展特征值(非必要)/ Device Extension Features (Optional)
  10. 连接状态位(非必要)/ Connection Status Bit (Optional)
  11. 蓝牙信息查询(非必要)/ Bluetooth Information Query (Optional)
  12. LED 屏心率阈值设置(非必要)/ LED Screen Heart Rate Threshold Setting (Optional)
  13. 音频控制(非必要)/ Audio Control (Optional)
  14. UUID 介绍(非必要)/ UUID Introduction (Optional)
  15. 附加功能配置(非必要)/ Additional Function Configuration (Optional)
  16. OTA 模式切换(非必要)/ OTA Mode Switching (Optional)

1. 文档信息 / Document Information

项目 / Item内容 / Content
当前版本 / Current VersionV1.0
修订日期 / Revision Date2024.12.01
修订人 / EditorSam

1.1 修订记录 / Revision History

版本号 / Version修订日期 / Revision Date修订人 / Editor修订内容 / Revision Content
V1.02024.12.01Sam新建 / New File

2. 协议说明 / Protocol Description

蓝牙通讯协议采用帧进行通讯,每一帧采用了起始头、校验码、终止尾的方式进行数据校验。
The Bluetooth communication protocol uses frames for data exchange, with each frame incorporating a start header, checksum, and end tail for data validation.

2.1 UART 配置 / Uart Config

2.2 数据帧格式 / Data Frame Format

起始码
START
0x02
指令
CMD
子指令
SCMD
数据 / DATA
校验码
FCS
终止码
END
0x03
1 Byte · 1 Byte · 1 Byte · N Bytes · 1 Byte · 1 Byte

2.3 数据帧描述 / Data Frame Description

字段 / Flag长度 / Length取值 / Value描述 / Description
起始码 / Open Code1 Byte0x02表征通讯帧开头,固定的 1 字节数据,为十六进制。
The communication frame start is represented by a fixed 1-byte value in hexadecimal.
指令 / Command1 Byte or 2 Bytes参考详细指令表 / Reference Detailed Instruction Table表指令类型,1 字节的指令或 2 字节包含子指令。
The instruction type consists of a 1-byte instruction or a 2-byte instruction containing a sub-instruction.
数据 / DataN BytesN Bytes写入或读取的数据,长度依指令不同而不同。数据采用【小端】对齐方式,即低字节在前,高字节在后。
The data to be written or read has a length that varies depending on the instruction. Data follows little-endian alignment, meaning the least significant byte (low byte) comes first, followed by the most significant byte (high byte).
例:数据 0x1234,数据码为 0x34 0x12;数据 0x12345678,数据码为 0x78 0x56 0x34 0x12。
Example: data 0x1234, the data code is 0x34 0x12; data 0x12345678, the data code is 0x78 0x56 0x34 0x12.
校验码 / FCS1 ByteN Bytes帧校验,所有指令码(CMD、SCMD)与数据码(DATA)字节按位异或后的值。
The frame checksum is calculated by XOR-ing all the instruction bytes (CMD, SCMD) and data bytes (DATA).
终止码 / End Code1 Byte0x03表征通讯帧结束,固定的 1 字节数据,为十六进制。
The communication frame end is represented by a fixed 1-byte value in hexadecimal.
注:数据采用【小端】对齐方式,即低字节在前、高字节在后。
Note: Data follows the [LSO…MSO], meaning the least significant byte (low byte) comes first, followed by the most significant byte (high byte).

2.4 数据类型 / Data Format

表示符 / Abbreviation类型 / Type长度 / Length
B字节 / 8 bits1 Byte
W整型 / 16 bits2 Bytes
L长整型 / 32 bits4 Bytes
N多字节 / N*8 bitsN Bytes
注:未指定类型数据均为字节型。
Note: Data of unspecified type is considered as byte-type.

2.5 示例说明 / Example Explanation

若设备收到未在本协议中出现的指令(格式符合标准并验证成功)时,应返回包含当前指令的帧,如下所示:
If the device receives a command that does not appear in this protocol (but the format is standard and validation is successful), it should return a frame containing the current command, as shown below:

蓝牙模块下发给设备指令 / Bluetooth Module Sends Command to Device

START
0x02
CMD
0x7F
SCMD
0x00
DATA
0x01 · 0x02
FCS
0x7C
END
0x03
0x02 · 0x7F · 0x00 · 0x01 0x02 · 0x7C · 0x03

设备返回 / Device Returns

START
0x02
CMD
0x7F
FCS
0x7F
END
0x03
0x02 · 0x7F · 0x7F · 0x03

2.6 表格颜色说明 / Table Color Legend

帧单元颜色说明 / Frame Cell Color Legend:
深蓝(START / END):起始码 / 终止码
蓝色(CMD / SCMD / FCS):指令 / 子指令 / 校验码
浅蓝(DATA):蓝牙模块下发给设备的指令数据(下同)
绿色(DATA):设备返回给蓝牙模块的指令数据(下同)

3. 获取设备信息 / Device Information Retrieval

3.1 初始化指令介绍 / Initialization Command Introduction

获取设备信息指令 / APP Send (Select the reply instructions according to the following device types) (0x50 - 0x00)

START
0x02
CMD
0x50
SCMD
0x00
FCS
0x50
END
0x03
0x02 · 0x50 · 0x00 · 0x50 · 0x03

3.1.1 设备类型表(4 位类型)/ Device Type Table (4-bit type)

设备类型 / Device Type十进制 / Decimal十六进制 / Hexadecimal字节 / Bytes
跑步机 / Treadmill00x04 位 / 4 bits
椭圆机 / Cross10x14 位 / 4 bits
健身车 / Bike20x24 位 / 4 bits
划船机 / Rower30x34 位 / 4 bits
动感单车 / Spinning bike40x44 位 / 4 bits
走步机 / Walking machine50x54 位 / 4 bits
甩脂机 / Fat-shaking machine90x94 位 / 4 bits
机械跑步机 / Mechanical treadmill100xa4 位 / 4 bits
楼梯机 / Staircase machine110xb4 位 / 4 bits
踏步机 / Stepper120xc4 位 / 4 bits
综合力量-非电机类 / Comprehensive strength - Non-electrical category140xe4 位 / 4 bits
不使用 / Not use150xf4 位 / 4 bits

3.1.2 设备返回(4 位类型)/ Device Returns (4-bit type) (0x50 - 0x00)

START
0x02
CMD
0x50
SCMD
0x00
DATA
厂商 / Manufacturer Code (W) · 机型 / Model Code (W)
FCS
xx
END
0x03
0x02 · 0x50 · 0x00 · 厂商码 (W) · 机型码 (W) · xx · 0x03
字段 / Flag说明 / Explanation
起始码 / Open Code0x02
指令 / Command0x50
子指令 / Sub-command0x00
厂商码 / Manufacturer Code16 位的无符号数,厂商代码由全创光电分配后固定 / A 16-bit unsigned number, assigned and fixed by FIT MONSTER.
机型码 / Model Code16 位的无符号数,需由制造商向全创光电官方申请 / A 16-bit unsigned number, which the manufacturer must apply for from the official FIT MONSTER.
FCS校验帧,所有指令码(CMD、SCMD)与数据码(DATA)字节按位异或后的值 / The value obtained by XORing all instruction codes (CMD, SCMD) and data bytes (DATA) bitwise.
结束码 / End Code0x03

3.1.3 设备类型表(2 字节类型)/ Device Type Table (2-byte type)

设备类型 / Device Type十进制 / Decimal十六进制 / Hexadecimal字节 / Bytes
跳绳 / Jump rope60x00062 字节 / 2 bytes
筋膜枪 / Fascia gun70x00072 字节 / 2 bytes
健腹轮 / Abdominal chakra80x00082 字节 / 2 bytes
综合力量-电机类 / Comprehensive strength - Electrical machinery category130x000d2 字节 / 2 bytes
登山机 / Mountaineering aircraft160x00102 字节 / 2 bytes
健身板 / Fitness board170x00112 字节 / 2 bytes

3.1.4 设备返回(2 字节类型)/ Device Returns (2-byte type) (0x50 - 0x00)

START
0x02
CMD
0x50
SCMD
0x00
DATA
类型 / Type (W) · 厂商 / Brand (W) · 机型 / Model (W)
FCS
xx
END
0x03
0x02 · 0x50 · 0x00 · 类型 (W) · 厂商 (W) · 机型 (W) · xx · 0x03
字段 / Flag说明 / Explanation
起始码 / Open Code0x02
指令 / Command0x50
子指令 / Sub-command0x00
类型 / Type2 字节,详细类型表于上面查看 / 2 bytes. The detailed type table can be viewed above
厂商码 / Manufacturer Code16 位的无符号数,厂商代码由全创光电分配后固定 / A 16-bit unsigned number, assigned and fixed by FIT MONSTER.
机型码 / Model Code16 位的无符号数,需由制造商向全创光电官方申请 / A 16-bit unsigned number, which the manufacturer must apply for from the official FIT MONSTER.
FCS校验帧,所有指令码(CMD、SCMD)与数据码(DATA)字节按位异或后的值 / The value obtained by XORing all instruction codes (CMD, SCMD) and data bytes (DATA) bitwise.
结束码 / End Code0x03

3.2 示例说明(4bit 类型)/ Example Explanation (4-bit type)

蓝牙发送 / Ble Send

START
0x02
CMD
0x50
SCMD
0x00
FCS
0x50
END
0x03
02 50 00 50 03

设备返回 / Device Returns

START
0x02
CMD
0x50
SCMD
0x00
DATA
0x34 · 0x12 · 0x78 · 0x56
FCS
xx
END
0x03
02 50 00 34 12 78 56 xx 03
字节 / Byte012345678
类型 / TypeSTARTCMDSCMDDATAFCSEND
值 / Value0x020x500x000x340x120x780x56xx0x03
注意:若设备无法在上电瞬间回复机型码(超时约 5-10s),请发重启命令 02 60 0A 6A 03。
If the device fails to respond with the model code at power-up (timeout approximately 5-10s); Please send the restart command: 02 60 0A 6A 03.
(注:波特率要对应得上,发送后模块不回复,直接进行重启)
(Note: Ensure the baud rate matches. After sending, the module will not respond; proceed directly with the restart.)

4. 获取设备参数 / Get Device Parameters

4.1 获取设备参数指令 / Get Device Parameters Command

该指令会在使用全创光电 APP 时进行访问,对于非全创光电且支持 FTMS 协议的设备,阻力范围默认为 0-255 档,设备接收到的值也为 0-255,可以根据这个范围去映射到自己的档位来调整阻力。
This command will be accessed when using the Sports Show APP. For devices that do not use Sports Show but support the FTMS protocol, the default resistance range is 0-255 levels. The values received by the device will also be in the range of 0-255, and you can map this range to your own levels to adjust the resistance.

获取设备参数指令 / Ble Send (0x41 - 0x02)

START
0x02
CMD
0x41
SCMD
0x02
FCS
0x43
END
0x03
0x02 · 0x41 · 0x02 · 0x43 · 0x03

设备返回 / Device Returns (0x41 - 0x02)

START
0x02
CMD
0x41
SCMD
0x02
DATA
阻力 (B) · 坡度 (B) · 配置 (B) · 预留 (B)
FCS
xx
END
0x03
0x02 · 0x41 · 0x02 · 阻力 (B) · 坡度 (B) · 配置 (B) · 预留 (B) · xx · 0x03
字段 / Flag说明 / Explanation
起始码 / Open Code0x02
指令 / Command0x41
子指令 / Sub-Command0x02
阻力 / Resistance设备可控制的最大阻力值,即阻力范围为 0~最大阻力值,若设备不支持阻力控制,则返回 0。
The maximum controllable resistance value of the device, i.e., the resistance range is 0 to the maximum resistance value. If the device does not support resistance control, it will return 0.
坡度 / Incline设备可控制的最大坡度值,即坡度范围为 0~最大坡度值,若设备不支持坡度控制,则返回 0。当设备类型为登山机时,手动表的坡度恒定为 1,仅有一种角度,角度根据机型码获取,电控表的坡度应当大于 1,且其坡度与角度数据根据机型获取。
The maximum controllable incline value of the device, i.e., the incline range is 0 to the maximum incline value. If the device does not support incline control, it will return 0. When the device type is a mountaineering machine, the slope of the manual meter is constant at 1, with only one Angle, which is obtained based on the model code. The slope of the electric control meter should be greater than 1, and its slope and Angle data are obtained based on the model.
配置 / Configuration详见配置表 / Refer to the configuration table for details.
预留 / Reserved返回 0 / Fill by 0
FCS帧校验,所有指令码(CMD、SCMD)与数据码(DATA)字节按位异或后的值 / The value obtained by XORing all instruction codes (CMD, SCMD) and data bytes (DATA) bitwise.
结束码 / End Code0x03

4.2 配置参数表 / Configuration Table for Details

位 / bit描述 / Description
00:公里 / Kilometers;1:英里 / Miles
10:不支持暂停 / Pause not supported;1:支持暂停 / Pause supported
21:支持心率预警 / Heart rate warning supported
3RFU(保留未使用)
4 - 7高四位(bit4-bit7)用于负坡度范围设置,无负坡度则填 0。
The upper four digits (bit4-bit7) are used to set the range of negative slope, and 0 is filled if there is no negative slope.

5. 获取设备状态及数据 / Get Device Status and Data

设备当前状态是 APP 运行的依据,也是 APP 与设备互通的基础,因此在 APP 连接蓝牙后就会以每秒 3 次的周期不间断获取设备状态。
The current status of the device is the basis for the operation of the APP and is essential for communication between the APP and the device. Therefore, after the APP connects via Bluetooth, the device status will be continuously retrieved at a rate of 3 times per second.

获取设备状态及数据指令 / Get Device Status and Data Command (0x42)

START
0x02
CMD
0x42
FCS
0x42
END
0x03
0x02 · 0x42 · 0x42 · 0x03

设备返回 / Device Returns (0x42)

STARTCMD状态 / Status (B)数据 / Data (N)FCSEND
0x020x42待机 / Idle (0x00)NAxx0x03
0x020x42启动中 / Starting (0x01)启动倒计时-秒 (B) / Startup Countdown - Seconds (B)xx0x03
0x020x42运行中 / Running (0x02)速度 (W) · 阻力 (B) · 频率 (W) · 心率 (B) · 功率 (W) · 坡度 (B) · 段索引 (B)xx0x03
0x020x42暂停 / Paused (0x03)NAxx0x03
0x020x42睡眠 / Sleep (0x14)NAxx0x03
0x020x42故障 / Error (0x15)故障码 / err code (B)xx0x03
数据项 / Data Item说明 / Explanation
速度 / Speed单位:0.01km/h 或 0.01mi/h,例如:1000 代表 10.00km/h 或 10.00mi/h。
Unit: 0.01 km/h or 0.01 mi/h. For example, 1000 represents 10.00 km/h or 10.00 mi/h.
阻力 / Resistance可以是档位:比如 1-16 或者 1-32;可以是阻值:0-255。
Can be gear levels: e.g., 1-16 or 1-32; or resistance values: 0-255.
频率 / Cadence/Frequency代表踏频、步频、桨频等,若不支持填充 0。
Represents cadence, step frequency, rowing frequency, etc. Fill with 0 if not supported.
心率 / Heart Rate单位:1。
Unit: 1.
功率 / Power单位:0.1 瓦,例如:1000 代表 100.0 瓦,若不支持填充 0。
Unit: 0.1 watts. For example, 1000 represents 100.0 watts. Fill with 0 if not supported.
坡度 / Incline单位:1%。
Unit: 1%.
段索引 / Segment Index段索引仅在程式模式时使用,从 1 开始到程式长度,若不支持填充 0。
Segment index is only used in program mode, starting from 1 to the program length. Fill with 0 if not supported.
启动倒计时 / Startup Countdown若设备不需要启动倒计时,状态直接从待机变化到运行。
If the device does not require a startup countdown, the state will change directly from standby to running.

6. 获取运动数据 / Get Exercise Data

设备运行后通过此指令来获取当前运动量数据。
After the device starts running, this command is used to retrieve the current exercise data.

获取运动数据指令 / APP Send (0x43 - 0x01)

START
0x02
CMD
0x43
SCMD
0x01
FCS
0x42
END
0x03
0x02 · 0x43 · 0x01 · 0x42 · 0x03

设备返回 / Device Returns (0x43 - 0x01)

START
0x02
CMD
0x43
SCMD
0x01
DATA
时间 (W) · 距离 (W) · 热量 (W) · 计数 (W)
FCS
xx
END
0x03
0x02 · 0x43 · 0x01 · 时间 (W) · 距离 (W) · 热量 (W) · 计数 (W) · xx · 0x03
数据项 / Data Item说明 / Explanation
时间 / Time代表运动从开始到当前的时间,以秒为单位。
Represents the time elapsed from the start of the exercise to the current moment, in seconds.
距离 / Distance在小于 32000 时,最高位为 0 单位为 1;大于等于 32000 时最高位置 1 同时单位为 10。
For distances less than 32,000, the highest bit is 0, and the unit is 1. For distances equal to or greater than 32,000, the highest bit is set to 1, and the unit changes to 10.
例如:当前距离为 30000 米,则返回 30000 (0x7530);若运动距离达到 50000 米时,返回 37768 (0x9388),值 = 距离除以 10 后将最高位置 1。也可以一开始将最高位置 1 来告诉 APP 距离都是以 10 米为单位。若为公制则传公制数据,英制则传英制数据。
For example: if the current distance is 30,000 meters, it returns 30,000 (0x7530); if the exercise distance reaches 50,000 meters, it returns 37,768 (0x9388), where the value = distance divided by 10 with the highest bit set to 1. Alternatively, the highest bit can be set to 1 from the beginning to indicate to the app that all distances use 10-meter units. Metric data should be sent for metric systems, and imperial data for imperial systems.
热量 / Calories单位为千卡 (0.1kcal)。
Unit: kilocalories (0.1 kcal).
计数 / Count代表运动从开始到当前的感应器计数。
Represents the sensor count from the start of the exercise to the current moment.

7. 设备控制 / Device Control

APP 在即将开始运行设备时,最先发送此指令给设备,通知设备即将开始,设备在接收到此指令后,进行运动数据重置,同时恢复相关设置值。
Before the device starts running, the app sends this command to notify the device of the upcoming start. Upon receiving this command, the device resets exercise data and restores related settings.

7.1 设备就绪 / Device Ready

设备就绪指令 / APP Send (0x44 - 0x01)

START
0x02
CMD
0x44
SCMD
0x01
FCS
0x45
END
0x03
0x02 · 0x44 · 0x01 · 0x45 · 0x03

设备返回 / Device Returns (0x44 - 0x01)

START
0x02
CMD
0x44
DATA
倒计时 / Countdown (B)
FCS
xx
END
0x03
0x02 · 0x44 · 倒计时 (B) · xx · 0x03
倒计时值:若设备需要倒计时提示用户,返回数据为倒计秒值;若不需请返回 0。
Countdown Value: If the device requires a countdown to notify the user, return the countdown value in seconds. If no countdown is needed, return 0.

7.2 设备开始/继续 / Device Start/Continue

发送就绪指令后,APP 会根据用户选择的模式写入相关数据(见下页其它指令部分),之后发送开始指令,设备开始运行,运动后可发送暂停或停止等指令进行相关控制。
After sending the ready command, the app will write the related data based on the mode selected by the user (see other command sections on the next page), and then send the start command. The device will begin operation. After that, the app can send pause or stop commands for further control.

开始/继续指令 / APP Send (0x44 - 0x02)

START
0x02
CMD
0x44
SCMD
0x02
FCS
0x46
END
0x03
0x02 · 0x44 · 0x02 · 0x46 · 0x03

设备返回 / Device Returns (0x44 - 0x02)

START
0x02
CMD
0x44
SCMD
0x02
FCS
xx
END
0x03
0x02 · 0x44 · 0x02 · xx · 0x03

7.3 设备暂停 / Device Pause

暂停指令 / APP Send (0x44 - 0x03)

START
0x02
CMD
0x44
SCMD
0x03
FCS
0x47
END
0x03
0x02 · 0x44 · 0x03 · 0x47 · 0x03

设备返回 / Device Returns (0x44 - 0x03)

START
0x02
CMD
0x44
SCMD
0x03
FCS
xx
END
0x03
0x02 · 0x44 · 0x03 · xx · 0x03

7.4 设备停止 / Device Stop

停止指令 / APP Send (0x44 - 0x04)

START
0x02
CMD
0x44
SCMD
0x04
FCS
0x48
END
0x03
0x02 · 0x44 · 0x04 · 0x48 · 0x03

设备返回 / Device Returns (0x44 - 0x04)

START
0x02
CMD
0x44
SCMD
0x04
FCS
xx
END
0x03
0x02 · 0x44 · 0x04 · xx · 0x03

7.5 设置阻力和坡度 / Set Resistance and Incline

运动过程中 APP 会根据需要发送此指令来控制设备,若设备不支持坡度则忽略坡度值。要求:设备接收此指令时不发提示音。
During exercise, the app will send this command as needed to control the device. If the device does not support incline, the incline value should be ignored. Requirement: The device must not emit a prompt tone when receiving this command.

控制阻力及坡度指令 / APP Send (0x44 - 0x05)

START
0x02
CMD
0x44
SCMD
0x05
DATA
阻力 / Resistance (B) · 坡度 / Incline (B)
FCS
xx
END
0x03
0x02 · 0x44 · 0x05 · 阻力 (B) · 坡度 (B) · xx · 0x03
数据项 / Data Item说明 / Explanation
阻力 / Resistance指令档位,比如 1-16,或者 1-32,根据车表支持的档位。
Command Levels, such as 1-16 or 1-32, depending on the levels supported by the console.
坡度 / Incline单位:1%。
Unit: 1%.

设备返回 / Device Returns (0x44 - 0x05)

START
0x02
CMD
0x44
SCMD
0x05
FCS
xx
END
0x03
0x02 · 0x44 · 0x05 · xx · 0x03

8. 设置运动模式(非必要)/ Set Exercise Mode (Optional)

开始运动前,APP 会发送此指令来明确设备要进行的运动模式。
Before starting exercise, the app will send this command to specify the exercise mode for the device.

设置运动模式指令 / APP Send (0x44 - 0x0B)

START
0x02
CMD
0x44
SCMD
0x0B
DATA
0x00000000 · 模式 / Mode (B) · 0x00 · 目标 / Target Value
(阻力 / Resistance (B) · 心率 / Heart Rate (B) · 功率 / Power (W))
FCS
xx
END
0x03
0x02 · 0x44 · 0x0B · 0x00000000 · 模式 (B) · 0x00 · 目标值 · xx · 0x03
* 有控制模式时,必须有倒计时模式 / When there is a control mode, a countdown mode must be available.
参数 / Parameter说明 / Explanation
模式 / Mode (B)0x10 阻力控制模式 / Ctrl mode for Resistance;
0x20 心率控制模式 / Ctrl mode for Heart Rate;
0x30 功率控制模式 / Ctrl mode for Power
目标 / Target阻力控制模式:档位 / Resistance Control Mode: Levels
目标 / Target心率控制模式:心率次数 / Heart Rate Control Mode: Heart Rate Count
目标 / Target功率控制模式:单位 W / Power Control Mode: Unit W

设备返回 / Device Returns (0x44 - 0x0B)

START
0x02
CMD
0x44
SCMD
0x0B
FCS
xx
END
0x03
0x02 · 0x44 · 0x0B · xx · 0x03

9. 设备扩展特征值(非必要)/ Device Extension Features (Optional)

此功能仅作为设备控制 (0x53) 的补充项!例如手环数据通过 APP 下发到设备:心率下发、步数下发、卡路里下发。
This function serves as a supplement to device control (0x53). For example, data from a fitness band (heart rate, steps, calories) can be sent to the device via the app.

例:02 53 9f (02 00) 9A FCS 03,此时仅下发心率。
e.g. 02 53 9f (02 00) 9A FCS 03 sends heart rate data only.

设备扩展特征值指令 / APP Send (0x53 - 0x9f)

参数 / Parameters格式 / Type大小 / Length取值 / Value & 解释 / Explanation
Flags16 Bits2 Octets Bit0:参数包含解锁码 / Parameters include an unlock code;
Bit1:参数包含心率 / Parameters include heart rate;
Bit2:参数包含总卡路里 / Parameters include total calories;
Bit3:参数包含动态卡路里 / Parameters include dynamic calories;
Bit4:参数包含计步 / Parameters include step count;
Bit5-15:保留 / Reserved
UnlockCodeOctets6厂家自定义,6 字节解锁码,解锁码为 0-F 的 6 个数字。
Manufacturer-defined, 6-byte unlock code. The unlock code consists of six digits ranging from 0 to F.
Heart RateUint81心率值 / Heart rate value
Total EnergyUint162总卡路里 / Total calories
Dynamic EnergyUint162动态卡路里 / Dynamic calories
Step CountUint162实时步数 / Real-time step count

10. 连接状态位(非必要)/ Connection Status Bit (Optional)

10.1 设备主动查询蓝牙连接状态

设备主动发送该指令查询蓝牙连接状态 (0x44 - 0xC3)。
The device actively sends this command to query the Bluetooth connection status (0x44 - 0xC3)。

(V3X,1.1.3 及以上版本,D2/C1/T4,1.3.0 及以上版本支持)
(supported in V3X, version 1.1.3 and above, and D2/C1/T4, version 1.3.0 and above):

START
0x02
CMD
0x44
SCMD
0xC3
FCS
0x87
END
0x03
0x02 · 0x44 · 0xC3 · 0x87 · 0x03

10.2 BLE 发送连接状态

BLE 发送连接状态 (0x44 - 0xC3)。
BLE Sends Connection Status (0x44 - 0xC3)。

(V3X,1.1.2 及以上版本,D2/C1/T4,1.3.0 及以上版本支持)
(Supported in V3X, version 1.1.2 and above, D2/C1/T4, version 1.3.0 and above):

START
0x02
CMD
0x44
SCMD
0xC3
DATA
连接状态 / Connection Status (B)
FCS
xx
END
0x03
0x02 · 0x44 · 0xC3 · 连接状态 (B) · xx · 0x03
连接状态:0=未连接,1=已连接。设备无需回复。
Connection Status: 0 = Not connected; 1 = Connected. The device does not need to reply.

11. 蓝牙信息查询(非必要)/ Bluetooth Information Query (Optional)

11.1 查询蓝牙名称 0x44-0xC5

设备主动发送该指令查询蓝牙名称。
The device actively sends this command to query the Bluetooth name.

设备发送指令 / Command Sent by Device

START
0x02
CMD
0x44
SCMD
0xC5
FCS
0x81
END
0x03
0x02 · 0x44 · 0xC5 · 0x81 · 0x03

蓝牙模块反馈 / Feedback from Bluetooth module (0x44-0xC5)

START
0x02
CMD
0x44
SCMD
0xC5
DATA (1-14 Bytes)(大端)(MSO…LSO)
XXXX (eg:"FS-xxxxxx")
FCS
xx
END
0x03
0x02 · 0x44 · 0xC5 · 名称数据 (1-14 Bytes) · xx · 0x03

11.2 查询蓝牙 MAC 地址 0x44-0xC6

设备主动发送该指令查询蓝牙 MAC 地址。
The device actively sends this command to query the Bluetooth MAC address.

(Supported in V3X, version 1.1.3 and above, D2/C1/T4, version 1.3.0 and above)

设备发送指令 / Command Sent by Device

START
0x02
CMD
0x44
SCMD
0xC6
FCS
0x82
END
0x03
0x02 · 0x44 · 0xC6 · 0x82 · 0x03

蓝牙模块反馈 / Feedback from Bluetooth module (0x44-0xC6)

START
0x02
CMD
0x44
SCMD
0xC6
DATA (1-14 Bytes)(大端)(MSO…LSO)
XX:XX:XX:XX:XX:XX
FCS
xx
END
0x03
0x02 · 0x44 · 0xC6 · MAC 地址 · xx · 0x03

11.3 修改蓝牙名称 0x44-0xC7

设备主动修改蓝牙名称。
The device actively modifies the Bluetooth name.

(Supported in V3X, version 1.1.3 and above, D2/C1/T4, version 1.3.0 and above)

设备发送指令 / Command Sent by Device

START
0x02
CMD
0x44
SCMD
0xC7
DATA (1-14 Bytes)(大端 / MSO...LSO)
xx
FCS
xx
END
0x03
0x02 · 0x44 · 0xC7 · 名称数据 (1-14 Bytes) · xx · 0x03

蓝牙模块反馈 / Feedback from Bluetooth module (0x44-0xC7)

(Supported in V3X, version 1.1.7, 2.0.5 and later; D2/C1/T4, version 1.4.0 and later)

START
0x02
CMD
0x44
SCMD
0xC7
DATA
确认码 / verification code
FCS
xx
END
0x03
0x02 · 0x44 · 0xC7 · 确认码 · xx · 0x03
推荐流程:模块初始化完成后,查询名称,若不是目标名称,再进行改名。
Recommended process: After the module initialization is completed, query the name. If it is not the target name, then rename it.

11.4 查询音频名称 0x44-0xD1

设备主动发送该指令查询音频名称。
The device actively sends this command to query the audio name.

(Supported in D2/C1/T4, version 1.3.7 and above)

设备发送指令 / Command Sent by Device

START
0x02
CMD
0x44
SCMD
0xD1
FCS
0x80
END
0x03
0x02 · 0x44 · 0xD1 · 0x80 · 0x03

蓝牙模块反馈 / Feedback from Bluetooth module (0x44-0xD1)

START
0x02
CMD
0x44
SCMD
0xD1
DATA (1-29 Bytes)(大端 / MSO…LSO)
XXXX (eg:"FS-xxxxxx")
FCS
xx
END
0x03
0x02 · 0x44 · 0xD1 · 音频名称数据 (1-29 Bytes) · xx · 0x03

11.5 修改音频名称 0x44-0xC8

设备主动修改音频名称。
The device actively modifies the audio name.

(Not supported in V3X; supported in D2/C1/T4, version 1.3.4 and above)

设备发送指令 / Command Sent by Device

START
0x02
CMD
0x44
SCMD
0xC8
DATA (1-29 Bytes)(大端 / MSO…LSO)
xx
FCS
xx
END
0x03
0x02 · 0x44 · 0xC8 · 音频名称数据 (1-29 Bytes) · xx · 0x03

蓝牙模块反馈 / Feedback from Bluetooth module

START
0x02
CMD
0x44
SCMD
0xC8
FCS
xx
END
0x03
0x02 · 0x44 · 0xC8 · xx · 0x03
之后必须要发送修改蓝牙名称的指令才会进行保存,如果蓝牙名称不修改,直接发送 02 44 c7 83 03。
To save the changes, the command to modify the Bluetooth name must be sent. If the Bluetooth name is not modified, directly send 02 44 C7 83 03.

11.6 查询蓝牙型号 0x44-0xC9

设备主动查询蓝牙型号。
Device Actively Queries Bluetooth Model.

(Supported in V3X, version 1.1.6 and above; V3X Master-Slave version 2.0.3 and above; D2/C1/T4, version 1.3.4 and above)

设备发送指令 / Command Sent by Device

START
0x02
CMD
0x44
SCMD
0xC9
FCS
xx
END
0x03
0x02 · 0x44 · 0xC9 · xx · 0x03

蓝牙模块反馈 / Feedback from Bluetooth module

START
0x02
CMD
0x44
SCMD
0xC9
DATA(大端 / MSO…LSO)
xxx (eg: FS-BT-C1)
FCS
xx
END
0x03
0x02 · 0x44 · 0xC9 · 型号数据 · xx · 0x03
查询后蓝牙回复型号,例如:FS-BT-C1。
After querying, the Bluetooth module responds with the model, e.g., FS-BT-C1.

11.7 查询蓝牙编号 0x44-0xCA

设备主动查询蓝牙编号。
Device Actively Queries Bluetooth Serial Number.

(Supported in V3X, version 1.1.6 and above; V3X Master-Slave version 2.0.3 and above; D2/C1/T4, version 1.3.4 and above)

设备发送指令 / Command Sent by Device

START
0x02
CMD
0x44
SCMD
0xCA
FCS
xx
END
0x03
0x02 · 0x44 · 0xCA · xx · 0x03

蓝牙模块反馈 / Feedback from Bluetooth module

START
0x02
CMD
0x44
SCMD
0xCA
DATA(大端 / MSO…LSO)
xxx (eg: FS240528001)
FCS
xx
END
0x03
0x02 · 0x44 · 0xCA · 编号数据 · xx · 0x03
查询后蓝牙回复编号,例如:FS240528001。
After querying, the Bluetooth module responds with the serial number, e.g., FS240528001.

11.8 蓝牙音频状态查询 0x44-0xCB

设备主动进行蓝牙音频状态查询。
Device Actively Queries Bluetooth Audio Status.

(Not supported in V3X; supported only in C1/T4, version 1.3.4 and above)

设备发送指令 / Command Sent by Device

START
0x02
CMD
0x44
SCMD
0xCB
FCS
0x8F
END
0x03
0x02 · 0x44 · 0xCB · 0x8F · 0x03

蓝牙模块反馈 / Feedback from Bluetooth module

START
0x02
CMD
0x44
SCMD
0xCB
DATA
音频连接状态 / Audio connection status (B) · 播放状态 / Play state (B)
预留 / Reserved
0x00 · 0x00
FCS
xx
END
0x03
0x02 · 0x44 · 0xCB · 音频连接状态 (B) · 播放状态 (B) · 0x00 · 0x00 · xx · 0x03

12. LED 屏心率阈值设置(非必要)/ LED Screen Heart Rate Threshold Setting (Optional)

设备发送数据 / Data Sent by Device 0x46-0x03

(Supported in V3X, version 1.1.3 and above, D2/C1/T4, version 1.3.0 and above)

START
0x02
CMD
0x46
SCMD
0x03
DATA
心率阈值 / Heart Rate Limit Value (B)
FCS
xx
END
0x03
0x02 · 0x46 · 0x03 · 心率阈值 (B) · xx · 0x03

蓝牙模块发送的数据 / Data Sent by Bluetooth Module 0x46-0x03

(Supported in V3X, version 1.1.3 and above, D2/C1/T4, version 1.3.0 and above)

START
0x02
CMD
0x46
SCMD
0x03
FCS
xx
END
0x03
0x02 · 0x46 · 0x03 · xx · 0x03

13. 音频控制(非必要)/ Audio Control (Optional)

音频控制需要下位机"主动"上报!在程序设计上,该功能优先级应该处于低优先级的状态。
Audio control requires the lower computer to actively report! In program design, this function should have a low priority status.

(Only supports Bluetooth modules of C1/D2/T4)

13.1 播放、暂停 0x62 - 0x01

设备上报播放、暂停指令 / Device reports the play/pause command:

START
0x02
CMD
0x62
SCMD
0x01
FCS
xx
END
0x03
0x02 · 0x62 · 0x01 · xx · 0x03

13.2 停止 0x62 - 0x02

设备上报停止指令 / Device reports the stop command:

START
0x02
CMD
0x62
SCMD
0x02
FCS
xx
END
0x03
0x02 · 0x62 · 0x02 · xx · 0x03

13.3 下一首 0x62 - 0x03

设备上报下一首指令 / Device reports the next command:

START
0x02
CMD
0x62
SCMD
0x03
FCS
xx
END
0x03
0x02 · 0x62 · 0x03 · xx · 0x03

13.4 上一首 0x62 - 0x04

设备上报上一首指令 / Device reports the previous command:

START
0x02
CMD
0x62
SCMD
0x04
FCS
xx
END
0x03
0x02 · 0x62 · 0x04 · xx · 0x03

13.5 音量+ 0x62 - 0x0B

设备上报音量+指令 / Device reports the volume up command:

START
0x02
CMD
0x62
SCMD
0x0B
FCS
xx
END
0x03
0x02 · 0x62 · 0x0B · xx · 0x03

13.6 音量- 0x62 - 0x0C

设备上报音量-指令 / Device reports the volume down command:

START
0x02
CMD
0x62
SCMD
0x0C
FCS
xx
END
0x03
0x02 · 0x62 · 0x0C · xx · 0x03

14. UUID 介绍(非必要)/ UUID Introduction (Optional)

开发 APP 时,用以下服务进行数据交互即可,协议一致。
When developing the app, use the following services for data interaction: the protocol is consistent.

类型 / TypeUUID (16 bits)备注 / Remarks
服务 / ServiceFFF0广播时支持,连接后可获取。
Supported during broadcasting, can be obtained after connection.
接收特征 / Receive CharacteristicFFF1Notify、Indicate
发送特征 / Send CharacteristicFFF2Write WithoutResponse

15. 附加功能配置(非必要)/ Additional Function Configuration (Optional)

15.1 配置蓝牙附加功能 0x44-0xD2

设备主动发送该指令配置蓝牙的附加功能。
The device actively sends this instruction to configure the additional functions of Bluetooth.

设备发送指令 / Command Sent by Device

START
0x02
CMD
0x44
SCMD
0xD2
配置数据1 / Configuration Data 1 (1 Byte) · 配置数据2 / Configuration Data 2 (1 Byte) · 配置数据3 / Configuration Data 3 (1 Byte) · 配置数据4 / Configuration Data 4 (5 Bytes)
FCS
xx
END
0x03
0x02 · 0x44 · 0xD2 · 配置数据1 (1B) · 配置数据2 (1B) · 配置数据3 (1B) · 配置数据4 (5B) · xx · 0x03

配置数据说明 / Configuration Data Explanation

配置数据1 / Configuration Data 1:(Supported by V3X model V2.0.6+; F5 model V1.0.0+; not supported by other models)

位 / Bit说明 / Explanation位 / Bit说明 / Explanation
01=无线心率打开 / Wireless heart rate on;0=无线心率关闭 / Wireless heart rate off4RFU(预留 / Reserved)
1RFU5RFU
2RFU6RFU
3RFU7RFU

配置数据2 / Configuration Data 2:(Supported by F5 model V1.0+; C1/T4 model V1.4.0+; not supported by other models)

设置密码为 "0000" 时,默认为不需要密码 / When the password is set to "0000", no password is required by default.
字节 / Byte说明 / Explanation
Byte 01=音频配对需要密码 / Audio pairing requires password;0=音频配对不需要密码 / Audio pairing does not require password
Byte 1~4配对密码 / Pairing password (eg: 1234, only numbers 0~9)

配置数据3 / Configuration Data 3:预留,按 0 填充 / Reserved, fill with 0

配置数据4 / Configuration Data 4:预留,按 0 填充 / Reserved, fill with 0

蓝牙模块反馈 / Feedback from Bluetooth module (0x44-0xD2)

START
0x02
CMD
0x44
SCMD
0xD2
FCS
xx
END
0x03
0x02 · 0x44 · 0xD2 · xx · 0x03
配置之后蓝牙模块需要重新上电后方可生效 / After configuration, the Bluetooth module needs to be powered on again for it to take effect.

16. OTA 模式切换(下控 OTA,非蓝牙模块 OTA)(非必要)/ OTA Mode Switching (lower control OTA, not Bluetooth module OTA) (Optional)

设备主动发送该指令查询蓝牙名称(目前仅 C1/D2/T4 的 1.4.0 版本支持)。
The device actively sends this command to query the Bluetooth name (currently only supported by version 1.4.0 of C1/D2/T4).

设备发送指令 / Command Sent by Device

START
0x02
CMD
0x44
SCMD
0xCC
DATA
0X00:关闭 OTA 模式 / Turn off OTA mode;0X01:开启 OTA 模式 / Enable OTA mode
FCS
XX
END
0x03
0x02 · 0x44 · 0xCC · 0x00/0x01 · XX · 0x03

蓝牙模块反馈 / Feedback from Bluetooth module

START
0x02
CMD
0x44
SCMD
0xCC
FCS
xx
END
0x03
0x02 · 0x44 · 0xCC · xx · 0x03
该功能需要前期与全创光电联调完成后,将需要 OTA 的固件上传至全创光电后台即可完成,下控部分需要能够支持该方式升级。
This function requires initial joint debugging with Sports Show; after that, upload the OTA-required firmware to the Sports Show backend to complete. The lower control part must support this upgrade method.
蓝牙回复该指令后进入透传模式 / After Bluetooth responds to this command, it enters transparent transmission mode.

透传通道为 / The transparent transmission channel is: