Hi,

Im working on adding Link Instruments MSO-19 support to sigrok, and im
struggling on how to keep the code safe for multiple device instances.

The MSO-19 uses a usb-serial bridge, and except for hardware
identification, all the communication is done in the serial layer.

The hardware identification (usb layer) is needed to get hardware type
and revision, and to apply some "quirks" to the device calibration. 

The original windows software doesn't support multiple devices at all.
And would fail usb<->serial mapping if the user had another usb device
with the same kind of usb-serial bridge as the MSO-19.

On Linux I can assert proper usb<->serial mapping using libudev, so, I
can make it multiple-instance safe easily. I don't know how to keep
proper usb<->serial mapping on other platforms.

Should I add libudev as a dependency on linux builds? Should I drop
libudev in favor of libusb and not support multiple devices at all?

Thanks!

-- 
Daniel Ribeiro

Attachment: signature.asc
Description: Esta é uma parte de mensagem assinada digitalmente

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to