[PD] [comport]: 'info' not too helpful

Roman Haefeli reduzierer at yahoo.de
Mon Nov 12 16:39:29 CET 2007


hi all

when sending 'info' to comport, it outputs a bunch of messages to its
right outlet to give you some information about the properties of the
connection. however, if you use 'devicename <something>' to open a
connection, 'info' tells you 'port 9999', which is of course wrong. when
you do 'open 9999', not the same device gets opened, or more likely: no
device gets openend at all.

i am working on a bunch of arduino abstractions that do find
automagically the correct port of the arduino board. i decided to use
different approaches on different os to probe the port of arduino. i
experienced, that on linux the arduino sometimes appears on port 8,
sometimes on port 48, probably it is different again on other linux
flavors. in order to avoid 40 or more error messages before the correct
port is found, i probe not with 'port [1-99]', but with
'devicename /dev/ttyUSB[0-20]' on linux, since the devicename seems to
be consistent throughout all linux flavors. however, i would like to
avoid, that several abstractions use all their own [comport] on the same
port, since i encountered, that when several [comport]s are listening on
the same port, not all [comport]s will always receive all messages. for
all above reason i would need to know, what the actual port number is of
a connection, even if the connection was opened using
'devicename /dev/ttyUSB[0-20]'. 

roman

 


		
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de





More information about the Pd-list mailing list