Skip to contentSkip to conversation

bluez nap problems

Bluez-users sagasola uyeoldum 2 participants 5 messages Dec 6, 2004 – Dec 7, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hiya,

I have problems setting up NAP.

Here are my configurations:

This is the NAP side
Linux version 2.4.27 (root@goner) (gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)) #1 Fri Dec 3 13:09:59 EET 2004

This is the PANU side
Linux version 2.4.26 (root@Knoppix) (gcc version 2.95.4 20011002 (Debian prerelease)) #1 SMP Sa Apr 17 19:33:42 CEST 2004

My Steps to setup NAP side:
root@goner ~ # hcid
root@goner ~ # hcitool dev
Devices:

        hci0    00:02:72:03:D3:F2

root@goner ~ # sdpd
root@goner ~ # pand --listen --master --nodetach
pand[11105]: Bluetooth PAN daemon

PANU side:
root@miniscule ~ # hcid
root@miniscule ~ # hcitool dev
Devices:

        hci0    00:0D:18:01:19:3B

root@miniscule ~ # sdpd
root@miniscule ~ # pand --search --persist --role PANU --service NAP --nodetach
pand[1703]: Bluetooth PAN daemon
pand[1703]: Inquiring
pand[1703]: Searching for NAP on 00:02:72:03:D3:F2 pand[1703]: Failed to connect to the SDP server. Function not implemented(38)

and this goes on and on...
If I run hcidump on the NAP side i get these:

Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

< HCI Command: Accept Connection Request (0x01|0x0009) plen 7

Quoted 2 lines

HCI Event: Command Status (0x0f) plen 4
HCI Event: Connect Complete (0x03) plen 11

I cant run hcidump on PANU side because i dont hcidump on the laptop, and i dont have a means to tranfer hcidump binary (at least not an easy means) to it. This whole thing is really weird because I got bnep0 working twice. Now I can't.

Pleeeeeeeeeze. help.

__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi,

Quoted 42 lines

I have problems setting up NAP.

Here are my configurations:

This is the NAP side
Linux version 2.4.27 (root@goner) (gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)) #1 Fri Dec 3 13:09:59 EET 2004

This is the PANU side
Linux version 2.4.26 (root@Knoppix) (gcc version 2.95.4 20011002 (Debian prerelease)) #1 SMP Sa Apr 17 19:33:42 CEST 2004

My Steps to setup NAP side:
root@goner ~ # hcid
root@goner ~ # hcitool dev
Devices:

        hci0    00:02:72:03:D3:F2

root@goner ~ # sdpd
root@goner ~ # pand --listen --master --nodetach
pand[11105]: Bluetooth PAN daemon

PANU side:
root@miniscule ~ # hcid
root@miniscule ~ # hcitool dev
Devices:

        hci0    00:0D:18:01:19:3B

root@miniscule ~ # sdpd
root@miniscule ~ # pand --search --persist --role PANU --service NAP --nodetach
pand[1703]: Bluetooth PAN daemon
pand[1703]: Inquiring
pand[1703]: Searching for NAP on 00:02:72:03:D3:F2 pand[1703]: Failed to connect to the SDP server. Function not implemented(38)

and this goes on and on...
If I run hcidump on the NAP side i get these:

Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

< HCI Command: Accept Connection Request (0x01|0x0009) plen 7

Quoted 8 lines
Quoted 2 lines

HCI Event: Command Status (0x0f) plen 4
HCI Event: Connect Complete (0x03) plen 11

I cant run hcidump on PANU side because i dont hcidump on the laptop, and i dont have a means to tranfer hcidump binary (at least not an easy means) to it. This whole thing is really weird because I got bnep0 working twice. Now I can't.

do it with "hcidump -x" and show us the output of "hciconfig -a".

Regards

Marcel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw

Ok here it goes:

NAP hciconfig -a:

hci0: Type: USB

        BD Address: 00:02:72:03:D3:F2 ACL MTU: 192:8 
SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN
        RX bytes:1591 acl:0 sco:0 events:162 errors:0
        TX bytes:1302 acl:0 sco:0 commands:70 errors:0
        Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00

