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

[bluetooth-dev] problems on emulation with null modem



Dear  developers,

I am using the lastest Axis with Redhat 7.1. When I was tring to link up two Linux bosex through the null modem with btduser.

I got the following error on the client side.( highlighted in Red). Could anyone of you please give me some help? What might be the possible errors?

 

Thanks in advance.

Regards

Xiaoyong

 

 

1 .clien side:

 

[root@xxxxxxx./btduser --physdev /dev/ttyS0 --speed 115200 --client --hwinit none

Bluetooth Control Application

-----------------------------

./btduser: unrecognized option `--hwinit'

Running as client

Running stack in user mode

Physdev /dev/ttyS0, btdev (not used), speed 115200 baud

Init stack

Initiating read thread

BT SYS: Initialising Bluetooth Stack

BT SYS: Initialising HCI

BT SYS: *** HCI emulator on ***

BT SYS: Initialising HCI inbuffers [800]

BT SYS: Reading buffer sizes in HW module

BT SYS: Reading firmware info in HW module

BT SYS: ERROR :hci_read_firmware_rev_info [Generic] not supported.

BT SYS: Host flow control not enabled

BT SYS: M/S switch disabled

BT SYS: Force M/S switch set to 0

BT SYS: Initialising L2CAP

command_handler: Unknown command ogf:0x4,ocf:0x9

BT SYS: ERROR :l2cap_init: Failed to get local BD addr

BT SYS: Initialising RFCOMM

BT SYS: Initialising SDP

BT SYS: Init SDP as client

BT SYS: Initialising TCS

BT SYS: Initialising TEST

BT SYS: Initialising BTMEM [2500 bytes]

command_handler: Unknown command ogf:0x3,ocf:0x24

command_handler: Unknown command ogf:0x3,ocf:0x13

command_handler: Unknown command ogf:0x3,ocf:0x1a

Open pty.

Initiating pty thread

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)

stat

ppp

quit

--- Test commands ------

sdp_conn <xx:xx:xx:xx:xx:xx> <profile>

tcs_conn <xx:xx:xx:xx:xx:xx>

test_conn <xx:xx:xx:xx:xx:xx> <psm>

test_disc

test_case_reject <xx:xx:xx:xx:xx:xx>

ping <xx:xx:xx:xx:xx:xx>

getinfo <xx:xx:xx:xx:xx:xx> <type>

bb_conn <xx:xx:xx:xx:xx:xx>

bb_disc <hci handle>

 

>

BT SYS: ERROR :hci_receive_data: discarding 3 bytes

BT SYS: ERROR :hci_receive_data: discarding 25 bytes

BT SYS: ERROR :hci_receive_data: discarding 1 bytes

BT SYS: ERROR :hci_receive_data: discarding 3 bytes

BT SYS: ERROR :hci_receive_data: discarding 12 bytes

BT SYS: ERROR :hci_receive_data: discarding 2 bytes

BT SYS: ERROR :hci_receive_data: discarding 1 bytes

BT SYS: ERROR :hci_receive_data: discarding 2 bytes

BT SYS: ERROR :hci_receive_data: discarding 26 bytes

BT SYS: ERROR :hci_receive_data: discarding 28 bytes

BT SYS: ERROR :hci_receive_data: discarding 4 bytes

BT SYS: ERROR :hci_receive_data: discarding 12 bytes

BT SYS: ERROR :hci_receive_data: discarding 3 bytes

BT SYS: ERROR :hci_receive_data: discarding 28 bytes

BT SYS: ERROR :hci_receive_data: discarding 26 bytes

BT SYS: ERROR :hci_receive_data: discarding 2 bytes

BT SYS: ERROR :hci_receive_data: discarding 4 bytes

BT SYS: ERROR :hci_receive_data: discarding 12 bytes

BT SYS: ERROR :hci_receive_data: discarding 3 bytes

BT SYS: ERROR :hci_receive_data: discarding 24 bytes

BT SYS: ERROR :hci_receive_data: discarding 4 bytes

BT SYS: ERROR :hci_receive_data: discarding 23 bytes

BT SYS: ERROR :hci_receive_data: discarding 5 bytes

BT SYS: ERROR :hci_receive_data: discarding 4 bytes

BT SYS: ERROR :hci_receive_data: discarding 12 bytes

BT SYS: ERROR :hci_receive_data: discarding 3 bytes

BT SYS: ERROR :hci_receive_data: discarding 21 bytes

BT SYS: ERROR :hci_receive_data: discarding 7 bytes

 

2. #running the server side

 

 

[root@xxxxxxx./btduser --physdev /dev/ttyS0 --speed 115200 --cmdmode --local 192.168.2.22 --remote 192.168.2.28

Bluetooth Control Application

-----------------------------

Running as server

Running stack in user mode

Physdev /dev/ttyS0, btdev (not used), speed 115200 baud

sdp_parser.c::SDP Server starting

sdp_parser.c::Opening server socket /tmp/sdp_sock

sdp_parser.c::SDP Server listens...

Init stack

Initiating read thread

BT SYS: Initialising Bluetooth Stack

BT SYS: Initialising HCI

BT SYS: *** HCI emulator on ***

BT SYS: Initialising HCI inbuffers [800]

BT SYS: Reading buffer sizes in HW module

BT SYS: Reading firmware info in HW module

command_handler: Unknown command ogf:0x3f,ocf:0xf

BT SYS: Host flow control not enabled

BT SYS: M/S switch disabled

BT SYS: Force M/S switch set to 0

BT SYS: Initialising L2CAP

command_handler: Unknown command ogf:0x4,ocf:0x9

BT SYS: ERROR :l2cap_init: Failed to get local BD addr

BT SYS: Initialising RFCOMM

BT SYS: Initialising SDP

BT SYS: Init SDP as server

Opening socket /tmp/sdp_sock

Socket connected to /tmp/sdp_sock

BT SYS: Initialising TCS

BT SYS: Initialising TEST

BT SYS: Initialising BTMEM [2500 bytes]

command_handler: Unknown command ogf:0x3,ocf:0x24

command_handler: Unknown command ogf:0x3,ocf:0x13

Setting write_scan_enable in Ericsson module!

command_handler: Unknown command ogf:0x3,ocf:0x1a

Setting baudrate in Ericsson module!

Open pty.

Initiating pty thread

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)

stat

ppp

quit

--- Test commands ------

sdp_conn <xx:xx:xx:xx:xx:xx> <profile>

tcs_conn <xx:xx:xx:xx:xx:xx>

test_conn <xx:xx:xx:xx:xx:xx> <psm>

test_disc

test_case_reject <xx:xx:xx:xx:xx:xx>

ping <xx:xx:xx:xx:xx:xx>

getinfo <xx:xx:xx:xx:xx:xx> <type>

bb_conn <xx:xx:xx:xx:xx:xx>

bb_disc <hci handle>

 

> rf_conn 11:22:33:44:55:66 1 0

Connecting srv ch 1 on line 0

bd (6):

0x66 0x55 0x44 0x33 0x22 0x11

l2ca_connect_req: wait baseband, sleep on wq 0x8078164