gpt4 book ai didi

java - 如何开始逆向工程 SpaceNavigator 外围数据流?

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:23:19 26 4
gpt4 key购买 nike

我正在玩 JavaFX 3D,我有 this 3Dconnexion peripheral它已经放在抽屉里至少一年未使用了,我想用 Java 捕获它的输入。

当我插入它时,我看到一个新文件:/dev/hidraw2

我可以hexdump那个文件,每次我触摸设备时都会看到一堆二进制 gobbledeegook。例如:

hexdump < /dev/hidraw2
0000000 0103 0300 0000 0103 0300 0000 0103 0300
0000010 0000 0001 0000 0100 0200 0000 0000 0000
0000020 0001 0000 0900 0200 0000 0000 0000 0001
0000030 0000 1400 0200 0000 0000 0000 0001 0000

这个输入是从左键单击三下开始的,我可以清楚地看到那里有一个重复的字节序列。然后我触摸了 3D 传感器,事情变得非常模糊。除了 hexdump,还有哪些工具可以帮助我弄清楚如何解析它?

顺便说一句,我开始搜索 Java spacenav 库,但没有找到任何有用的东西。

更新:这是单击 SpaceNavigator 顶部时的输出。

01 f8  ff 14  00 55  00 02  00 00  15 00  00 00  01 00
00 b0 ff 04 00 02 a5 ff 00 00 00 00 01 00 00 00
00 4b 00 02 65 00 fe ff 00 00 01 00 00 bd ff 00
00 02 d7 ff 08 00 00 00 01 00 00 1e 00 cd ff 02
37 00 00 00 00 00 01 00 00 f1 ff 00 00 02 b8 ff
00 00 00 00 01 00 00 2b 00 14 00 02 26 00 00 00
00 00 01 00 00 f5 ff 00 00 02 d1 ff 00 00 00 00
01 00 00 19 00 f5 ff 02 2b 00 00 00 00 00 01 00
00 eb ff 00 00 02 d9 ff 00 00 00 00 01 00 00 04
00 00 00 02 23 00 00 00 00 00 01 00 00 fe ff 00
00 02 f3 ff 00 00 00 00 01 00 00 00 00 00 00 02
09 00 00 00 00 00 01 00 00 00 00 00 00 02 ef ff
00 00 00 00 01 00 00 03 00 00 00 02 08 00 00 00
00 00 01 00 00 00 00 00 00 02 f5 ff 00 00 00 00
01 00 00 00 00 00 00 02 07 00 00 00 00 00 01 00
00 00 00 00 00 02 f7 ff 00 00 00 00 01 00 00 00
00 00 00 02 07 00 00 00 00 00 01 00 00 00 00 00
00 02 f8 ff 00 00 00 00 01 00 00 00 00 00 00 02
05 00 00 00 00 00 01 00 00 00 00 00 00 02 fc ff
00 00 00 00 01 00 00 00 00 00 00 02 00 00 00 00
00 00 01 00 00 00 00 00 00 02 00 00 00 00 00 00
01 00 00 00 00 00 00 02 00 00 00 00 00 00 01 00
00 00 00 00 00 02 00 00 00 00 00 00 01 00 00 00
00 00 00 02 00 00 00 00 00 00 01 00 00 00 00 00
00 02 00 00 00 00 00 00

最佳答案

你下载他们的SDK了吗?据我所知,他们直接支持通过 Java 从他们的 API 读取所有这些值。

关于java - 如何开始逆向工程 SpaceNavigator 外围数据流?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39668447/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com