如何从 Amazon Fire TV 遥控器读取语音数据?

问题描述

我使用的是 Fire TV Remote Control Version 1,旧的没有音量和电源按钮。

我想要实现的是,从这个遥控器的内置麦克风接收音频样本。

我正在使用带有 debian 的 Raspberry Pi 4

Linux raspi4box 5.4.79-v7l+ #1373 SMP Mon Nov 23 13:27:40 GMT 2020 armv7l GNU/Linux

我已成功将遥控器与 bluetoothctl 配对,并且可以读取关键事件。 当按下麦克风按钮时,我想建立与设备的连接并阅读 声音的。到目前为止,我可以正确接收麦克风按钮事件。

bluetoothctl -- 信息 FC:65:DE:E8:E8:FD

Name: Amazon Fire TV Remote
Alias: Amazon Fire TV Remote
Class: 0x00001f00
Paired: yes
Trusted: yes
Blocked: no
Connected: yes
LegacyPairing: no
UUID: Serial Port               (00001101-0000-1000-8000-00805f9b34fb)
UUID: Human Interface Device... (00001124-0000-1000-8000-00805f9b34fb)
UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
Modalias: usb:v1949p0410d0304

sdptool 浏览 FC:65:DE:E8:E8:FD

Browsing FC:65:DE:E8:E8:FD ...
Service Name: SPPSERVER
Service RecHandle: 0x20000002
Service Class ID List:
  UUID 128: 00001101-0000-1000-8000-00805f9b34fb
Protocol Descriptor List:
  "L2CAP" (0x0100)
 "RFCOMM" (0x0003)
    Channel: 6
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100

如您所见,远程公开了一个串行端口配置文件。

我可以通过以下方式连接到服务:

sudo rfcomm connect /dev/rfcomm1 FC:65:DE:E8:E8:FD 1
...
Connected /dev/rfcomm1 to FC:65:DE:E8:E8:FD on channel 1
Press CTRL-C for hangup

我可以在 /dev/rfcomm1 上使用一个终端程序,它提出来自远程的请求:

AT+BRSF=253

此时您应该能够回答请求并最终启动 在第 6 频道录制。

此时我被卡住了,因为我没有得到进一步的回应 来自设备。

问候 得子

解决方法

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

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

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

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...