iPad作为使用蓝牙的Mac键盘 [英] iPad as a keyboard for Mac using Bluetooth

查看:209
本文介绍了iPad作为使用蓝牙的Mac键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过iPad将iPad用作Mac-Mini/MacBook的键盘.所以请建议我该怎么做.

I want to use my iPad as a keyboard for my Mac-Mini/MacBook using Bluetooth. So please suggest me how can I do this.

请向我提供与此有关的任何链接.

Please provide me the any link that help me regarding this.

谢谢

推荐答案

一种选择是,将iPad用作外围设备,将Mac-Mini/MacBook用作中央设备,并实施HOGP(Hat Over Gatt Profile). 它们是在iPad上需要完成的几件事: 1)收集键盘事件的应用程序,即收集键盘事件所需的虚拟输入键盘(就像iPad上的原始输入键盘一样). 2)需要一个描述您的虚拟键盘事件的描述符,用于MAC分析您的键盘事件.对于这种情况,您可能需要参考在蓝牙SIG网站上定义的HOGP. https://www.bluetooth.org/docman/handlers/downloaddoc.ashx ?doc_id = 245141 3)正常的蓝牙操作,例如广告/连接处理程序.

One option is that you take your iPad as an peripheral and Mac-Mini/MacBook as central, and implement HOGP(Hid Over Gatt Profile). Their are several things need to be done on your iPad: 1)An app which collect the keyboard event, i.e. a virtual input keyboard(just like the original input keyboard on iPad) needed to collect keyboard event. 2)A descriptor which describe your virtual keyboard event is needed, used for your MAC to parse your keyboard event. for this case you may need refer HOGP which defined on Bluetooth SIG website. https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=245141 3)Normal Bluetooth actions, such as advertisement/connection handler.

基本上,您不需要在MAC上进行任何操作,而仅需要在iPad上进行应用程序开发.对于第2部分,如果您可以嗅探Bluetooth航迹,则可能会找到一个真正的Bluetooth键盘并找出描述符,然后复制/重用它.

basically you need to nothing on you MAC but purely app development on your iPad. for the section 2, if you can sniff the Bluetooth air trace, you may find a real Bluetooth keyboard and find out the descriptor, then copy/reuse it.

由于iOS版本问题,某些旧设备可能不支持蓝牙广告功能,因此您的应用程序无法在此类iOS版本上运行.

Due to the iOS version issue, some of the old device may not support Bluetooth advertisement function hence your app could no run on such iOS version.

这篇关于iPad作为使用蓝牙的Mac键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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