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."

Is it possible to get a data dump from this thing w/o help from Bayer?



#! /usr/bin/python

import usb.core
import usb.util
import sys

#Bus 001 Device 042: ID 1a79:6002 Bayer Health Care LLC

p1=0x1a79
p2=0x6002

device = usb.core.find(idVendor=p1, idProduct=p2)

if device is None:
    print "Bayer Contour USB not attached"
else:
    print "Bayer Contour USB attached"
    try:
         device.set_configuration()
         device.reset()
    except usb.core.USBError as e:
         sys.exit("Could not set configuration: %s" % str(e))
------------------------------------------------------------------------------
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to