trying ZTE BLADE as USB HOST - Blade General

Hi all.
I heard that zte blade has the capability of USB HOST. Also heard it can't power the usb slave device attached to it. Instead of purchasing a usb power hub, i manually tried making a cable which has the similar function but draws power from PC usb port (don't know how far it works. I haven't been successful).
The description of the cable i made is in the picture attached below.
PLEASE SEE THE PICTURE ATTACHED.
For a device with native usb host (such as galaxy note) i guess the device USB-CABLE coupled with USB-FEMALE-TO-FEMALE-BRIDGE is enough to attach slave devices. But for the devices which cannot give power supply in USB HOST mode i assumed and tried the cable which was described in the picture.
Blade was my handset. My friend had galaxy note. I tried connecting blade as a slave to galaxy note with a NATIVE USB-OTG CABLE. But it said the slave device is high powered and needs seperate power supply. In such case i think the cable i prepared might work (if it works) replacing usb powered hub.
Ok, coming to our zte blade device. I prepared a usb female to female bridge and connected it to usb plug of usb cable. Then i connected only the data + and data - of USB PERIPHERAL DEVICE to zte blade. The VCC +5V (red) and GND (black) are supplied from a PC usb port.
And im sure i connected data+ to data+ only. And similarly (data- to data- only) , (vcc to vcc only) , (GND to GND only).
And i tested it with a usb keyboard and a memory card reader. I tested on cm7.1.0 because i heard this build has kernel supporting usb host (? Is it not?). Im unsuccessful with both tests. When i connected memory card reader the led light in the card reader turned on but i cant see any drive/folder/notification on m phone. And with usb keyboard there is not even NUM LOCK led on. Am i missing the kernel support or something. If so pls tell me what kernel should i use.
And is it the thing i prepared wont work at all.??
Please give me suggestions... Thanks.
WARNING :
This is not a (how-to-make-something) post. If you are experimenting with some cables, make sure that you connect the connections correctly. Changing polarity can brick your device. Im not responsible for anything.

Related

How to attach usb powered hub to android stick? Which port

