| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | ||||||||||||||||||||||||||
2 | Bluetooth Thermometer (IR) Communication Protocol | Gadget | ||||||||||||||||||||||||
3 | 1. RS232 Transmit agreement: | Command Function Code | Take the inverse code | |||||||||||||||||||||||
4 | [9600 Baud rate] [None Party] [8 Bit data] [1 Bit stop] | A0 | 5F | |||||||||||||||||||||||
5 | BLE UUID: | 91 | 6E | |||||||||||||||||||||||
6 | Receive:Service UUID:0xFFF0, Characteristic UUID:0xFFF1 | |||||||||||||||||||||||||
7 | Send out:Service UUID:0xFFF0, Characteristic UUID:0xFFF2 | |||||||||||||||||||||||||
8 | 2. Data Protocol: | |||||||||||||||||||||||||
9 | 2.1 For a complete instruction: | |||||||||||||||||||||||||
10 | Directive 2.1.0 is divided into three formats as follows: | |||||||||||||||||||||||||
11 | Class A directive | A:Sending Control Instructions on Mobile Phone: 6Bytes | ||||||||||||||||||||||||
12 | Byte1 | Byte2 | Byte3 | Byte4 | Byte5 | Byte6 | ||||||||||||||||||||
13 | FE | FD | XX | XX | 0D | 0A | ||||||||||||||||||||
14 | Note: Specific instructions refer to 2.2.0~2.2.1 instructions. | |||||||||||||||||||||||||
15 | Class B instruction | B: Device sends temperature result or replies ack command: 7Bytes | ||||||||||||||||||||||||
16 | Byte1 | Byte2 | Byte3 | Byte4 | Byte5 | Byte6 | Byte7 | Byte8 | ||||||||||||||||||
17 | FE | FD | CF Flag bit | XX | XX | XX | 0D | 0A | ||||||||||||||||||
18 | Note: Specific instructions refer to 2.2.2 instructions. | |||||||||||||||||||||||||
19 | Note: If Byte3 = 0x1A, then degree C, Byte3 = 0x15, then degree F | |||||||||||||||||||||||||
20 | 2.1.1 Command head 0xFE, 0xFD; command tail 0x0D, 0x0A。 | |||||||||||||||||||||||||
21 | 2.1.2 Data area | |||||||||||||||||||||||||
22 | Class A directive | :Byte3、Byte4 | ||||||||||||||||||||||||
23 | Class B instruction | :Byte3、Byte4、Byte5、Byte6 | ||||||||||||||||||||||||
24 | 2.2 Command specification: | |||||||||||||||||||||||||
25 | The following instructions are sent once by mobile phone. If IR does not reply within 0.5 seconds, it will be retransmitted, up to three times. If no response is deemed to be invalid for the APP button, the APP button will be re-keyed. | |||||||||||||||||||||||||
26 | 2.2.0: | Infrared thermometer starts by pressing the button and powers Bluetooth module, waiting for Bluetooth connection. If the infrared thermometer receives the following command and replies to ACK, the connection will be successful. | 0.5S once, until success | |||||||||||||||||||||||
27 | Class A directive | A_a: | FE FD AA A0 0D 0A | After receiving the instruction, IR replies to the instruction code to retrieve and execute the function:FE FD 1A AA 55 5F 0D 0A | ||||||||||||||||||||||
28 | Note: byte4 = 0xAA means sending and receiving commands, byte5 = 0x55 means command "AA" reversal, byte6 = 0x5F means "A0" command function code reversal, byte3 means CF. | |||||||||||||||||||||||||
29 | When IR receives the above instructions, the connection is successful. | |||||||||||||||||||||||||
30 | If the connection is successful, the temperature result will be sent at the end of the measurement. Otherwise, only the display will not be sent. You can turn off the device manually or by command, and turn off the Bluetooth power supply. | |||||||||||||||||||||||||
31 | 2.2.1Press "Shut down" and the phone sends the following instructions once.: | After receiving this instruction, IR shuts down and replies to APP. Mobile software can exit. | ||||||||||||||||||||||||
32 | Class A directive | A_b: | FE FD AA 91 0D 0A | After IR receiving the instruction, reply to the instruction code to reverse and then execute the function:FE FD 1A AA 55 6E 0D 0A | ||||||||||||||||||||||
33 | Note: byte4 = 0xAA means sending and receiving commands, byte5 = 0x55 means command "AA" reversal, byte6 = 0x6E means "91" command function code reversal, byte3 means CF. | |||||||||||||||||||||||||
34 | 2.2.2 After the IR measurement is completed, the following results are sent voluntarily: | |||||||||||||||||||||||||
35 | Class B instruction | B_a: | FE FD 1A 01 TH TL 0D 0A | Note: TH is at high temperature and TL is at low temperature. The final temperature is (TH*256+TL)/10. | Note: 01 indicates normal forehead temperature measurement, THTL | |||||||||||||||||||||
36 | For example, the temperature of FE FD 1A 0101 760D0A is 37.0C. The "temperature display bit" of the mobile phone shows "37.0 degrees Celsius". | Represents high and low temperature bytes | ||||||||||||||||||||||||
37 | For example, the temperature of FE FD 1501 03 DA 0D0A is 98.6F. The "temperature display bit" of mobile phone shows "98.6F". | Represents high and low temperature bytes | ||||||||||||||||||||||||
38 | Class B instruction | B_b: | FE FD 1A 00 TH TL 0D 0A | Note: TH is at high temperature and TL is at low temperature. The final temperature is (TH*256+TL)/10. | Note: 00 indicates the normal target measurement temperature, THTL | |||||||||||||||||||||
39 | Note: Instruction B_a denotes a forehead temperature measurement and instruction B_b denotes a target actual temperature measurement. | Represents high and low temperature bytes | ||||||||||||||||||||||||
40 | Class B instruction | B_e: | FE FD 1A 81 00 01 0D 0A | Human body mode: excessive temperature measurement. Mobile phone "temperature display bit" shows "HI"+human body symbol | Note: 8100 01 indicates that the temperature of human body pattern measurement is too high. | |||||||||||||||||||||
41 | Class B instruction | B_f: | FE FD 1A 82 00 02 0D 0A | Human body mode: measuring temperature is too low. Mobile phone "temperature display bit" shows "LO"+human body symbol | Note: 820002 indicates that the temperature of human body pattern measurement is too low | |||||||||||||||||||||
42 | Class B instruction | B_g: | FE FD 1A 83 00 03 0D 0A | Indicates a test error. "Temperature Display Bit" shows "ErH" (ambient temperature is too high) | Note: 8300 03 indicates excessive ambient temperature | |||||||||||||||||||||
43 | Class B instruction | B_h: | FE FD 1A 84 00 04 0D 0A | Indicates a test error. "Temperature Display Bit" shows "ErL" (ambient temperature is too low) | Note: 840004 indicates excessive ambient temperature | |||||||||||||||||||||
44 | Class B instruction | B_i: | FE FD 1A 85 00 05 0D 0A | Represents hardware errors. "Display bit" displays "ErC" | Note: 8500 05 indicates hardware error | |||||||||||||||||||||
45 | Class B instruction | B_j: | FE FD 1A 86 00 06 0D 0A | Represents voltage and low voltage. "Display bit" shows "low voltage symbol" | Note: 860006 indicates hardware error | |||||||||||||||||||||
46 | Class B instruction | B_k: | FE FD 1A 87 00 07 0D 0A | Object Mode: Measuring Temperature Excessively High. Mobile Phone "Temperature Display Bit" Displays "HI"+Ambient Temperature Symbol | Note: 8700 07 indicates that the temperature measured in object mode is too high. | |||||||||||||||||||||
47 | Class B instruction | B_L: | FE FD 1A 88 00 08 0D 0A | Object mode: Measuring temperature is too low. Mobile phone "temperature display bit" shows "LO"+environment temperature symbol. | Note: 8800 08 indicates that the temperature measured in object mode is too low | |||||||||||||||||||||
48 | Note: Above, when byte3 = 0x15, degree F | |||||||||||||||||||||||||
49 | 3.After pairing, the mobile phone will enter the receiving state. If the IR test itself is completed and the test results of 2.2.2 are sent, the mobile phone can also receive the test results.. | |||||||||||||||||||||||||
50 | ||||||||||||||||||||||||||
51 | ||||||||||||||||||||||||||
52 | ||||||||||||||||||||||||||
53 | ||||||||||||||||||||||||||
54 | ||||||||||||||||||||||||||
55 | ||||||||||||||||||||||||||
56 | ||||||||||||||||||||||||||
57 | ||||||||||||||||||||||||||
58 | ||||||||||||||||||||||||||
59 | ||||||||||||||||||||||||||
60 | ||||||||||||||||||||||||||
61 | ||||||||||||||||||||||||||
62 | ||||||||||||||||||||||||||
63 | ||||||||||||||||||||||||||
64 | ||||||||||||||||||||||||||
65 | ||||||||||||||||||||||||||
66 | ||||||||||||||||||||||||||
67 | ||||||||||||||||||||||||||
68 | ||||||||||||||||||||||||||
69 | ||||||||||||||||||||||||||
70 | ||||||||||||||||||||||||||
71 | ||||||||||||||||||||||||||
72 | ||||||||||||||||||||||||||
73 | ||||||||||||||||||||||||||
74 | ||||||||||||||||||||||||||
75 | ||||||||||||||||||||||||||
76 | ||||||||||||||||||||||||||
77 | ||||||||||||||||||||||||||
78 | ||||||||||||||||||||||||||
79 | ||||||||||||||||||||||||||
80 | ||||||||||||||||||||||||||
81 | ||||||||||||||||||||||||||
82 | ||||||||||||||||||||||||||
83 | ||||||||||||||||||||||||||
84 | ||||||||||||||||||||||||||
85 | ||||||||||||||||||||||||||
86 | ||||||||||||||||||||||||||
87 | ||||||||||||||||||||||||||
88 | ||||||||||||||||||||||||||
89 | ||||||||||||||||||||||||||
90 | ||||||||||||||||||||||||||
91 | ||||||||||||||||||||||||||
92 | ||||||||||||||||||||||||||
93 | ||||||||||||||||||||||||||
94 | ||||||||||||||||||||||||||
95 | ||||||||||||||||||||||||||
96 | ||||||||||||||||||||||||||
97 | ||||||||||||||||||||||||||
98 | ||||||||||||||||||||||||||
99 | ||||||||||||||||||||||||||
100 | ||||||||||||||||||||||||||