OTG - Nokia N1

Does Nokia N1 got OTG support? I have Tried to connect my USB Flash through OTG cable but doesn't work for me ....

Doesn't work for me either >_<

I don't have an otg cable myself (yet) but can you try to use USB Host Diagnostics (available in play store) and post the report?

FYI I got an OTG cable myself and it didn't work. I dug a bit deeper and found out that OTG is most likely not implemented because Nokia N1 is using legacy usb controller over usb C - see below:
Converting USB 2.0 OTG SoCs to USB Type-C
While existing Device, Host, and DRD devices can be converted to support the USB Type-C connection with some effort, it is not practical to convert existing OTG SoCs. OTG requires a new state machine using the configuration channel to support USB Type-C. Host Negotiation Protocol is used to swap host and device role for OTG, while Power Delivery communication is used to change roles for USB Type-C. Combined, these challenges preclude simple upgrades of OTC SoCs to USB Type-C. - See more at: https://www.synopsys.com/Company/Pu...esign-type-c-2015q1.aspx#sthash.Ri02Guwe.dpuf
Click to expand...
Click to collapse
The only chance to get otg to work is most likely preparing a kernel patch (are the sources even available?) to manually switch the connector to host mode and power the attached device externally

After a bit of hacking around I was able to enable usb otg on my N1!
I've had a look at kernel sources for device with similar SoC (Nexus Player) and saw an interesting debugfs entry. To my surprise it worked like a charm and immediately detected the attached usb hub with a thumb drive, it even powered the hub so I didn't have to use an external power source!
To enable host mode, the following command has to be enterted in root console:
echo A > /sys/kernel/debug/usb/dwc3_debugfs_root/otg_id
Caveats (will try to find a way to resolve them):
- after enabling host mode N1, won't charge from the usb port - a reboot is required to enable the charging again
- probably same is true for pheripherial mode (connecting n1 to a pc). In theory, changing a to b in the above echo command should bring the tablet back to normal mode but for some reason it won't charge without a reboot so I'm assuming that same is true for non otg usb connectivity. Will have a look at the sources and debug messages to find out what's going on

wodz69 said:
After a bit of hacking around I was able to enable usb otg on my N1!
I've had a look at kernel sources for device with similar SoC (Nexus Player) and saw an interesting debugfs entry. To my surprise it worked like a charm and immediately detected the attached usb hub with a thumb drive, it even powered the hub so I didn't have to use an external power source!
To enable host mode, the following command has to be enterted in root console:
echo A > /sys/kernel/debug/usb/dwc3_debugfs_root/otg_id
Caveats (will try to find a way to resolve them):
- after enabling host mode N1, won't charge from the usb port - a reboot is required to enable the charging again
- probably same is true for pheripherial mode (connecting n1 to a pc). In theory, changing a to b in the above echo command should bring the tablet back to normal mode but for some reason it won't charge without a reboot so I'm assuming that same is true for non otg usb connectivity. Will have a look at the sources and debug messages to find out what's going on
Click to expand...
Click to collapse
Thanks for your hard job.
I have tried on my N1. It is amazing that otg did work. However, the otg can not coexist with charging function as yours. Hope someone could find a solution.

adagiov said:
Thanks for your hard job.
I have tried on my N1. It is amazing that otg did work. However, the otg can not coexist with charging function as yours. Hope someone could find a solution.
Click to expand...
Click to collapse
Hey,
Are you on Android 5.1.1 or 5.0 ?
I've had a look at the code of the usb driver of the a phone with similar chipset (asus zenfone 5) and it seems that the source of the problem is that the tablet fails to detect an appropriate charger type, which could mean either that the otg cable does not support this or the code of the driver does not work properly with usb C. Was wondering if something changed around this after the update?

