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

[bluetooth-dev] About cmd_timeout.



Hi~
I'm using Redhat6.2, StonestreetOne BT dev kit with Ericsson module(ROK 101 008/21), and Axis stack(20010108).
My BT module is connected to my computer with a serial cable(COM2, /dev/ttyS1).
It works fine on windows with StonestreetOne sample program.
However, when I use it on Linux with Axis stack, it doesnot seems to work at all.
Would you teach me what is wrong?

Thanks in advance.

Eunsoo Seo

##########
commands :
##########

[root@esseo src]# stty -F /dev/ttyS1
speed 57600 baud; line = 0;
min = 1; time = 0;
-brkint -icrnl -imaxbel
-opost -onlcr
-isig -icanon -iexten -echo -echoe -echok -echoctl -echoke
[root@xxxxxxx.o
[root@esseo src]# btd -u /dev/ttyS1 -m -s 57600
Bluetooth Control Application
-----------------------------
Running as server
Physdev /dev/ttyS1, btdev /dev/ttyBT0, speed 57600 baud
Registered bluetooth line discipline on /dev/ttyS1
Init stack
Setting write_scan_enable in Ericsson module!
Setting baudrate in Ericsson module!
Now entering cmd line mode

Menu
------------------------
  inq (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
  ppp
  quit
> readbd
Current bd addr : 00:00:00:00:00:00
>


##################
/var/log/message :
##################


Mar 14 18:07:56 esseo kernel: Bluetooth Driver v1.2, Copyright (c) 2000 Axis Communications AB 
Mar 14 18:07:56 esseo kernel: BT SYS: Bluetooth driver registered in ttyBT 
Mar 14 18:07:56 esseo kernel: BT SYS: Bluetooth line discipline registered. 
Mar 14 18:07:56 esseo kernel: BT (driver) Initiating bt ctrl struct 
Mar 14 18:07:56 esseo kernel: BT SYS: Registering BT proc files 
Mar 14 18:07:56 esseo kernel: BT SYS: Bluetooth Driver Using ttyBT[0-6] (data), ttyBTC (ctrl [7]) 
Mar 14 18:07:56 esseo kernel: BT SYS: Using BT Inbuffers [4000] 
Mar 14 18:09:06 esseo btd: Initiating signal handler 
Mar 14 18:09:06 esseo btd: Starting SDP server 
Mar 14 18:09:06 esseo btd: Opening dev /dev/ttyS1 
Mar 14 18:09:06 esseo kernel: BT (ldisc) bt_tty_open 
Mar 14 18:09:06 esseo kernel: BT SYS: Setting BT driver to use serial tty 
Mar 14 18:09:06 esseo btd: Opening dev /dev/ttyBTC 
Mar 14 18:09:06 esseo kernel: BT (driver) bt_open on line 7 
Mar 14 18:09:06 esseo kernel: BT SYS: Registering tty on line 7 
Mar 14 18:09:06 esseo kernel: BT SYS: Now 1 open fd:s for ttyBTC 
Mar 14 18:09:06 esseo kernel: BT (driver) bt_ioctl: forwarding ioctl 0x540b to serial driver 
Mar 14 18:09:06 esseo kernel: BT (driver) bt_flush_buffer 
Mar 14 18:09:06 esseo kernel: BT SYS: Initialising Bluetooth Stack 
Mar 14 18:09:06 esseo kernel: BT SYS: hci_init, Initialising HCI 
Mar 14 18:09:06 esseo kernel: BT SYS: HCI emulator off 
Mar 14 18:09:06 esseo kernel: BT SYS: hci_init, Initialising HCI inbuffers [800] 
Mar 14 18:09:06 esseo kernel: BT SYS: hci_init, Reading buffer sizes in the module... 
Mar 14 18:09:09 esseo kernel: cmd_timeout, Timeout when waiting for command response
                              ------------------------------------------------------ 
Mar 14 18:09:12 esseo kernel: cmd_timeout, Timeout when waiting for command response
                              ------------------------------------------------------ 
Mar 14 18:09:12 esseo kernel: BT SYS: Initialising L2CAP 
Mar 14 18:09:15 esseo kernel: cmd_timeout, Timeout when waiting for command response 
                              ------------------------------------------------------
Mar 14 18:09:15 esseo kernel: BT SYS: ERROR :Failed to get local BD addr 
Mar 14 18:09:15 esseo kernel: BT SYS: Initialising RFCOMM 
Mar 14 18:09:15 esseo kernel: BT SYS: Initialising SDP 
Mar 14 18:09:15 esseo kernel: BT SYS: Initialising TCS 
Mar 14 18:09:15 esseo kernel: BT SYS: Initialising BTMEM [2500 bytes] 
Mar 14 18:09:18 esseo kernel: cmd_timeout, Timeout when waiting for command response 
                              ------------------------------------------------------
Mar 14 18:09:21 esseo kernel: cmd_timeout, Timeout when waiting for command response
                              ------------------------------------------------------ 
Mar 14 18:09:22 esseo kernel: BT (driver) setting write scan enable : [0x3] 
Mar 14 18:09:25 esseo kernel: cmd_timeout, Timeout when waiting for command response
                              ------------------------------------------------------ 
Mar 14 18:09:26 esseo kernel: BT (driver) bt_ioctl: Setting baudrate in host controller to 57600 
Mar 14 18:09:26 esseo kernel: BT (ldisc) bt_tty_ioctl cmd 0x5401 
Mar 14 18:09:26 esseo kernel: BT (ldisc) bt_tty_ioctl: forwarding ioctl 0x5401 to n_tty line disc 
Mar 14 18:09:26 esseo kernel: BT (ldisc) bt_tty_ioctl cmd 0x5402 
Mar 14 18:09:26 esseo kernel: BT (ldisc) bt_tty_ioctl: forwarding ioctl 0x5402 to n_tty line disc 
Mar 14 18:09:26 esseo kernel: BT (ldisc) bt_tty_ioctl cmd 0x5401 
Mar 14 18:09:26 esseo kernel: BT (ldisc) bt_tty_ioctl: forwarding ioctl 0x5401 to n_tty line disc 
Mar 14 18:09:26 esseo kernel: BT (ldisc) bt_tty_ioctl cmd 0x540b 
Mar 14 18:09:26 esseo kernel: BT (ldisc) bt_tty_ioctl: forwarding ioctl 0x540b to n_tty line disc 
Mar 14 18:09:26 esseo btd: Opening dev /dev/ttyBT0 
Mar 14 18:09:26 esseo kernel: BT (driver) bt_open on line 0 
Mar 14 18:09:26 esseo kernel: BT SYS: Registering tty on line 0 
Mar 14 18:09:26 esseo kernel: BT (driver) bt_ioctl: forwarding ioctl 0x540b to serial driver 
Mar 14 18:09:26 esseo kernel: BT (driver) bt_flush_buffer 
Mar 14 18:11:56 esseo kernel: BT (driver) bt_ioctl: HCIREADLOCALBDADDR 
Mar 14 18:11:59 esseo kernel: cmd_timeout, Timeout when waiting for command response 
                              ------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com