Thanks. I think that's what I wanted. Best regards, Charlie
-----Original Message----- From: wander.lairson [mailto:wander.lair...@gmail.com] Sent: Wednesday, January 05, 2011 1:25 AM To: pyusb-users@lists.sourceforge.net Subject: Re: [pyusb-users] Disconnecting USB 2011/1/4 Chu, Charlie (Chia-Lin, SanDiego) <charlie....@hp.com>: > Happy New Year, All, > > Is there a function allowing disconnection of a USB device once finished a > pair of write/read? Although more write/read pairs will be requested later > on, I prefer to re-establish the connection as needed. > > I used dev=usb.core.find() to connect a printer and was able to write/read to > it. Do anyone know if there is a function under dev can close the connection? > Well, there is no "concept" of device connection either in USB spec or in PyUSB. What we have is PyUSB having some internal resources allocated (device opening, interface claiming, etc), which can be relinquished using the usb.util.dispose_resources function. That's it. -- Best Regards, Wander Lairson Costa LCoN - Laboratório de Computação Natural - Natural Computing Laboratory (http://www.mackenzie.com.br/lcon.html) Programa de Pós-Graduação em Engenharia Elétrica (PPGEE) Faculdade de Computação e Informática (FCI) Universidade Presbiteriana Mackenzie - SP - Brazil ------------------------------------------------------------------------------ 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 _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users ------------------------------------------------------------------------------ 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 _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users