[PD] Trying to get comport to work in windows

Frank Barknecht fbar at footils.org
Fri Aug 4 18:31:36 CEST 2006


Hallo,
Martin Dupras hat gesagt: // Martin Dupras wrote:

> Hi,
> 
> I'm trying to use a Spark Fun WiTilt (essentially a 3D accelerometer
> attached to a bluetooth radio, see
> http://www.sparkfun.com/commerce/product_info.php?products_id=254) with PD
> 0.39.2extended-test4 on win XP.
> 
> I know the device is connected and sending because I can see the correct
> output if I connect to the device with hyperterminal.
> 
> My device is on com port 12. If I try
> 
> [comport 12 9600]
> 
> I get the error: "[comport] invalid handle for COM".
> 
> Is there any reason why comport should not see the port, when hyperterminal
> can?


You may need to recompile comport or use a different port: As default it only
accepts up to 8 comports.

Therse is this in comport.c:

#define COMPORT_MAX 8
static char *sys_com_port[COMPORT_MAX] =
{
  "COM1", "COM2", "COM3", "COM4",
  "COM5", "COM6", "COM7", "COM8"
};

which you can try to change to something like: 

#define COMPORT_MAX 12
static char *sys_com_port[COMPORT_MAX] =
{
  "COM1", "COM2", "COM3", "COM4",
  "COM5", "COM6", "COM7", "COM8"
  "COM9", "COM10", "COM11", "COM12"
};

but I just guessed this, so no guarantees. 

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__




More information about the Pd-list mailing list