Jump to content

Step by step guide to USB Host


Recommended Posts

Guest bazzlad
Posted (edited)

Although this is a guide for dummies, I take no credit nor responsibility for anything - I'm just writing up what some clever people have figured out split over a bunch of topics and posts.

Firstly, I only tested this using the latest firmware from Advent (the one without flash [worry not Paul's beautiful Modaco pack puts it back on])

Step 1) Here goes, download THIS to a windows machine and run:

http://www.myadventvega.co.uk/softwareImag..._Vega_Final.exe

Step 2) Install Pauls r5 pack (I recommend you pay a tenner and get the perfomance pack too as a way of saying thanks to Paul!)

http://android.modaco.com/content/advent-v...online-kitchen/

Step 3) Mega thanks to JordanT92 here - download the following Zip file, extract the contents and place them on the ROOT of your SD Card.

http://rapidshare.com/files/437201289/USBSlaveHost.zip

Step 4) Download the flash utility from here, extract the files and take the flash_image file ONLY - place it in the SAME FOLDER as where your ADB is (Read the basic tut below for more details on how to use adb!)

http://loadbalancing.modaco.com/download.p...ga-recovery.zip

Basic adb guide for windows

My technique would be to get Paul's adb-windows file and create a folder called android on your c drive. Paste in Paul's adb-windows file and right click rename it to adb.

Also copy AdbWinApi.dll into the same folder.

Open a cmd prompt (Start > run > type in cmd [Win 7 users can type cmd into their search bar on the start menu]) Type in the following: cd c:\android (This moves you to the folder you made) Type in: dir (This should list the files in the folder, in our case "adb" [if it's not there bloody put it in]) Type in: adb devices (This command tells you all the android devices connected to your pc) If you've done that -good news! You're ready to roll!

Step 5) Run the following commands on your terminal/cmd prompt window.

adb push flash_image /data/local/

adb shell chmod 4755 /data/local/flash_image

Step 6) Use a filemanager and go to the root of your SDcard, there should be a file called gscript.apk install this.

Step 7) Open gscript and click menu. Click on the add script button. Click LOAD File and USB Slave and USB Host should appear. Click them (one at a time, so you'll have both options in your gscript).

Step 8) Your gscript will now have both options. Click USB Host and pretty much nothing happens. Once the window has closed, restart your vega!

Step 9) Test every USB device you own - and let us know in here: http://android.modaco.com/content/advent-v...devices-a-list/

Do something crazy like this -

Edited by Paul
Guest jellywobbles
Posted

Nice one bazzlad - very much appreciated!

Just to clarify .. Step 5

Step 5) Run the following commands on your terminal/cmd prompt window.

This is a cmd prompt running on the SD card yeah?

Cheers

JW

Posted (edited)

Hi new to Android really could you please provide me a link to the ADB tutorial.

Plus I'll get the bonus of learning how to do screenshots!

Edited by remlap
Posted

Love to know if something like this:

http://www.ebuyer.com/product/104608 (KeySonic 2.4Ghz Wireless Keyboard with Integrated TouchPad - USB)

works with the Vega.

Could be the ideal coach potato companion to a HDMI TV connected Vega for catchup TV?

If only I could buy a Vega to try :-(

Hope a can save my pennies over Christmas to buy one :-)

Posted

Thanks for posting this.

Step 1 requires the Advent to be in recovery mode, right?

Incidentally, the official Vega instructions state that when doing the full install, the tablet needs to be connected to the power supply. Does anyone know whether this is strictly necessary?

Posted
Got as far as step 5) so far ......... The ADB stuff is going way over my head LOL

http://www.xda-developers.com/android/adb-easy-tutorial/ <---- @remlap I've had a read through that and I'm still lost :s

Will have another bash later

Debs,

adb is the program that Paul ships as adb-windows.exe in the ROMs. Copy and rename adb-windows.exe to adb.exe and have it in the same directory you are running the commands and it will work.

Guest gingercat
Posted
Love to know if something like this:

http://www.ebuyer.com/product/104608 (KeySonic 2.4Ghz Wireless Keyboard with Integrated TouchPad - USB)

works with the Vega.

Could be the ideal coach potato companion to a HDMI TV connected Vega for catchup TV?

If only I could buy a Vega to try :-(

Hope a can save my pennies over Christmas to buy one :-)

Just tested, works a treat - I've had that keyboard for years and can't recommend it enough - it is just excellent!

Guest debs626
Posted
Debs,

adb is the program that Paul ships as adb-windows.exe in the ROMs. Copy and rename adb-windows.exe to adb.exe and have it in the same directory you are running the commands and it will work.

