Jump to content


Photo

[GUIDE] USB OTG / USB Host


  • Please log in to reply
3 replies to this topic

#1
Mihail Zenkov

Mihail Zenkov

    Newbie

  • Members
  • Pip
  • 3 posts
  • Devices:u8815

First bad news: u8815 ignore state of ID pin - driver cannot switch automatically to usb host mode. But we can force host mode by hands!

 

Run in adb shell (over network) or directly in android terminal:

echo host > /d/otg/mode

 

If you want check current state:

cat /d/otg/info

 

u8815 not provide power to external device. You should connect power source to it: 

http://forum.xda-dev...d.php?t=1450298

 

For return to normal (peripheral) mode:

echo peripheral > /d/otg/mode

But in this case driver ignore connect/disconnect to usb. To fix this we should patch kernel: https://github.com/M...63616ff155b6c2d

 

At now I try add some kind of auto switch to host mode and back.

 

P.S. Tested on cm-10.1-20130913 (Dazzozo)


Edited by Mihail Zenkov, 15 October 2013 - 02:07 PM.

  • 1

#2
george109

george109

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,106 posts
  • Gender:Male
  • Location:Kent, England
  • Interests:Cycling, Tech and Canoeing
  • Devices:Samsung Galaxy S4 - GT-I9505
Oh my god! :D :D :D
If this works, this is massive news!
I think this should be pinned :)
Thanks :)

Edited by george109, 15 October 2013 - 07:09 AM.

  • 0

Hello. I have an S4 now, and I hardly ever use MoDaCo now. 

Therefore you will receive no replies to any PMs

Please post in the forum instead. You will get more help there :)

:excl:A WARNING TO ALL G300 OWNERS! Please Read! (The Flash Memory Problem!) :excl:

Tutorial: How To (Officially) Unlock Your Bootloader! (The long way, but which definitely works)

Please, Do not use the HuaweiG300.com Tutorial on how to unlock your bootloader, it is better to unlock it officially with my tutorial!

Spoiler

My Device:

Huawei Ascend G300 (U8815) - Sold!

Samsung Galaxy S4 (Black) - The LTE Version - GT-I9505

(Ignore the links above (if there is one). It's a skimwords (advertising) link and nothing to do with me!)

The ROMS I have used:

Spoiler

Download Blink, a great app that controls the status LED on the G300!

Wait for 5 seconds and then click skip ad! Do not download anything in the ad window, that is not the app!

Did I help you?

If I did, Please press the rep_up1.png button, in the bottom right hand corner of my posts.

(If not, Press it anyway!)

If I really helped you, you could also donate to me. Thanks!  :) 


#3
dalyer

dalyer

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,470 posts
  • Gender:Male

Apologies if it's a dumb question :o but I presume that the main benefit of USB OTG is the ability to connect external storage (e.g. a flash drive)?

Presumably it will drain the battery even faster than normal (which seems to be fast enough generally with the G300 - at least in my experience)?

I'm on stock GB B895 based superslim-v1 and my /d folder is empty... 


  • 0

#4
Mihail Zenkov

Mihail Zenkov

    Newbie

  • Members
  • Pip
  • 3 posts
  • Devices:u8815

Apologies if it's a dumb question :o but I presume that the main benefit of USB OTG is the ability to connect external storage (e.g. a flash drive)?

Presumably it will drain the battery even faster than normal (which seems to be fast enough generally with the G300 - at least in my experience)?

I'm on stock GB B895 based superslim-v1 and my /d folder is empty... 

Sorry, I forget mention - u8815 (as and many other device) need external power for peripheral device. I add this to first post.


  • 0

#5
dalyer

dalyer

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,470 posts
  • Gender:Male

Sorry, I forget mention - u8815 (as and many other device) need external power for peripheral device. I add this to first post.

 

What's the worst that can happen if there's no external power? Just doesn't work or could it kill the G300!?


  • 0

#6
Mihail Zenkov

Mihail Zenkov

    Newbie

  • Members
  • Pip
  • 3 posts
  • Devices:u8815

could it kill the G300!?

No. Without external power host work, but don't detect any external device.


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users