wodz69 said:
Hey,
Are you on Android 5.1.1 or 5.0 ?
I've had a look at the code of the usb driver of the a phone with similar chipset (asus zenfone 5) and it seems that the source of the problem is that the tablet fails to detect an appropriate charger type, which could mean either that the otg cable does not support this or the code of the driver does not work properly with usb C. Was wondering if something changed around this after the update?
Click to expand...
Click to collapse
Hi, mine N1 is still running the android 5.0.
I am afraid Root is the prerequisite to hack otg. Unfortunately, root is not available on android 5.1.1 till now, so even the android 5.1.1 driver support it, that won't help.
Thanks,dude.

Yeah exactly for that reason I haven't upgraded my tablet yet

Related

Xperia ARC S USB OTG possibilities

ARC S (LT18i) comes with USB OTG support but when I plug an USB memory stick it recognizes it but says it's not supported.
From what I read it only works with LiveDock which is, by my opinion, not good at all, not even a real dock since you have to plug a cable in phone.
so is there a simple possibility to make USB work without LiveDock?
by simple I meen without flashing a new kernel
Thank you
See this thread: http://forum.xda-developers.com/showthread.php?t=1224676
In short, you need:
Q5 Memory Manager: http://android.gval.biz/download/Q5_USB_Memory_Manager.apk
Module Loader: http://forum.xda-developers.com/showthread.php?t=1228605
usb-storage module: http://doomlord.sylvester20007.com/xperia_2011/usb_otg/v01/usb-storage.ko
You can then connect and mount USB flash drives (formatted FAT32) with a suitable USB-OTG cable.
Hi
a cheap wireless keyboard/mouse bundle works perfect with a cheap otg cable.
usb hub too.
Managed to use usb key with XTCrefugee explanations.
But, could we charge the battery, at the same time using usb devices?
arc S
otg with unsupported USB
Getting the same error message, I have Astro file manage.
Unsure how to mount USB drive.
Get this app, it does the job nicey http://forum.xda-developers.com/showthread.php?t=1389653
PM me if you would like a copy...to test out
Thanks for responding, but I see the linked app requires rooting etc. There appears q5 but that's not on plaststore. Would upgrading to ICS be solution or a problem. What would you suggest?
When I had ICS installed still need to use some app to mount USB stick ... I have to say that Nokia N8 and other new Symbian devices have better support fot USB OTG ...

This device can perform faster