I have an andrid. Stick mx2 imito and I have a powered USB hub but I can't configure how I am meant to to get it to read from the hub. I have 2 ports on the stick, one full sized usb and one mini usb .
And In terms of devices I have my keyboard I want to add
1 external usb hard drive
And if I can get it to work a USB wifi dongle
Huh!
Since there is only one full sized USB port, I would think that is the solution. That's how it runs on mine anyway. Connect all your devices to the powered hub. Should be straight forward
So I would need a usb cable male to make? To connect to the hub. Do they exist ? I will try find the cable .
i cantget it to work
so the large usb port. i need a cable from that to connect to the hub? usb port
but i dont have a usb port with the same end? male to male etc
Get a USB powered hib
wakkaday said:
i cantget it to work
so the large usb port. i need a cable from that to connect to the hub? usb port
but i dont have a usb port with the same end? male to male etc
Click to expand...
Click to collapse
The hub will come with one male USB to connect to the stick.
http://gadgets.softpedia.com/images/news/How-to-Charge-your-USB-Devices-Quick-and-Easy-4.jpg
Make sure to get a powered hub so that all the devices can be supported properly.
gsurath said:
The hub will come with one male USB to connect to the stick.
http://gadgets.softpedia.com/images/news/How-to-Charge-your-USB-Devices-Quick-and-Easy-4.jpg
Make sure to get a powered hub so that all the devices can be supported properly.
Click to expand...
Click to collapse
this was an old hub i had, i dont have that wire. its a mini usb to full usb type connection isn't it?
Plenty of such options available
Here is another on ebay. Just search for powered USB hub and choose one
http://www.ebay.com/itm/10-PORT-USB-2-0-EXTERNAL-HUB-W-POWER-ADAPTER-FOR-PC-MAC-WITH-cable-SILVER-/370772094009?pt=US_USB_Cables_Hubs_Adapters&hash=item5653bd2c39
gsurath said:
Here is another on ebay. Just search for powered USB hub and choose one
http://www.ebay.com/itm/10-PORT-USB-2-0-EXTERNAL-HUB-W-POWER-ADAPTER-FOR-PC-MAC-WITH-cable-SILVER-/370772094009?pt=US_USB_Cables_Hubs_Adapters&hash=item5653bd2c39
Click to expand...
Click to collapse
ok great, so the port next to the power socket, is the cable i need to attach to and from the imito android stick? so that will be the main one and any other usb devices can go on the hub.
m confused on where i need to connect from on the android stick. which has 1 full sized usb, 1 mini usb otg socket and 1 mini usb (power)
It should also be possible to modify a USB hub to back feed power to the HDMI stick.
You would then power the hub with a sufficiently large USB power supply to power both the stick and all of the USB devices. In most cases, a single 2.1 Amp USB "wall wart" would work to power everything, unless you are really running something outrageous.
My NX003 (Same as MX1) can be powered from either the dedicated USB power jack, or the MicroUSB (OTG) connector.
So to build something like this, here is what I would do:
1. Obtain a USB hub I was willing to modify (destroy, as far as any other use is concerned)
2. Disassemble it.
3. Remove the input (Host) cable or connector.
4. Attach a short cable with a MicroUSB plug. Connect all 4 wires correctly.
5. Find "The diode" - Buy "The diode" I mean the one that that allows USB power to flow from the host to the peripherals when used in non-powered mode, but prevents power from flowing upstream to the host when an external power supply is used. (see referenced link).
6. Remove this diode, and replace it with a wire, jumper, or solder bridge.
7. Ensure all power circuity in the hub can handle 2 amps. Add solder to traces, or add jumper wire if needed to beef up current capability.
8. Reassemble, and clearly mark so that this hub is never used with anything else.
If the HDMI stick were powered via a coaxial connection, but is still powered by 5 Volts, I'd add a lead and coaxial plug off of the +5 in the hub. you'll have 2 wires, but it will still work. (Watch polarity.)
I have done this successfully for a prior, similar project. Reference Here: (Scroll to section about power.)
http://linuxslate.com/N770DockingStation.html
So why don't I actually do this to power my NX003? I did it an easier way. I bought a Tronsmart Prometheus. It has 3 full USB ports built-in.
-
Linuxslate said:
It should also be possible to modify a USB hub to back feed power to the HDMI stick.
You would then power the hub with a sufficiently large USB power supply to power both the stick and all of the USB devices. In most cases, a single 2.1 Amp USB "wall wart" would work to power everything, unless you are really running something outrageous.
My NX003 (Same as MX1) can be powered from either the dedicated USB power jack, or the MicroUSB (OTG) connector.
So to build something like this, here is what I would do:
1. Obtain a USB hub I was willing to modify (destroy, as far as any other use is concerned)
2. Disassemble it.
3. Remove the input (Host) cable or connector.
4. Attach a short cable with a MicroUSB plug. Connect all 4 wires correctly.
5. Find "The diode" - Buy "The diode" I mean the one that that allows USB power to flow from the host to the peripherals when used in non-powered mode, but prevents power from flowing upstream to the host when an external power supply is used. (see referenced link).
6. Remove this diode, and replace it with a wire, jumper, or solder bridge.
7. Ensure all power circuity in the hub can handle 2 amps. Add solder to traces, or add jumper wire if needed to beef up current capability.
8. Reassemble, and clearly mark so that this hub is never used with anything else.
If the HDMI stick were powered via a coaxial connection, but is still powered by 5 Volts, I'd add a lead and coaxial plug off of the +5 in the hub. you'll have 2 wires, but it will still work. (Watch polarity.)
I have done this successfully for a prior, similar project. Reference Here: (Scroll to section about power.)
http://linuxslate.com/N770DockingStation.html
So why don't I actually do this to power my NX003? I did it an easier way. I bought a Tronsmart Prometheus. It has 3 full USB ports built-in.
-
Click to expand...
Click to collapse
Thank you for the informatiom, but its a bit too technical for what i want... but i appreciate you efforts in writing this.
my stick can also power via both usb ports (mini) i have connected the cable from the stick to the hub which has been powered to the mains and it works, but the problem i have is when i put another usb device in the hub, it doesnt detect it e.g. keyboard wireless and i don't think the device has enough power to run my usb 2.0 portable harddrive (not main powered) - how can i get this to work? i have tried connecting this directly to the stick, but it just makes a beep sound. im guessing its lack of power... and i was hoping a hub would help.
my hub is powered 3.5 or 4 watts i believe...
Strange
Wakkaday,
This is very strange. On my MK802III I connect the powered USB hub (4 ports) to the full USB port.
I connect my bluetooth keyboard, 1 TB HDD and USB ethernet to the hub.
I power my Android stick using the 4rth port in the USB hub.
If I want USB audio, I replace the Ethernet/HDD with a USB audio peripheral.
All my peripherals work right out of the box. The only thing I am considering now is to have a separate power supply to the Android stick so that I can use all 4 ports on my hub.
It seems your device is not supporting the peripherals? Are the working when you connect directly?
gsurath said:
Wakkaday,
This is very strange. On my MK802III I connect the powered USB hub (4 ports) to the full USB port.
I connect my bluetooth keyboard, 1 TB HDD and USB ethernet to the hub.
I power my Android stick using the 4rth port in the USB hub.
If I want USB audio, I replace the Ethernet/HDD with a USB audio peripheral.
All my peripherals work right out of the box. The only thing I am considering now is to have a separate power supply to the Android stick so that I can use all 4 ports on my hub.
It seems your device is not supporting the peripherals? Are the working when you connect directly?
Click to expand...
Click to collapse
I'm also trying to use a powered 4 port usb hub with my android stick, but it doesnot recognises the hub. Do i need to have any usb host drivers or change any setting to get it work? My stick is on Android ICS.. Thanks in advance

