MoDaCo is undergoing planned maintenance. Site functionality may be reduced - follow @modaco or @paulobrien on Twitter for updates.

  • Announcements

    • Reminder - MoDaCo position on illegal content

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such software
      Nintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)


      CUSTOM ROMS

      You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not be hosted directly in topic via the MoDaCo attachment system
      ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)
      ROMs must give full credit to the original author
      This decision has been taken in light of the huge amount of interest in this area of device customisation within the community, and member feedback! Please note that custom ROM discussion should be kept in specific device sub-areas, (e.g. Kaiser.MoDaCo.com for Kaiser based devices). ISSUES If you have any issues with this policy, please contact me directly via PM. P
    • Support MoDaCo by signing up to a MoDaCo Silver or Gold membership

      To sign up to an annual MoDaCo Silver subscription which will eliminate all ads from the site (as well as giving you access to the MoDaCo Online Kitchens for Android) for only £9.99 using PayPal, Credit or Debit Card, ensure you are logged in to the site, and then click the link below, which will take you directly to the subscription store! You can also sign up to an annual MoDaCo Gold subscription for £29.99, which adds the benefits listed below! PURCHASE A MODACO SUBSCRIPTION - FREE Titanium Backup Mobile for Android worth $5.99! - FREE 1 year PrivateInternetAccess.com worth $39.95! - FREE 1 year LastPass Premium worth $12! - FREE CalcConvert for Pocket PC from Binaryfish worth $17.95! - FREE Calendar Bar for Pocket PC from OmegaOne worth $9.99! - FREE CamerAware for Pocket PC and Smartphone from MoDaCo worth £19.99 / $30! - FREE Chronos for Pocket PC from ActiveKitten worth $14.95! - FREE CodeWallet Pro for Smartphone and Pocket PC from DeveloperOne worth up to $24.95! - FREE Concentrix for Pocket PC from eSoft Interactive worth $9.95! - FREE FlexMail for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE FTouchSL for Pocket PC from Vekoff s.r.o. worth 10 euro / $12.50! - FREE Jewel Challenge for Pocket PC from eSoft Interactive worth $9.95! - FREE John Cody's Alerts Pro for Smartphone from Omnisoft worth $14.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Dutch for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> French for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> German for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Italian for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Spanish for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Dutch for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> French for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> German for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Russian for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Turkish for Smartphone from Lingvosoft worth $49.95! - FREE Note2Self for Pocket PC and Smartphone from WebIS worth up to $19.90! - FREE Opera 8.60 for Pocket PC and Smartphone from Opera Software worth up to $48! - FREE Pocket Informant for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE Pocket Launcher for Pocket PC and Smartphone from Conduits worth $9.95! - FREE PTab for Pocket PC and Smartphone from z4soft worth up to $60! - FREE Resco Explorer for Pocket PC and Smartphone from Resco worth up to $49.90! - FREE Safemode for Pocket PC from monocube worth $12.95 - FREE SplashPhoto for Pocket PC and Smartphone from SplashData worth up to $59.90! - FREE Sprite Backup for Pocket PC and Smartphone from Sprite Software worth $29.95! - FREE Teksoft Glyphs UI for Pocket PC and Smartphone from Teksoft €9.95! - FREE Teksoft HeadsetRemote for Pocket PC and Smartphone from Teksoft €4.95! - FREE Traffic Jam for Pocket PC from eSoft Interactive worth $9.95! - FREE unlock (1 per year) from imei-check.co.uk - DISCOUNT of 10% at MoDaCo FairDeal - DISCOUNT of 10% at Semsons.com - FORUM - AD FREE SITE - FORUM - custom rank / title - FORUM - double competition entries - FORUM - double post attachment space - FORUM - no search flood control - FORUM - priority event registration - FORUM - triple PM space
    • Reminder: Selling items on the forum directly is not allowed

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspensions / ban.
Sign in to follow this  
Followers 0

USB Host on ZTE Blade 3?

19 posts in this topic

Posted · Report post

Is it possible to enable it?
I already have tried "[url="https://play.google.com/store/apps/details?id=eu.chainfire.usbhostdiagnostics&feature=search_result"]USB Host Diagnostics[/url]" tool on the Play Store but that didn't work.
From the things that I read it has something to do with the kernel supporting it,but I don't know anything about modifying the kernel.
0

Share this post


Link to post
Share on other sites

Posted · Report post

