5 posts / 0 new
Last post
zhangminkang
Offline
Last seen:2 years 5 months ago
加入:2018-04-27 06:55
DA14585方案连接小米盒子无法控制小米盒子?

1. 用DA14585方案连接到小米盒子无法控制小米盒子,查看小米盒子的信息,DA14585开发板与小米盒子连接后,已经生成了 /dev/input/evnet13 一个输入设备节点。
但是DA14585这边发送数据, 盒子端用getevent抓取数据,没有事件产生。
2. 用Voice-RCU-3.310.4.apk测试,能够看到发送数字1,在APK界面有反应,但是getevent还是无事件上报。
3. 用DA14585通过蓝牙连接到小米手机,荣耀盒子,创维OTT盒子,PC电脑,试过都是可以控制。
4. 试过用其他方案的遥控器连接到小米盒子也是能够控制的。

查看小米盒子蓝牙遥控器方案使用的是DA14582方案, DA14585方案是不是跟DA14582方案有兼容性差异,无法支持小米盒子?

Keywords:
Device:
SSong_Dialog
Offline
Last seen:10 months 4 weeks ago
工作人员
加入:2014-11-20 07:01
Hi,

Hi,

May I know your product spec? as far as we know, It's quite challenge to design one uniform RCU for all android box due to different Interopeeration issue with different android platform.

serveral explanation for your scenario.

1) Voice RCU.apk show correct demo. since android app can't received all rcu key event due to some keyevent like power key are consumed by android system, app will never chance to received those event, then we send extra notification with customized ble profile for each key event, and apk listen to these notification to demo the key function. this is not HID way.that's why you see it works.

2) For your issue, I can't figure out the exact reason for your description. do you have some possibility to get android adb log with bluedroid log enable or sniffer log for 582/585 cross comparision.

some quick try-out, you can disable several report id in rcu side, since there are several report like mouse/touch, or audio are not necessary need in your test, this to make sure no unexpected parse error in android side.

or you can change APP_DIS_PNP_ID to other value not 0x0580 to have different vendor id in case some host patch are expecting some behavior like 582.

zhangminkang
Offline
Last seen:2 years 5 months ago
加入:2018-04-27 06:55
HI Ssong!

HI Ssong!
Thank you very much for your!!!

1 I was try change APP_DIS_PNP_ID,but it have no effect。 I try it to the same of xiaomi vendor id for APP_DIS_PNP_ID, But it still doesn't matter.

2 disable several report id is mean change static const uint8_t report_map[] ? (projects\target_apps\rcu\rcu_585\src\config\user_hogpd_config.h)
in that case,I have modified it. But it still doesn't work.

3 You can see the attached log, is adb log for xiaomi box.
连接配对小米遥控器.log is da14582 platform.
连接配对DA14548信息.log is da14585 platform.

Attachment:
zhangminkang
Offline
Last seen:2 years 5 months ago
加入:2018-04-27 06:55
HI Ssong!

HI Ssong!
我比较了一下小米遥控器和DA14585开发板发送的数据。 发现DA14585发送给小米盒子的数据从打印上看多了5个字节的数据。
以下为小米盒子上抓取的log信息。 对比一下数据上DA14585比DA14582多了5个字节。 有可能是这5个字节的数据影响到兼容?
能否看一下DA14585 report数据为什么多了5个字节? 参考代码为 DA14585_RCU_v_6.140.2.17。

上报相同的键值:
DA14585 方案数据:
RCVD ACL Data from HCI. Handle: 0x201 Boundary: 2 Brdcst: 0 Len: 20 Data: 0x10 0x00 0x04 ...
Data
00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
0000: 10 00 04 00 1b 4e 00 00 02 08 00 00 50 00 00 00 .....N......P...
0010: 00 00 00 01 ....

ATT RECV Command. Name: Handle Value Notification (0x1b) len: 16
Attr Handle : 78 (0x004e)
Attr Value : 00 02 08 00 00 50 00 00
: 00 00 00 00 01

DA14582(小米蓝牙语音遥控器):
RCVD ACL Data from HCI. Handle: 0x201 Boundary: 2 Brdcst: 0 Len: 15 Data: 0x0b 0x00 0x04 ...
Data
00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
0000: 0b 00 04 00 1b 2f 00 00 00 50 00 00 00 00 00 ...../...P.....
ATT RECV Command. Name: Handle Value Notification (0x1b) len: 11
Attr Handle : 47 (0x002f)
Attr值:50 00 00 00 00 00 00 00

更详细的log,请见附件。 DA14582为小米遥控器。 DA14585为 DA14585开发板。

Attachment:
zhangminkang
Offline
Last seen:2 years 5 months ago
加入:2018-04-27 06:55
附件为抓取的hci层数据,

附件为抓取的hci层数据,
btsnoop_hcida14585.cfa DA14585开发板连接街抓取的数据。
btsnoop_hcixiaomiyaokongqi.cfa 为小米遥控器抓取的数据。

可以查看到ACL数据包中 DA14585 发送的数据为25字节。
小米遥控器数据为20个字节。

Attachment: