Summary: | Move USB/HID emulation code to serial.c, merge uni-t-dmm and serial-dmm drivers | ||
---|---|---|---|
Product: | libsigrok | Reporter: | Uwe Hermann <uwe> |
Component: | Driver: uni-t-dmm | Assignee: | Uwe Hermann <uwe> |
Status: | CONFIRMED --- | ||
Severity: | minor | CC: | Gerhard.Sittig |
Priority: | Normal | ||
Version: | unreleased development snapshot | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All |
Description
Uwe Hermann
2014-01-06 17:53:05 CET
Revisiting this, we're planning to move the USB/HID serial emulation code into the serial.c wrappers and then merge the serial-dmm and uni-t-dmm drivers, eliminating quite some code duplication and the useless "-ser" drivername prefix at the same time. This will also help with other devices e.g. the UNI-T UT612 which we'll be able to add to the generic es51919 driver more easily. Status update: The serial-over-HID approach indeed does work, and disguises HID cables as regular COM ports. I've successfully used UT612 with an unmodified serial-lcr driver, used the uni-t-ut61c-ser driver with a USB cable, and used UT325 with a modified driver which used "a COM port". Another byproduct was that I could use the "hid" spec as the conn= default in the driver, and have the meters auto-detected without user provided specs beyond the -d type. Another status update: Serial over HID (and Bluetooth) support was integrated with mainline in the meantime, transparent operation of UT-D04 and other cables (Victor, Brymen) were verified. Merging uni-t-dmm into serial-dmm is possible, and will be done. |