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

[bluetooth-dev] Wait for a connection on Line 0



Hi all,

I get a message :  "wait for a connection on line 0",  when I run

> btd -u /dev/ttyS0 -r server -i no_hw -e 0  (On the server)

and

> btd -u /dev/ttyS0 -r client -i no_hw -e 0 (on the client)
>ppp

on two linux machines connected by a null modem serial cable.

If I try a 
> rf_conn 00:00:00:00:00:00 0 0 before the ppp on the client i get,

Connect failed [Unknown layer - unknown reason ((-1)) ]

Please help me.

The complete trace (on server, client and kernel ) is as follows :

*****************************************************************

Server
********
> btd -u /dev/ttyS0 -r server -i no_hw -e 0

Bluetooth Control Application
-----------------------------
Running as server
Physdev /dev/ttyS0, btdev /dev/ttyBT0, speed 115200 baud
ERROR: init_phys() not implemented!
Registered bluetooth line discipline on /dev/ttyS0
Init stack
ERROR: init_hw() not implemented!
wait for a connection on line 0


*******************************************************************************
Client
*******
> btd -u /dev/ttyS0 -r client -i no_hw -e 0

Bluetooth Control Application
-----------------------------
Running as client
Physdev /dev/ttyS0, btdev /dev/ttyBT0, speed 115200 baud
ERROR: init_phys() not implemented!
Registered bluetooth line discipline on /dev/ttyS0
Init stack
ERROR: init_hw() not implemented!
Now entering cmd line mode

Menu
------------------------
  inq <Max number of responses> (inquiry scan)
  rf_conn <xx:xx:xx:xx:xx:xx> <srv ch> <line>
  rf_send <nbr bytes> <nbr repeats> <line>
  rf_disc <line>
  rf_wait <line>
  me <1/0>
  setbd <xx:xx:xx:xx:xx:xx>
  readbd
  reset
  role_switch <xx:xx:xx:xx:xx:xx> <role> (0=master, 1=slave)
  ppp
  quit
> rf_conn 00:00:00:00:00:00 0 0
Connect failed [Unknown layer - unknown reason ((-1))]
> ppp
wait for a connection on line 0

