usb

Trouble connecting to LG phone with adb (Mac OS X 10.7.5)

柔情痞子 提交于 2019-12-04 22:42:53
When I run adb devices there are no devices showing as connected. My device is a LG Optimus Exceed 2 running 4.4.2 There are many of these posts around, so here's what I've done: I'm using the cord that came with the phone. It charges and tries to sync photos, so it isn't an issue here. Switching usb ports and trying a powered usb hub doesn't affect it either. I've added the vendor id (0x1004) to ~/.android/adb_usb.ini Restarted and unplugged any combination of things you can think of USB Debugging is on. And has been restarted. Same with Unknown sources. I have never used EasyTether, nor is

libusb - How to select an alternate setting of a usb-soundcard for stereo recording?

拥有回忆 提交于 2019-12-04 19:52:25
I have a USB sound card that has the following setup and allows for stereo recording with 48000hz 2 channels 16 bit, so I'm trying to set it up that way: UsbConfiguration[mId=1,mName=null, mAttributes=160, mMaxPower=50, mInterfaces=[ UsbInterface[mId=0,mAlternateSetting=0,mName=null,mClass=1,mSubclass=1,mProtocol=0, mEndpoints=[] UsbInterface[mId=1,mAlternateSetting=0,mName=null,mClass=1,mSubclass=2,mProtocol=0, mEndpoints=[] UsbInterface[mId=1,mAlternateSetting=1,mName=null,mClass=1,mSubclass=2,mProtocol=0, mEndpoints=[UsbEndpoint[mAddress=4,mAttributes=9,mMaxPacketSize=384,mInterval=1]]

What is most appropriate USB class to handle images and video transfer and streaming?

断了今生、忘了曾经 提交于 2019-12-04 18:25:44
I am working on a project (a digital camera) that should be able to take still images and short video clips and make those available to the host. As well as being able to stream live video. Which USB class[es] should I use? Should I use PTP (for still images and video) and USB Video Class for streaming? Does PTP support transfer of video? Does PTP support video streaming? For static objects PTP is better since it does have a definition for an object. Current Canon DSLRs are also capable of "streaming" live video via standard PTP transaction mechanism. However, real streaming would benefit from

Is it possible to write a driver for the input system in android

余生颓废 提交于 2019-12-04 18:05:34
Is it possible for a public sdk only app write a "driver" to an input device, like a joystick that uses some vague, possibly alien, protocol over USB using the new 3.1 USB Apis? For example, would it be possible to implement a driver for the brand-new-just-out-the-door O-Triangle 3.15 Controller with 13 joysticks and 159 buttons and virtual head tracking and soda dispenser, or would this have to wait for android to be updated with a new low-level driver for the O-Triangle 3.15's controller It does look like you can do it with the classes in the android.hardware.usb package: you can implement a

Installation and emulation of virtual USB Device

蹲街弑〆低调 提交于 2019-12-04 17:48:19
I already read Creating a Virtual USB Device and Virtual USB device about creating a virtual USB Device. I am familiar with the Plug and Play handling by Windows as well as the driver mechanism. So far I understood that first of all I would have to create another device driver which is used for the virtual USB device. But I am still lost on the point what actually is the virtual device. How would I control the behaviour of my virtual device? Background: I develop a software which acts as a communication layer between an API and the USB driver. The behaviour of the USB device is well known to

Detect if device is using USB 3.0

匆匆过客 提交于 2019-12-04 17:31:30
问题 Does anyone know a way to detect if a USB device connected to a USB 3.0 host port is running at 3.0 or 2.0 using C#? We are manufacturing USB 3.0 extension cables and we need to verify that all the pins have been soldered correctly. We would like to do this in software. We would like to connect a 3.0 thumb drive to the cable and check if the device is operating in USB 3.0 mode. If it is in 2.0 mode, we know their is a problem with 1 or more of the USB 3.0 lines. 回答1: I've managed to cook up a

Android USB Host. How do I get permission to use USB devices without displaying a dialog?

旧城冷巷雨未停 提交于 2019-12-04 17:01:15
There android device without a screen . When connecting the USB device automatically appears the system dialog to permit the use of USB. It is necessary to obtain a permit without using the device's screen . It is assumed that the device application will be installed in advance, and when the USB device is connected automatically. How exactly this can be done? Vitaliy I made by analogy in the topic . Classes for the correct version of SDK took away . I create the necessary packages and copied to the specified and missing classes. The application should be copied into the folder system/priv-app

Android USB I/O

大憨熊 提交于 2019-12-04 16:57:34
OK, so i have seen all the stuff about how acting as a USB host is impossible on vanilla android, but is there anything in the Android API that would allow an app to override the default USB behavior in order to manually control the USB i/o responses, in order to support some other protocol? I have not seen anything that would facilitate this, but is it possible without hacking the kernel? This seems like the sort of thing which should be relatively easy, but i haven't found anything. Forgive me if i've been googling incorrectly. I believe that the stock kernel does not include the correct

Playing 2 musics through 2 different sound cards at same time

亡梦爱人 提交于 2019-12-04 16:53:57
问题 Trying something pretty out of the box... I have a simple app with a button that when pushed, plays music out of the audio jack of my android tablet. public void btn1 (View view) { MediaPlayer mp = MediaPlayer.create(this, R.raw.xxx); mp.start(); } I've now added a usb audio interface (through a micro usb adapter) and I can hear audio out of it. I'm able to list the sound cards with this AudioDeviceInfo[] devices = audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); for

Nexus 4 does not show the RSA dialog when connecting USB in debug mode

大憨熊 提交于 2019-12-04 16:45:17
I did the factory reset, and my computer is newly installed. I enabled the USB debuging, and connect to the computer. It shows the drivers are installed successfully, and i can see so in the device manager. But the phone does not show the RSA dialog to comfirm the connection, and in the DDMS, it is offline... My nexus is official android 4.2.2 Has anyone met this issue? Please give advice! thanks! / * **** Update * ** * / I tried on my office computer. When connected to the office computer, the dialog, which shows the RSA key fingerprint, pops up. But as i tried this on my home computer, no