[Pythonmac-SIG] Re: Accessing the USB Ports

Arthur Elsenaar artelse at mohr-i.nl
Sat Jul 3 16:25:40 EDT 2004


On Jul 03, 2004, at 21:47, John W. Baxter wrote:

>
> On Jul 3, 2004, at 7:00 AM, Benjamin Schollnick wrote:
>
> Folks,
> (@#$@#$@#$ Did it again...  Forgot to change my email account in
> mail...@#$@$)
>
> I have been thinking of doing something strange and potentially useful.
>
> Is there any way to "control" a USB port from MacPython?
>
> I'm considering actually breaking apart a usb cable and using it as a
> rely control,
> so I would need to be able to force a line or two high, or low on
> demand...
>
> Heck sending real data through the USB port might be helpful too....
>
> Any ideas?
>
> Cross platform Windows/Linux/Mac would be best, but.....

hmm, why do you want to do that, why not buy a cheap USB<->Serial (or 
parallel) chip? FTDI has one with drivers for different platforms 
(windows, mac os x, linux?). So you can just treat it as a serial port, 
which is much more convenient.

If you need pointers to websites, let me know.

Arthur




More information about the Pythonmac-SIG mailing list