Using wifi modules usb port for another device - Hardware Hacking General

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.

Related

Gen9 Full Size USB Slot - Thoughts

Hi Folks
I've been playing around with a 101 Gen9 and in particular the Full Size USB Slot on the back.
On the Archos WebSite in the FAQ they state:
What can I plug in the USB port on the back of the tablet?
The USB host port on the back of your G9 tablet is reserved for only the ARCHOS G9 3G Stick. You will not be able to plug any other USB devices in this port.
Click to expand...
Click to collapse
I have been doing some of my own testing on this port and found that not to be the case
Every device I plugged into it has worked in one way or another (very much another in some cases)
1. The tablet has been rooted using letma's method.
2. You need to turn on the "3G Stick" in the Wireless Settings
3. The tablet Was Plugged In
On point 3. I have no idea how the battery was doing. especially with some of the more power hungry usb devices.
Here's a list of what I've tested
Not Working:
Keyboard (USB 1.1)
Working:
Kingston Data Traveller II+ (USB 2.0) - Picked up as external storage
HTC Hero Mass Storage
HTC Debug Bridge (Required Root for adb)
HTC Sensation Mass Storage
HTC Sensation Debug Bridge (Required Root for adb)
4 Port HUB (USB 2.0)
A Couple of observations.
After turning the 3G Stick on I restarted the device
I had to plug the USB devices while the tablet was starting for it to be picked up.
The Keyboard worked when plugged into the 4 Port USB Hub. I think the keyboard will function on its own with the right kernel modules
No Device showed up as The "External Storage" in the "Files" program when plugged into the Hub, even though I mounted the device (/dev/block/sd*) from terminal emulator to the /mnt/ext_storage folder.I suspect it is looking for a specific USB device number as the external storage device.
I suppose it would be good if some other people to test what USB devices they have to hand to see what works, maybe we could build a list of functioning devices. I'm going to investigate getting the Keyboard going on it's own, which is what sparked this off and also test some external hard drives with various file systems.
I hope someone finds this helpful
Trev
For me the usb stick and hard drive is working on the stock archos firmware without reboot!

trying ZTE BLADE as USB HOST

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.

RAZRi XT890 USB OTG Capabilities (Thread for all Devices)

Me and few other people still asking about OTG capabilities so lets make combined thread for all.
What I figured out for now.
First of all RAZR i does not support OTG itself cause has no power on micro USB port so You need more than regular USB OTG cable.
You need minimum 1A powered USB HUB which means just buy regular 3/4/8 ports USB HUB but with 1A (can be 2A too) AC adapter.
So connection should looks like:
RAZRi -> OTG Cable -> USB Powered HUB -> USB Device
It's simple part. Lest make something harder.
List of devices which I tested:
USB HUB
KitKat should bring more OTG capabilitiesfor us so to prepare for that I bought new USB HUB with built in OTG support.
It the same like THIS one and it's dedicated for Samsung S3, S4 etc.
Hub is made not so bad, it has built in OTG support so no need other adapters and it has power connector.
To use this HUB You need to connect it to DC 5V/1A with 1,35/3,5 to USB cable. I used this cable and regular Moto wall charger. You can also use power bank as power for more mobility.
All my USB devices working fine under this HUB so I can recommend this for RAZRi.
Mouses and Keyboards
RAZRi has no problems to detect and handle with most of mouses and keyboards. No modifications are needed. Just Plug & Play.
USB Drives (Pendrives, HDD's etc)
Unfortunately none of them are working. Phone detects devices in some apps but drives are not detected as drives, just devices and they can't be mounted. I think without any kernel modifications drives can't be mounted. Apps to mount drives can't handle with it too.
USB Audio Devices / DAC
Unfortunately I have only 2 devices like that. Sound Blaster Surround 5.1 USB and Logitech Stereo USB Speakers.
Both tested with USB Audio Tester ROOT.
Creative is correctly detected but there is no sound on every setting.
Logitech USB speakers are detected correctly too but I was able to make it works but only to hear sound from internal microphone. No way to hear music or any sound from phone.
I tested SoundAbout Pro tp force playing from USB host but it failed. I don't know any other app can make it. Also I'm really noob at Linux so I have no idea what to modify in Alsa driver to redirect sound on USB audio device.
USB Game Controllers / PAD
I have only wireless XBOX360 pad so can be hard to make it work but heard somewhere that can be possible. In few days i'll check what can be done with it.
Tested with Logitech Cordless Rumblepad 2, working like a charm without any mods. OFC You need to use button mapper or any similar app cause after connect pad is working like mouse but after remap we have fully working cordless pad.
USB Network Adapters
At this moment I tested only cheap RJ45 to USB adapter but it doesn't work. Strange cause activity led on adapter is blinking sometimes and it stops when phone is off but nothing except this.
Any other news, suggestions, tests of working devices are welcome.
Network adapters updated.
Wysłane z Motorola RAZR i.
You need to mod the kernel to add usbstorage like the samsung S3 and the framework apk i think, maybe some hardcore developers can help on it.
xbox 360 controller is detected as device but is not working something is missing cuz i added the keylayout for the device and is not working. but you can remap any keyboard keylayout to work as joystic XD.
Updated GamePads section.
USB HUB with OTG added.
Very nice, I tryed, and it works like a charm. I could use a keyboard and mouse runing Ubuntu 15.10 on CHROOT

[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.

Yoga Book YB1-91L USB port problem

Hello everybody. Asking for help and suggestions. Maybe LENOVO representative take notice. Have secondhand yoga book. Resolved almost all problems but micro USB port. First of all, charging device died out. Find 30-watt charger with QC 3.0 and charge now working perfectly. Next tried to connect mouse, usb hub and usb dongle. Each time got DEVICE NOT RECOGNIZED message. Got error in device list.
But......tried to connect external HDD with noname HDD box and it connected. Connection may work to copy, install files or disk may disconnect randomly.
Tried system restore, tried to change drivers ( intel drivers for chipset not avaliable now) with no luck. Think problem is with low port current, but even small mouse and dongle make error and non-SSD HDD work 9 times out of 10. Have anybody experience problems with connecting devices to micro USB port?
Tried 3 different OTG cables and OTG micro USB to USB dongles. No luck.
Maybe the port is corrupted or desoldered
Sent from my Pixel 4 using XDA Labs
I did change it with the warranty I had. I had the same problem and did not want to fix by myself as the warranty was still active

Categories

Resources