0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2
HV3
Link policy: RSWITCH HOLD SNIFF PARK Link mode: ACCEPT MASTER
Name: 'BlueZ (0)'
Class: 0x000100
Service Classes: Unspecified
Device Class: Computer, Uncategorized HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1
(0x1) LMP Subver: 0x20d
Manufacturer: Cambridge Silicon Radio (10)

PANU hciconfig -a:

hci0: Type: USB

        BD Address: 00:0D:18:01:19:3B ACL MTU: 192:8 
SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN INQUIRY
        RX bytes:122 acl:0 sco:0 events:15 errors:0
        TX bytes:304 acl:0 sco:0 commands:13 errors:0
        Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00

0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2
HV3
Link policy: RSWITCH HOLD SNIFF PARK Link mode: ACCEPT MASTER
Name: 'miniscule-0'
Class: 0x000100
Service Classes: Unspecified
Device Class: Computer, Uncategorized HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1
(0x1) LMP Subver: 0x36f
Manufacturer: Cambridge Silicon Radio (10)

NAP side hcidump -x:

HCIDump - HCI packet analyzer ver 1.9
device: hci0 snap_len: 1028 filter: 0xffffffff < HCI Command: Read Local Name (0x03|0x0014) plen 0

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 252

01 14 0C 00 42 6C 75 65 5A 20 28 30 29 00 00 00 00
00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00
00 00 00 00 00 00 00 00 00 00 00 00
< HCI Command: Read Class of Device (0x03|0x0023) plen 0

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 7

01 23 0C 00 00 01 00
< HCI Command: Read Local Version Information
(0x04|0x0001) plen 0

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 12

01 01 10 00 01 0D 02 01 0A 00 0D 02

Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

3B 19 01 18 0D 00 00 01 00 01
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
3B 19 01 18 0D 00 00

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

00 01 09 04

Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

21 29 00 3B 19 01 18 0D 00 01 00

Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

3B 19 01 18 0D 00 00 01 00 01
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
3B 19 01 18 0D 00 00

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

00 01 09 04

Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

21 2A 00 3B 19 01 18 0D 00 01 00

Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

3B 19 01 18 0D 00 00 01 00 01
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
3B 19 01 18 0D 00 00

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

00 01 09 04

Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

21 2C 00 3B 19 01 18 0D 00 01 00

Quoted 57 lines · --- Marcel Holtmann

Hi,

Quoted 6 lines

I have problems setting up NAP.

Here are my configurations:

This is the NAP side
Linux version 2.4.27 (root@goner) (gcc version

3.3.4

Quoted 6 lines

20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2,
pie-8.7.6)) #1 Fri Dec 3 13:09:59 EET 2004

This is the PANU side
Linux version 2.4.26 (root@Knoppix) (gcc version 2.95.4 20011002 (Debian prerelease)) #1 SMP Sa Apr

17

Quoted 11 lines

19:33:42 CEST 2004

My Steps to setup NAP side:
root@goner ~ # hcid
root@goner ~ # hcitool dev
Devices:

        hci0    00:02:72:03:D3:F2

root@goner ~ # sdpd
root@goner ~ # pand --listen --master --nodetach
pand[11105]: Bluetooth PAN daemon

Quoted 7 lines

PANU side:
root@miniscule ~ # hcid
root@miniscule ~ # hcitool dev
Devices:

        hci0    00:0D:18:01:19:3B

root@miniscule ~ # sdpd
root@miniscule ~ # pand --search --persist --role

PANU

Quoted 11 lines

--service NAP --nodetach
pand[1703]: Bluetooth PAN daemon pand[1703]: Inquiring
pand[1703]: Searching for NAP on 00:02:72:03:D3:F2 pand[1703]: Failed to connect to the SDP server. Function not implemented(38)

and this goes on and on...
If I run hcidump on the NAP side i get these:

Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

< HCI Command: Accept Connection Request

(0x01|0x0009)

Quoted 5 lines

plen 7

Quoted 2 lines

HCI Event: Command Status (0x0f) plen 4
HCI Event: Connect Complete (0x03) plen 11

I cant run hcidump on PANU side because i dont

hcidump

Quoted 3 lines

on the laptop, and i dont have a means to tranfer hcidump binary (at least not an easy means) to it. This whole thing is really weird because I got