I get the following error message when plugging the LG G3 (D851) into one of my USB 3.0 ports:
This device can perform faster
This LGE Mobile USB Composite Device can transfer information if you connect it to a Super-Speed USB 3.0 port.
Click to expand...
Click to collapse
The port it's connected to is a Super-Speed USB 3.0 port. I have an external HDD that is correctly connected via SuperSpeed and used the same port. Though when the G3 is connected, it only connects as High-Speed.
I have the latest drivers from LG as well.
(I'm using USB Device Tree Viewer to verify this info)
Is it possible to connect this device via SuperSpeed?
Pretty sure the device itself only supports USB 2 so seems a weird message to get
joelnet said:
I get the following error message when plugging the LG G3 (D851) into one of my USB 3.0 ports:
The port it's connected to is a Super-Speed USB 3.0 port. I have an external HDD that is correctly connected via SuperSpeed and used the same port. Though when the G3 is connected, it only connects as High-Speed.
I have the latest drivers from LG as well.
(I'm using USB Device Tree Viewer to verify this info)
Is it possible to connect this device via SuperSpeed?
Click to expand...
Click to collapse
See my thread on the subject.
Quantumrabbit said:
See my thread on the subject.
Click to expand...
Click to collapse
Ok, from reading that other thread, it seems like the phone (and all Android phones) are only "2.0 High-Speed".
It seems weird I'd get that popup complaining about the ports, but I guess that's just windows.

[Q] Easycap via USB OTG not working

Hi,
I would like to use lg g3 as a screen for my reverse/backup camera in a car. Before buying the g3 I checked that it supports OTG and latest Android has easycap drivets built in so you do not have to root the phone.
I have got easycap with UTV007 chip which should be supported and I checked that it works on windows laptop. I have got USB OTG cable. If I connect mouse to g3 in otg mode it does work.
However if I connect easycap it does not. I am using one of the reverse camera apps. I ran usb host check program and got the following output:
Android.hardware.usb.host.xml OK
Handheld.core.hardware.xml : usb host not enabled
Tablet.core.hardware.xml : not found
When i tap "fix" i am getting "could not start su process".
To me it sounds like it needs root rights to update some configuration. G3 has factory android 5.0 installed. I have enabled usb debugging but it did not help.
Do you know what the problem is and how can I get easycap working?
I would prefer to not root the device neither to install custom roms because I have no experience (my first week on android)
Thanks in advance!
Forgot to mention: The phone is D855 v20i TWN XX Android 5.0 kernel 3.4.0 if it makes any difference
So I have installed busybox and terminal, no root yet.
I have found handheld.core.hardware.xml and it does not "include" anything to do with usb host- is this a problem?
Furthermore there are numerous files like video0, video1,...video31,video32 in /dev/ - can someone please help explain it?
What is the best thing to check next?
hello. Have you tried using an otg y-cable? It may make no difference, but perhaps a y-cable with power source may help.

Nexus 5X - included USB 3 cable only for charging??

I have a brand new Nexus 5X, a brand new high-end laptop with a USB 3 port with a fresh installation of Windows 7 Professional onboard.
I CANNOT get any of the drivers I have tried (all fresh downloads - Google, universal, etc.) to work with my phone. When plugging in the cable, phone to PC, I get an error Code 10 - "Cannot start the device".
I see in Heisenberg's guide for unlocking and rooting the 5X this post from user AquilaDroid - http://forum.xda-developers.com/showpost.php?p=63080921&postcount=9
Saying "Might want to point out the cable /adapter required to connect to pc. (I just saw that it's not included with the phone.)"
Does this mean the cable included with the phone is not sufficient for data transmission?? Does this correspond to my Code 10 error?
I bought an iOrange and it works great for my charging, data transfer, and app development
Sent from my Nexus 5X using Tapatalk
Code 10 is not a cable problem but rather a driver installation issue. Did you install try to install unsigned drivers without disabling signature verification?
Install the ones from Google or the full SDK. Also try to change the more to MTP on the phone.
Alferboy said:
Code 10 is not a cable problem but rather a driver installation issue. Did you install try to install unsigned drivers without disabling signature verification?
Install the ones from Google or the full SDK. Also try to change the more to MTP on the phone.
Click to expand...
Click to collapse
I did try the drivers from Google and from the SDK; still got the Code 10. I said OK to the unsigned driver message and still got the error. Is there something else I must do for the unsigned driver verification?
If you get code 10 the device is seen. Can you check with which hardware ids?
Also you can try uninstalling all drivers. Try usbview.
Sent from my Nexus 7 using Tapatalk
If you pull down the notifications on the N5X it should say USB Charging, click on it and change it to MTP.
Sent from my Nexus 5X using Tapatalk
are you using a USB C to USB A cable? Or does your laptop actually have a USB C port on it?
Thanks for the responses, but I have been thorough to the extent of my knowledge. To outline my situation:
- brand new laptop with USB 3 port and fresh Win7 Pro
- brand new Nexus 5X with included USB 3 cable
- Developer options - OEM locking and USB debugging ticked
- USB configuration as MTP, also tried PTP - this is also in Developer options; I get no pull-down or choice when plugging in
- Tried drivers from Google, from the Extras folder in SDK, Universal - uninstalled and removed driver files between each attempt
- Turned off Unsigned driver verification in BIOS
I get Code 10 error every time.
In USBview nothing indicates that anything is connected when plugging in phone.
I don't know what to make of the hardware ids.
I'm still curious about this cable, the one that came with the phone from Google, and AquilaDroid's comment indicating that it is not the one required to connect to a PC....
Any other ideas, given all this info???
sordup said:
Thanks for the responses, but I have been thorough to the extent of my knowledge. To outline my situation:
- brand new laptop with USB 3 port and fresh Win7 Pro
- brand new Nexus 5X with included USB 3 cable
- Developer options - OEM locking and USB debugging ticked
- USB configuration as MTP, also tried PTP - this is also in Developer options; I get no pull-down or choice when plugging in
- Tried drivers from Google, from the Extras folder in SDK, Universal - uninstalled and removed driver files between each attempt
- Turned off Unsigned driver verification in BIOS
I get Code 10 error every time.
In USBview nothing indicates that anything is connected when plugging in phone.
I don't know what to make of the hardware ids.
I'm still curious about this cable, the one that came with the phone from Google, and AquilaDroid's comment indicating that it is not the one required to connect to a PC....
Any other ideas, given all this info???
Click to expand...
Click to collapse
Please help.
Included cable IS only for charging
Well, since my questions seemed to have stumped folks here - no doubt the newness of these phones have people a little in the dark still - and for the benefit of others with the same problem, I have discovered a solution here.
The included USB 3 type C cable that comes with the Nexus 5X apparently is only for charging. As my issue outlined above showed, I could get no connectivity to my computer for file transmission with it. Upon getting a USB C to USB A cable, however, plugging into my computer worked as it should: device recognized, choice offered in the phone's pull-down menu for USB connection type (charging, MTP, or PTP), and flawless connection and file transmission.
There you have it.
metpage said:
are you using a USB C to USB A cable? Or does your laptop actually have a USB C port on it?
Click to expand...
Click to collapse
The OP has not responded to this question...
Inviato dal mio Nexus 5X utilizzando Tapatalk
I think there is a problem with USB 3 type A - type C cable. I have one ( my N5X is from LG distribution, we don't have gplay for devices) and he is works only as charging cable. I tried USB 2.0 , USB 3 even USB 3.1 and still only charging. According to my knowledge N5X have USB 2.0 with type C connector.
Odesláno z mého Nexus 5X pomocí Tapatalk
I had the same issue as you. I have a method for you to try, as it worked for me!
Hook your Nexus 5X to your computer
Go into your System / Device Manager
You should now see a device listed with an ! or something (will be your 5X)
Ok, now right click the unknown device (5X) and update driver. Click the select file manually option. Direct it to your android-sdk\Extras\Google. No further. It should now install your USB driver. This is what I had to do to get mine to work. First I tried pointing it further and closer in the SDK file but it didn't work. When I pointed it to the google folder, it installed an boom.
My computer reads a device connected, but then immediately freaks out and shuts the USB3.1 port off. I'm thinking it's expecting a 3.1 device, but it's getting a 2.0 device. Or even possibly that the USB3.1 card doesn't supply enough current to satisfy the N5X's thirst. I dunno, maybe it's just a Windows 10 bug. A USB-C to USB-A (A Host USB2.0) works just fine.

[ROOT] How to enable OTG Support for Android

How to enable USB host API support
How to connect and debug Android device with ADB over TCP WiFi
How to enable USB host API support
Clone this wiki locally
https://github.com/452/USBHIDTerminal.wiki.git
How to enable USB host API support
Some Android devices have no support USB On The Go (OTG)
USB host mode is supported in Android 3.1 and higher
Also for this you need ROOT access.
To enable USB host API support you should add a file named android.hardware.usb.host.xml and containing the following lines:
<permissions>
<feature name="android.hardware.usb.host"/>
</permissions>
into folder
/system/etc/permissions
in that folder find file named
handheld_core_hardware.xml or tablet_core_hardware.xml
and add
<feature name="android.hardware.usb.host" />
into <permissions> section.
Reboot your device. USB host API should work.
Procedure:
adb pull /system/etc/permissions/tablet_core_hardware.xml
Update that file and create android.hardware.usb.host.xml as specified by Greg-q.
adb push android.hardware.usb.host.xml /system/etc/permissions
adb push tablet_core_hardware.xml /system/etc/permissions
Reboot.
Videos:
https://www.youtube.com/watch?v=oaXYMx8-SZ4
links:
http://stackoverflow.com/a/11992683/984156
http://stackoverflow.com/a/17036007/984156
Thank you I find this quite useful for my E5 (SM-S978L)
zenful said:
Thank you I find this quite useful for my E5 (SM-S978L)
Click to expand...
Click to collapse
Thanks for reply
I tried this all in my samsung e700h but not suceeded. If anybody suceeded in doing this way plse tell how???
You can try using NeOTG in grand 2/s3 neo forums. If you have a kernel support of OTG,then it'll work
How to check if my kernel supports native USB OTG support? Perhaps I have to check for it in "/dev/" or somewhere?
doesnt work on e500h with stock lollipop
Someone have the github files that were taken down?
Sent from my SM-A520W using XDA Labs
No OTG in E700H it seems...
The USB controller used in Galaxy E700H is Richtek RT-5033 which is apparent by examination of
PHP:
dmesg | grep 5033
This RT-5033 handles battery management and flash LED etc. but the driver for this in kernel given by Samsung doesn't have anything specific related to USB host/OTG.
There is a mention of a register for USB OTG/Host, but it's not documented.
So even if the chip RT-5033 supports OTG, without the support in kernel, OTG can't be enabled.
I want to enable OTG support on my Irulu X11 tablet, I can access a recovery menu and there's a lot of options in there. I can update from multiple source, I can reboot to bootloader... etc...
I don't have any knowledge in this 'domain' but I'm pretty good with that stuff usually.
If you can explain to me how I can edit those files to enable the USB OTG to work, I would bless you.
Basically, someone said that in the Recovery Menu your tablet is practically 'rooted', I'm not sure what that means and I hope someone can help me.
I got the file ' android.hardware.usb.host.xml ' and it's already got the permission in there but it's not in ' tablet_core_hardware.xml ' and when I try to edit it for File Explorer, I get an error when saving.
Actually, I think OTG support is already enabled.
If I can use a micro USB keyboard for my tablet, that means the OTG support is working right?
Then, my problem would be that all the apps I'm trying to use are not made my version of Android or something.
Let me explain.
I bought a USB microscope and I want to connect it to my tablet to I can inspect stuffs on the fly.
It's working perfectly fine on my computer, but I've tested 10 apps on my tablet and none are showing the camera view but they detect something in USB (USB Camera) and the leds on the lens are turning on.
What's the issue ?
Well, apparently my device doesn't have any built-in UVC support and that's why I cannot see the video of the camera.
Is it possible to add UVC support? I know at this point I should make my own thread but let's see..
Harshiv989 said:
No OTG in E700H it seems...
The USB controller used in Galaxy E700H is Richtek RT-5033 which is apparent by examination of
PHP:
dmesg | grep 5033
This RT-5033 handles battery management and flash LED etc. but the driver for this in kernel given by Samsung doesn't have anything specific related to USB host/OTG.
There is a mention of a register for USB OTG/Host, but it's not documented.
So even if the chip RT-5033 supports OTG, without the support in kernel, OTG can't be enabled.
Click to expand...
Click to collapse
I don't understand so much of this .. i tried too many videos to make the E7 compatible to otg and it worked but when i try to use the otg experimentally it doesn't work !!
Ok I've gotten to the end of the instructions, the last step, & I have an issue...
When I enter:
adb push android.hardwae.usb.host.xml/system/etc/permissions
I get:
adb.exe: push required an argument
I entered the command exactly as written so what is the problem & how can I fix it?
Thanks. .

Categories

Resources