[Libdlo] Synchronous vs. asynchronous USB

Steve (Endurance) srevill at endurancetech.co.uk
Mon May 25 06:41:20 PDT 2009


On 25 May, Phil Endecott <spam_from_libdlo at chezphil.org> wrote:
> I'm not sure what libdlo should do about this.  Perhaps a useful first 
> step is to make it possible for users to get at the format conversion 
> stuff separately from the USB transport.  I.e. (pseudo-code) 
> re-implement things like dlo_copy_host_bmp as follows:
>
> dlo_copy_host_bmp(...) {
>    buffer buf;
>    dlo_make_copy_host_bmp_cmds(....,buf);
>    usb_bulk_write(buf);
> }

Interesting suggestion. Reason libdlo is currently structured in this way
because of its original use in embedded systems, where memory for large
buffers is at a premium. It was also specified to be single threaded.

Your suggestion is certainly possible, we'd want to wrap the
usb_bulk_write() into a dlo_ call which is published in libdlo.h so that
it's consistent with the rest of the API. 

> Basically it's WiFi + MIPS processor running Linux + 32 MBytes RAM + 1 
> USB 2.0 host controller. Plug this in to your DisplayLink device and 
> you have a wireless display.

We've run a version of libdlo on an ASUS WL-500gp router running OpenWrt in
the past. That was also a Broadcom (MIPS) CPU, 32MiB RAM, 8MiB flash and USB
2.0. It worked pretty well - we could certainly run a slideshow application
which was driving four DisplayLink devices from it.

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 informtion 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