With a quick look it seems that most things needed for USB host/OTG are already enabled in our kernel. It wouldn't be a big surprise if the actual drivers needed some hacking to make it work though. There's of course plenty of necessary changes to framework/vold/ramdisk/etc if you want external devices to be available for Android. Command line access should be possible as is.

Common problem with phones and external USB devices is that phones don't output power from the USB port. You'll need an active USB-hub or an y-cable with a 5V power input. This also means that there really isn't any practical use case scenario for this.
0

Share this post


Link to post
Share on other sites

Posted · Report post

I need it for connecting my Canon 600D to my phone so I can control it/view pictures on a larger screen.(with DSLR Controler from the Play Store).
And probably for a card reader or a flash memory stick - and all those things do not need an external power source.
Is this to difficult to code and can you do it?
0

Share this post


Link to post
Share on other sites

Posted · Report post

Like said, there already might be all the necessary support for DSLR Controller enabled. It's said to work on even non-rooted stock firmware just as long it's Honeycomb (Android 3.1) or higher. Card readers and flash memory sticks most definitely need outside power source.

Could I do it? Probably. Am I going to do it? No, because I have none of the necessary equipment to test this and no use for this anyway. It's like everything else in open source communities. You want something for yourselves - you better do it yourself. And if you're feeling generous enough you can share it with other people as well. ;)
0

Share this post


Link to post
Share on other sites

Posted · Report post

KonstaT would you try to do it if i gave you the needed hardware? i would do it but i only have experience in coding os files on iPhone and... it's completely different thing...
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='topias231' timestamp='1373153888' post='2139238']
KonstaT would you try to do it if i gave you the needed hardware? i would do it but i only have experience in coding os files on iPhone and... it's completely different thing...
[/quote]
There's always a problem with donated hardware. It might not be able to deliver what you're requesting. That's why I usually refuse. Cables like this cost practically nothing anyway so I might include one in my next buyincoins/dealextreme order.
0

Share this post


Link to post
Share on other sites

Posted · Report post

i tried myself and only thing to really do is the s3c usb host driver. at least i think so because my blade 3 notices a usb host cable but complains about the driver. (USB Host Helper)
0

Share this post


Link to post
Share on other sites

Posted · Report post

It seems that s3c driver is something for Exynos devices. You should look into how this is done on Qualcomm devices.
0

Share this post


Link to post
Share on other sites

Posted · Report post

ok. thank you :D (they really should add a thanks button like xda :D)
0

Share this post


Link to post
Share on other sites

Posted · Report post

Ok, so I just received some cables. Good news, OTG-cable is recognized by the usb host controller out of the box.[CODE]
<6>[07-19 07:55:32.613] [5726: kworker/0:1]msm_hsusb_host msm_hsusb_host.0: Qualcomm On-Chip EHCI Host Controller
<6>[07-19 07:55:32.613] [5726: kworker/0:1]msm_hsusb_host msm_hsusb_host.0: new USB bus registered, assigned bus number 1
<6>[07-19 07:55:32.613] [5726: kworker/0:1]msm_hsusb_host msm_hsusb_host.0: irq 47, io base 0xa0800000
<6>[07-19 07:55:32.613] [5726: kworker/0:1]usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
<6>[07-19 07:55:32.613] [5726: kworker/0:1]usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
<6>[07-19 07:55:32.613] [5726: kworker/0:1]usb usb1: Product: Qualcomm On-Chip EHCI Host Controller
<6>[07-19 07:55:32.613] [5726: kworker/0:1]usb usb1: Manufacturer: Linux 3.0.8-CyanogenMod-perf-gf491622 ehci_hcd
<6>[07-19 07:55:32.613] [5726: kworker/0:1]usb usb1: SerialNumber: msm_hsusb_host.0
<6>[07-19 07:55:32.613] [5726: kworker/0:1]hub 1-0:1.0: USB hub found
<6>[07-19 07:55:32.613] [5726: kworker/0:1]hub 1-0:1.0: 1 port detected
[/CODE]
Bad news, as expected there is no power output to power plugged devices.
[CODE]<6>[07-19 07:55:35.096] [5984: kworker/0:0]msm_otg_suspend: usb in low power mode[/CODE]

I guess I have to figure out next what kind of Y-cable is needed (2 male ends, 1 female end?) and where to get one. Or do craftwork myself and cut some cables... :P
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