[Q] How to hack a single micro usb for charging and data transfer at same time

Hello guys, I'm trying to interface android tab with peripherals. Problem is, it is having only one micro USB port which is used for charging and otg/host, only one function is possible at a time .But I need to charge the tab and simultaneously transfer data to peripherals, say for example I need to use external mouse and charge the tab at same time.
So, is there any way to do it?
I know usb has 4 pins 5v,d+,d-,gnd. I thought to wire charging input power to tab pin 5v and gnd and pin D+,D-of tab to mouse D+, D- and giving external power supply to 5v and gnd pin of mouse.
Is this a right method? To charge and transfer the data at the same time?
Kindly help me. Suggest a better way to do it.
(mini & micro) USB connectors have 5 pins: Vbus, D-, D+, Id, Gnd.
For OTG, the Id pin is connected to Gnd.
It's like the old adage, "You can lead a horse to water, but you can't make him drink."
You can connect a peripheral to an OTG host and have it work fine.
You can then connect an external power supply across the Vbus and Gnd.
The problem is, how does your host device know that it can "drink"?
There are basically two ways.
If the host detects power on its input before it switches into OTG host mode it may continue to charge.
If the host is in OTG host mode, device-specific commands to the charging circuits may convince it to charge.
There may also be non-standard Id resistor values for signalling host & charge for some devices.
I think your mileage would vary very much depending on what devices your using. AOS was not meant to deal with people hacking on the USB port, and probably the code to implement those features depend on your HW/FW.
If its a Samsung, you can play with some resistor values like these:
http://forum.xda-developers.com/showpost.php?p=25532839&postcount=2
I think the USB "CarKit" specifications should allow you both to charge and "connect" in some way.
A more easy solution would be to use a BlueTooth mouse and keep charging as usual.

Using wifi modules usb port for another device

