hi guy, I experienced one issue, can anybody help? thanks!
1. setup 2 virtual hci interface hci0 and hci1
hciemu localhost:1000
hciemu localhost:2000
linux-l20w:~ # hciconfig
hci0: Type: VHCI
BD Address: 7F:00:00:01:03:E8 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
hci1: Type: VHCI
BD Address: 7F:00:00:01:07:D0 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
2. run attest
attest 7F:00:00:01:03:E8 10
the $? is equal 0
linux-l20w:~ # attest 7F:00:00:01:03:E8 10
Connecting to 7F:00:00:01:03:E8 on channel 10
linux-l20w:~ # echo $?
0
Everything is OK until now.
3. But hci1 is lost
But take a look at this:
linux-l20w:~ # hciconfig
hci0: Type: VHCI
BD Address: 7F:00:00:01:03:E8 ACL MTU: 192:8 SCO MTU: 64:0
UP RUNNING PSCAN ISCAN
RX bytes:0 acl:15 sco:0 events:22 errors:0
TX bytes:797 acl:12 sco:0 commands:18 errors:0
hci1 is lost.
Otherinfo:
linux-l20w:~ # uname -r
2.6.16.21-38-smp