Re: bitpim and libusb

Nathan Hjelm <[email protected]> Thu, 14 Jan 2010 22:55:31 -0700
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <[email protected]>
Attached is a working (on 10.6.2 anyway) prototype of native/usb1 (and modifications -- not yet ready to be committed-- to usbscan.py and commport.py). Please give the new module a try. Note that the library path is hardcoded for macos (/opt/local/lib/libusb-1.0.dylib) and will need to be updated to support linux/bsd.

The module uses ctypes instead of SWIG because I felt this approach would be cleaner and easier to maintain. Any comments on this approach?

Joe, do you have any comments?



-Nathan

On Jan 13, 2010, at 1:43 PM, Sean Patrick Burke wrote:

> A move to libusb 1.0 would help on the mac side as well. 
> --
> Sean Patrick Burke
> Full time law student, part time developer
> http://www.bitpim.org
> 
> 
> 
> 
> On Jan 13, 2010, at 2:06 PM, Aaron M. Ucko wrote:
> 
>> Nathan Hjelm <[email protected]> writes:
>> 
>>> Is anyone opposed to this change? If not I would like to
>>> make the changes before the release of 1.0.7.
>> 
>> That sounds reasonable.  In the long term, you might want to consider
>> migrating to PyUSB <http://pyusb.berlios.de/>, but its stable branch
>> only supports libusb 0.1, so that's not really an option just yet.
>> 
>> -- 
>> Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
>> Finger [email protected] (NOT a valid e-mail address) for more info.
>> 
>> ------------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Verizon Developer Community
>> Take advantage of Verizon's best-in-class app development support
>> A streamlined, 14 day to market process makes app distribution fast and easy
>> Join now and get one step closer to millions of Verizon customers
>> http://p.sf.net/sfu/verizon-dev2dev 
>> _______________________________________________
>> BitPim-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/bitpim-devel
> 
> 
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> _______________________________________________
> BitPim-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bitpim-devel

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev

_______________________________________________
BitPim-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
bitpim_src_libusb1.tgz (application/octet-stream, 8.8 KB) - not displayed