将三星蓝牙智能遥控器 (2016) 连接到 RaspberryPi 蓝牙 (Zero W)

问题描述

我正在尝试将我的三星蓝牙智能遥控器 (2016)(无鼠标功能)连接到 RaspBerryPi Zero W,然后当按下遥控器上的按钮时,它应该通过 IR 或 IP 发送操作。 到目前为止,我已经设法使用 gatttool 将蓝牙遥控器连接到树莓派零:

sudo gatttool -I -b XX:XX:XX:XX:XX:XX

其中 XX:XX:XX:XX:XX:XX 代表遥控器的 mac。当遥控器处于配对模式(按返回并播放 3 秒)时,在交互模式下键入 connect 然后连接到遥控器。 sofar 似乎已经成功建立连接,mac 地址字体现在是蓝色的,而且 bluetoothctl 显示它已连接到蓝色字母的“Smart Remote 2016”。

但是从现在开始,我什么也得不到。下一步,我希望与遥控器的 HID 服务建立连接并获取 /dev/input 中列出的新设备,因此在按下遥控器上的按钮时能够接收命令。如果我现在按下一个按钮,我的树莓就没有任何反应。

在我发现的 gatttool(类型主要)中,该设备有 10 个服务,如下所示:

attr handle: 0x0001,end grp handle: 0x0007 uuid: 00001800-0000-1000-8000-00805f9b34fb,Generic Access
attr handle: 0x0010,end grp handle: 0x0013 uuid: 00001801-0000-1000-8000-00805f9b34fb,Generic Attribute
attr handle: 0x0030,end grp handle: 0x0040 uuid: 0000180a-0000-1000-8000-00805f9b34fb,Device information
attr handle: 0x0050,end grp handle: 0x0052 uuid: 00001803-0000-1000-8000-00805f9b34fb,Link Loss
attr handle: 0x0053,end grp handle: 0x0055 uuid: 00001802-0000-1000-8000-00805f9b34fb,Immediate Alert
attr handle: 0x0056,end grp handle: 0x0058 uuid: 00001804-0000-1000-8000-00805f9b34fb,Tx Power
attr handle: 0x0060,end grp handle: 0x0063 uuid: 0000180f-0000-1000-8000-00805f9b34fb,Battery Service
attr handle: 0x0070,end grp handle: 0x00a7 uuid: 00001812-0000-1000-8000-00805f9b34fb,Human Interface Device
attr handle: 0x5000,end grp handle: 0x5005 uuid: 0d916f56-8570-4d50-a34f-20574da51001,UnkNown Service
attr handle: 0xff00,end grp handle: 0xff05 uuid: 9e5d1e47-5c13-43a0-8635-82ad38a1386f,UnkNown Service

有没有人以前尝试过这个或知道如何启用人机接口设备? 我真的很感激在这主题上的任何帮助!谢谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)