[Pythonmac-SIG] Zope py2app, some progress
Bob Ippolito
bob at redivi.com
Thu Feb 10 10:12:10 CET 2005
On Feb 10, 2005, at 3:57, Roger Binns wrote:
>> Probably because it doesn't have drivers for them. If there's no
>> matching driver, it won't pull up a useful nub to stick on it.
>
> The right thing happens in the end. There is no need for drivers
> on some interfaces, and they must be used on others (eg ones that
> implement the USB modem protocol or the various USB to serial chips).
>
>> A good way to look at this tree is the Mr. Registry app that is one
>> of the targets in /Developer/IOKit/firewire/FWOffice -- despite its
>> name, it lets you look at the whole tree, not just IOFireWire.
>
> That makes it clearer. It is still not remotely like two hours work.
> (It may be for you however). I'm not going to implement all this
> but will point anyone else who does want at it. (The return on
> having to learn all this IOKit stuff, Objective C and how to map
> Objective C into Python is way too low.)
You don't need to touch Objective-C at all! IOKit is plain old C.
*I* used Objective-C because it was easier than writing a bare Python
extension because you don't have to deal with all the argument packing
and unpacking and the CFDictionaryRef, CFStringRef, etc. are
transparently bridged into Objective-C types, which are then
transparently bridged to Python types. When I'm writing Python
extensions by hand, I have to look at docs or use another extension as
a template. When I'm writing Objective-C code I just write the code
and link it in and use it. The same more or less goes with Pyrex.
>> I'd have to do a lot of reading up on that to see how to get dumps of
>> USB traffic.
>
> There is a USB Prober under /Developer/Applications/Utilities
> (BTW I have found everything you mentioned under a different path
> than you said so I don't know if you were typing them from memory
> or have a different dev kit).
Probably because it was from memory, or maybe because I might have the
FireWire SDK installed? I don't know. I don't think the USB Prober
gave me any data when I was using PocketMac, maybe they have disabled
it somehow in their drivers to maintain their monopoly on BlackBerry
software for Mac OS X?
>> I could run the BlackBerry Desktop via VirtualPC (or on a real PC) to
>> figure out how the modem stuff works, the rest I could probably get
>> by reverse engineering PocketMac.
>
> Email me the device dump of the device from the USB Prober. You'll
> probably want to do that on the bitpim-devel list.
I'll do that tomorrow. The BlackBerry has a much less interesting
dump, it only has one thing under it and it's of the "vendor specific"
type (from memory).
-bob
More information about the Pythonmac-SIG
mailing list