On Thu, 13 May 2010, Szak�ts Viktor wrote:

Hi,

> I'm seeing this in hbcom.c:
> ---
> #  elif defined( HB_OS_DARWIN )
>       hb_snprintf( buffer, size, "/dev/cuaa%d", pCom->port - 1 );
> ---

Above is only default value.

> and these are the /dev/cu* files on my Snow Leopard:
> ---
> ~$ ls -l /dev/cu* 
> crw-rw-rw-  1 root  wheel   11,   7  4 May 20:22 /dev/cu.Bluetooth-Modem
> crw-rw-rw-  1 root  wheel   11,   3  4 May 20:22 /dev/cu.Bluetooth-PDA-Sync
> crw-rw-rw-  1 root  wheel   11,   1  4 May 20:22 /dev/cu.vszakats_6230i-COM1-1
> crw-rw-rw-  1 root  wheel   11,   5  4 May 20:22 /dev/cu.vszakats_6230i-COM1-2
> ---
> New com interface expects a number to select 
> the com port, but here they are named. How can 
> they be opened?

COM_DEVNAME( 1, "/dev/cu.Bluetooth-Mode" )
COM_DEVNAME( 2, "/dev/cu.Bluetooth-PDA-Sync" )
COM_DEVNAME( 3, "/dev/cu.vszakats_6230i-COM1-1" )
COM_DEVNAME( 4, "/dev/cu.vszakats_6230i-COM1-2" )

COM_OPEN( 1 )
COM_INIT( 1, ... )
COM_OPEN( 2 )
COM_INIT( 1, ... )
[...]

best regards,
Przemek
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to