优利德ut61e通信协议
经过电脑与UT61E连接测试通过了。
找起来比较费劲,特此通过分析,以及各个论坛得到的协议
串口设置如下
The project uses the IR RS-232 adapter which is supplied with the DMM and Python pyserial library to read the data.
Serial port settings are 19200bps, 7 data bits, odd parity, 1 stop bit. The supplied adapter also requires DTR=1 and RTS=0.
通信协议如下
The DMM uses Cyrustek ES51922 chipset which is also used in other digital multimeters. My main source of information about its protocol was the UT61E data log in DMM.exe project by Henrik Haftmann.
Cyrustek ES51922 chipset has more features than are implemented in this project. This program implements only the features used by UT61E.
Each data packet contains 14 bytes.
Byte Meaning
==== =======
0x00 Measurement range
bit 6-3: always 0110
bit 2-0: measurement range. See byte 6 for details.
0x01 Digit 1
bit 6-4: always 011
bit 3-0
0000: 0
0001: 1
0010: 2
0011: 3
0100: 4
0101: 5
0110: 6
0111: 7
1000: 8
1001: 9
0x02 Digit 2
bit 6-4: always 011
bit 3-0: See byte 0x01
0x03 Digit 3
bit 6-4: always 011
bit 3-0: See byte 0x01
0x04 Digit 4
bit 6-4: always 011
bit 3-0: See byte 0x01
0x05 Digit 5
bit 6-4: always 011
bit 3-0: See byte 0x01
0x06 DMM mode
bit 6-4: always 011
bit 3-0: Measurement mode
Byte 6: 0xB 0x3 0x6 0x2 0xD 0xF 0x0 0x2
Byte 0: V, mV Ohm F Hz uA mA A %
0 2.2000 220.00 22.000n 220.00 220.00u 22.000m 10.000 100.0
1 22.000 2.2000k 220.00n 2200.0 2200.0u 220.00m - 100.0
2 220.00 22.000k 2.2000u - - - - -
3 1000.0 220.00k 22.000u 22.000k - - - 100.0
4 220.00m 2.200M 220.00u 220.00k - - - 100.0
5 - 22.000M 2.2000m 2.2000M - - - 100.0
6 - 220.00M 22.000m 22.000M - - - 100.0
7 - - 220.00m 220.00M - - - 100.0
0x07 Info flags
bit 6-4: always 011
bit 3: percent mode
bit 2: minus (negative value)
bit 1: low battery
bit 0: OL (overload)
0x08 Relative mode flags
bit 6-4: always 011
bit 3: MAX (unused in this project)
bit 2: MIN (unused in this project)
bit 1: relative mode (delta)
bit 0: [RMR] (unused in this project)
0x09 Limit flags
bit 6-4: always 011
bit 3: UL (underload)
bit 2: Peak max
bit 1: Peak min
bit 0: always 0
0x0A Voltage and auto range flags
bit 6-4: always 011
bit 3: DC measurement
bit 2: AC measurement
bit 1: auto range
bit 0: frequency measurement (Hz)
0x0B Hold
bit 6-4: always 011
bit 3: always 0
bit 2: VBAR (unused in this project)
bit 1: data hold
bit 0: LPF (unused in this project)
0x0C Footer, always 0x0D (\r)
0x0D Footer, always 0x0A (\n)
需要注意的地方时 DTR与RTS的设置,因为其红外头需要供电。从这两根线上取电,具体参考原理图
BAUD_RATE = 19200
BITS = serial.SEVENBITS
PARITY = serial.PARITY_ODD
STOP_BITS = serial.STOPBITS_ONE
DTR = True
RTS = False
下面时红外接收头原理图
具体协议来源可以参考
Features (cyrustek.com.tw) 承永資訊科技 – 專業的IC設計
的21页-25页之间的描述。也就是ES51922对协议的描述,因为其内部使用的就是 ES51922 芯片实现的。
链接pdf 【免费】UT61E通信协议2024年5月18日资源-CSDN文库
特此记录一下,方便大家查阅
by anlog
2021年5月14日