Asking for help. USB 3.0 Type A to Type A Male device from a Chinese Manufacturer - Android General

Hello xdadevelopers.
Android dev here. So here is my situation. I ordered an android device from a Chinese manufacturer. It only has USB 3.0 input. I am trying to compile and run my code on the device via a usb 3.0 Type A, male to Type A, male cable. After connecting the usb to my computer, it does not recognize my device. From here, I assumed it is because the manufactured device does not have a usb driver so am trying to install one onto the device. Is this correct to assume? Beyond this point, android documentation does not list the usb driver for my manufacturer because the manufacturer is not mainstream. Anyone have any insight as to how I can install a driver onto this alien device?

Related

[Q] Can I develop/put my own drivers onto Android. (To get USB peripherials working)

So I have many many things I want to do with (Specifically) USB devices on my TF101. It's my baby and I use it for almost everything now, but there's still a few problems I haven't been able to shake or get other answers too.
I have a USB-MIDI cable that doesn't work (isn't detected, I think driver issue/isn't supported) Could I make a driver to do this so I can connect my keyboard to my tf and record some jams?
More Important
I have a USB - 3.5 mm converter/cable, usb in, headphone port out. It's by logitech and works fine on computer to plug any 3.5mm headphones into, not at all on android though. My headphone port is broken so this would be an amazing thing to get working properly.
Any help or guidance would be greatly appreciated, even workarounds to get these things working.
Well actually when you are rooted, you can anything!
If nothing helps, you can write your own kernel module since you can compile yourself a custom kernel.
Therefore: yes, we can
conizius said:
Well actually when you are rooted, you can anything!
Click to expand...
Click to collapse
Alright then step 1 is complete I suppose! xD I am rooted and running the tastymehICS kernel.
Gratz good luck for everything else - access to the whole system is open now!
In my opinion guvours kernel is a bit better (got less - not to say no - SoD).
Sent from my HTC Vision using XDA
I've tried both and guevor's seemed a bit more unstable for long periods of usage --just my preference, but that's beside the point xD"
So does anyone know how I could go about creating + adding drivers to the system?
You need download kernel source from asus site and prepare build environment according google andriod development site. Then you can build your kernel a start to add new features and write new kernel modules
Sent from my HTC Desire S using xda premium
I have windows drivers, all I'd need to do is port them, not necessarily write a whole new kernel X3
you don't need write whole kernel, source code for current stock kernel are on asus web site. And you don't have sources for guevor or other kernel. Is not possible to port windows driver to andriod without source code.
Try find if linux driver for you device exist. If yes, it is easy to add it to asus kerenel for transformer. And later is possible to combine your device driver (module) with some other custom kernel.
(I have working USB dvb-t stick on my transformer)
Thanks, I misread what I thought you read when I posted (if that makes any sense x.x")
Ok, it's plug and play on my linux machine too, where could I find the driver to import? So how would I make a module + combine with the guevor/tastymehics kernel?
ok, if your device is plug and play in linux, install any terminal emulation application into transformer (if you not have now) and use "lsusb" then plug your device into usb and use lsusb command again.
You should see something like BUS 001 Device 001: ID 1a4b:0003.
Then use google and try find what module is needed for device 1a4b:0003
then you need environment for building kernel and use some comamnd to build yout kernel module.
1) make menuconfig - choice module needed for your device
2) make ARCH=arm CROSS_COMPILE=mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/arm-eabi- modules
this comple kernel modules for your device. Or you can ask for help from one of developer of custom kernel what you use to comile module what you need from his suource. Kernel and kernel modules musbe compiled from same version.
then copy modules to transformer and use insmod command to load it into kernel. Then you can plug in your device and it should work. (use dmesg to check if device driver is loaded)
Please post "dmesg" output after you plug your device in.(e.g last 10 lines) and output from lsusb.
Take a look in the thread http://forum.xda-developers.com/showthread.php?t=1513490
There is a lot of possibilities to play with usb drivers.
crossik1 said:
Please post "dmesg" output after you plug your device in.(e.g last 10 lines) and output from lsusb.
Click to expand...
Click to collapse
Dmesg (relevant lines):
usb 1-1.2: new full speed USB device number 28 using tegra-ehci
usb 1-1.2: new usb device found, idvendor=046d, idproduct=0a17
usb 1-1.2: new usb device strings: mfr=1, product=2, Serialnumber=0
usb 1-1.2: Product: Logitech g330 Headset
usb 1-1.2: Manufacturer: Logitech
Lsusb:
Bus 001 Device 001: ID 1d6b:0002 <-- These were here already
Bus 001 Device 026: ID 05e3: 0610<-- These were here already
Bus 001 Device 028: ID 046d:0a17 <--- this is the new entry after plugging in
These are the log results asked for. I'm looking into the module now, thanks
At this point I have 4 options to fix my headphone port (that I know of)
1. Open it and try to sauter the port back together (best but, dangerous :/)
2. Get this driver stuff to work so I can use my adapter (great)
3. Bluetooth headphones (meh sound quality from my experience, but good if they work, also expensive)
4. HDMI-Out to Rca to 3.5mm to headphones. (UGH CABLES, but all I would need is the hdmi-rca cable.)