I have an adb.exe already in my C:\android-sdk-windows\platform-tools - where I have extracted the flash_image to also but I just dont know what to do next ??

I've clicked on the adb.exe, a cmd window pops up, runs through a bunch of commands (too quick for me to read them) then closed

Guest gingercat
Posted
I have an adb.exe already in my C:\android-sdk-windows\platform-tools - where I have extracted the flash_image to also but I just dont know what to do next ??

I've clicked on the adb.exe, a cmd window pops up, runs through a bunch of commands (too quick for me to read them) then closed

1) Open up a command window (start->run->cmd)

2) Change to the directory where you've extracted flash_image (e.g. "cd c:\android-sdk-windows\platform-tools")

Now proceed from step #5 in the original post

Guest debs626
Posted
1) Open up a command window (start->run->cmd)

2) Change to the directory where you've extracted flash_image (e.g. "cd c:\android-sdk-windows\platform-tools")

Now proceed from step #5 in the original post

wooohoooo I have USB Host working

Dont ask me how WMSL

Thanks bazzlad, arad85, gingercat for all your time and efforts :)

p.s how do I get it back to USB Slave ? just select it in GScript and reboot ?

Posted

Just to confirm that this also works on R4, so it's not essential to do steps 1 & 2 and two if you're still on 1.04 with R4.

Guest nigelpwilson
Posted
wooohoooo I have USB Host working

Dont ask me how WMSL

Thanks bazzlad, arad85, gingercat for all your time and efforts :)

p.s how do I get it back to USB Slave ? just select it in GScript and reboot ?

Yes thats correct....just tried it on mine...both modes work perfect and its just a button click to swap with GScript (and a reboot)

Guest trebor63
Posted

Hi,

Many thanks works a treat usb mouse Ok and stick Ok system didnt like having stick taken out though, guess I should have been a bit more carefull and been in suspend/ sleep.

One simple question, to re-enable the usb so the PC can see it do I go back and 'edit' the gscript this time selecting the slave option, saving, and then click 'usb slave' wait for it to do its stuff then reboot?

many thanks

Guest trebor63
Posted

oops very slow at typing seem like it has been answered already... many thanks

Guest bazzlad
Posted
usb doesnt show up using ES file explorer?

Use the built in one.

Guest boffboff
Posted

Just seen this thread! Glad it's working after reading the developments in the other threads. I'll try and install it later and post my results in the other thread.

A massive 'Thank you' to all who sussed it out and made it togglable (is that even a word?)!!

Boff

Guest thedicemaster
Posted
usb doesnt show up using ES file explorer?

it does, under /mnt/usb/system_usb/

Guest misc2050
Posted

Hi guys, followed all steps to the letter and both with or without a fresh software image and r5, this does not seem to work for me. When I run either script (slave or host), I get a permission denied message and then the script window closes. After this when I reboot my device, it just hangs on a blank screen. I then have to run reflash the software image to get the device to work again. Any chance you could help please?

Guest bazzlad
Posted (edited)
Hi guys, followed all steps to the letter and both with or without a fresh software image and r5, this does not seem to work for me. When I run either script (slave or host), I get a permission denied message and then the script window closes. After this when I reboot my device, it just hangs on a blank screen. I then have to run reflash the software image to get the device to work again. Any chance you could help please?

When you add the scripts to gscript you should get a Super User pop up warning - are you giving it super user rights? (You need to!)

Are the image files from the zip file on the ROOT of your SDCard (but in their folder [uSB])?

Are you 100% sure you typed the ADB code in correctly?

Edited by bazzlad
Guest misc2050
Posted

yup definitely typed all the adb commands correctly, but for some reason I didn't get the Super User prompt at all. Hmm, do you know if there is any feedback from 'adb shell chmod 4755 /data/local/flash_image' command - I didn't receive any, was wondering if this is being applied successfully?

Guest rferrett
Posted

Looks like we are making some pretty funky progress with this stuff. Amazing how far the Vega has come so quickly!

Guest bazzlad
Posted
yup definitely typed all the adb commands correctly, but for some reason I didn't get the Super User prompt at all. Hmm, do you know if there is any feedback from 'adb shell chmod 4755 /data/local/flash_image' command - I didn't receive any, was wondering if this is being applied successfully?

You won't get any feedback from that.

When you add the scripts to gscript there's a tickbox called enable su - that NEEDS to be ticked.

My advice start over. Before running gscript dl and install terminal emulator. Type in su and click return. A superuser prompt should appear if not do not proceed!

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.