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

[bluetooth-dev] How to get a connection with btdm?



Hi,

I am attempting to establish a connection between two Ericsson Bluetooth
Modules (ROK 101 007) using openbt 0_0_8 with red hat v.7.1 and kernel 2.4.2

I am using the btdm application from the experimental directory.
I have followed the instructions on the server side i.e.

./btdm --reset --speed 115200

The program then asks for a HW reset i.e.

Please reset HW board within 5 seconds

The program does not seem to continue after this point.
Could somebody tell me how this program operates when working correctly, I
have included the log for this test below.

Any help would be much appreciated,

Thanks

Mike Gavin

Urenco(Capenhurst)Limited
mga@xxxxxxx.uk



Jan 16 15:47:08 localhost btdm: Bluetooth daemon starting
Jan 16 15:47:08 localhost kernel: BT (driver) bt_open: Line 7
Jan 16 15:47:08 localhost kernel: BT (driver) Registering tty on line 7
(btdm)
Jan 16 15:47:08 localhost kernel: BT (driver) Now 1 open fd:s for ttyBTC
[btdm]
Jan 16 15:47:08 localhost kernel: BT (driver) bt_close: Line 7
Jan 16 15:47:08 localhost kernel: BT (driver) Unregistering tty on line 7
Jan 16 15:47:08 localhost kernel: BT (driver) bt_open: Line 7
Jan 16 15:47:08 localhost kernel: BT (driver) Registering tty on line 7
(btdm)
Jan 16 15:47:08 localhost kernel: BT (driver) Now 1 open fd:s for ttyBTC
[btdm]
Jan 16 15:47:08 localhost kernel: BT (driver) BTSETBCSPMODE: -1
Jan 16 15:47:08 localhost kernel: BT (driver) bt_close: Line 7
Jan 16 15:47:08 localhost kernel: BT (driver) Unregistering tty on line 7
Jan 16 15:47:08 localhost kernel: BT (ldisc) bt_tty_open
Jan 16 15:47:08 localhost kernel: BT SYS: Setting BT driver to use serial
tty
Jan 16 15:47:08 localhost btdm: Registered bluetooth line discipline on
/dev/ttyS0
Jan 16 15:47:08 localhost kernel: BT (driver) bt_open: Line 7
Jan 16 15:47:08 localhost sdp_server: SDP Server starting
Jan 16 15:47:08 localhost kernel: BT (driver) Registering tty on line 7
(btdm)
Jan 16 15:47:08 localhost kernel: BT (driver) Now 1 open fd:s for ttyBTC
[btdm]
Jan 16 15:47:08 localhost kernel: BT (ldisc) bt_tty_ioctl: Forwarding ioctl
0x540b to n_tty line disc
Jan 16 15:47:10 localhost kernel: BT SYS: ERROR: hci_receive_data:
discarding 1 bytes
Jan 16 15:47:11 localhost kernel: BT SYS: ERROR: hci_receive_data:
discarding 1 bytes
Jan 16 15:47:12 localhost kernel: hub.c: USB new device connect on bus1/1,
assigned device number 2
Jan 16 15:47:12 localhost kernel: usb.c: USB device 2 (vend/prod
0x8ea/0xabba) is not claimed by any active driver.
Jan 16 15:47:12 localhost kernel: bluetooth.c: USB Bluetooth support
registered
Jan 16 15:47:12 localhost kernel: usb.c: registered new driver bluetooth
Jan 16 15:47:12 localhost kernel: bluetooth.c: USB Bluetooth converter
detected
Jan 16 15:47:12 localhost kernel: bluetooth.c: Bluetooth converter now
attached to ttyUB0 (or usb/ttub/0 for devfs)
Jan 16 15:47:13 localhost btdm: Init stack
Jan 16 15:47:13 localhost kernel: BT SYS: Initialising Bluetooth Stack
Jan 16 15:47:13 localhost kernel: BT SYS: Current HW: Ericsson
Jan 16 15:47:13 localhost kernel: BT SYS: Initialising BTMEM [2500 bytes]
Jan 16 15:47:13 localhost kernel: BT SYS: Initialising HCI
Jan 16 15:47:13 localhost kernel: BT SYS: HCI emulator off
Jan 16 15:47:13 localhost kernel: BT SYS: Initialising HCI inbuffers [800]
Jan 16 15:47:13 localhost kernel: BT SYS: Reading buffer sizes in HW module
Jan 16 15:47:13 localhost kernel:
Jan 16 15:47:13 localhost kernel: HW module contains...
Jan 16 15:47:13 localhost kernel: 10 ACL buffers at 800 bytes
Jan 16 15:47:13 localhost kernel: 0 SCO buffers at 0 bytes
Jan 16 15:47:13 localhost kernel:
Jan 16 15:47:13 localhost kernel: BT SYS: Reading firmware info in HW module
Jan 16 15:47:13 localhost btdm: bt_set_classofdevice : srv class 0x10, maj
class 0x3, min class 0x0, format 0x0
Jan 16 15:47:13 localhost kernel: hub.c: already running port 1 disabled by
hub (EMI?), re-enabling...
Jan 16 15:47:13 localhost btdm: bt_set_local_name: AXIS
(localhost.localdomain)
Jan 16 15:47:13 localhost kernel: usb.c: USB disconnect on device 2
Jan 16 15:47:13 localhost kernel: bluetooth.c: Bluetooth converter now
disconnected from ttyUB0
Jan 16 15:47:13 localhost btdm: Setting write_scan_enable: 0x3
Jan 16 15:47:13 localhost kernel: Ericsson HW revision info: ^M
Jan 16 15:47:13 localhost kernel: Generated: 2000-04-28 15:54^M
Jan 16 15:47:13 localhost kernel: Comment: CXC 125 244 P9A
Jan 16 15:47:13 localhost kernel:
Jan 16 15:47:13 localhost kernel: BT SYS: Host flow control not enabled
Jan 16 15:47:13 localhost kernel: BT SYS: M/S switch disabled
Jan 16 15:47:13 localhost kernel: BT SYS: Force M/S switch set to 0
Jan 16 15:47:13 localhost kernel: Initialising L2CAP
Jan 16 15:47:13 localhost kernel: BT SYS: Local bd [00:d0:b7:03:29:08]
Jan 16 15:47:13 localhost kernel: BT SYS: Initialising RFCOMM
Jan 16 15:47:13 localhost kernel: BT SYS: Initialising SDP
Jan 16 15:47:13 localhost kernel: BT SYS: Init SDP as server
Jan 16 15:47:13 localhost kernel: BT SYS: Initialising TCS
Jan 16 15:47:13 localhost kernel: BT SYS: Initialising TEST
Jan 16 15:47:13 localhost kernel: BT (driver) BT_SET_DFU_MODE: -1
Jan 16 15:47:13 localhost kernel: BT (driver) __bt_ioctl:
HCIWRITECLASSOFDEVICE
Jan 16 15:47:13 localhost kernel: BT (driver) __bt_ioctl: HCISETLOCALNAME
Jan 16 15:47:13 localhost kernel: BT (driver) Setting write scan enable:
[0x3]
Jan 16 15:47:14 localhost kernel: hub.c: Cannot enable port 1 of hub 1,
disabling port.
Jan 16 15:47:14 localhost kernel: hub.c: Maybe the USB cable is bad?
Jan 16 15:47:14 localhost btdm: Setting event filter [0x2 0x0 0x1]
Jan 16 15:47:14 localhost kernel: BT (driver) __bt_ioctl:
HCISET_EVENT_FILTER
Jan 16 15:47:15 localhost btdm: bt_set_baudrate: 115200 baud
Jan 16 15:47:15 localhost kernel: BT (driver) __bt_ioctl: Setting baudrate
in host controller to 115200
Jan 16 15:47:15 localhost kernel: BT (ldisc) bt_tty_ioctl: Forwarding ioctl
0x5401 to n_tty line disc
Jan 16 15:47:15 localhost kernel: BT (driver) bt_open: Line 7
Jan 16 15:47:15 localhost kernel: BT (driver) Registering tty on line 7
(btdm)
Jan 16 15:47:15 localhost kernel: BT (driver) Now 2 open fd:s for ttyBTC
[btdm]
Jan 16 15:47:15 localhost kernel: BT (driver) BTSETBCSPMODE: -1
Jan 16 15:47:15 localhost kernel: BT (driver) bt_close: Line 7
Jan 16 15:47:15 localhost kernel: BT (driver) Unregistering tty on line 7
Jan 16 15:47:15 localhost kernel: BT (ldisc) bt_tty_ioctl: Forwarding ioctl
0x5402 to n_tty line disc
Jan 16 15:47:15 localhost kernel: BT (ldisc) bt_tty_ioctl: Forwarding ioctl
0x5401 to n_tty line disc
Jan 16 15:47:15 localhost kernel: BT (ldisc) bt_tty_ioctl: Forwarding ioctl
0x540b to n_tty line disc


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