[Q] [Q / Dev / USB] Unable to claim interface (official ICS)

Hello. That's a vague question :
I have a custom USB device (class 0xff) and I want to communicate with it using my Android phone. I'm on ICS "stock" (original), and official API provides USB functionnalites.
I use a Java and C API to communicate with my device from my computer (libusb), so I though that it could be possible to do the same with my Androphone, and an OTG USB cable.
But my problem : When I plug the device to the Smartphone, it is correctly detected (and powered). Endpoints are correctly listed, and I can retrieve the serial name. But when I call the "claimInterface" function (Android API), it fails. I don't understand why, because the class of my device is unspecified and shouldn't be handled by Android OS or other App.
When I do a diagnostic with the XDA USB Host test software, I get "yes" in line "claimed" (Base API).
I realize that my question is too specific. My hope is to find someone who has already worked on this kind of problem, or who knows the limits of the USB host.
Thanks in advance.
(My phone is not rooted)
EDIT : Rooted. Same problem :/

HP Slate 21 ADB and Fastboot issue

Hey all,
Long time no post.
I have an issue with my grandparents' Slate 21. The bootloader doesn't boot into OS. I'm no super tech nerd, but I have done Android reinstalls on Xiaomi Pocophone F1 and Samsung Galaxy S4 I-9505 with TWRP.
To install TWRP on the Slate 21, all you need is a male-to-male USB A cable and ADB.
My issue. I have downloaded many drivers (ADB&Fastboot, Google USB driver) and used methods such as
updating "Fastboot" driver software via device manager to a specific driver
manually installing drivers (Right-click -> Install)
switching USB ports
When I type in
Code:
fastboot oem unlock
or ANY
Code:
fastboot
command I always get
Code:
<waiting for any device>
. I have tried everything, so I came here as a last attempt. I will give any info you need because my grandpa needs this Slate.
Some info:
I installed ADB and Fastboot via the "15-second installer"
Fastboot loads correctly on the device itself
I cannot access Developer options because it doesn't load to OS
I use Windows 10
Love,
Nerijus
Simply installing drivers you don't know what they are meant for makes no sense at all, IMO:
Google's USB driver you installed is only applicable for Google devices ( e.g. Pixel, Nexus ).
You have to install the "Android USB Driver" suitable to mentioned phone.
BTW: To get the most accurate ADB & Fastboot drivers use my tool what is linked to in my signature.
jwoegerbauer said:
Simply installing drivers you don't know what they are meant for makes no sense at all, IMO:
Google's USB driver you installed is only applicable for Google devices ( e.g. Pixel, Nexus ).
You have to install the "Android USB Driver" suitable to mentioned phone.
BTW: To get the most accurate ADB & Fastboot drivers use my tool what is linked to in my signature.
Click to expand...
Click to collapse
The issue might be USB 3.0 ports.
emperoringo said:
The issue might be USB 3.0 ports.
Click to expand...
Click to collapse
If you say so ...
IMO your issue has nothing to do with of what type an USB port is.
The differences between USB 2.0 and USB 3.0 are
You can transfer data at up to 4.8 GBit/s with USB 3.0. That is ten times faster than with USB 2.0, which has a maximum of 480 MBit/s.
USB 3.0 works full-duplex. This means that data can be transferred in both directions. With USB 2.0, you can only transfer data in one direction at a time.
The maximum cable length with USB 3.0 is limited to 3 meters. USB 2.0 cables can be up to 5 meters long.
Never heard / read that ADB & Fastboot drivers depend on type of USB port.
jwoegerbauer said:
If you say so ...
IMO your issue has nothing to do with of what type an USB port is.
The differences between USB 2.0 and USB 3.0 are
You can transfer data at up to 4.8 GBit/s with USB 3.0. That is ten times faster than with USB 2.0, which has a maximum of 480 MBit/s.
USB 3.0 works full-duplex. This means that data can be transferred in both directions. With USB 2.0, you can only transfer data in one direction at a time.
The maximum cable length with USB 3.0 is limited to 3 meters. USB 2.0 cables can be up to 5 meters long.
Never heard / read that ADB & Fastboot drivers depend on type of USB port.
Click to expand...
Click to collapse
My laptop's USB 3.0 ports completely failed to unlock Xiaomi Pocophone F1's bootloader. Meanwhile, my old PC did it easily on the first try and it has USB 2.0 ports. Weird. Might be the reason.

