2006-06-20 14:37:26

by Ken Robinson

[permalink] [raw]
Subject: [Bluez-users] Cannot Get bnep0 on pand connect

Hi,
I am presently trying to get a bluetooth IP connection between two linux
boxes.
I have made 2.25 bluez-utils and bluez-libs for both the host computer
(a kanotix 2.6.x kernel) and at target (a korebot with a 2.4.19 kernel with
the bluez patch-2.4.19-mh18 applied)
I have experimented on the host computer (a kanotix 2.6.x kernel) and am
able to get a bnep0 interface.
For the connection between host and target:
I do the following:
# modprobe bnep
# pand --listen -r GN
On the target computer I do:
# modprobe bnep
# pand --connect <BT address>
I cannot get a bnep0 interface
# ifconfig bnep0
ifconfig: bnep0: error fetching interface information: Device not found

The hcidump on the host computer is shown below. Does anyone have any ideas?

root@Possibility:/home/krobinson# hcidump -X -V
HCI sniffer - Bluetooth packet analyzer ver 1.23
device: hci0 snap_len: 1028 filter: 0xffffffff
> HCI Event: Connect Request (0x04) plen 10
bdaddr 00:02:72:B0:C5:FB class 0x000000 type ACL
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
bdaddr 00:02:72:B0:C5:FB role 0x00
Role: Master
> HCI Event: Command Status (0x0f) plen 4
Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
> HCI Event: Role Change (0x12) plen 8
status 0x00 bdaddr 00:02:72:B0:C5:FB role 0x00
Role: Master
> HCI Event: Connect Complete (0x03) plen 11
status 0x00 handle 42 bdaddr 00:02:72:B0:C5:FB type ACL encrypt 0x00
< HCI Command: Change Connection Packet Type (0x01|0x000f) plen 4
handle 42 ptype 0xcc18
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> HCI Event: Page Scan Repetition Mode Change (0x20) plen 7
bdaddr 00:02:72:B0:C5:FB mode 1
> HCI Event: Command Status (0x0f) plen 4
Change Connection Packet Type (0x01|0x000f) status 0x00 ncmd 1
> HCI Event: Connection Packet Type Changed (0x1d) plen 5
status 0x00 handle 42 ptype 0xcc18
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> HCI Event: Max Slots Change (0x1b) plen 3
handle 42 slots 5
> ACL data: handle 42 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 15 scid 0x0040
< ACL data: handle 42 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
Connection successful
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 42 packets 1
> ACL data: handle 42 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 1691
< ACL data: handle 42 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success
< ACL data: handle 42 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 1691
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 42 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 42 packets 1
> ACL data: handle 42 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success


Attachments:
(No filename) (2.84 kB)
(No filename) (3.61 kB)
(No filename) (0.00 B)
(No filename) (164.00 B)
Download all attachments