一直都知道Linux蓝牙协议栈BlueZ支持Virtual HCI.但不知道怎么用。
今天在看源代码的时候偶尔看到。那就是hciemu (hci emulator). 不知道这个东西需不需要内核选项Virtual HCI的支持。
具体的时候方法如下:
Compiling and installing Bluez hciemu
a) Extract bluez-hciemu-1.2 into your directory.
b) In order to configure the compilation execute the following command:
commands:
# ./configure --prefix=/
# make
# make install
Testing Virtual bluetooth
a) Execute the following commands at the omapinnovator prompt:
# mknod /dev/vhci c 10 250
'Creates the HCI interfaces
# ./hciemu localhost:10
# ./hciemu localhost:11
'Activates the HCI interfaces
# hciconfig hci0 up '
# hciconfig hci1 up
'Show the available HCI interfaces
# hciconfig
> You can also send a virtual ping to these virtual devices using the
> following command:
> # l2ping
|
文件: |
bluez-hciemu-1.2.tar.gz |
大小: |
74KB |
下载: |
下载 | |
阅读(2603) | 评论(0) | 转发(0) |