[Libdlo] Detecting different DL chips

Steve (Endurance) srevill at endurancetech.co.uk
Fri Jun 4 07:48:49 PDT 2010


On 04 Jun, Andy Fisher <a.j.fisher at displaylink.com> wrote:
> Hi,
>
> We have had a number of requests as to how to detect which DL chip is in a
> given product. Time doesn't permit working this into libdlo at the moment
> so I am posting a python code snippet that will hopefully help in the
> meantime. 
>
> More recent products support a capability description in the USB
> descriptors. However to be more complete the code example will interrogate
> the device at a lower level if this descriptor is not present. The example
> requires libusb and will return a dictionary with information including
> the DL device, memory sizes, max resolutions etc.

The bare bones of this functionality is implemented in libdlo in the
check_device() function of dlo_usb.c (search for the string "type of
device") so that'd probably be the place to insert a better implementation
into the library for future reference.

Thanks,

Steve

-- 
Stephen Revill, Technical Project Leader           Tel: +44 (0) 1353 740 267
Endurance Technology Ltd                           Fax: +44 (0) 87 1251 7002 
5 Marine Drive West, Bognor Regis,           http://www.endurancetech.co.uk/
West Sussex, PO21 2QA, UK                 Registered in England No. 04372566
                                         VAT Registration No. GB 794 5274 86

This e-mail and any attachments may contain information which is
confidential, proprietary, privileged or otherwise protected by law. The
information is solely intended for the named addressee (or a person
responsible for delivering it to the addressee). If you are not the intended
recipient of this message, you are not authorized to read, print, retain,
copy or disseminate this message or any part of it. If you have received this
e-mail in error, please notify the sender immediately by return e-mail and
delete it from your computer. 


More information about the Libdlo mailing list