Hi everyone,
I was developing a tablet application for controlling a circuit but now i stuck here somewhere.. there are a few options that i think about what to do after this stage. I need 2 usb ports , one for a usb serial converter (namely pl-2303) and other one is a standart flash drive. I tried to use a hub connected to an OTG cable with no luck. When i plug only one of my devices to OTG port they all work but when i plug 2 of them to hub system freeze or doesn't mount my flash drive. I tried 3 different hubs they are not working. Sometimes i made this setup running with an sd card reader instead of flash and a digitus converter instead of pl-2303. Then i though this can be an issue with the USB 1.1 - 2.0 specifications because pl-2303 is a USB 1.1 device and the rest is 2.0.
After i realize the realtek wifi module in the tablet is also mounted to a USB port i removed the module to check if i can connect one of my devices to that port. But as usual the wifi driver of the system is controlling this port , so when i try to power up the port, system checks if it can find the realtek module and when it cant detect realtek wireless module just shuts down the port back. While this happens i can see my device is connected to system for a few seconds before the driver shut it down.
So this is the all story. I just need this 2 device to work together. I am waiting for your opinions
The tablet is a ATM 7021 processor based cheap tablet.
Thanks in advance.

USB - Wiring for ADB?

Hi folks!
I want to connect an android device (it has usb slots... i can plug there 3g dongles, keyboards, wifi etc) with my computer to try to establish an adb session.
Is that possible like that (usb male - male)? Do i have to solder a custom cable - and how would he wiring be to force the android into "client mode"?
Any help is highly appreciated!
licht77 said:
Hi folks!
I want to connect an android device (it has usb slots... i can plug there 3g dongles, keyboards, wifi etc) with my computer to try to establish an adb session.
Is that possible like that (usb male - male)? Do i have to solder a custom cable - and how would he wiring be to force the android into "client mode"?
Any help is highly appreciated!
Click to expand...
Click to collapse
to wiring an usb cable is not so hard. normally you only need to solder the same coloured wire together, red to red, white to white, green to green and black to black. but there are already male to male cable to buy.
www.dx.com/p/ult-unite-ult-1234-usb...lated-data-connection-cable-white-60cm-269067
what does your android device have for an usb? is it micro usb or standard (type a)?
if you have a micro usb port so use an usb data cable, most of the charging cable does have data transfer support.
your computer even needs a driver for your android device to get working the adb.
good luck!
ps. on ytube there a lot vids how to... only search and destroy ( your android)
KindsKoPP said:
to wiring an usb cable is not so hard. normally you only need to solder the same coloured wire together, red to red, white to white, green to green and black to black.
ps. on ytube there a lot vids how to... only search and destroy ( your android)
Click to expand...
Click to collapse
Hi! Thanks for your help! Its a type A jack on that device just like on the computer. Adbd daemon is on the device running but my windows machine cannot detect an usb device with direct soldered pins (or a bought cable which seems to have the same wiring)
I read about possible collitions when both devices of an usb connection are in host mode and that maybe pullup resistors on the data lines are needed - but i didnt fully understand that part. (Its different to the pin shortening of an usb otg wiring which can be found thousand times on google *G*)
can u describe exactly which cable u have used? and sometime the colors of the cable are not correct e.g. red is not +. those are build by chinese manufactures for cheaps goods. so u have even to measure the cable with a voltmeter.
and describe what happen when u plug the cable in the pc. normally windows is always running as main and android as slave.
as you describe u have an usb a type so i guess your android version is minimum 4.x and is already automatically on host status because you said u can put in a 3g dongle...so u have to go to the android command change from inside. i dont know much about linux programming so have to ask a developer. i only do developing hardwares not softwares, sorry for that.
what is your android device? with a datasheet is it better to solve your problem.
Hi KindsKoPP!
Thanks for your help and interest!
Basically I tested with a 1 to 1 wired cable I soldered by cutting 2 usb cables. I double checked colors (measured their output when connected to the computer) and found them ok. Then I connected them 1 to 1 (red-red, black-black, green-green, white-white).
But no usb device showing up or asking for drivers...
I know that adbd is running on the target device.
I pulled up some info here: http://www.valki.com/2014/12/04/analyse-av7/
I am still hoping that those usb devices who are in a double role (like our phones too with their usb otg host mode and client mode for mtp, adb...) are triggerable externally by using special soldered cables (resistors?) ... like "when resistor xy is on D+ -> go to client mode"?

