使用Java的Android USB HID设备 [英] USB HID Device for Android using Java

查看:437
本文介绍了使用Java的Android USB HID设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,
我有一个带有供应商ID和产品ID的USB设备.我想要一些处理USB端口的Java库.我正在使用Android 3.0.
请帮助我完成此任务.
谢谢.

Hi Friends,
I have a USB Device with a vendor Id and Product Id. I want some Library of java that deals with USB Ports. I am using Android 3.0.
Please help me doing this task.
Thank You.

推荐答案

您需要先倒带一小部分,然后再查看软件,该硬件具有USB主机模式很重要.并非所有设备都支持此功能,无论您投入多少软件,都无法使其正常工作.

如果您知道设备支持USB主机模式,那么libusb将是一个很好的起点.只需在Google上搜索"libusb android"即可.

祝你好运

达伦(Darren)
You need to rewind a little first, before you look at the software it''s important that the hardware is capable of USB Host mode. Not all devices support this and no matter how much software you throw at it your not going to make it work.

If you know the device supports USB host mode, then libusb would be a good starting place. Simply google "libusb android".

good luck

Darren


这篇关于使用Java的Android USB HID设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