Aneng AN9002 藍牙數字萬用錶(Bluetooth Digital Multimeter / DMM)連接後,Aneng AN9002 藍牙數字萬用錶便會發送 11字節(11Byte)資料,問題是這11字節資料是代表什麼?如何將資料解讀成為有意思的資料,在網上找尋資料和做了實驗,原來是代表 LCD 屏的每 1個顯示的數據,所以首先要有 Aneng AN9002 的 LCD 屏的顯示資料,了解發送資料的結構。
Aneng AN9002 藍牙低功耗 LCD 屏 |
Item |
顯示資料 |
數據 |
功能顯示 |
HOLD、MAX、MIN、Diode、Buzzer、%、℃、℉、M、k、Ω、Hz、n、m、μ、F、BT、△、▃、DC、AC、Battery、TRUE RMS、AUTO、MANUAL、m、μ、A、m、V |
30數據(30bits) |
數字顯示 |
4x7Segment + 3xDecimal Point |
31數據(31bits) |
總數: |
|
62數據(61bits) |
Aneng AN9002 藍牙數字萬用錶資料例子:
手機接收了 Aneng AN9002 藍牙數字萬用錶傳送來的 11字節(Byte)資料,資料是 1B 84 70 B1 49 CA D8 36 66 AA 3B,11字節(Byte)資料會 OR 資料鍵,得到新資料需要將右轉(03=00000011→C0=11000000 / E4=11100100→27=00100111),然後將 Byte3 到 Byte10 從新組合(Byte3_LSB+Byte4_MSB 組合成新的 Byte),將新組合 Byte 對應出顯示的數字,也將 Byte8 到 Byte10 的數據對應出顯示的功能(20=°C),那麼藍牙數字萬用錶的讀數便是 0016°C。
Aneng AN9002 藍牙低功耗 LCD 屏的顯示資料:
Item |
顯示資料 |
數據 |
Byte |
0 1 2 3 4 5 6 7 8 9 10 |
11Byte |
y0 |
1B 84 70 B1 49 CA D8 36 66 AA 3B |
Raw data = y0 |
y1 |
41 21 73 55 A2 C1 32 71 66 AA 3B |
Raw Data Key = y1 |
aData |
5A A5 03 E4 EB 0B EA 47 00 00 00 |
aData=(y0 ^ y1) |
sData |
5A A5 C0 27 D7 D0 57 E2 00 00 00 |
sData=RoR |
Shift Byte 3 |
5A A5 C0 2 7D 7D 05 7E 20 00 00 0 |
Byte3_LSB+Byte4_MSB ~ Byte9_LSB+Byte10_MSB |
7-Segment Data |
7D 7D 05 7E 20 00 00 |
7D=0 7D=0 05=1 7E=6 |
|
0016°C |
20=°C |
Aneng AN9002 藍牙低功耗 LCD 屏的功能顯示資料數據:
Function |
Byte 8 |
Byte 9 |
Byte 10 |
Byte 8 |
Byte 9 |
Byte 10 |
||||||
Auto DC V |
0 |
0 |
0 |
0 |
A |
8 |
0 0 0 0 |
0 0 0 0 |
0 0 0 0 |
0 0 0 0 |
1 0 1 0 |
1 0 0 0 |
Auto AC V RMS |
0 |
1 |
0 |
0 |
8 |
8 |
0 0 0 0 |
0 0 0 1 |
0 0 0 0 |
0 0 0 0 |
1 0 0 0 |
1 0 0 0 |
Auto DC mV |
0 |
0 |
0 |
0 |
E |
8 |
0 0 0 0 |
0 0 0 0 |
0 0 0 0 |
0 0 0 0 |
1 1 1 0 |
1 0 0 0 |
Auto AC mV RMS |
0 |
1 |
0 |
0 |
C |
8 |
0 0 0 0 |
0 0 0 1 |
0 0 0 0 |
0 0 0 0 |
1 1 0 0 |
1 0 0 0 |
°C |
2 |
0 |
0 |
0 |
0 |
0 |
0 0 1 0 |
0 0 0 0 |
0 0 0 0 |
0 0 0 0 |
0 0 0 0 |
0 0 0 0 |
°F |
4 |
0 |
0 |
0 |
0 |
0 |
0 1 0 0 |
0 0 0 0 |
0 0 0 0 |
0 0 0 0 |
0 0 0 0 |
0 0 0 0 |
Auto Ω |
0 |
0 |
0 |
4 |
0 |
8 |
0 0 0 0 |
0 0 0 0 |
0 0 0 0 |
0 1 0 0 |
0 0 0 0 |
1 0 0 0 |
Auto nF |
0 |
0 |
9 |
0 |
0 |
8 |
0 0 0 0 |
0 0 0 0 |
1 0 0 1 |
0 0 0 0 |
0 0 0 0 |
1 0 0 0 |
Auto Hz |
0 |
0 |
0 |
8 |
0 |
8 |
0 0 0 0 |
0 0 0 0 |
0 0 0 0 |
1 0 0 0 |
0 0 0 0 |
1 0 0 0 |
Auto DC A |
0 |
0 |
0 |
0 |
3 |
8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