1.Request write block size command
CMD | DATA |
0x01 | 无 |
Response for write block size command
CMD | DATA (short) |
0x01 | Block size |
注意:short是低位在前,高位在后
2.Request write screen command
CMD | DATA | |
0x02 | Image length(int) | Image type(废弃) |
注意:int 是低位在前,高位在后
Response for write screen command
CMD | DATA (byte) |
0x02 | Status 0:Success Other:Fail |
3.Request start transfer command
CMD | DATA |
0x03 | 无 |
Response for start transfer command
CMD | DATA | |
0x05 | Previous block status(byte) 0: success Other: Fail | Request block number(int) (Request block index) |
注意:int 是低位在前,高位在后
4.Request write cancel command
CMD | DATA |
0x04 | 无 |
Response for write cancel command
CMD | DATA (byte) |
0x04 | Status 0:Success Other: Fail |
5.Transfer data packet
Index(4 byte) | DATA(N bytes) |
Packet index (int) | N byte data (MAX=240) |
注意:int 是低位在前,高位在后
6.蓝牙标签交互图
7.蓝牙服务特征值UUID
Service特征值 |
0000fef0-0000-1000-8000-00805f9b34fb |
Notify特征值 |
0000fef1-0000-1000-8000-00805f9b34fb |
Write特征值 |
0000fef2-0000-1000-8000-00805f9b34fb |
8.广播数据解析
manufacturerId值为0x5053
Manufacturer ID | BYTE0 | BYTE1 | BYTE2 | BYTE3 | BYTE4 |
0x5053 | 设备类型(表1设备类型) [LOW] | 电池电压 | 软件版本 | 硬件版本 | 设备类型(表1设备类型) [HIGHT] |
注意:电池电压就是测量的电压扩大10倍。例如32代表电池为3.2V
9.屏幕参数说明
BIT7 | BIT6 | BIT5 | BIT4 | BIT3 | BIT2 | BIT1 | BIT0 |
Pixel3 | Pixel2 | Pixel1 | Manu2 | Manu1 | Color2 | Color1 | Image type |
序号 | [pixel7~pixel1] | 描述(屏幕分辨率) | 备注 |
1 | 000 | 212x104 | |
2 | 001 | 128x296 | |
3 | 010 | 400x300 | |
4 | 011 | 640x384 | |
5 | 100 | 保留 | |
6 | 101 | 保留 | |
7 | 110 | 保留 | |
8 | 111 | 保留 |
序号 | [Manu2~Manu1] | 描述(屏幕厂家) | 备注 |
1 | 00 | TFT | |
2 | 01 | EPA | |
3 | 10 | EPA-1 | |
4 | 11 | 保留 |
序号 | [Color2~Color1] | 描述(屏幕类型) | 备注 |
1 | 00 | 黑白色 | |
2 | 01 | 黑白红色 | |
3 | 10 | 黑白黄色 | |
4 | 11 | 保留 |
序号 | Image type | 描述(屏幕类型) | 备注 |
1 | 0 | 双镜像 | |
2 | 1 | 单镜像 |
BIT7 | BIT6 | BIT5 | BIT4 | BIT3 | BIT2 | BIT1 | BIT0 | DEC | HEX | 备注 |
Pixel3 | Pixel2 | Pixel1 | Manu2 | Manu1 | Color2 | Color1 | Image type | |||
0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 8 | 0x08 | EPA_LCD_212x104_BW |
0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 11 | 0x0B | EPA_LCD_212x104_BWR |
0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 40 | 0x28 | EPA_LCD_128x296_BW |
0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 43 | 0x2B | EPA_LCD_128x296_BWR |
0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 51 | 0x33 | EPA_LCD_128x296_1_BWR |
0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 72 | 0x48 | EPA_LCD_400x300_BW |
0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 75 | 0x4B | EPA_LCD_400x300_BWR |
0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 0x40 | TFT_LCD_400x300_BW |
0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 66 | 0x42 | TFT_LCD_400x300_BWR |
0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 104 | 0x68 | EPA_LCD_640x384_BW |
0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 106 | 0x6A | EPA_LCD_640x384_BWR |
表1设备类型
BIT7 | BIT6 | BIT5 | BIT4 | BIT3 | BIT2 | BIT1 | BIT0 | DEC | HEX | 备注 |
Pixel3 | Pixel2 | Pixel1 | Manu2 | Manu1 | Color2 | Color1 | Image type | |||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0x00 | EPA_LCD_212x104_BW |
0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 | 0x02 | EPA_LCD_212x104_BWR |
0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 32 | 0x20 | EPA_LCD_128x296_BW |
0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 34 | 0x22 | EPA_LCD_128x296_BWR |
0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 34 | 0x22 | EPA_LCD_128x296_BWR_1 |
0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 0x40 | EPA_LCD_400x300_BW |
0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 66 | 0x42 | EPA_LCD_400x300_BWR |
0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 0x40 | TFT_LCD_400x300_BW |
0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 66 | 0x42 | TFT_LCD_400x300_BWR |
0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 96 | 0x60 | EPA_LCD_640x384_BW |
0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 98 | 0x62 | EPA_LCD_640x384_BWR |