是否有可能使计算机的行为作为一个蓝牙HID设备? [英] Is it possible to make a computer behave as a bluetooth HID device?

查看:184
本文介绍了是否有可能使计算机的行为作为一个蓝牙HID设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能使计算机表现得像一个蓝牙HID设备?也就是说,给定一个本地机器插入它标准的USB键盘,其它设备可以发现这款机器并把它作为一个蓝牙键盘。

Is it possible to make a computer behave as a bluetooth HID device? That is, given a local machine with a standard USB keyboard plugged into it, other devices could discover this machine and use it as a bluetooth keyboard.

我想创建一个Linux或OS X应用程序(或使用现有的,虽然我还没有发现)如上所述,可以表现,但我不知道从哪里开始,或者如果它甚至可能的。

I'd like to create a linux or OS X application (or use an existing one, though I've found none) which can behave as described above, but I'm not sure where to start, or if it's even possible.

所以:


  • 就是我描述可能的?

  • 有没有做任何现有的应用程序是什么我描述?

  • 如果没有应用程序已经存在(我假设没有),是否有蓝牙库或绑定,这将有助于? (我用今天的大多数流行的语言pretty舒服,所以我倒是preFER最直接的适合这项任务,只要它在Linux或OS X提供一个图书馆。)

  • 未按任何上述的,蓝牙规范看起来pretty密集。是否有适用于手头的问题,我可以读取特定指南或其他出发点?

我认识到,这样的应用程序将最有可能需要偷普通键盘输入,可能提供一些KVM般的热键提供输入主机操作系统和发送输入通过蓝牙连接的设备之间进行切换,但我'M考虑到的问题是这个问题的范围之内。

I realize that such an application would most likely need to steal the normal keyboard input, possibly providing some KVM-like hotkey for switching between providing input to the host operating system and sending the input over bluetooth to the connected device, but I'm considering that problem to be outside the scope of this question.

推荐答案

这是绝对有可能在Linux上。前一段时间,我发现这个项目:

It is definitely possible on Linux. Some time ago I found this project:

http://nohands.sourceforge.net/index.html

他们模仿一个成熟的耳机与Linux的蓝牙堆栈上的音频和键盘控制。如果他们能仿效类似的东西,你可能能够模拟像键盘更简单的东西。

They emulate a full-blown headset with audio and keyboard controls on the Linux bluetooth stack. If they can emulate something like that, you would probably be able to emulate something simpler like a keyboard.

这篇关于是否有可能使计算机的行为作为一个蓝牙HID设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