[Pythonmac-SIG] Serial port IO on Python 2.7.3 on OS X
Mike Wirth
mwirth at gmail.com
Fri Jun 8 02:16:00 CEST 2012
Hi, folks,
Newbie (to Python) here. I'm porting a Python app from Windows that talks
to a Bluetooth 2.1 device using the serial profile (on WinXP it shows up as
two numbered COM ports, one inbound and the other outbound) On the Mac,
the device shows up in /dev as:
crw-rw-rw- 1 root wheel 18, 7 May 30 23:12 cu.BlueRadios-COM0
On Windows, the app requires me to install pyserial (and pygame for the
visual output).
On the Mac, where I've installed and am using python 2.7.3 (rather than the
pre-installed 2.6.7), my app starts up and acts like it doesn't need to
have pyserial installed, but of course, it can't connect to the expected
numbered COM port.
1. Do I need the Mac equivalent of pyserial?
2. Or can I just stuff something like '/dev/cu.BlueRadios-COM0' in the
app's source code where it expects to open the serial port.
3. Anything special about the Bluetooth serial profile (e.g., setting port
properties)?
Mike
PS: Pointers to the appropriate docs appreciated and I promise to RTFM :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20120607/3bb5d533/attachment.html>
More information about the Pythonmac-SIG
mailing list