From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 Message-ID: <4492B250.000111.26041@bj163app70.163.com> Date: Fri, 16 Jun 2006 21:29:52 +0800 (CST) From: "chenjian" To: bluez-users@lists.sourceforge.net References: In-Reply-To: Subject: [Bluez-users] l2ping issues Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1895944710==" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net --===============1895944710== Content-Type: Multipart/Alternative; boundary="Boundary-=_nnEQOaRbipNUjxWMiqWrfIxymheI" --Boundary-=_nnEQOaRbipNUjxWMiqWrfIxymheI Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit 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 --Boundary-=_nnEQOaRbipNUjxWMiqWrfIxymheI Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable 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
    &n= bsp;   BD Address: 00:0E:9B:DD:E4:D1 ACL MTU: 377:10 SCO MTU: 1= 6:0
        UP RUNNING PSCAN ISCAN<= br>        RX bytes:5545 acl:3 sco:0 e= vents:193 errors:0
        TX bytes= :4482 acl:3 sco:0 commands:168 errors:0

linux-l20w:~ # lsmod|grep = -E "l2cap|rfcomm|bcm203x"
rfcomm      &n= bsp;          32408  5<= br>l2cap           = ;       20740  14 hidp,bnep,rfcomm
= bluetooth          &nbs= p;   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 hos= t

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/v= hci -l
crw-rw---- 1 root root 10, 62 Jun 15 07:51 /dev/vhci
linux-l= 20w:~ # hciemu 00:0E:9B:DD:E4:D2
linux-l20w:~ # hciconfig
hci0:&nbs= p;  Type: USB
        BD Addre= ss: 00:0E:9B:DD:E4:D1 ACL MTU: 377:10 SCO MTU: 16:0
   =      UP RUNNING PSCAN ISCAN
   &nbs= p;    RX bytes:203 acl:0 sco:0 events:28 errors:0
 = ;       TX bytes:876 acl:0 sco:0 commands:2= 8 errors:0

hci1:   Type: VHCI
    = ;    BD Address: 00:0E:9B:DD:E4:D2 ACL MTU: 192:8 SCO MTU:= 64:0
        UP RUNNING PSCAN ISCA= N
        RX bytes:0 acl:0 sco:0 ev= ents:15 errors:0
        TX bytes:5= 69 acl:0 sco:0 commands:15 errors:0

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


=




=09=C4=E3 =B2=BB =CF=EB = =CA=D4 =CA=D4 =BD=F1 =CF=C4 =D7=EE =A1=B0=BF=E1=A1=B1 =B5=C4 =D3=CA =CF=E4= =C2=F0 =A3=BF =09
=09 =D4=CC =BA=AD =D6=D0 =BB=AA =B4=AB =CD=B3= =CE=C4 =BB=AF =D3=DA =CA=C0 =BD=E7 =D2=BB =C1=F7 =BF=C6 =BC=BC =D6=AE =D6= =D0=A3=AC=B4=B4 =D0=C2 Ajax =BC=BC =CA=F5=A3=AC126 =A1=B0D =BC=C6 =BB=AE=A1= =B1=BB=F0 =C8=C8 =CC=E5 =D1=E9 =D6=D0 =A3=A1 --Boundary-=_nnEQOaRbipNUjxWMiqWrfIxymheI-- --===============1895944710== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1895944710== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users --===============1895944710==--