[Q] USB OTG behaviour

Hi,
So I'm developing an app to communicate over serial with a HID and testing on the g6 is proving troublesome.
The scene:
-Hid/USB Permissions granted
-Device filter correct and working as intended
-Goal is to send a string over serial.
Allthough I'm 100% sure my test code is correct, the app cannot open a serial port.
Is it normal behaviour in recent versions of android for the device to recognise an otg cable as a power source? Even with no other device connected? Are there any known issues opening serial ports on the g6? (7.0)
The cable works as intended when I plug a mouse or keyboard in but refuses to open a serial connection when my takget device is plugged in. It recognises it as a HID an can pull the serial number etc.
The android serial library should not require root or any other hackery So I'm a bit confused. I've ordered a few other otg adapters just in case.
Anyone who knows what might be going on pleas pitch in.
I've had some issues getting a serial adaptor working as well. I'm on 870DS. Originally tried the wired version of this:
https://forum.xda-developers.com/an...odemu-connect-android-to-30pin-t3234840/page1
Thank God the developer changed to Bluetooth. I tried about 6 different otg cables. Worked fine on other non usb-c phones.
I suspect it is the adapter too...sucks so bad. The annoying thing is that I was so confident in android serial that I wrote a lot of code before I bothered testing the concept lol.
Does your OTG work on memory sticks OK? I have a G6 h870ds. My OTG only works for me with USB3 OTG adapters and USB3 memory sticks. I don't have a USB3 HID device to try. I now have a large collection of different OTG adapters and memory sticks. I opened up some of the adapters to buzz them through to make sure they were made correctly. They were! It took a while for the penny to drop why some things worked and some didn't!
I cant use USB2 OTG adapters or USB2 memory sticks, keyboards or cameras. Initial connection of the USB2 OTG adapter is recognized but no connected devices are detected. I used an app called USB Device Info that can give me details of detected devices and only USB3 devices are ever detected.
I have a USB2 memory stick with an LED on it. When it is first connected to the OTG cable it flashes in a way that leads me to think it is trying to reply to USB bus interrogation but something (probably software) fails. The phone connects to my USB2 PC port just fine so I don't think the hardware is at fault. I've reset the phone and upgraded to Oreo too but alas that didn't help.
A friend of mine has a G6 H870S and all my adapters and memory stick combinations work fine on his phone so I find myself wondering if I'm just unlucky or whether the dual sim version is subtly different in some way.
I fully admit I know nothing about the inner workings of USB but as far as I can determine USB3 uses all of the USB2 connections and the additional connections only available on a USB3 port so the hardware should be OK. I'm guessing most HID devices are USB2 but if its a USB3 could you possible have a related problem but in reverse?
Every time I plug in any USB OTG adapter I get that same pop up screen that defaults to select as "power supply" even with no device connected whatever I have previously chosen.
What works for me is to plug in the OTG adapter, and only then plug in the memory stick to it. Otherwise I get the "Power supply" thing too.
Arak0n said:
What works for me is to plug in the OTG adapter, and only then plug in the memory stick to it. Otherwise I get the "Power supply" thing too.
Click to expand...
Click to collapse
Leaving just the OTG adapter connected for a few seconds then attaching the usb device does not help. USB2 devices are never detected but all my various USB3 memory sticks work reliably when using a USB3 spec adapter. I've given up worrying about it now and accepted that there is just something a bit iffy about my G6.

Categories

Resources