TI中文支持网
TI专业的中文技术问题搜集分享网站

CC2540 连接 USB HID设备透传

我有一个usb hid设备想通过cc2540的usb接口进行透传数据到手机上,那么,请问有没有对应的SDK例程,我查看过SDK里的,SimpleBLEPeripheral可以更改成usb cdc透传,但这并不是我想要的,HIDAdvRemoteDongle是usb hid,但这例程是将cc2540作为slave使用,我想要的是CC2540可以跟usb hid从设备通信,请问有这样的例程或参考文档吗,我需要更改,谢谢各位的回答。

Viki Shi:

还有一个HIDEmuKbd的例程,简介如下:

HID Emulated KeyboardThis sample project implements the HID Over GATT profile in a BLE peripheral device to provide an example of how a HID keyboard can be emulated with a simple two button remote control device. The project is based on adopted profile and service specifications for HID over GATT ([8] and [9]) and Scan Parameters ([10] and [11]). The project also includes the Device Information Service ([12]) and Battery Service ([13]).

user6416691:

回复 Viki Shi:

好的,我去看一下例程,非常感谢您的回答。

user6416691:

回复 Viki Shi:

您好,我看了一下HIDEmuKbd例程,我将它移植到simplePeripheral例程上,仅仅需要HID report部分,但是,我看不明白的是,HID report的Read和Send是在哪部分呢,按我的理解hidDevSendReport应该是往上GATT层的。

Viki Shi:

回复 user6416691:

没记错的话,应该是在hidkbdservice.c里

赞(0)
未经允许不得转载:TI中文支持网 » CC2540 连接 USB HID设备透传
分享到: 更多 (0)