[quote name='KonstaT' timestamp='1374232009' post='2141968']
Ok, so I just received some cables. Good news, OTG-cable is recognized by the usb host controller out of the box.[CODE]
<6>[07-19 07:55:32.613] [5726: kworker/0:1]msm_hsusb_host msm_hsusb_host.0: Qualcomm On-Chip EHCI Host Controller
<6>[07-19 07:55:32.613] [5726: kworker/0:1]msm_hsusb_host msm_hsusb_host.0: new USB bus registered, assigned bus number 1
<6>[07-19 07:55:32.613] [5726: kworker/0:1]msm_hsusb_host msm_hsusb_host.0: irq 47, io base 0xa0800000
<6>[07-19 07:55:32.613] [5726: kworker/0:1]usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
<6>[07-19 07:55:32.613] [5726: kworker/0:1]usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
<6>[07-19 07:55:32.613] [5726: kworker/0:1]usb usb1: Product: Qualcomm On-Chip EHCI Host Controller
<6>[07-19 07:55:32.613] [5726: kworker/0:1]usb usb1: Manufacturer: Linux 3.0.8-CyanogenMod-perf-gf491622 ehci_hcd
<6>[07-19 07:55:32.613] [5726: kworker/0:1]usb usb1: SerialNumber: msm_hsusb_host.0
<6>[07-19 07:55:32.613] [5726: kworker/0:1]hub 1-0:1.0: USB hub found
<6>[07-19 07:55:32.613] [5726: kworker/0:1]hub 1-0:1.0: 1 port detected
[/CODE]
Bad news, as expected there is no power output to power plugged devices.
[CODE]<6>[07-19 07:55:35.096] [5984: kworker/0:0]msm_otg_suspend: usb in low power mode[/CODE]

I guess I have to figure out next what kind of Y-cable is needed (2 male ends, 1 female end?) and where to get one. Or do craftwork myself and cut some cables... :P
[/quote]Cutting and modding usb-cables is easy. Would be nice to get usb host support :) Edited by peetu20
0

Share this post


Link to post
Share on other sites

Posted · Report post

USB OTG works out of the box just fine. You just need the right kind of cable (USB OTG Y-cable with 5V power source).

[CODE]
<6>[07-19 18:55:06.917] [4: kworker/0:0]msm_hsusb_host msm_hsusb_host.0: Qualcomm On-Chip EHCI Host Controller
<6>[07-19 18:55:06.917] [4: kworker/0:0]msm_hsusb_host msm_hsusb_host.0: new USB bus registered, assigned bus number 1
<6>[07-19 18:55:06.917] [4: kworker/0:0]msm_hsusb_host msm_hsusb_host.0: irq 47, io base 0xa0800000
<6>[07-19 18:55:06.917] [4: kworker/0:0]usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
<6>[07-19 18:55:06.917] [4: kworker/0:0]usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
<6>[07-19 18:55:06.917] [4: kworker/0:0]usb usb1: Product: Qualcomm On-Chip EHCI Host Controller
<6>[07-19 18:55:06.917] [4: kworker/0:0]usb usb1: Manufacturer: Linux 3.0.8-CyanogenMod-perf-gf491622 ehci_hcd
<6>[07-19 18:55:06.917] [4: kworker/0:0]usb usb1: SerialNumber: msm_hsusb_host.0
<6>[07-19 18:55:06.917] [4: kworker/0:0]hub 1-0:1.0: USB hub found
...
<6>[07-19 18:55:07.237] [12: khubd]usb 1-1: new high speed USB device number 2 using msm_hsusb_host
<6>[07-19 18:55:07.387] [12: khubd]usb 1-1: New USB device found, idVendor=0951, idProduct=1607
<6>[07-19 18:55:07.387] [12: khubd]usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
<6>[07-19 18:55:07.387] [12: khubd]usb 1-1: Product: DataTraveler 2.0
<6>[07-19 18:55:07.387] [12: khubd]usb 1-1: Manufacturer: Kingston
<6>[07-19 18:55:07.387] [12: khubd]usb 1-1: SerialNumber: 5B7A11970009
<6>[07-19 18:55:07.387] [12: khubd]scsi0 : usb-storage 1-1:1.0
<5>[07-19 18:55:08.388] [3042: scsi_scan_0]scsi 0:0:0:0: Direct-Access Kingston DataTraveler 2.0 PMAP PQ: 0 ANSI: 0 CCS
<5>[07-19 18:55:08.388] [3042: scsi_scan_0]sd 0:0:0:0: Attached scsi generic sg0 type 0
<5>[07-19 18:55:11.321] [5: kworker/u:0]sd 0:0:0:0: [sda] 7823360 512-byte logical blocks: (4.00 GB/3.73 GiB)
<5>[07-19 18:55:11.331] [5: kworker/u:0]sd 0:0:0:0: [sda] Write Protect is off
<7>[07-19 18:55:11.331] [5: kworker/u:0]sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
<3>[07-19 18:55:11.331] [5: kworker/u:0]sd 0:0:0:0: [sda] No Caching mode page present
<3>[07-19 18:55:11.331] [5: kworker/u:0]sd 0:0:0:0: [sda] Assuming drive cache: write through
<3>[07-19 18:55:11.331] [5: kworker/u:0]sd 0:0:0:0: [sda] No Caching mode page present
<3>[07-19 18:55:11.331] [5: kworker/u:0]sd 0:0:0:0: [sda] Assuming drive cache: write through
<6>[07-19 18:55:11.331] [5: kworker/u:0] sda: sda1
<3>[07-19 18:55:11.331] [5: kworker/u:0]sd 0:0:0:0: [sda] No Caching mode page present
<3>[07-19 18:55:11.331] [5: kworker/u:0]sd 0:0:0:0: [sda] Assuming drive cache: write through
<5>[07-19 18:55:11.331] [5: kworker/u:0]sd 0:0:0:0: [sda] Attached SCSI removable disk[/CODE]

