[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [bluetooth-dev] Connect 2 PC with Null Modem Cable



That is because when you connect an rfcomm channel you use the serverchannel, since the LSB in the DLCI is set / not set, depending on if you are the initiator or not. But, when you send data you can send it on any dlci, that's why the send command uses the dlci.

So try to do "rf_send 10 8" instead.

Mats Fridén
Axis Communications

> -----Original Message-----
> From: Xavier DEBREUIL [mailto:xde@xxxxxxx.fr]
> Sent: Thursday, December 14, 2000 6:05 PM
> Cc: Axis
> Subject: Re: [bluetooth-dev] Connect 2 PC with Null Modem Cable
> 
> 
> I did
> "./btd -u /dev/ttyS0 -s 9600 -r server -i none -m" on the server and
> "./btd -u /dev/ttyS1 -s 9600 -r client -i none -m" on the client side.
> on the same pc
> then "rf_conn 0:0:0:0:0:1 2"
> "stat" : [RFCOMM]
>          line[0] mtu[127] dlci#0 state[CONNECTED]
>          line[0] mtu[127] dlci#4 state[CONNECTED]
> on both sides
> 
> but "rf_send 10 4" on one side implies :
> "BT SYS: ERROR :rfcomm_send_data: DLCI 2 not connected
> error"
> on the second side.
> 
> Am I missing something ?
> 
> Thank you.
> 
> Xavier
> -
> To unsubscribe from this list: send the line "unsubscribe 
> bluetooth-dev" in
> the body of a message to majordomo@xxxxxxx.com
> 
-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com