Skip to contentSkip to conversation

l2ping: Permission denied

Bluez-users Thomas Heinz 2 participants 3 messages Aug 1, 2007 – Aug 2, 2007 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi

I am unable to ping my bluetooth device (Logitech Mobile Pro).

Here some information:

# hciconfig -a
hci0:   Type: USB
        BD Address: 00:0C:55:FF:8C:E4 ACL MTU: 192:8 SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN
        RX bytes:3476 acl:0 sco:0 events:164 errors:0
        TX bytes:2774 acl:0 sco:0 commands:124 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: SLAVE ACCEPT
        Name: 'BlueZ (0)'
        Class: 0x3e0100
        Service Classes: Networking, Rendering, Capturing, Object Transfer, 
Audio
        Device Class: Computer, Uncategorized
        HCI Ver: 1.1 (0x1) HCI Rev: 0x33c LMP Ver: 1.1 (0x1) LMP Subver: 
0x33c
        Manufacturer: Cambridge Silicon Radio (10)

Switching the headset into pairing mode ...

# hcitool scan
Scanning ...
        00:0D:44:5D:1A:9B       Logitech HS05  V02
# hcitool inq
Inquiring ...
        00:0D:44:5D:1A:9B       clock offset: 0x1e85    class: 0x200404
# strace -f l2ping 00:0D:44:5D:1A:9B
[...]
socket(PF_BLUETOOTH, SOCK_RAW, 0)       = 3
bind(3, {sa_family=AF_BLUETOOTH, sa_data="\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 
10) = 0
connect(3, {sa_family=AF_BLUETOOTH, 
sa_data="\0\0\233\32]D\r\0\0\0\0\0\0\0"}, 10
) = -1 EACCES (Permission denied)
dup(2)                                  = 4
fcntl64(4, F_GETFL)                     = 0x2 (flags O_RDWR)
fstat64(4, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 4), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7fb4000
_llseek(4, 0, 0xbfce9730, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
write(4, "Can\'t connect: Permission denied"..., 33Can't connect: 
Permission denied
) = 33
close(4)                                = 0
munmap(0xb7fb4000, 4096)                = 0
close(3)                                = 0
exit_group(1)                           = ?
Process 28321 detached

-> connect to bluetooth socket fails.

# hcidump -x
< HCI Command: Create Connection (0x01|0x0005) plen 13
  9B 1A 5D 44 0D 00 18 CC 02 00 00 00 01
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

00 01 05 04

Quoted 1 line

HCI Event: PIN Code Request (0x16) plen 6

9B 1A 5D 44 0D 00
< HCI Command: PIN Code Request Negative Reply (0x01|0x000e) plen 6
9B 1A 5D 44 0D 00

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

01 0E 04 00 9B 1A 5D 44 0D 00

Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

18 29 00 9B 1A 5D 44 0D 00 01 00

My hcid.conf

options {
        autoinit yes;
        security user;
        pairing multi;
}
device {
        name "BlueZ (%d)";
        class 0x3e0100;
        iscan enable; pscan enable;
        lm accept;
        lp rswitch,hold,sniff,park;
}

Version information: bluez-hcidump-1.37, bluez-libs-3.12, bluez-utils-3.12

Any idea what could be the problem?

Thanks for your help.

Best wishes

Thomas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#1 lore raw
Quoted 1 line · Thomas Heinz

I am unable to ping my bluetooth device (Logitech Mobile Pro).

Maybe you have to pair with the device first?

[Nb You obviously know much more about the subject than me, so this is probably nonsense!]

Quoted 3 lines

Version information: bluez-hcidump-1.37, bluez-libs-3.12, bluez-utils-3.12

Any idea what could be the problem?

Probably not relevant, but with Fedora-7
I also seem to need bluez-gnome , though I use KDE.

Signature · 15 lines
Timothy Murphy  
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
#2 lore raw

Hi Timothy

Quoted 1 line · You

Maybe you have to pair with the device first?

hcitool cc 00:0D:44:5D:1A:9B also fails.

Quoted 2 lines

Probably not relevant, but with Fedora-7
I also seem to need bluez-gnome , though I use KDE.

I feel that the problem lies somewhere else. Let's see. Hopefully someone can drop a hint. BTW, I'm not really deeply familiar with the bluetooth architecture I have to admit.

Best wishes

Thomas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users