You can use 'lsusb' to list plugged usb devices. You still need to manually mount usb storage but I'll look into if vold can auto mount it in CM10/CM10.1.

Mount:
[CODE]
mkdir /sdcard/usb
chmod 777 /sdcard/usb
mount -t vfat /dev/block/sda1 /sdcard/usb[/CODE]

Unmount:
[CODE]umount /sdcard/usb[/CODE]

Copying files from and to usb storage works fine. I also tested an usb mouse which worked fine. Keyboard is still untested but I can't see any reason why it wouldn't work as well.
0

Share this post


Link to post
Share on other sites

Posted · Report post

Do I have to do anything to the rom/kernel to make this work or it works just as it is.I'll try to find that kind of cable in the next week or try to make one myself.
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='Something Wierd' timestamp='1374273017' post='2142163']
Do I have to do anything to the rom/kernel to make this work or it works just as it is.I'll try to find that kind of cable in the next week or try to make one myself.
[/quote]As KonstaT says, you need just USB-OTG cable and command line skills.
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='Something Wierd' timestamp='1374273017' post='2142163']
Do I have to do anything to the rom/kernel to make this work or it works just as it is.I'll try to find that kind of cable in the next week or try to make one myself.
[/quote]As KonstaT says, you need just USB-OTG cable and command line skills.
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='Something Wierd' timestamp='1374273017' post='2142163']
Do I have to do anything to the rom/kernel to make this work or it works just as it is.I'll try to find that kind of cable in the next week or try to make one myself.
[/quote]As KonstaT says, you need just USB-OTG cable and command line skills.
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='Something Wierd' timestamp='1374273017' post='2142163']
Do I have to do anything to the rom/kernel to make this work or it works just as it is.I'll try to find that kind of cable in the next week or try to make one myself.
[/quote]As KonstaT says, you need just USB-OTG cable and command line skills.
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='Something Wierd' timestamp='1374273017' post='2142163']
Do I have to do anything to the rom/kernel to make this work or it works just as it is.I'll try to find that kind of cable in the next week or try to make one myself.
[/quote]
No need to mess with kernels or anything, OTG cable with external power source is the key. This should even work on stock ROMs but I've obviously only tested it with CM10.1. Of course you'll need root access to manually mount usb storage but mouse/keyboard/etc should work even on unrooted stock.

Here's information on what kind of cable you need and how to make one.
[url="http://forum.xda-developers.com/showthread.php?t=1828032"]http://forum.xda-dev...d.php?t=1828032[/url]

Mine came out pretty. :P
[attachment=88944:IMG_20130719_213041.jpg]
0

Share this post


Link to post
Share on other sites

Posted · Report post

Vold also seems to play nicely with this. Support for external USB storage coming to CyanogenMod builds. USB storage is automatically mounted when plugged in and can be unmounted/mounted under Settings -> Storage.

[attachment=88945:Screenshot_2013-07-20-12-34-23.png] [attachment=88946:Screenshot_2013-07-20-12-35-52.png]
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.