Custom firmware on zte zxv10 b760hs2

I am trying to install custom firmware on b760h stb. I have already installed mtk preloader drivers. But when I connect STB with laptop through USB A male to USB A male, it doesn't work. is there any way to connect it to the laptop.
first, Cek... USB Cable, does it work?
Second, Check if the usb driver is correct ?
Conect usb male to male in to usb 1 in the stb without power adaptor.
I am facing the same problem. I have checked the USB Male to Male cable. It works. I also installed the USB drivers for Window10. I connected the USB cable in USB1 Port of STB without power adapter. But still it doesnt work.
Any Help ???

[How To] Fix problem with fastboot not flashing

If you have installed a custom rom and are trying to return to stock you may come across errors like this
Code:
(bootloader) is-logicalartition: not found
and then fastboot will give up.
This is due I believe to the phone being plugged into some USB 3 ports. The Moto X4 uses USB C, however it only supports USB 2. I can only assume that the Moto X4 isn't fully USB C compliant or the stock bootloader has implemented fastboot incorrectly when communicating on certain USB chipsets.
I plugged my phone into my Lenovo USB C Travel Hub and that into my USB C 3 front port on my desktop and fastboot started working correctly. The error above still shows up for some reason.
Motorolas Rescue software and RSD Lite do not work around this error. Motorolas software doesn't even use the latest nor a full release of fastboot, it uses 26 rc1.
In summary, USB connection is the problem, so try a a different USB port, like a dock or another PC, and use the latest fastboot from platform-tools on Android SDK website, linked below.
SDK Platform Tools release notes | Android Studio | Android Developers
Android SDK Platform-Tools is a component for the Android SDK.
developer.android.com
Edited:
sd_shadow said:
@Knuxyl I would add [Guide] to the title to make it clear what this thread is.
and see my
Stop those emojis showing up in your posts
Click to expand...
Click to collapse
I realized the issue after I posted but was busy. Its fixed now
Next time if you have an issue, please PM and dont waste forum space. The formatting of this thread isnt on topic with the thread.

Categories

Resources