| | 1 | = DigitalMultimeter = |
| | 2 | {{{ |
| | 3 | #!html |
| | 4 | <div> |
| | 5 | <a style="padding:0; border:none; float:right;" href="/attachment/wiki/2008/03/29/20.57/RSDMM22-812.jpg"><img src="/attachment/wiki/2008/03/29/20.57/RSDMM22-812.jpg?format=raw" alt="Photo of multimeter" title="Photo of multimeter" /></a> |
| | 6 | </div> |
| | 7 | }}} |
| | 8 | |
| | 9 | This utility reads the serial port data from the |
| | 10 | !RadioShack Digital Multimeter 22-812 |
| | 11 | and translates it into human-readable output. |
| | 12 | |
| | 13 | * Language: Python |
| | 14 | * OSes Tested: Linux |
| | 15 | * License: GPLv2+ |
| | 16 | |
| | 17 | Browse the source at [source:digitalmultimeter the top level] or [source:digitalmultimeter/trunk trunk]. Or use the Subversion [/svn/digitalmultimeter/trunk checkout URL]. |
| | 18 | |
| | 19 | View [query:status=new|assigned|reopened&component=digitalmultimeter open tickets] |
| | 20 | |
| | 21 | The data sheet is [http://www.rabbit.com/documentation/docs/refs/AN403/22-812protocol.pdf available]. |
| | 22 | |
| | 23 | == Example == |
| | 24 | If your serial port is, say, `/dev/ttyUSB0`, you would run it something like `su -c "./digitalmultimeter.py /dev/ttyUSB0"`, and use `^C` to kill it. The output will look something like this: |
| | 25 | {{{ |
| | 26 | 1206840186.138602 DC V AUTO RS232 - 009.8 m V |
| | 27 | 1206840186.419604 DC V AUTO RS232 - 007.8 m V |
| | 28 | 1206840186.669599 DC V AUTO RS232 - 007.8 m V |
| | 29 | 1206840186.918569 DC V AUTO RS232 - 008.3 m V |
| | 30 | 1206840187.168605 AC V AUTO RS232 ~ ---.- m V |
| | 31 | 1206840187.449606 AC V AUTO RS232 ~ 304.8 m V |
| | 32 | 1206840187.761612 AC V AUTO RS232 ~ 300.8 m V |
| | 33 | 1206840188.010604 DC uA AUTO RS232 ---.- u A |
| | 34 | 1206840188.260576 DC uA AUTO RS232 000.0 u A |
| | 35 | 1206840188.541612 DC uA AUTO RS232 000.0 u A |
| | 36 | 1206840188.790602 DC uA AUTO RS232 000.0 u A |
| | 37 | 1206840189.040602 DC mA AUTO RS232 --.-- m A |
| | 38 | 1206840189.331640 DC mA AUTO RS232 00.00 m A |
| | 39 | 1206840189.601607 DC mA AUTO RS232 00.00 m A |
| | 40 | 1206840189.881570 DC mA AUTO RS232 00.00 m A |
| | 41 | 1206840190.132610 OHM AUTO RS232 ---.- Ohm |
| | 42 | 1206840190.381606 OHM AUTO RS232 ---.- Ohm |
| | 43 | 1206840190.631607 OHM AUTO RS232 .0F K Ohm |
| | 44 | 1206840190.880600 OHM AUTO RS232 0.F K Ohm |
| | 45 | 1206840191.130583 OHM AUTO RS232 0F. K Ohm |
| | 46 | 1206840191.398708 OHM AUTO RS232 .0F M Ohm |
| | 47 | 1206840191.660601 OHM AUTO RS232 .0F M Ohm |
| | 48 | 1206840191.941613 CONT RS232 BEEP Open |
| | 49 | 1206840192.191605 CONT RS232 BEEP Open |
| | 50 | 1206840192.440545 CONT RS232 BEEP Open |
| | 51 | 1206840192.690597 CONT RS232 BEEP Open |
| | 52 | 1206840192.940560 CONT RS232 BEEP Open |
| | 53 | 1206840193.189600 CONT RS232 BEEP Open |
| | 54 | 1206840193.439560 HZ AUTO RS232 ---.- Hz |
| | 55 | 1206840193.720864 HZ AUTO RS232 060.0 Hz |
| | 56 | 1206840193.969599 HZ AUTO RS232 060.0 Hz |
| | 57 | 1206840194.239601 HZ AUTO RS232 060.0 Hz |
| | 58 | 1206840194.500598 HZ AUTO RS232 060.0 Hz |
| | 59 | 1206840194.789571 HZ AUTO RS232 060.0 Hz |
| | 60 | 1206840195.061609 HZ AUTO RS232 060.0 Hz |
| | 61 | 1206840195.342567 HZ AUTO RS232 060.0 Hz |
| | 62 | 1206840199.105551 HFE RS232 0000 hFE |
| | 63 | 1206840199.354549 HFE RS232 0000 hFE |
| | 64 | 1206840199.666572 HFE RS232 0000 hFE |
| | 65 | 1206840199.916550 HFE RS232 0000 hFE |
| | 66 | }}} |