Chinaunix首页 | 论坛 | 博客
  • 博客访问: 322939
  • 博文数量: 41
  • 博客积分: 2540
  • 博客等级: 少校
  • 技术积分: 570
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-18 11:29
文章分类

全部博文(41)

文章存档

2011年(4)

2010年(32)

2009年(3)

2008年(2)

我的朋友

分类: LINUX

2010-02-02 17:52:31

一直都知道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
下载: 下载
阅读(2532) | 评论(0) | 转发(0) |
0

上一篇:Linux驱动资源(网站)

下一篇:Glib库基础

给主人留下些什么吧!~~