]>
Commit | Line | Data |
---|---|---|
7dc55d93 | 1 | /* |
50985c20 | 2 | * This file is part of the libsigrok project. |
7dc55d93 AG |
3 | * |
4 | * Copyright (C) 2012 Bert Vermeulen <bert@biot.com> | |
5 | * Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me@gmail.com> | |
729b01f9 | 6 | * Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de> |
7dc55d93 AG |
7 | * |
8 | * This program is free software: you can redistribute it and/or modify | |
9 | * it under the terms of the GNU General Public License as published by | |
10 | * the Free Software Foundation, either version 3 of the License, or | |
11 | * (at your option) any later version. | |
12 | * | |
13 | * This program is distributed in the hope that it will be useful, | |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | * GNU General Public License for more details. | |
17 | * | |
18 | * You should have received a copy of the GNU General Public License | |
19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
20 | */ | |
21 | ||
6ec6c43b | 22 | #include <config.h> |
7dc55d93 AG |
23 | #include <sys/types.h> |
24 | #include <sys/stat.h> | |
25 | #include <fcntl.h> | |
26 | #include <string.h> | |
22f54192 | 27 | #include <glib.h> |
c1aae900 | 28 | #include <libsigrok/libsigrok.h> |
bbabddbd UH |
29 | #include "libsigrok-internal.h" |
30 | #include "protocol.h" | |
7dc55d93 | 31 | |
a0e0bb41 | 32 | static const uint32_t scanopts[] = { |
1953564a BV |
33 | SR_CONF_CONN, |
34 | SR_CONF_SERIALCOMM, | |
7dc55d93 AG |
35 | }; |
36 | ||
05199c0a | 37 | static const uint32_t drvopts[] = { |
1953564a | 38 | SR_CONF_MULTIMETER, |
05199c0a UH |
39 | }; |
40 | ||
41 | static const uint32_t devopts[] = { | |
1953564a | 42 | SR_CONF_CONTINUOUS, |
070668a0 GS |
43 | SR_CONF_LIMIT_SAMPLES | SR_CONF_GET | SR_CONF_SET, |
44 | SR_CONF_LIMIT_MSEC | SR_CONF_GET | SR_CONF_SET, | |
7dc55d93 AG |
45 | }; |
46 | ||
bcbef5ed | 47 | static GSList *scan(struct sr_dev_driver *di, GSList *options) |
7dc55d93 | 48 | { |
1a863916 | 49 | struct dmm_info *dmm; |
bcbef5ed ML |
50 | struct sr_config *src; |
51 | GSList *l, *devices; | |
52 | const char *conn, *serialcomm; | |
7dc55d93 | 53 | struct sr_dev_inst *sdi; |
7dc55d93 | 54 | struct dev_context *devc; |
d35afa87 | 55 | struct sr_serial_dev_inst *serial; |
070668a0 GS |
56 | int ret; |
57 | size_t dropped, len, packet_len; | |
2546b05c | 58 | uint8_t buf[128]; |
556a926d GS |
59 | size_t ch_idx; |
60 | char ch_name[12]; | |
7dc55d93 | 61 | |
1a863916 UH |
62 | dmm = (struct dmm_info *)di; |
63 | ||
0527cc3a | 64 | conn = dmm->conn; |
09c650d5 | 65 | serialcomm = dmm->serialcomm; |
bcbef5ed ML |
66 | for (l = options; l; l = l->next) { |
67 | src = l->data; | |
68 | switch (src->key) { | |
69 | case SR_CONF_CONN: | |
70 | conn = g_variant_get_string(src->data, NULL); | |
71 | break; | |
72 | case SR_CONF_SERIALCOMM: | |
73 | serialcomm = g_variant_get_string(src->data, NULL); | |
74 | break; | |
75 | } | |
76 | } | |
77 | if (!conn) | |
78 | return NULL; | |
79 | ||
91219afc | 80 | serial = sr_serial_dev_inst_new(conn, serialcomm); |
d35afa87 | 81 | |
2e360339 | 82 | if (serial_open(serial, SERIAL_RDWR) != SR_OK) |
7dc55d93 | 83 | return NULL; |
22f54192 | 84 | sr_info("Probing serial port %s.", conn); |
7dc55d93 | 85 | |
070668a0 GS |
86 | if (dmm->after_open) { |
87 | ret = dmm->after_open(serial); | |
88 | if (ret != SR_OK) { | |
89 | sr_err("Activity after port open failed: %d.", ret); | |
90 | return NULL; | |
91 | } | |
92 | } | |
93 | ||
7dc55d93 | 94 | devices = NULL; |
bbabddbd | 95 | |
ce3777ad | 96 | /* Request a packet if the DMM requires this. */ |
bcbef5ed ML |
97 | if (dmm->packet_request) { |
98 | if ((ret = dmm->packet_request(serial)) < 0) { | |
ce3777ad | 99 | sr_err("Failed to request packet: %d.", ret); |
070668a0 | 100 | return NULL; |
ce3777ad UH |
101 | } |
102 | } | |
103 | ||
22f54192 UH |
104 | /* |
105 | * There's no way to get an ID from the multimeter. It just sends data | |
106 | * periodically (or upon request), so the best we can do is check if | |
107 | * the packets match the expected format. | |
070668a0 | 108 | * |
2546b05c AG |
109 | * If we dropped more than two packets worth of data, something is |
110 | * wrong. We shouldn't quit however, since the dropped bytes might be | |
111 | * just zeroes at the beginning of the stream. Those can occur as a | |
22f54192 UH |
112 | * combination of the nonstandard cable that ships with some devices |
113 | * and the serial port or USB to serial adapter. | |
2546b05c | 114 | */ |
070668a0 GS |
115 | len = sizeof(buf); |
116 | ret = serial_stream_detect(serial, buf, &len, dmm->packet_size, | |
117 | dmm->packet_valid, dmm->packet_valid_len, &packet_len, 3000); | |
118 | if (ret != SR_OK) | |
119 | goto scan_cleanup; | |
bcbef5ed | 120 | dropped = len - dmm->packet_size; |
070668a0 GS |
121 | if (dropped > 2 * packet_len) |
122 | sr_warn("Packet search dropped a lot of data."); | |
2546b05c | 123 | sr_info("Found device on port %s.", conn); |
7dc55d93 | 124 | |
070668a0 GS |
125 | /* |
126 | * Setup optional additional callbacks when sub device drivers | |
127 | * happen to provide them. (This is a compromise to do it here, | |
128 | * and not extend the DMM_CONN() et al set of macros.) | |
129 | */ | |
130 | if (dmm->dmm_state_init) | |
131 | dmm->dmm_state = dmm->dmm_state_init(); | |
132 | ||
133 | /* Setup the device instance. */ | |
134 | sdi = g_malloc0(sizeof(*sdi)); | |
0af636be | 135 | sdi->status = SR_ST_INACTIVE; |
bcbef5ed ML |
136 | sdi->vendor = g_strdup(dmm->vendor); |
137 | sdi->model = g_strdup(dmm->device); | |
070668a0 | 138 | devc = g_malloc0(sizeof(*devc)); |
9f51c463 | 139 | sr_sw_limits_init(&devc->limits); |
1e1bfcd0 UH |
140 | sdi->inst_type = SR_INST_SERIAL; |
141 | sdi->conn = serial; | |
2546b05c | 142 | sdi->priv = devc; |
070668a0 GS |
143 | |
144 | /* Create (optionally device dependent) channel(s). */ | |
556a926d | 145 | dmm->channel_count = 1; |
400bc4ff GS |
146 | if (dmm->packet_parse == sr_brymen_bm52x_parse) |
147 | dmm->channel_count = BRYMEN_BM52X_DISPLAY_COUNT; | |
0759e2f5 GS |
148 | if (dmm->packet_parse == sr_brymen_bm86x_parse) |
149 | dmm->channel_count = BRYMEN_BM86X_DISPLAY_COUNT; | |
015df4ae GS |
150 | if (dmm->packet_parse == sr_eev121gw_3displays_parse) { |
151 | dmm->channel_count = EEV121GW_DISPLAY_COUNT; | |
152 | dmm->channel_formats = eev121gw_channel_formats; | |
153 | } | |
db3aac1a GS |
154 | if (dmm->packet_parse == sr_metex14_4packets_parse) |
155 | dmm->channel_count = 4; | |
dcd212f7 VV |
156 | if (dmm->packet_parse == sr_ms2115b_parse) { |
157 | dmm->channel_count = MS2115B_DISPLAY_COUNT; | |
158 | dmm->channel_formats = ms2115b_channel_formats; | |
159 | } | |
556a926d | 160 | for (ch_idx = 0; ch_idx < dmm->channel_count; ch_idx++) { |
48e2992f | 161 | size_t ch_num; |
7d40b5ee GS |
162 | const char *fmt; |
163 | fmt = "P%zu"; | |
164 | if (dmm->channel_formats && dmm->channel_formats[ch_idx]) | |
165 | fmt = dmm->channel_formats[ch_idx]; | |
48e2992f | 166 | ch_num = ch_idx + 1; |
7d40b5ee | 167 | snprintf(ch_name, sizeof(ch_name), fmt, ch_num); |
556a926d GS |
168 | sr_channel_new(sdi, ch_idx, SR_CHANNEL_ANALOG, TRUE, ch_name); |
169 | } | |
070668a0 GS |
170 | |
171 | /* Add found device to result set. */ | |
2546b05c AG |
172 | devices = g_slist_append(devices, sdi); |
173 | ||
174 | scan_cleanup: | |
d35afa87 | 175 | serial_close(serial); |
2546b05c | 176 | |
15a5bfe4 | 177 | return std_scan_complete(di, devices); |
7dc55d93 AG |
178 | } |
179 | ||
070668a0 | 180 | static int config_get(uint32_t key, GVariant **data, |
dd7a72ea | 181 | const struct sr_dev_inst *sdi, const struct sr_channel_group *cg) |
7dc55d93 AG |
182 | { |
183 | struct dev_context *devc; | |
070668a0 | 184 | struct dmm_info *dmm; |
7dc55d93 | 185 | |
070668a0 GS |
186 | if (!sdi) |
187 | return SR_ERR_ARG; | |
188 | devc = sdi->priv; | |
189 | ||
190 | switch (key) { | |
191 | case SR_CONF_LIMIT_SAMPLES: | |
192 | case SR_CONF_LIMIT_FRAMES: | |
193 | case SR_CONF_LIMIT_MSEC: | |
194 | return sr_sw_limits_config_get(&devc->limits, key, data); | |
195 | default: | |
196 | dmm = (struct dmm_info *)sdi->driver; | |
197 | if (!dmm || !dmm->config_get) | |
198 | return SR_ERR_NA; | |
199 | return dmm->config_get(dmm->dmm_state, key, data, sdi, cg); | |
200 | } | |
201 | /* UNREACH */ | |
202 | } | |
203 | ||
204 | static int config_set(uint32_t key, GVariant *data, | |
205 | const struct sr_dev_inst *sdi, const struct sr_channel_group *cg) | |
206 | { | |
207 | struct dev_context *devc; | |
208 | struct dmm_info *dmm; | |
8f996b89 | 209 | |
070668a0 GS |
210 | if (!sdi) |
211 | return SR_ERR_ARG; | |
b0baddef | 212 | devc = sdi->priv; |
070668a0 | 213 | (void)cg; |
7dc55d93 | 214 | |
070668a0 GS |
215 | switch (key) { |
216 | case SR_CONF_LIMIT_SAMPLES: | |
217 | case SR_CONF_LIMIT_FRAMES: | |
218 | case SR_CONF_LIMIT_MSEC: | |
219 | return sr_sw_limits_config_set(&devc->limits, key, data); | |
220 | default: | |
221 | dmm = (struct dmm_info *)sdi->driver; | |
222 | if (!dmm || !dmm->config_set) | |
223 | return SR_ERR_NA; | |
224 | return dmm->config_set(dmm->dmm_state, key, data, sdi, cg); | |
225 | } | |
7dc55d93 AG |
226 | } |
227 | ||
dd7a72ea UH |
228 | static int config_list(uint32_t key, GVariant **data, |
229 | const struct sr_dev_inst *sdi, const struct sr_channel_group *cg) | |
a1c743fc | 230 | { |
070668a0 GS |
231 | struct dmm_info *dmm; |
232 | int ret; | |
233 | ||
234 | /* Use common logic for standard keys. */ | |
235 | if (!sdi) | |
236 | return STD_CONFIG_LIST(key, data, sdi, cg, scanopts, drvopts, devopts); | |
237 | ||
238 | /* | |
239 | * Check for device specific config_list handler. ERR N/A from | |
240 | * that handler is non-fatal, just falls back to common logic. | |
241 | */ | |
242 | dmm = (struct dmm_info *)sdi->driver; | |
243 | if (dmm && dmm->config_list) { | |
244 | ret = dmm->config_list(dmm->dmm_state, key, data, sdi, cg); | |
245 | if (ret != SR_ERR_NA) | |
246 | return ret; | |
247 | } | |
248 | ||
05199c0a | 249 | return STD_CONFIG_LIST(key, data, sdi, cg, scanopts, drvopts, devopts); |
a1c743fc BV |
250 | } |
251 | ||
695dc859 | 252 | static int dev_acquisition_start(const struct sr_dev_inst *sdi) |
7dc55d93 | 253 | { |
7dc55d93 | 254 | struct dev_context *devc; |
070668a0 GS |
255 | struct dmm_info *dmm; |
256 | sr_receive_data_callback cb_func; | |
257 | void *cb_data; | |
258 | int ret; | |
1e1bfcd0 | 259 | struct sr_serial_dev_inst *serial; |
7dc55d93 | 260 | |
208c1d35 | 261 | devc = sdi->priv; |
7dc55d93 | 262 | |
9f51c463 | 263 | sr_sw_limits_acquisition_start(&devc->limits); |
bee2b016 | 264 | std_session_send_df_header(sdi); |
7dc55d93 | 265 | |
070668a0 GS |
266 | cb_func = receive_data; |
267 | cb_data = (void *)sdi; | |
268 | dmm = (struct dmm_info *)sdi->driver; | |
269 | if (dmm && dmm->acquire_start) { | |
270 | ret = dmm->acquire_start(dmm->dmm_state, sdi, | |
271 | &cb_func, &cb_data); | |
272 | if (ret < 0) | |
273 | return ret; | |
274 | } | |
275 | ||
1e1bfcd0 | 276 | serial = sdi->conn; |
102f1239 | 277 | serial_source_add(sdi->session, serial, G_IO_IN, 50, |
070668a0 | 278 | cb_func, cb_data); |
7dc55d93 AG |
279 | |
280 | return SR_OK; | |
281 | } | |
282 | ||
070668a0 | 283 | #define DMM_ENTRY(ID, CHIPSET, VENDOR, MODEL, \ |
0527cc3a | 284 | CONN, SERIALCOMM, PACKETSIZE, TIMEOUT, DELAY, \ |
070668a0 GS |
285 | OPEN, REQUEST, VALID, PARSE, DETAILS, \ |
286 | INIT_STATE, FREE_STATE, VALID_LEN, PARSE_LEN, \ | |
287 | CFG_GET, CFG_SET, CFG_LIST, ACQ_START) \ | |
dd5c48a6 | 288 | &((struct dmm_info) { \ |
bcbef5ed ML |
289 | { \ |
290 | .name = ID, \ | |
291 | .longname = VENDOR " " MODEL, \ | |
292 | .api_version = 1, \ | |
c2fdcc25 | 293 | .init = std_init, \ |
700d6b64 | 294 | .cleanup = std_cleanup, \ |
bcbef5ed | 295 | .scan = scan, \ |
c01bf34c | 296 | .dev_list = std_dev_list, \ |
f778bf02 | 297 | .dev_clear = std_dev_clear, \ |
070668a0 | 298 | .config_get = config_get, \ |
bcbef5ed ML |
299 | .config_set = config_set, \ |
300 | .config_list = config_list, \ | |
301 | .dev_open = std_serial_dev_open, \ | |
302 | .dev_close = std_serial_dev_close, \ | |
303 | .dev_acquisition_start = dev_acquisition_start, \ | |
4b1a9d5d | 304 | .dev_acquisition_stop = std_serial_dev_acquisition_stop, \ |
41812aca | 305 | .context = NULL, \ |
bcbef5ed | 306 | }, \ |
0527cc3a | 307 | VENDOR, MODEL, CONN, SERIALCOMM, PACKETSIZE, TIMEOUT, DELAY, \ |
070668a0 GS |
308 | REQUEST, 1, NULL, VALID, PARSE, DETAILS, \ |
309 | sizeof(struct CHIPSET##_info), \ | |
310 | NULL, INIT_STATE, FREE_STATE, \ | |
311 | OPEN, VALID_LEN, PARSE_LEN, \ | |
312 | CFG_GET, CFG_SET, CFG_LIST, ACQ_START, \ | |
dd5c48a6 | 313 | }).di |
3098b390 | 314 | |
070668a0 GS |
315 | #define DMM_CONN(ID, CHIPSET, VENDOR, MODEL, \ |
316 | CONN, SERIALCOMM, PACKETSIZE, TIMEOUT, DELAY, \ | |
317 | REQUEST, VALID, PARSE, DETAILS) \ | |
318 | DMM_ENTRY(ID, CHIPSET, VENDOR, MODEL, \ | |
319 | CONN, SERIALCOMM, PACKETSIZE, TIMEOUT, DELAY, \ | |
320 | NULL, REQUEST, VALID, PARSE, DETAILS, \ | |
321 | NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) | |
322 | ||
0527cc3a GS |
323 | #define DMM(ID, CHIPSET, VENDOR, MODEL, SERIALCOMM, PACKETSIZE, TIMEOUT, \ |
324 | DELAY, REQUEST, VALID, PARSE, DETAILS) \ | |
070668a0 GS |
325 | DMM_CONN(ID, CHIPSET, VENDOR, MODEL, \ |
326 | NULL, SERIALCOMM, PACKETSIZE, TIMEOUT, DELAY, \ | |
327 | REQUEST, VALID, PARSE, DETAILS) | |
328 | ||
329 | #define DMM_LEN(ID, CHIPSET, VENDOR, MODEL, \ | |
330 | CONN, SERIALCOMM, PACKETSIZE, TIMEOUT, DELAY, \ | |
331 | INIT, FREE, OPEN, REQUEST, VALID, PARSE, DETAILS) \ | |
332 | DMM_ENTRY(ID, CHIPSET, VENDOR, MODEL, \ | |
333 | CONN, SERIALCOMM, PACKETSIZE, TIMEOUT, DELAY, \ | |
334 | OPEN, REQUEST, NULL, NULL, DETAILS, \ | |
335 | INIT, FREE, VALID, PARSE, NULL, NULL, NULL, NULL) | |
0527cc3a | 336 | |
dd5c48a6 | 337 | SR_REGISTER_DEV_DRIVER_LIST(serial_dmm_drivers, |
c0678584 GS |
338 | /* |
339 | * The items are sorted by chipset first and then model name. | |
340 | * | |
341 | * This reflects the developer's perspective and is preferrable | |
342 | * during maintenance, as a vendor/product based sort order does | |
343 | * not work well for rebranded models, and from a support point | |
344 | * of view it's more important to identify similarities between | |
345 | * models and compatible devices. | |
346 | * | |
347 | * Fold marks {{{ }}} with matching braces were added, to further | |
348 | * speed up navigation in the long list. | |
349 | */ | |
dc5895cb GS |
350 | /* asycii based meters {{{ */ |
351 | DMM( | |
352 | "metrix-mx56c", asycii, "Metrix", "MX56C", | |
10cfb048 | 353 | "2400/8n1", ASYCII_PACKET_SIZE, 0, 0, NULL, |
dc5895cb GS |
354 | sr_asycii_packet_valid, sr_asycii_parse, NULL |
355 | ), | |
356 | /* }}} */ | |
c0678584 GS |
357 | /* bm25x based meters {{{ */ |
358 | DMM( | |
359 | "brymen-bm25x", bm25x, | |
360 | "Brymen", "BM25x", "9600/8n1/rts=1/dtr=1", | |
10cfb048 | 361 | BRYMEN_BM25X_PACKET_SIZE, 0, 0, NULL, |
c0678584 GS |
362 | sr_brymen_bm25x_packet_valid, sr_brymen_bm25x_parse, |
363 | NULL | |
364 | ), | |
365 | /* }}} */ | |
400bc4ff GS |
366 | /* bm52x based meters {{{ */ |
367 | DMM_CONN( | |
368 | "brymen-bm52x", brymen_bm52x, "Brymen", "BM52x", | |
369 | "hid/bu86x", NULL, BRYMEN_BM52X_PACKET_SIZE, 4000, 500, | |
370 | sr_brymen_bm52x_packet_request, | |
371 | sr_brymen_bm52x_packet_valid, sr_brymen_bm52x_parse, | |
372 | NULL | |
373 | ), | |
374 | /* }}} */ | |
27186eda GS |
375 | /* bm85x based meters {{{ */ |
376 | DMM_LEN( | |
377 | "brymen-bm85x", brymen_bm85x, "Brymen", "BM85x", | |
378 | NULL, "9600/8n1/dtr=1/rts=1", | |
379 | BRYMEN_BM85x_PACKET_SIZE_MIN, 2000, 400, | |
380 | NULL, NULL, /* INIT/FREE for DMM state */ | |
381 | brymen_bm85x_after_open, brymen_bm85x_packet_request, | |
382 | brymen_bm85x_packet_valid, brymen_bm85x_parse, | |
383 | NULL | |
384 | ), | |
385 | /* }}} */ | |
0759e2f5 GS |
386 | /* bm86x based meters {{{ */ |
387 | DMM_CONN( | |
388 | "brymen-bm86x", brymen_bm86x, "Brymen", "BM86x", | |
b800667d | 389 | "hid/bu86x", NULL, BRYMEN_BM86X_PACKET_SIZE, 500, 100, |
0759e2f5 GS |
390 | sr_brymen_bm86x_packet_request, |
391 | sr_brymen_bm86x_packet_valid, sr_brymen_bm86x_parse, | |
392 | NULL | |
393 | ), | |
394 | /* }}} */ | |
440a374f GS |
395 | /* dtm0660 based meters {{{ */ |
396 | DMM( | |
397 | "peaktech-3415", dtm0660, | |
6c62c605 | 398 | "PeakTech", "3415", "2400/8n1/rts=0/dtr=1", |
10cfb048 | 399 | DTM0660_PACKET_SIZE, 0, 0, NULL, |
440a374f GS |
400 | sr_dtm0660_packet_valid, sr_dtm0660_parse, NULL |
401 | ), | |
402 | DMM( | |
403 | "velleman-dvm4100", dtm0660, | |
404 | "Velleman", "DVM4100", "2400/8n1/rts=0/dtr=1", | |
10cfb048 | 405 | DTM0660_PACKET_SIZE, 0, 0, NULL, |
440a374f GS |
406 | sr_dtm0660_packet_valid, sr_dtm0660_parse, NULL |
407 | ), | |
408 | /* }}} */ | |
015df4ae GS |
409 | /* eev121gw based meters {{{ */ |
410 | DMM( | |
411 | "eevblog-121gw", eev121gw, "EEVblog", "121GW", | |
10cfb048 | 412 | "115200/8n1", EEV121GW_PACKET_SIZE, 0, 0, NULL, |
015df4ae GS |
413 | sr_eev121gw_packet_valid, sr_eev121gw_3displays_parse, NULL |
414 | ), | |
415 | /* }}} */ | |
7532f61d GS |
416 | /* es519xx based meters {{{ */ |
417 | DMM( | |
418 | "iso-tech-idm103n", es519xx, | |
419 | "ISO-TECH", "IDM103N", "2400/7o1/rts=0/dtr=1", | |
10cfb048 | 420 | ES519XX_11B_PACKET_SIZE, 0, 0, NULL, |
7532f61d GS |
421 | sr_es519xx_2400_11b_packet_valid, sr_es519xx_2400_11b_parse, |
422 | NULL | |
423 | ), | |
d5b1b76d GS |
424 | /* |
425 | * Note: ES51922 and ES51986 baudrate is actually 19230. This is | |
426 | * "out" by .15%, and so is well within the typical 1% margin | |
427 | * that is considered acceptable in UART communication, and thus | |
428 | * should not cause an issue. | |
82458e50 UH |
429 | * |
430 | * However, using 19230 as baudrate here will not work, as most DMM | |
431 | * cables do not support that baudrate! | |
d5b1b76d | 432 | */ |
7532f61d GS |
433 | DMM( |
434 | "tenma-72-7750-ser", es519xx, | |
7532f61d | 435 | "Tenma", "72-7750 (UT-D02 cable)", "19200/7o1/rts=0/dtr=1", |
10cfb048 | 436 | ES519XX_11B_PACKET_SIZE, 0, 0, NULL, |
7532f61d GS |
437 | sr_es519xx_19200_11b_packet_valid, sr_es519xx_19200_11b_parse, |
438 | NULL | |
439 | ), | |
440 | DMM( | |
7532f61d GS |
441 | "uni-t-ut60g-ser", es519xx, |
442 | "UNI-T", "UT60G (UT-D02 cable)", "19200/7o1/rts=0/dtr=1", | |
10cfb048 | 443 | ES519XX_11B_PACKET_SIZE, 0, 0, NULL, |
7532f61d GS |
444 | sr_es519xx_19200_11b_packet_valid, sr_es519xx_19200_11b_parse, |
445 | NULL | |
446 | ), | |
447 | DMM( | |
448 | "uni-t-ut61e-ser", es519xx, | |
7532f61d | 449 | "UNI-T", "UT61E (UT-D02 cable)", "19200/7o1/rts=0/dtr=1", |
10cfb048 | 450 | ES519XX_14B_PACKET_SIZE, 0, 0, NULL, |
7532f61d GS |
451 | sr_es519xx_19200_14b_packet_valid, sr_es519xx_19200_14b_parse, |
452 | NULL | |
453 | ), | |
454 | /* }}} */ | |
289e1f4e | 455 | /* fs9721 based meters {{{ */ |
bcbef5ed ML |
456 | DMM( |
457 | "digitek-dt4000zc", fs9721, | |
10cfb048 | 458 | "Digitek", "DT4000ZC", "2400/8n1/dtr=1", |
bcbef5ed ML |
459 | FS9721_PACKET_SIZE, 0, 0, NULL, |
460 | sr_fs9721_packet_valid, sr_fs9721_parse, | |
461 | sr_fs9721_10_temp_c | |
462 | ), | |
bcbef5ed ML |
463 | DMM( |
464 | "mastech-ms8250b", fs9721, | |
465 | "MASTECH", "MS8250B", "2400/8n1/rts=0/dtr=1", | |
10cfb048 | 466 | FS9721_PACKET_SIZE, 0, 0, NULL, |
bcbef5ed ML |
467 | sr_fs9721_packet_valid, sr_fs9721_parse, |
468 | NULL | |
469 | ), | |
470 | DMM( | |
1cd40b57 | 471 | "pce-pce-dm32", fs9721, |
10cfb048 | 472 | "PCE", "PCE-DM32", "2400/8n1", |
bcbef5ed ML |
473 | FS9721_PACKET_SIZE, 0, 0, NULL, |
474 | sr_fs9721_packet_valid, sr_fs9721_parse, | |
1cd40b57 | 475 | sr_fs9721_01_10_temp_f_c |
bcbef5ed | 476 | ), |
289e1f4e | 477 | DMM( |
1cd40b57 | 478 | "peaktech-3330", fs9721, |
10cfb048 | 479 | "PeakTech", "3330", "2400/8n1/dtr=1", |
289e1f4e GS |
480 | FS9721_PACKET_SIZE, 0, 0, NULL, |
481 | sr_fs9721_packet_valid, sr_fs9721_parse, | |
482 | sr_fs9721_01_10_temp_f_c | |
483 | ), | |
484 | DMM( | |
485 | "tecpel-dmm-8061-ser", fs9721, | |
486 | "Tecpel", "DMM-8061 (UT-D02 cable)", "2400/8n1/rts=0/dtr=1", | |
10cfb048 | 487 | FS9721_PACKET_SIZE, 0, 0, NULL, |
289e1f4e GS |
488 | sr_fs9721_packet_valid, sr_fs9721_parse, |
489 | sr_fs9721_00_temp_c | |
490 | ), | |
491 | DMM( | |
1cd40b57 | 492 | "tekpower-tp4000ZC", fs9721, |
10cfb048 | 493 | "TekPower", "TP4000ZC", "2400/8n1/dtr=1", |
1cd40b57 | 494 | FS9721_PACKET_SIZE, 0, 0, NULL, |
289e1f4e | 495 | sr_fs9721_packet_valid, sr_fs9721_parse, |
1cd40b57 | 496 | sr_fs9721_10_temp_c |
289e1f4e GS |
497 | ), |
498 | DMM( | |
1cd40b57 GS |
499 | "tenma-72-7745-ser", fs9721, |
500 | "Tenma", "72-7745 (UT-D02 cable)", "2400/8n1/rts=0/dtr=1", | |
10cfb048 | 501 | FS9721_PACKET_SIZE, 0, 0, NULL, |
289e1f4e GS |
502 | sr_fs9721_packet_valid, sr_fs9721_parse, |
503 | sr_fs9721_00_temp_c | |
504 | ), | |
505 | DMM( | |
506 | "uni-t-ut60a-ser", fs9721, | |
507 | "UNI-T", "UT60A (UT-D02 cable)", "2400/8n1/rts=0/dtr=1", | |
10cfb048 | 508 | FS9721_PACKET_SIZE, 0, 0, NULL, |
289e1f4e GS |
509 | sr_fs9721_packet_valid, sr_fs9721_parse, |
510 | NULL | |
511 | ), | |
512 | DMM( | |
513 | "uni-t-ut60e-ser", fs9721, | |
514 | "UNI-T", "UT60E (UT-D02 cable)", "2400/8n1/rts=0/dtr=1", | |
10cfb048 | 515 | FS9721_PACKET_SIZE, 0, 0, NULL, |
289e1f4e GS |
516 | sr_fs9721_packet_valid, sr_fs9721_parse, |
517 | sr_fs9721_00_temp_c | |
518 | ), | |
519 | DMM( | |
1cd40b57 | 520 | "va-va18b", fs9721, |
10cfb048 | 521 | "V&A", "VA18B", "2400/8n1", |
1cd40b57 | 522 | FS9721_PACKET_SIZE, 0, 0, NULL, |
289e1f4e | 523 | sr_fs9721_packet_valid, sr_fs9721_parse, |
1cd40b57 | 524 | sr_fs9721_01_temp_c |
289e1f4e GS |
525 | ), |
526 | DMM( | |
1cd40b57 | 527 | "va-va40b", fs9721, |
10cfb048 | 528 | "V&A", "VA40B", "2400/8n1", |
289e1f4e GS |
529 | FS9721_PACKET_SIZE, 0, 0, NULL, |
530 | sr_fs9721_packet_valid, sr_fs9721_parse, | |
1cd40b57 GS |
531 | sr_fs9721_max_c_min |
532 | ), | |
533 | DMM( | |
534 | "voltcraft-vc820-ser", fs9721, | |
535 | "Voltcraft", "VC-820 (UT-D02 cable)", "2400/8n1/rts=0/dtr=1", | |
10cfb048 | 536 | FS9721_PACKET_SIZE, 0, 0, NULL, |
1cd40b57 GS |
537 | sr_fs9721_packet_valid, sr_fs9721_parse, |
538 | NULL | |
539 | ), | |
540 | DMM( | |
541 | "voltcraft-vc840-ser", fs9721, | |
542 | "Voltcraft", "VC-840 (UT-D02 cable)", "2400/8n1/rts=0/dtr=1", | |
10cfb048 | 543 | FS9721_PACKET_SIZE, 0, 0, NULL, |
1cd40b57 GS |
544 | sr_fs9721_packet_valid, sr_fs9721_parse, |
545 | sr_fs9721_00_temp_c | |
289e1f4e GS |
546 | ), |
547 | /* }}} */ | |
0e27643f | 548 | /* fs9922 based meters {{{ */ |
a3ec8a9a TK |
549 | DMM( |
550 | "gwinstek-gdm-397", fs9922, | |
551 | "GW Instek", "GDM-397", "2400/8n1/rts=0/dtr=1", | |
552 | FS9922_PACKET_SIZE, 0, 0, NULL, | |
553 | sr_fs9922_packet_valid, sr_fs9922_parse, NULL | |
554 | ), | |
f97c1595 R |
555 | DMM( |
556 | "sparkfun-70c", fs9922, | |
557 | "SparkFun", "70C", "2400/8n1/rts=0/dtr=1", | |
10cfb048 | 558 | FS9922_PACKET_SIZE, 0, 0, NULL, |
f97c1595 R |
559 | sr_fs9922_packet_valid, sr_fs9922_parse, NULL |
560 | ), | |
0e27643f GS |
561 | DMM( |
562 | "uni-t-ut61b-ser", fs9922, | |
563 | "UNI-T", "UT61B (UT-D02 cable)", "2400/8n1/rts=0/dtr=1", | |
10cfb048 | 564 | FS9922_PACKET_SIZE, 0, 0, NULL, |
0e27643f GS |
565 | sr_fs9922_packet_valid, sr_fs9922_parse, NULL |
566 | ), | |
567 | DMM( | |
568 | "uni-t-ut61c-ser", fs9922, | |
569 | "UNI-T", "UT61C (UT-D02 cable)", "2400/8n1/rts=0/dtr=1", | |
10cfb048 | 570 | FS9922_PACKET_SIZE, 0, 0, NULL, |
0e27643f GS |
571 | sr_fs9922_packet_valid, sr_fs9922_parse, NULL |
572 | ), | |
573 | DMM( | |
574 | "uni-t-ut61d-ser", fs9922, | |
575 | "UNI-T", "UT61D (UT-D02 cable)", "2400/8n1/rts=0/dtr=1", | |
10cfb048 | 576 | FS9922_PACKET_SIZE, 0, 0, NULL, |
0e27643f GS |
577 | sr_fs9922_packet_valid, sr_fs9922_parse, NULL |
578 | ), | |
03f169b3 GS |
579 | DMM_CONN( |
580 | "victor-dmm", fs9922, "Victor", "Victor DMMs", | |
581 | "hid/victor", "2400/8n1", FS9922_PACKET_SIZE, 0, 0, NULL, | |
388aa0fb TW |
582 | sr_fs9922_packet_valid, sr_fs9922_parse, NULL |
583 | ), | |
0e27643f GS |
584 | DMM( |
585 | /* | |
586 | * Note: The VC830 doesn't set the 'volt' and 'diode' bits of | |
587 | * the FS9922 protocol. Instead, it only sets the user-defined | |
588 | * bit "z1" to indicate "diode mode" and "voltage". | |
589 | */ | |
590 | "voltcraft-vc830-ser", fs9922, | |
591 | "Voltcraft", "VC-830 (UT-D02 cable)", "2400/8n1/rts=0/dtr=1", | |
10cfb048 | 592 | FS9922_PACKET_SIZE, 0, 0, NULL, |
0e27643f GS |
593 | sr_fs9922_packet_valid, sr_fs9922_parse, |
594 | &sr_fs9922_z1_diode | |
595 | ), | |
596 | /* }}} */ | |
9d12555f | 597 | /* m2110 based meters {{{ */ |
289e1f4e | 598 | DMM( |
9d12555f | 599 | "bbcgm-2010", m2110, |
10cfb048 | 600 | "BBC Goertz Metrawatt", "M2110", "1200/7n2", |
289e1f4e GS |
601 | BBCGM_M2110_PACKET_SIZE, 0, 0, NULL, |
602 | sr_m2110_packet_valid, sr_m2110_parse, | |
603 | NULL | |
604 | ), | |
9d12555f | 605 | /* }}} */ |
dcd212f7 VV |
606 | /* ms2115b based meters {{{ */ |
607 | DMM( | |
608 | "mastech-ms2115b", ms2115b, | |
609 | "MASTECH", "MS2115B", "1200/8n1", | |
10cfb048 | 610 | MS2115B_PACKET_SIZE, 0, 0, NULL, |
dcd212f7 VV |
611 | sr_ms2115b_packet_valid, sr_ms2115b_parse, |
612 | NULL | |
613 | ), | |
614 | /* }}} */ | |
67070942 M |
615 | /* ms8250d based meters {{{ */ |
616 | DMM( | |
617 | "mastech-ms8250d", ms8250d, | |
618 | "MASTECH", "MS8250D", "2400/8n1/rts=0/dtr=1", | |
10cfb048 | 619 | MS8250D_PACKET_SIZE, 0, 0, NULL, |
67070942 M |
620 | sr_ms8250d_packet_valid, sr_ms8250d_parse, |
621 | NULL | |
622 | ), | |
623 | /* }}} */ | |
9d12555f | 624 | /* metex14 based meters {{{ */ |
289e1f4e | 625 | DMM( |
b35d0023 | 626 | "mastech-mas345", metex14, |
10cfb048 | 627 | "MASTECH", "MAS345", "600/7n2/rts=0/dtr=1", |
289e1f4e GS |
628 | METEX14_PACKET_SIZE, 0, 0, sr_metex14_packet_request, |
629 | sr_metex14_packet_valid, sr_metex14_parse, | |
630 | NULL | |
631 | ), | |
632 | DMM( | |
b35d0023 | 633 | "metex-m3640d", metex14, |
10cfb048 | 634 | "Metex", "M-3640D", "1200/7n2/rts=0/dtr=1", |
289e1f4e GS |
635 | METEX14_PACKET_SIZE, 0, 0, sr_metex14_packet_request, |
636 | sr_metex14_packet_valid, sr_metex14_parse, | |
637 | NULL | |
638 | ), | |
fcc73918 FS |
639 | DMM( |
640 | "metex-m3860m", metex14, | |
10cfb048 | 641 | "Metex", "M-3860M", "9600/7n2/rts=0/dtr=1", |
556a926d GS |
642 | 4 * METEX14_PACKET_SIZE, 0, 0, sr_metex14_packet_request, |
643 | sr_metex14_4packets_valid, sr_metex14_4packets_parse, | |
fcc73918 FS |
644 | NULL |
645 | ), | |
289e1f4e | 646 | DMM( |
b35d0023 | 647 | "metex-m4650cr", metex14, |
10cfb048 | 648 | "Metex", "M-4650CR", "1200/7n2/rts=0/dtr=1", |
289e1f4e GS |
649 | METEX14_PACKET_SIZE, 0, 0, sr_metex14_packet_request, |
650 | sr_metex14_packet_valid, sr_metex14_parse, | |
651 | NULL | |
652 | ), | |
6d2e3070 TF |
653 | DMM( |
654 | "metex-me21", metex14, | |
655 | "Metex", "ME-21", "2400/7n2/rts=0/dtr=1", | |
656 | METEX14_PACKET_SIZE, 0, 0, sr_metex14_packet_request, | |
657 | sr_metex14_packet_valid, sr_metex14_parse, | |
658 | NULL | |
659 | ), | |
bcbef5ed | 660 | DMM( |
b35d0023 | 661 | "metex-me31", metex14, |
10cfb048 | 662 | "Metex", "ME-31", "600/7n2/rts=0/dtr=1", |
bcbef5ed ML |
663 | METEX14_PACKET_SIZE, 0, 0, sr_metex14_packet_request, |
664 | sr_metex14_packet_valid, sr_metex14_parse, | |
665 | NULL | |
666 | ), | |
667 | DMM( | |
b35d0023 | 668 | "peaktech-3410", metex14, |
10cfb048 | 669 | "PeakTech", "3410", "600/7n2/rts=0/dtr=1", |
bcbef5ed ML |
670 | METEX14_PACKET_SIZE, 0, 0, sr_metex14_packet_request, |
671 | sr_metex14_packet_valid, sr_metex14_parse, | |
672 | NULL | |
673 | ), | |
674 | DMM( | |
675 | "peaktech-4370", metex14, | |
10cfb048 | 676 | "PeakTech", "4370", "1200/7n2/rts=0/dtr=1", |
bcbef5ed ML |
677 | METEX14_PACKET_SIZE, 0, 0, sr_metex14_packet_request, |
678 | sr_metex14_packet_valid, sr_metex14_parse, | |
679 | NULL | |
680 | ), | |
19c9b176 UH |
681 | DMM( |
682 | "peaktech-4390a", metex14, | |
10cfb048 | 683 | "PeakTech", "4390A", "9600/7n2/rts=0/dtr=1", |
556a926d GS |
684 | 4 * METEX14_PACKET_SIZE, 0, 0, sr_metex14_packet_request, |
685 | sr_metex14_4packets_valid, sr_metex14_4packets_parse, | |
19c9b176 UH |
686 | NULL |
687 | ), | |
bcbef5ed ML |
688 | DMM( |
689 | "radioshack-22-168", metex14, | |
10cfb048 | 690 | "RadioShack", "22-168", "1200/7n2/rts=0/dtr=1", |
bcbef5ed ML |
691 | METEX14_PACKET_SIZE, 0, 0, sr_metex14_packet_request, |
692 | sr_metex14_packet_valid, sr_metex14_parse, | |
693 | NULL | |
694 | ), | |
695 | DMM( | |
696 | "radioshack-22-805", metex14, | |
10cfb048 | 697 | "RadioShack", "22-805", "600/7n2/rts=0/dtr=1", |
bcbef5ed ML |
698 | METEX14_PACKET_SIZE, 0, 0, sr_metex14_packet_request, |
699 | sr_metex14_packet_valid, sr_metex14_parse, | |
700 | NULL | |
701 | ), | |
bcbef5ed ML |
702 | DMM( |
703 | "voltcraft-m3650cr", metex14, | |
10cfb048 | 704 | "Voltcraft", "M-3650CR", "1200/7n2/rts=0/dtr=1", |
bcbef5ed ML |
705 | METEX14_PACKET_SIZE, 150, 20, sr_metex14_packet_request, |
706 | sr_metex14_packet_valid, sr_metex14_parse, | |
707 | NULL | |
708 | ), | |
709 | DMM( | |
710 | "voltcraft-m3650d", metex14, | |
10cfb048 | 711 | "Voltcraft", "M-3650D", "1200/7n2/rts=0/dtr=1", |
bcbef5ed ML |
712 | METEX14_PACKET_SIZE, 0, 0, sr_metex14_packet_request, |
713 | sr_metex14_packet_valid, sr_metex14_parse, | |
714 | NULL | |
715 | ), | |
716 | DMM( | |
717 | "voltcraft-m4650cr", metex14, | |
10cfb048 | 718 | "Voltcraft", "M-4650CR", "1200/7n2/rts=0/dtr=1", |
bcbef5ed ML |
719 | METEX14_PACKET_SIZE, 0, 0, sr_metex14_packet_request, |
720 | sr_metex14_packet_valid, sr_metex14_parse, | |
721 | NULL | |
722 | ), | |
723 | DMM( | |
724 | "voltcraft-me42", metex14, | |
10cfb048 | 725 | "Voltcraft", "ME-42", "600/7n2/rts=0/dtr=1", |
bcbef5ed ML |
726 | METEX14_PACKET_SIZE, 250, 60, sr_metex14_packet_request, |
727 | sr_metex14_packet_valid, sr_metex14_parse, | |
728 | NULL | |
729 | ), | |
ab34156b | 730 | /* }}} */ |
92496488 | 731 | /* rs9lcd based meters {{{ */ |
ab34156b GS |
732 | DMM( |
733 | "radioshack-22-812", rs9lcd, | |
10cfb048 | 734 | "RadioShack", "22-812", "4800/8n1/rts=0/dtr=1", |
ab34156b GS |
735 | RS9LCD_PACKET_SIZE, 0, 0, NULL, |
736 | sr_rs9lcd_packet_valid, sr_rs9lcd_parse, | |
737 | NULL | |
738 | ), | |
92496488 | 739 | /* }}} */ |
6c6e5e47 | 740 | /* ut71x based meters {{{ */ |
bcbef5ed | 741 | DMM( |
53e875ab GS |
742 | "tenma-72-7730-ser", ut71x, |
743 | "Tenma", "72-7730 (UT-D02 cable)", "2400/7o1/rts=0/dtr=1", | |
10cfb048 | 744 | UT71X_PACKET_SIZE, 0, 0, NULL, |
bcbef5ed ML |
745 | sr_ut71x_packet_valid, sr_ut71x_parse, NULL |
746 | ), | |
747 | DMM( | |
53e875ab GS |
748 | "tenma-72-7732-ser", ut71x, |
749 | "Tenma", "72-7732 (UT-D02 cable)", "2400/7o1/rts=0/dtr=1", | |
10cfb048 | 750 | UT71X_PACKET_SIZE, 0, 0, NULL, |
bcbef5ed ML |
751 | sr_ut71x_packet_valid, sr_ut71x_parse, NULL |
752 | ), | |
753 | DMM( | |
53e875ab GS |
754 | "tenma-72-9380a-ser", ut71x, |
755 | "Tenma", "72-9380A (UT-D02 cable)", "2400/7o1/rts=0/dtr=1", | |
10cfb048 | 756 | UT71X_PACKET_SIZE, 0, 0, NULL, |
bcbef5ed ML |
757 | sr_ut71x_packet_valid, sr_ut71x_parse, NULL |
758 | ), | |
bcbef5ed ML |
759 | DMM( |
760 | "uni-t-ut71a-ser", ut71x, | |
761 | "UNI-T", "UT71A (UT-D02 cable)", "2400/7o1/rts=0/dtr=1", | |
10cfb048 | 762 | UT71X_PACKET_SIZE, 0, 0, NULL, |
bcbef5ed ML |
763 | sr_ut71x_packet_valid, sr_ut71x_parse, NULL |
764 | ), | |
765 | DMM( | |
766 | "uni-t-ut71b-ser", ut71x, | |
767 | "UNI-T", "UT71B (UT-D02 cable)", "2400/7o1/rts=0/dtr=1", | |
10cfb048 | 768 | UT71X_PACKET_SIZE, 0, 0, NULL, |
bcbef5ed ML |
769 | sr_ut71x_packet_valid, sr_ut71x_parse, NULL |
770 | ), | |
771 | DMM( | |
772 | "uni-t-ut71c-ser", ut71x, | |
773 | "UNI-T", "UT71C (UT-D02 cable)", "2400/7o1/rts=0/dtr=1", | |
10cfb048 | 774 | UT71X_PACKET_SIZE, 0, 0, NULL, |
bcbef5ed ML |
775 | sr_ut71x_packet_valid, sr_ut71x_parse, NULL |
776 | ), | |
777 | DMM( | |
778 | "uni-t-ut71d-ser", ut71x, | |
779 | "UNI-T", "UT71D (UT-D02 cable)", "2400/7o1/rts=0/dtr=1", | |
10cfb048 | 780 | UT71X_PACKET_SIZE, 0, 0, NULL, |
bcbef5ed ML |
781 | sr_ut71x_packet_valid, sr_ut71x_parse, NULL |
782 | ), | |
783 | DMM( | |
784 | "uni-t-ut71e-ser", ut71x, | |
785 | "UNI-T", "UT71E (UT-D02 cable)", "2400/7o1/rts=0/dtr=1", | |
10cfb048 | 786 | UT71X_PACKET_SIZE, 0, 0, NULL, |
bcbef5ed ML |
787 | sr_ut71x_packet_valid, sr_ut71x_parse, NULL |
788 | ), | |
ca7d4426 EE |
789 | DMM( |
790 | "uni-t-ut804-ser", ut71x, | |
791 | "UNI-T", "UT804", "2400/7o1/rts=0/dtr=1", | |
792 | UT71X_PACKET_SIZE, 0, 0, NULL, | |
793 | sr_ut71x_packet_valid, sr_ut71x_parse, NULL | |
794 | ), | |
b1cadcfb | 795 | DMM( |
53e875ab GS |
796 | "voltcraft-vc920-ser", ut71x, |
797 | "Voltcraft", "VC-920 (UT-D02 cable)", "2400/7o1/rts=0/dtr=1", | |
10cfb048 | 798 | UT71X_PACKET_SIZE, 0, 0, NULL, |
b1cadcfb KP |
799 | sr_ut71x_packet_valid, sr_ut71x_parse, NULL |
800 | ), | |
0a4549ff | 801 | DMM( |
53e875ab GS |
802 | "voltcraft-vc940-ser", ut71x, |
803 | "Voltcraft", "VC-940 (UT-D02 cable)", "2400/7o1/rts=0/dtr=1", | |
10cfb048 | 804 | UT71X_PACKET_SIZE, 0, 0, NULL, |
0a4549ff UH |
805 | sr_ut71x_packet_valid, sr_ut71x_parse, NULL |
806 | ), | |
20f9f1fb | 807 | DMM( |
53e875ab GS |
808 | "voltcraft-vc960-ser", ut71x, |
809 | "Voltcraft", "VC-960 (UT-D02 cable)", "2400/7o1/rts=0/dtr=1", | |
10cfb048 | 810 | UT71X_PACKET_SIZE, 0, 0, NULL, |
20f9f1fb UH |
811 | sr_ut71x_packet_valid, sr_ut71x_parse, NULL |
812 | ), | |
6c6e5e47 | 813 | /* }}} */ |
89a3d8af | 814 | /* vc870 based meters {{{ */ |
6c6e5e47 GS |
815 | DMM( |
816 | "voltcraft-vc870-ser", vc870, | |
817 | "Voltcraft", "VC-870 (UT-D02 cable)", "9600/8n1/rts=0/dtr=1", | |
10cfb048 | 818 | VC870_PACKET_SIZE, 0, 0, NULL, |
6c6e5e47 GS |
819 | sr_vc870_packet_valid, sr_vc870_parse, NULL |
820 | ), | |
89a3d8af | 821 | /* }}} */ |
c5c6fa0f UH |
822 | /* vc96 based meters {{{ */ |
823 | DMM( | |
824 | "voltcraft-vc96", vc96, | |
10cfb048 | 825 | "Voltcraft", "VC-96", "1200/8n2", |
c5c6fa0f UH |
826 | VC96_PACKET_SIZE, 0, 0, NULL, |
827 | sr_vc96_packet_valid, sr_vc96_parse, | |
828 | NULL | |
829 | ), | |
830 | /* }}} */ | |
89a3d8af GS |
831 | /* |
832 | * The list is sorted. Add new items in the respective chip's group. | |
833 | */ | |
dd5c48a6 | 834 | ); |