有没有办法在Java中与PS3的蓝牙连接进行通信
我进行了广泛的搜索,但没有发现任何有用的东西。我想知道是否可以为智能手机创建一个远程控制应用程序。我读过的一些较旧的论坛帖子说事实并非如此,但这些帖子已经有好几年了。
I've searched extensibly but haven't found anything useful. I am wondering if it would be possible to create a remote control app for a smartphone. Some older forum posts I've read said that it is not, but these posts were several years old.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的,这是可能的。这只是一个蓝牙链接。有许多第三方外围设备(Logitech 生产的一款)可让您通过蓝牙连接到 PS3。也就是说,您能做的事情可能会受到限制。我想您将仅限于他们通过特定的“控制器”API 定义的功能。这个 API 是什么,您需要做一些研究。您需要做的就是找到一个用于蓝牙连接的 Java 库或使用 Android 内置的蓝牙 API 之类的东西。从那里,您需要弄清楚要发送哪些消息。这能回答你的问题吗?
Yes, it's possible. It's simply a Bluetooth link. There are a number of third-party peripherals (Logitech makes one) that allow you to connect to the PS3 via Bluetooth. That said, you may be limited in what you can do. I would imagine you'd be limited to the functionality that they define through a specific "controller" API. What that API is, you'll need to do some research. All that you need to do is find a Java library for Bluetooth connections or use something like Android's built in Bluetooth API. From there, you need to figure out what messages you want to send. Does that answer your question?
如前所述...PS3 使用蓝牙 HID 配置文件。
索尼似乎对谁可以使用 PS3 的蓝牙协议也有限制,据我所知,只有索尼官方产品才能访问 PS3 的内部蓝牙。
您可能还注意到,任何无线外围设备通常都配有蓝牙 USB 适配器...我不明白为什么您不能将其与另一个蓝牙设备配对,并以这种方式控制 PS3。
我认为你最好的选择是忘记尝试连接到 PS3 内部蓝牙(除非你是一个伟大的黑客)并忙于使用外部 USB 蓝牙适配器。
As already stated... the PS3 uses the Bluetooth HID profile.
Sony also seem to have a restriction on who can use the PS3's bluetooth protocol, as I've noticed, only official Sony products are able to access the PS3's internal bluetooth.
You may also notice, that any wireless peripherals normally come with a bluetooth USB dongle... I don't see why there would be any reason you can't pair this to another bluetooth device, and control the PS3 that way.
I think your best bet is to forget about trying to connect to the PS3 internal bluetooth (unless you're a great hacker) and to get busy with an external USB bluetooth dongle.
PS3 使用蓝牙 HID 协议进行通信,手机和应用程序必须具有 HID 配置文件(设备角色)才能与控制器通信。
此外,PS3 将使用专有的 HID 报告与 PS3 控制器进行通信。
因此,如果您可以执行以下操作,这是可能的:-
获取支持HID设备的手机,还需要获取API来访问,获取PS3使用的HID报告。
所以通过大量的黑客攻击是可能的:)
The PS3 uses the Bluetooth HID protocol for communication, the phone and the application will have to have the HID profile (Device role) to talk to the controller.
In addition the PS3 will be using proprietary HID reports to talk with the PS3 controller.
So it is possible if you can do the following :-
Get access to a phone that supports HID device , and you need to also get API to access , get access to the HID reports used by PS3.
So it is possible with a lot of hacking :)