* hci_emu and hci_vhci
@ 2012-12-19 11:10 Kevin Wilson
2012-12-19 13:57 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Wilson @ 2012-12-19 11:10 UTC (permalink / raw)
To: linux-bluetooth
Hi,
What can we test with hci_emu and hci_vhci ?
When I tried:
modprobe hci_vhci
and then
./hciemu -n 10
I see with hciconfig that a virtual device was created (it shows Bus: VIRTUAL)
When I have no other BT physical device, which tests can I do with the virtual
hci device ?
When I try :
hciconfig scan
or
hciconfig inq
I get this answer in both cases:
Inquiry failed: Invalid request code
Also when I set both PSCAN/ISCAN bit in it, I cannot see it when scanning
from other machine with physical BT devices.
So I assume testing with pan --connect, etc also won't work.
Are there any tests which we can do with a virtual
hci device ?
rgs
Kevin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: hci_emu and hci_vhci
2012-12-19 11:10 hci_emu and hci_vhci Kevin Wilson
@ 2012-12-19 13:57 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2012-12-19 13:57 UTC (permalink / raw)
To: Kevin Wilson; +Cc: linux-bluetooth
Hi Kevin,
> What can we test with hci_emu and hci_vhci ?
>
> When I tried:
> modprobe hci_vhci
> and then
> ./hciemu -n 10
>
> I see with hciconfig that a virtual device was created (it shows Bus: VIRTUAL)
> When I have no other BT physical device, which tests can I do with the virtual
> hci device ?
>
> When I try :
> hciconfig scan
> or
> hciconfig inq
> I get this answer in both cases:
> Inquiry failed: Invalid request code
>
> Also when I set both PSCAN/ISCAN bit in it, I cannot see it when scanning
> from other machine with physical BT devices.
of course not. This one is virtual and does not magically transmit radio
waves ;)
> So I assume testing with pan --connect, etc also won't work.
If you start two entities of hciemu which each its own port number, then
you can connect between them. Of course if they are running on the same
host, then the network interfaces will not see any traffic. Local
traffic goes over the loopback interface.
> Are there any tests which we can do with a virtual
> hci device ?
Plenty of them, but you need a full piconet emulation for anything
further.
Regards
Marcel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-12-19 13:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-19 11:10 hci_emu and hci_vhci Kevin Wilson
2012-12-19 13:57 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox