RS232 Digital Muilti-Meter DT-4000ZC
The Meter
As supplied ... |
Uses the same protocol as the TP4000ZC1 |
|
|
Although "generic" MS Windows software was provided on CD, it only supported serial ports COM1 to COM4 and, since I needed to a USB to RS232 Serial Adapter, which appears as COM5, it proved to be unusable. The interface is also "one-way" ie. from the DMM to the computer, controlled by the "RS232" button on the DMM. Hence the easiest way to capture data logged by the DMM was to connect with GtkTerm, let the DMM "free-run" for the required time and then save the data as a "raw" file. This file could then be post-processed and converted to a "human-readable" (or "spreadsheet importable") text file.
My 'C' post-processor for Linux
trevor@BlueElf:~/dmm4000ZCtools$ ./src/raw2txt raw2txt.c Version 0.01 {Exp}, [20/10/2015], (c) F_Trevor_Gowen <--| Package dmm4000ZCtools_0.0 |--> Usage raw2txt [path/]in_filename[.raw] [options] Options: -o out_filename_prefix, -a arg_filename[.arg], -E {Echo command-line arguments}, -O {auto-generate Out_filename}, -Q {Quiet - default}, -V {Verbose}, +XD {heX Dump of raw & de-synched data to terminal}
trevor@BlueElf:~/dmm4000ZCtools$ ./src/raw2txt ./examples/DMM_AutoDegC_2400-8-N-1.raw -V raw2txt.c Version 0.01 {Exp}, [20/10/2015], (c) F_Trevor_Gowen <--| Package dmm4000ZCtools_0.0 |--> <raw2txt.arg> fopen: No such file or directory raw2txt.arg not found ./examples/DMM_AutoDegC_2400-8-N-1.raw -V Argfile: raw2txt.arg Rawfile: ./examples/DMM_AutoDegC_2400-8-N-1.raw Outfile: stdout Initialisation test ... 0.000 V DC AUTO RS232 Synched at 1'th. byte, Raw = 0x13, Data = 0x03 Frame#0001 - Rawbytes: 0x13 0x27 0x3d 0x45 0x5b 0x65 0x7b 0x8d 0x9b 0xa0 0xb0 0xc0 0xd0 0xe4 Frame#0001 - Databytes: 0x03 0x07 0x0d 0x05 0x0b 0x05 0x0b 0x0d 0x0b 0x00 0x00 0x00 0x00 0x04 First frame decode test ... 022.2 C AUTO RS232 Clean up test ... 022.2 C AUTO RS232
trevor@BlueElf:~/dmm4000ZCtools$ ./src/raw2txt ./examples/DMM_AutoDegC_2400-8-N-1.raw +XD | more <raw2txt.arg> fopen: No such file or directory raw2txt.c Version 0.01 {Exp}, [20/10/2015], (c) F_Trevor_Gowen <--| Package dmm4000ZCtools_0.0 |--> raw2txt.arg not found Argfile: raw2txt.arg Rawfile: ./examples/DMM_AutoDegC_2400-8-N-1.raw Outfile: stdout Synched at 1'th. byte, Raw = 0x13, Data = 0x03 First frame decode test ... 022.2 C AUTO RS232 Clean up test ... 022.2 C AUTO RS232 Frame#0002 - Rawbytes: 0x13 0x27 0x3d 0x45 0x5b 0x65 0x7b 0x8d 0x9b 0xa0 0xb0 0xc0 0xd0 0xe4 Frame#0002 - Databytes: 0x03 0x07 0x0d 0x05 0x0b 0x05 0x0b 0x0d 0x0b 0x00 0x00 0x00 0x00 0x04 Frame#0003 - Rawbytes: 0x13 0x27 0x3d 0x45 0x5b 0x65 0x7b 0x8d 0x9b 0xa0 0xb0 0xc0 0xd0 0xe4 Frame#0003 - Databytes: 0x03 0x07 0x0d 0x05 0x0b 0x05 0x0b 0x0d 0x0b 0x00 0x00 0x00 0x00 0x04 Frame#0004 - Rawbytes: 0x13 0x27 0x3d 0x45 0x5b 0x65 0x7b 0x8d 0x9b 0xa0 0xb0 0xc0 0xd0 0xe4 Frame#0004 - Databytes: 0x03 0x07 0x0d 0x05 0x0b 0x05 0x0b 0x0d 0x0b 0x00 0x00 0x00 0x00 0x04 Frame#0005 - Rawbytes: 0x13 0x27 0x3d 0x45 0x5b 0x65 0x7b 0x8d 0x9b 0xa0 0xb0 0xc0 0xd0 0xe4 Frame#0005 - Databytes: 0x03 0x07 0x0d 0x05 0x0b 0x05 0x0b 0x0d 0x0b 0x00 0x00 0x00 0x00 0x04 Frame#0006 - Rawbytes: 0x13 0x27 0x3d 0x45 0x5b 0x65 0x7b 0x8d 0x9b 0xa0 0xb0 0xc0 0xd0 0xe4 Frame#0006 - Databytes: 0x03 0x07 0x0d 0x05 0x0b 0x05 0x0b 0x0d 0x0b 0x00 0x00 0x00 0x00 0x04 Frame#0007 - Rawbytes: 0x13 0x27 0x3d 0x45 0x5b 0x65 0x7b 0x8d 0x9b 0xa0 0xb0 0xc0 0xd0 0xe4 Frame#0007 - Databytes: 0x03 0x07 0x0d 0x05 0x0b 0x05 0x0b 0x0d 0x0b 0x00 0x00 0x00 0x00 0x04 Frame#0008 - Rawbytes: 0x13 0x27 0x3d 0x45 0x5b 0x65 0x7b 0x8d 0x9b 0xa0 0xb0 0xc0 0xd0 0xe4 Frame#0008 - Databytes: 0x03 0x07 0x0d 0x05 0x0b 0x05 0x0b 0x0d 0x0b 0x00 0x00 0x00 0x00 0x04 Frame#0009 - Rawbytes: 0x13 0x27 0x3d 0x45 0x5b 0x65 0x7b 0x8d 0x9b 0xa0 0xb0 0xc0 0xd0 0xe4 Frame#0009 - Databytes: 0x03 0x07 0x0d 0x05 0x0b 0x05 0x0b 0x0d 0x0b 0x00 0x00 0x00 0x00 0x04 Frame#0010 - Rawbytes: 0x13 0x27 0x3d 0x45 0x5b 0x65 0x7b 0x8d 0x9b 0xa0 0xb0 0xc0 0xd0 0xe4 Frame#0010 - Databytes: 0x03 0x07 0x0d 0x05 0x0b 0x05 0x0b 0x0d 0x0b 0x00 0x00 0x00 0x00 0x04 Frame#0011 - Rawbytes: 0x13 0x27 0x3d 0x45 0x5b 0x65 0x7b 0x8d 0x9b 0xa0 0xb0 0xc0 0xd0 0xe4 Frame#0011 - Databytes: 0x03 0x07 0x0d 0x05 0x0b 0x05 0x0b 0x0d 0x0b 0x00 0x00 0x00 0x00 0x04 --More--
trevor@BlueElf:~/dmm4000ZCtools$ ./src/raw2txt ./examples/DMM_AutoDegC_2400-8-N-1.raw -O raw2txt.c Version 0.01 {Exp}, [20/10/2015], (c) F_Trevor_Gowen <--| Package dmm4000ZCtools_0.0 |--> <raw2txt.arg> fopen: No such file or directory raw2txt.arg not found Argfile: raw2txt.arg Rawfile: ./examples/DMM_AutoDegC_2400-8-N-1.raw Outfile: ./examples/DMM_AutoDegC_2400-8-N-1.txt Synched at 1'th. byte, Raw = 0x13, Data = 0x03 First frame decode test ... 022.2 C AUTO RS232 Clean up test ... 022.2 C AUTO RS232 263 frames converted.
trevor@BlueElf:~/dmm4000ZCtools$ more ./examples/DMM_AutoDegC_2400-8-N-1.txt 022.2 C AUTO RS232 022.2 C AUTO RS232 022.2 C AUTO RS232 022.2 C AUTO RS232 022.2 C AUTO RS232 022.2 C AUTO RS232 022.2 C AUTO RS232 022.2 C AUTO RS232 022.2 C AUTO RS232 022.2 C AUTO RS232 022.2 C AUTO RS232 022.2 C AUTO RS232 022.2 C AUTO RS232 022.2 C AUTO RS232 022.3 C AUTO RS232 022.4 C AUTO RS232 022.7 C AUTO RS232 023.1 C AUTO RS232 023.7 C AUTO RS232 024.3 C AUTO RS232 024.9 C AUTO RS232 025.5 C AUTO RS232 026.0 C AUTO RS232 026.5 C AUTO RS232 027.0 C AUTO RS232 027.4 C AUTO RS232 027.8 C AUTO RS232 028.1 C AUTO RS232 028.4 C AUTO RS232 028.8 C AUTO RS232 029.0 C AUTO RS232 --More--(11%)
More details at http://www.multimeterwarehouse.com/TP4000ZC/TP4000ZC_serial_protocol.pdf. (1)