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

[bluetooth-dev] Trying to establish a ppp-connection



Hello,

I'm trying to establish a ppp-connection between workstation and axis
developer board.
The developer board acts as a server.
The version of the btduser-application I use is 20001115 and on the
developer board
I have software release 1.0.2.

So, here is what I did:

On the workstation side:

[root@xxxxxxx./btduser -u /dev/ttyS0 -m -e off -r client
Bluetooth Control Application
-----------------------------
Running as client
Running stack in user mode
Physdev /dev/ttyS0, btdev (not used), speed 115200 baud
Opening dev /dev/ttyS0
Initiating physical driver
Initializing Ericsson HW
Init stack
Initiating read thread
BT SYS: Initialising Bluetooth Stack
BT SYS: Initialising HCI
BT SYS: HCI emulator off
BT SYS: Initialising HCI inbuffers [17000]
BT SYS: Reading buffer sizes in the module...

HW module contains...
10 ACL buffers at 800 bytes
0 SCO buffers at 0 bytes

Ericsson HW revision info: 
 Generated: 2000-04-28 15:54
 Comment: CXC 125 244 P9A

BT SYS: Initialising L2CAP
process_return_param: READ_BD_ADDR
BT SYS: Local bd [01:02:03:04:05:06]
BT SYS: Initialising RFCOMM
BT SYS: Initialising SDP
Opening socket /tmp/sdp_sock
connect client socket: Connection refused
BT SYS: ERROR :Couldn't open socket, sdp will not be used
BT SYS: Initialising TCS
BT SYS: Initialising TEST
BT SYS: Initialising BTMEM [2500 bytes]
Initializing Unplug Test
Setting write_scan_enable in Ericsson module!
Setting baudrate in Ericsson module!
BT SYS: set_ericsson_baudrate: Baudrate set command sent
Open pty.
Initiating pty thread
BT SYS: Ericsson baudrate set
Now entering cmd line mode

Menu
------------------------
  inq (inquiry scan)

  .
  .
  .
                                
  t <testcase>

> rf_conn 00:11:22:33:44:55 1
Connecting RFCOMM to bd : 00:11:22:33:44:55
RFCOMM server channel is 1
> sleeping 3 sec... (3com fix)
use NO timer...
BT SYS: ACL link is up TEMP FIX
remote_name_request:  for bd address 0x00:11:22:33:44:55:
process_event: REMOTE_NAME_REQUEST_COMPLETE mBox.(none)

l2cap options :  (0)
use NO timer...
BT SYS: Still haven't replied pos on other sides conf req
BT SYS: l2cap channel (64,64) [RFCOMM] connected
BT SYS: rfcomm_config_cfm: l2cap is now open
BT SYS: sending sabm...finally
rfcomm_create_connection ready.
stat

[Bluetooth Status]
-----------------------------------------
bytes received :         0
bytes sent     :         0

[RFCOMM]

line[0] mtu[127] dlci#0 state[CONNECTED]
line[0] mtu[127] dlci#2 state[CONNECTED]

[L2CAP]

local bd :[01:02:03:04:05:06]

r_bd[00:11:22:33:44:55 ]
lcid[64] rcid[64] state[OPEN] psm[RFCOMM]
remote_mtu[672] local_mtu [672] clnt[yes] link_up[yes]



[HCI]
unit_id unit_bd_address uint_mode unit_name
0 00:11:22:33:44:55 ACTIVE mBox.(none)

Free data buffers in HW : 7
Free command buffers in HW : 1

---------------------------------------
> ppp
close_device
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
LCP: timeout sending Config-Requests
Connection terminated.
close_device
close_device


And on the developer board side:

25# btd -u /dev/ttyS2 -m -s 115200 -e off
Bluetooth Control Application
-----------------------------
Running as server
Physdev /dev/ttyS2, btdev /dev/ttyBT0, speed 115200 baud
sdp_server: no such file or directory
Opening dev /dev/ttyS2
Initiating physical driver
Initializing Ericsson HW
Registered bluetooth line discipline on /dev/ttyS2
Opening dev /dev/ttyBTC
Init stack
Setting write_scan_enable in Ericsson module!
Setting baudrate in Ericsson module!
Opening dev /dev/ttyBT0
Now entering cmd line mode

Menu
------------------------
  inq (inquiry scan)
  
  .
  .
  .

  quit
> ppp
close_device
Using interface ppp0
Connect: ppp0 <--> /dev/ttyBT0
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x66da6731> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x66da6731> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x66da6731> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x66da6731> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x66da6731> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x66da6731> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x66da6731> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x66da6731> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x66da6731> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xfd5abb4b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x66da6731> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x1d31c9ad> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x1d31c9ad> <pcomp> <accomp>]
LCP: timeout sending Config-Requests


Both pppd-entities just keep sending those ConfReq's, but it's only the
developer board that receives any.

Can someone please help me on this, what seems to be the trouble?


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