public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] l2ping issues
       [not found] <mailman.0.1150463548.25144.bluez-users@lists.sourceforge.net>
@ 2006-06-16 13:29 ` chenjian
  2006-06-17 10:16   ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: chenjian @ 2006-06-16 13:29 UTC (permalink / raw)
  To: bluez-users


[-- Attachment #1.1: Type: text/plain, Size: 1563 bytes --]

hi guys, I have 2 issues with l2ping. bluz version is as the following:
rpm info:

linux-l20w:~ # rpm -qa|grep bluez

bluez-utils-2.24-17

bluez-libs-2.24-10

1. l2ping failed to ping itself
linux-l20w:~ # hciconfig
hci0:   Type: USB
        BD Address: 00:0E:9B:DD:E4:D1 ACL MTU: 377:10 SCO MTU: 16:0
        UP RUNNING PSCAN ISCAN
        RX bytes:5545 acl:3 sco:0 events:193 errors:0
        TX bytes:4482 acl:3 sco:0 commands:168 errors:0

linux-l20w:~ # lsmod|grep -E "l2cap|rfcomm|bcm203x"
rfcomm                 32408  5
l2cap                  20740  14 hidp,bnep,rfcomm
bluetooth              41188  10 hidp,bnep,rfcomm,l2cap,hci_vhci,hci_usb
linux-l20w:~ # l2ping 00:0E:9B:DD:E4:D1
Can't connect: No route to host

Is this normal or correct?

2. I can run hciemu to emulate a faked bluetooth device, but the l2ping still failed. Is that normal or correct?
linux-l20w:~ # modprobe hci_vhci
linux-l20w:~ # ls /dev/vhci -l
crw-rw---- 1 root root 10, 62 Jun 15 07:51 /dev/vhci
linux-l20w:~ # hciemu 00:0E:9B:DD:E4:D2
linux-l20w:~ # hciconfig
hci0:   Type: USB
        BD Address: 00:0E:9B:DD:E4:D1 ACL MTU: 377:10 SCO MTU: 16:0
        UP RUNNING PSCAN ISCAN
        RX bytes:203 acl:0 sco:0 events:28 errors:0
        TX bytes:876 acl:0 sco:0 commands:28 errors:0

hci1:   Type: VHCI
        BD Address: 00:0E:9B:DD:E4:D2 ACL MTU: 192:8 SCO MTU: 64:0
        UP RUNNING PSCAN ISCAN
        RX bytes:0 acl:0 sco:0 events:15 errors:0
        TX bytes:569 acl:0 sco:0 commands:15 errors:0

linux-l20w:~ # l2ping  00:0E:9B:DD:E4:D2
Can't connect: Host is down


[-- Attachment #1.2: Type: text/html, Size: 2811 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bluez-users] l2ping issues
  2006-06-16 13:29 ` [Bluez-users] l2ping issues chenjian
@ 2006-06-17 10:16   ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2006-06-17 10:16 UTC (permalink / raw)
  To: BlueZ users

Hi,

> I have 2 issues with l2ping. bluz version is as the following:
> rpm info:
> linux-l20w:~ # rpm -qa|grep bluez
> bluez-utils-2.24-17
> bluez-libs-2.24-10
> 
> 1. l2ping failed to ping itself
> linux-l20w:~ # hciconfig
> hci0:   Type: USB
>         BD Address: 00:0E:9B:DD:E4:D1 ACL MTU: 377:10 SCO MTU: 16:0
>         UP RUNNING PSCAN ISCAN
>         RX bytes:5545 acl:3 sco:0 events:193 errors:0
>         TX bytes:4482 acl:3 sco:0 commands:168 errors:0
> 
> linux-l20w:~ # lsmod|grep -E "l2cap|rfcomm|bcm203x"
> rfcomm                 32408  5
> l2cap                  20740  14 hidp,bnep,rfcomm
> bluetooth              41188  10
> hidp,bnep,rfcomm,l2cap,hci_vhci,hci_usb
> linux-l20w:~ # l2ping 00:0E:9B:DD:E4:D1
> Can't connect: No route to host
> 
> Is this normal or correct?
> 
> 2. I can run hciemu to emulate a faked bluetooth device, but the
> l2ping still failed. Is that normal or correct?
> linux-l20w:~ # modprobe hci_vhci
> linux-l20w:~ # ls /dev/vhci -l
> crw-rw---- 1 root root 10, 62 Jun 15 07:51 /dev/vhci
> linux-l20w:~ # hciemu 00:0E:9B:DD:E4:D2
> linux-l20w:~ # hciconfig
> hci0:   Type: USB
>         BD Address: 00:0E:9B:DD:E4:D1 ACL MTU: 377:10 SCO MTU: 16:0
>         UP RUNNING PSCAN ISCAN
>         RX bytes:203 acl:0 sco:0 events:28 errors:0
>         TX bytes:876 acl:0 sco:0 commands:28 errors:0
> 
> hci1:   Type: VHCI
>         BD Address: 00:0E:9B:DD:E4:D2 ACL MTU: 192:8 SCO MTU: 64:0
>         UP RUNNING PSCAN ISCAN
>         RX bytes:0 acl:0 sco:0 events:15 errors:0
>         TX bytes:569 acl:0 sco:0 commands:15 errors:0
> 
> linux-l20w:~ # l2ping  00:0E:9B:DD:E4:D2
> Can't connect: Host is down

you can't connect a virtual HCI device to a real device. It is not
working this way. Use either two real or two virtual devices.

Regards

Marcel




_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-17 10:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.0.1150463548.25144.bluez-users@lists.sourceforge.net>
2006-06-16 13:29 ` [Bluez-users] l2ping issues chenjian
2006-06-17 10:16   ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox