usb

How to detect a usb drive in Java

…衆ロ難τιáo~ 提交于 2019-12-20 02:43:07
问题 I would like to know how to detect a usb drive. I have already read this post but I am interested in knowing if we can just use java.io.*; to check for the usb drive. The post that i have read up, does kind of explain how to use java.io.*; but I didn't quite understand. If someone could provide an example, that would be great. Thank you. 回答1: You could you the File.listRoots() Method. There is a Post about that: Post on Stackoverflow on File.listRoots() The problem here is that you would need

How to detect if Android has full USB support or not?

南笙酒味 提交于 2019-12-20 02:15:31
问题 My application uses UsbManager to communicate with USB cameras. Some devices don't have USB support. These will return null for (UsbManager)context.getSystemService( Context.USB_SERVICE ) , or they will throw a NoSuchMethodError exception when enumerating devices. I can detect both and display a message properly. Unfortunately, some Androids that don't detect USB devices cause neither of these problems. They just return an empty list of USB devices. How can I properly detect that this system

Prolific PL2303 serial port to 250000bps

冷暖自知 提交于 2019-12-19 21:47:06
问题 I need to run my /dev/ttyUSB0 (prolific pl2303 USB-RS232 converter) at 250kbps using c. Everywhere I looked everyone said that the nearest achievable speed is 230400 bps (http://lxr.linux.no/#linux+v3.9.5/drivers/usb/serial/pl2303.c and a few lines later (line 325) "NOTE: Only the values defined in baud_sup are supported !"). But I'm 100% sure that it can be done, because on windows (using c# default SerialPort component) I can just set 250000 as the baudrate, and it wil happily put out data

Android bulkTransfer return -1 when read data but there is really some data in the buffer

匆匆过客 提交于 2019-12-19 17:34:11
问题 I write a app in galaxy tab p7300 to communicate with a key (scsi device) via otg cable. I can read data first time with bulkTransfer(),but can not the next time . Then I use Ellisys Visual USB to sniff data and I find that the key really return 13 bytes data. But in the android client (GT-P7300) I receive -1 that bulkTransfer return. I have run out my idea. Thanks for anybody that can give me a piece of clues. 回答1: When using the USB Bulk transfer, here is a list of things to check when

Debugging android application on devices +With Sony Ericsson

巧了我就是萌 提交于 2019-12-19 11:51:33
问题 Here i saw various question related to "usb debugging" but answers not really helped me . can any one put light on this issue... Your any help is appreciable 回答1: My problem solved after doing this I updated usb driver : i followed step written here under WINDOWS XP . Device manager view and ... i reconnected my device to pc(winXP). enabled usb debugging in device usb debugging= set true in android manifest In command prompt... C:\android-sdk-windows\platform-tools>adb devices List of devices

Which driver need to install in my android device for running my app?

邮差的信 提交于 2019-12-19 11:47:25
问题 I bought intex mobile for testing my android application in real device. However this device is not present in the list of devices provided by android in OEM USB Driver list. I checked intex official site but not sure exactly which driver need to install. Can you please tell me exactly which driver i need to install so that i can run my application from eclipse in my "intex cloud y11" device. For website URL click here intex website Many Thanks. 回答1: if you are using windows, Download the

C# Windows Store app returning null for UsbDevice

寵の児 提交于 2019-12-19 11:46:14
问题 Being new to Windows Store app development, I am working on an app that has to connect to several USB devices. I am using VS 2013 (community) with C#. For example, a list of attached webcams is obtained using: var devices = await DeviceInformation.FindAllAsync(DeviceClass.VideoCapture); This indeed gives me a list of attached webcams. To access the first device, a UsbDevice object should be created using: DeviceInformation device = devices[0]; UsbDevice usbDevice = await UsbDevice.FromIdAsync

How to allow Android app(TV-box) to recognize or access USB web camera?

人走茶凉 提交于 2019-12-19 10:27:31
问题 I am currently trying to develop an Android video conference application on a Android TV set-top box. As all of us know, Android TV box does not have a camera and therefore I tried to use a USB web camera but the OS does not recognize the USB camera and is unable to retrieve video feed from it. Is there anyway to make sure my Android application is able to receive video feed from the USB camera? Thank you and sorry if I wrote this question inappropriately, it's my first time using

PyUSB dev.set_configuration()

余生长醉 提交于 2019-12-19 09:24:44
问题 I am trying to send data to a usb stick using the python library PyUSB. The code I am using is the following: import usb.core import usb.util # find our devices #dev = usb.core.find(idVendor=0xfffe, idProduct=0x0001) dev = usb.core.find(idVendor=0x090c, idProduct=0x1000) # was it found? if dev is None: raise ValueError('Device not found') # set the active configuration. With no arguments, the first # configuration will be the active one dev.set_configuration() # get an endpoint instance cfg =

Android ADB redistribution [closed]

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-19 03:15:19
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Are you allowed to redistribute the Android ADB to the end users? Is there a distributive / package that might be included in the installer? We are considering to use it in order to provide a USB connectivity between our Android app and a desktop app. Is there any better ways you can suggest to easily establish