On Thu, Dec 9, 2010 at 11:03 PM, j m <[email protected]> wrote:
> I'm a user of the Bayer Contour USB Glucometer. It's basically a thumb drive
> with a glucometer inside. You feed it a drop of blood, then plug it into a
> USB
> port to be read by a desktop sqlite3 database program. Wiindows/Mac only.
>
> I'm wondering if pyusb 1.0 could read this sucker. I can identify the
> device,
> but at this point the code errors out with "Resource Busy."
>
If the kernel's got a driver set up for the device, then you have to
tell the kernel
to let go before you can set the configuration etc.
I forget the API function, but it's obvious if you look.
Also you probably need to do this as root.
Does it mount as a serial to usb device, I wonder, or a filesystem?
Have you used 'lsusb -v'?
If it's one of those two, you've got a better chance of getting data
out of it than if they've gone and implemented a custom USB device.
good luck!
best regards,
Nick Caruso
------------------------------------------------------------------------------
_______________________________________________
pyusb-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyusb-users