******************************************************************************
Kernel (/var/log/messages) on server side
******
Feb 17 18:20:49 localhost btd: Initiating signal handler
Feb 17 18:20:49 localhost btd: Starting SDP server [sdp_server]
Feb 17 18:20:49 localhost sdp_server: SDP Server starting
Feb 17 18:20:49 localhost btd: Opening dev /dev/ttyS0
Feb 17 18:20:49 localhost kernel: BT (driver) bt_open: Line 7
Feb 17 18:20:49 localhost kernel: BT (driver) Registering tty on line 7 (btd)
Feb 17 18:20:49 localhost kernel: BT (driver) Now 1 open fd:s for ttyBTC [btd]
Feb 17 18:20:49 localhost kernel: BT (driver) bt_close: Line 7
Feb 17 18:20:49 localhost kernel: BT (driver) Unregistering tty on line 7
Feb 17 18:20:49 localhost kernel: BT (ldisc) bt_tty_open
Feb 17 18:20:49 localhost kernel: BT SYS: Setting BT driver to use serial tty
Feb 17 18:20:49 localhost btd: Opening dev /dev/ttyBTC
Feb 17 18:20:49 localhost kernel: BT (driver) bt_open: Line 7
Feb 17 18:20:49 localhost kernel: BT (driver) Registering tty on line 7 (btd)
Feb 17 18:20:49 localhost kernel: BT (driver) Now 1 open fd:s for ttyBTC [btd]
Feb 17 18:20:49 localhost kernel: BT (driver) bt_flush_buffer: Ignored
Feb 17 18:20:49 localhost kernel: BT SYS: Initialising Bluetooth Stack
Feb 17 18:20:49 localhost kernel: BT SYS: Current HW: Unknown
Feb 17 18:20:49 localhost kernel: BT SYS: Initialising BTMEM [2500 bytes]
Feb 17 18:20:49 localhost kernel: BT SYS: Initialising HCI
Feb 17 18:20:49 localhost kernel: BT SYS: *** HCI emulator on ***
Feb 17 18:20:49 localhost kernel: BT SYS: Initialising HCI inbuffers [800]
Feb 17 18:20:49 localhost kernel: BT SYS: Reading buffer sizes in HW module
Feb 17 18:20:51 localhost kernel: cmd_timeout: Timeout when waiting for 
command
response
Feb 17 18:20:51 localhost kernel: BT SYS: Reading firmware info in HW module
Feb 17 18:20:51 localhost kernel: BT SYS: ERROR: hci_read_firmware_rev_info 
[Generic] not supported.
Feb 17 18:20:51 localhost kernel: BT SYS: Host flow control not enabled
Feb 17 18:20:51 localhost kernel: BT SYS: M/S switch disabled
Feb 17 18:20:51 localhost kernel: BT SYS: Force M/S switch set to 0
Feb 17 18:20:51 localhost kernel: BT SYS: Initialising L2CAP
Feb 17 18:20:51 localhost kernel: command_handler: Unknown command 
ogf:0x4,ocf:0x9
Feb 17 18:20:53 localhost kernel: cmd_timeout: Timeout when waiting for 
command
response
Feb 17 18:20:53 localhost kernel: BT SYS: ERROR: l2cap_init: Failed to get 
local BD addr
Feb 17 18:20:53 localhost kernel: BT SYS: Initialising RFCOMM
Feb 17 18:20:53 localhost kernel: BT SYS: Initialising SDP
Feb 17 18:20:53 localhost kernel: BT SYS: Init SDP as server
Feb 17 18:20:53 localhost kernel: BT SYS: Initialising TCS
Feb 17 18:20:53 localhost kernel: BT SYS: Initialising TEST
Feb 17 18:20:53 localhost kernel: BT (driver) __bt_ioctl: 
HCIWRITECLASSOFDEVICE
Feb 17 18:20:53 localhost kernel: command_handler: Unknown command 
ogf:0x3,ocf:0x24
Feb 17 18:20:55 localhost kernel: cmd_timeout: Timeout when waiting for 
command
response
Feb 17 18:20:55 localhost kernel: BT (driver) __bt_ioctl: HCISETLOCALNAME
Feb 17 18:20:55 localhost kernel: command_handler: Unknown command 
ogf:0x3,ocf:0x13
Feb 17 18:20:57 localhost kernel: cmd_timeout: Timeout when waiting for 
command
response
Feb 17 18:20:57 localhost kernel: BT (ldisc) bt_tty_ioctl: Forwarding ioctl 
0x5401 to n_tty line disc
Feb 17 18:20:57 localhost kernel: BT (ldisc) bt_tty_ioctl: Forwarding ioctl 
0x5402 to n_tty line disc
Feb 17 18:20:57 localhost kernel: BT (ldisc) bt_tty_ioctl: Forwarding ioctl 
0x5401 to n_tty line disc
Feb 17 18:20:57 localhost kernel: BT (ldisc) bt_tty_ioctl: Forwarding ioctl 
0x540b to n_tty line disc
Feb 17 18:20:57 localhost kernel: BT (driver) Waiting on line 0


KERNEL on the Client side
*******************************
After initializing the stack as above,
>rf_conn 00:00:00:00:00:00 0 0 gives

Feb 17 18:30:24 localhost kernel: BT (driver) __bt_ioctl: BTCONNECT
Feb 17 18:30:24 localhost kernel: BT (driver) bt_connect: Connecting srv ch 0 
on line 0
Feb 17 18:30:24 localhost kernel: BT SYS: ERROR: l2ca_connect_req: No BD-addr
Feb 17 18:30:24 localhost kernel: BT SYS: ERROR: rfcomm_connect_req: 
l2ca_connect_req failed
Feb 17 18:30:24 localhost kernel: BT (driver) bt_connect: Failed

and >ppp gives

Feb 17 18:31:46 localhost kernel: BT (driver) Waiting on line 0




Thanks,
Baldeep.
-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com