hi all,
sorry if this is old news and i just couldn't find it in the archives. just started up again on an old project and was looking into getting serial into osx. back in july 2004 martin pichlmair compiled a version of comport for osx (just by adding to the malkefile) after i posted about it but i didn't have any luck then. it loaded but couldn't find the device. with a little more knowledge now i tried again with the same binary (latest version pd on osx 10.4) and found that all i had to do was create a symbolic link so that comport could find it:
ln -s /dev/tty.USA19H2b2P1.1 /dev/ttyS0 (i just did "ls /dev/tty.*" to find the devicename)
for what i'm doing it's running as well as on linux! the comport source should definitely be updated to include this. although i still have all the source files from martin back then doing this is beyond my expertise. i'd be more than happy to add a sub-patch to the comport help for osx users though
thanks again martin - sorry it took me so long to get around to figuring it out!
cheers, rene.
p.s. thanks to winfried ritsch for comport too!
I think that [comport] was already updated to be able to use any dev
name. Also, I think that using [comport 0] and [comport 1] will work
on Mac OS X with USB-serial devices too.
Thanks for the report, good to know its working.
.hc
On Jan 9, 2006, at 8:03 PM, Rene Christen wrote:
hi all,
sorry if this is old news and i just couldn't find it in the archives.
just started up again on an old project and was looking into getting
serial into osx. back in july 2004 martin pichlmair compiled a version
of comport for osx (just by adding to the malkefile) after i posted
about it but i didn't have any luck then. it loaded but couldn't find
the device. with a little more knowledge now i tried again with the
same binary (latest version pd on osx 10.4) and found that all i had
to do was create a symbolic link so that comport could find it:ln -s /dev/tty.USA19H2b2P1.1 /dev/ttyS0 (i just did "ls /dev/tty.*" to find the devicename)
for what i'm doing it's running as well as on linux! the comport
source should definitely be updated to include this. although i still
have all the source files from martin back then doing this is beyond
my expertise. i'd be more than happy to add a sub-patch to the comport
help for osx users thoughthanks again martin - sorry it took me so long to get around to
figuring it out!cheers, rene.
p.s. thanks to winfried ritsch for comport too!
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
"Computer science is no more related to the computer than astronomy is
related to the telescope."
-Edsger
Dykstra
Hello,
ln -s /dev/tty.USA19H2b2P1.1 /dev/ttyS0 (i just did "ls /dev/tty.*" to find the devicename)
for what i'm doing it's running as well as on linux! the comport source should definitely be updated to include this. although i still have all the source files from martin back then doing this is beyond my expertise. i'd be more than happy to add a sub-patch to the comport help for osx users though
Thanx for the test.
Infact you can set the devicename in PD with the
"devicename /dev/tty.USA19H2b2P1.1" as message within PD.
Since this is a hack the first try to open a comport will fail on load and report an error, just ignore.
If you can send the makefile extnension, I will check it in.
it is welcome, If someone wants to clean the the external so it can figure out the the devicenames (eg. for os-x) at startup and index them, this would be great.
mfg winfried ritsch
Hi Winfried,
Actually on OSX the device names are different for each company that makes the USB serial devices, so there is no (good) way to index them.
Actually I suggest that comport be altered so that you can either tell it [comport 0 9600] or you can tell it [comport /dev/USA19H2b2P1.1 9600]
This way would be much cleaner for weird serial device names. (for example a bluetooth serial port)
I guess for windows it would just throw an error if it gets a /dev/* argument.
.b.
Winfried Ritsch wrote:
Hello,
ln -s /dev/tty.USA19H2b2P1.1 /dev/ttyS0 (i just did "ls /dev/tty.*" to find the devicename)
for what i'm doing it's running as well as on linux! the comport source should definitely be updated to include this. although i still have all the source files from martin back then doing this is beyond my expertise. i'd be more than happy to add a sub-patch to the comport help for osx users though
Thanx for the test.
Infact you can set the devicename in PD with the
"devicename /dev/tty.USA19H2b2P1.1" as message within PD.
Since this is a hack the first try to open a comport will fail on load and report an error, just ignore.
If you can send the makefile extnension, I will check it in.
it is welcome, If someone wants to clean the the external so it can figure out the the devicenames (eg. for os-x) at startup and index them, this would be great.
mfg winfried ritsch
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list