bnep0

Quoted 13 lines
Quoted 1 line

working twice. Now I can't.

do it with "hcidump -x" and show us the output of "hciconfig -a".

Regards

Marcel

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

Quoted 10 lines

SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list [email protected]

https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 1 line

__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#3 lore raw

Hi,

Quoted 33 lines

Ok here it goes:

NAP hciconfig -a:

hci0: Type: USB

        BD Address: 00:02:72:03:D3:F2 ACL MTU: 192:8 
SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN
        RX bytes:1591 acl:0 sco:0 events:162 errors:0
        TX bytes:1302 acl:0 sco:0 commands:70 errors:0
        Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00

0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2
HV3
Link policy: RSWITCH HOLD SNIFF PARK Link mode: ACCEPT MASTER
Name: 'BlueZ (0)'
Class: 0x000100
Service Classes: Unspecified
Device Class: Computer, Uncategorized HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1
(0x1) LMP Subver: 0x20d
Manufacturer: Cambridge Silicon Radio (10)

PANU hciconfig -a:

hci0: Type: USB

        BD Address: 00:0D:18:01:19:3B ACL MTU: 192:8 
SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN INQUIRY
        RX bytes:122 acl:0 sco:0 events:15 errors:0
        TX bytes:304 acl:0 sco:0 commands:13 errors:0
        Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00
Quoted 12 lines

0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2
HV3
Link policy: RSWITCH HOLD SNIFF PARK Link mode: ACCEPT MASTER
Name: 'miniscule-0'
Class: 0x000100
Service Classes: Unspecified
Device Class: Computer, Uncategorized HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1
(0x1) LMP Subver: 0x36f
Manufacturer: Cambridge Silicon Radio (10)

how should this work if both sides are fighting for the master role? You changed default settings without understanding what they mean. Use the default hcid.conf.

Regards

Marcel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#4 lore raw

Thank you

I think I messed with the configuration files while trying to get it up. That solved everything.

Quoted 66 lines · --- Marcel Holtmann

Hi,

Quoted 6 lines

Ok here it goes:

NAP hciconfig -a:

hci0: Type: USB

        BD Address: 00:02:72:03:D3:F2 ACL MTU:

192:8

Quoted 3 lines

SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:1591 acl:0 sco:0 events:162

errors:0

Quoted 1 line
        TX bytes:1302 acl:0 sco:0 commands:70

errors:0

Quoted 1 line
        Features: 0xff 0xff 0x0f 0x00 0x00 0x00

0x00

Quoted 2 lines

0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1

HV2

Quoted 8 lines

HV3
Link policy: RSWITCH HOLD SNIFF PARK Link mode: ACCEPT MASTER
Name: 'BlueZ (0)'
Class: 0x000100
Service Classes: Unspecified Device Class: Computer, Uncategorized HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver:

1.1

Quoted 7 lines

(0x1) LMP Subver: 0x20d
Manufacturer: Cambridge Silicon Radio (10)

PANU hciconfig -a:

hci0: Type: USB

        BD Address: 00:0D:18:01:19:3B ACL MTU:

192:8

Quoted 3 lines

SCO MTU: 64:8
UP RUNNING PSCAN ISCAN INQUIRY
RX bytes:122 acl:0 sco:0 events:15

errors:0

Quoted 1 line
        TX bytes:304 acl:0 sco:0 commands:13

errors:0

Quoted 1 line
        Features: 0xff 0xff 0x0f 0x00 0x00 0x00

0x00

Quoted 2 lines

0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1

HV2

Quoted 8 lines

HV3
Link policy: RSWITCH HOLD SNIFF PARK Link mode: ACCEPT MASTER
Name: 'miniscule-0'
Class: 0x000100
Service Classes: Unspecified Device Class: Computer, Uncategorized HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver:

1.1

Quoted 2 lines

(0x1) LMP Subver: 0x36f
Manufacturer: Cambridge Silicon Radio (10)

how should this work if both sides are fighting for the master role? You
changed default settings without understanding what they mean. Use the
default hcid.conf.

Quoted 8 lines

Regards

Marcel

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

Quoted 10 lines

SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list [email protected]

https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 1 line

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users