Jump to content


Photo

USB Host / Slave switcher - widget


  • Please log in to reply
68 replies to this topic

#1
MaxiP

MaxiP

    Enthusiast

  • Members
  • PipPipPip
  • 270 posts
  • Gender:Male
  • Devices:Motorola Atrix; Vega VC
Very easy to switch between host / slave mode but I forget which mode the device is in. I know that (for me) it will be mainly used in Host, but not always. Is there a widget that can indicate which mode is active or a system variable that Tasker could read to display or is there already some visible indicator which mode is active ?

TIA

  • 0
Current device;
Motorola Atrix - rooted & ROMd
Adent Vega - VegaComb v3.2 build 9n
On order;

DropBox referral link

Share files between your PC/Tablet/phone/ipod
2GB free when you sign up but Click on my link
to get an extra free 250mb ;) for the both of us

#2
fudgeboy

fudgeboy

    Newbie

  • MoDaCo Silver
  • Pip
  • 41 posts
  • Devices:Desire, Vega, M&S slippers

Very easy to switch between host / slave mode but I forget which mode the device is in. I know that (for me) it will be mainly used in Host, but not always. Is there a widget that can indicate which mode is active or a system variable that Tasker could read to display or is there already some visible indicator which mode is active ?


That would be nice.

I'm a bit scared of forgetting it's in host mode and plugging it into my PC, with both devices trying to supply power to the other.

  • 0

#3
remlap

remlap

    Enthusiast

  • MoDaCo Silver
  • PipPipPip
  • 282 posts
  • Gender:Male
  • Location:South Wales
  • Devices:Nexus7, GalaxyNexus, NookGlo
  • Twitter:@remlap1986
Lets go analogue old school here but what a about some little stickers that are easily removable when in slave mode?

Would be a great add on to Paul's application a notification I agree.

Edited by remlap, 04 January 2011 - 02:42 PM.

  • 0

#4
rvdgeer

rvdgeer

    Diehard

  • Members
  • PipPipPipPip
  • 332 posts
  • Location:Utrecht, the Netherlands
  • Interests:Android!
  • Devices:HTC Desire, PoV Mobii 10
  • Twitter:@robvdgeer

Lets go analogue old school here but what a about some little stickers that are easily removable when in slave mode?

Would be a great add on to Paul's application a notification I agree.


Don't know if it's possible to 'read' the USB mode, but I do know it should be possible to perform an extra action when using the switch...
Like renaming, moving or copying a file just before it flashes the boot image...

It's not very reliable, because if you change the USB mode in any other way (ie. not with the switcher) it would display the wrong state...

  • 0

HTC One (m7) on Tele2
ROM: ViperOne 5.8.0 (Sense 5.5)
Android: 4.4.2
Kernel: 4.19.401.11 CL304164 release-keys
Bootloader: 1.56.0000
CID: HTC__E11

HTC One X (endeavoru) on KPN
ROM: ViperX 4.0.7 (Sense 5.0)
Android: 4.2.2
Kernel: 4.18.401.2 CL231174 release-keys
Bootloader: 1.39.0000
CID: HTC__E11

LG-V500 (awifi)
Android: 4.4.2
Build: KOT49I.V50020a
Software: V50020a

#5
montage

montage

    Regular

  • Members
  • PipPip
  • 111 posts
  • Gender:Male
  • Location:Staffordshire
If you you forget just plug a usb stick in and if it reads it you know your in host.. nice to have a widget but any battery drain isnt worth the hassle involved in a small check

  • 0

#6
Pyr0x64

Pyr0x64

    Enthusiast

  • Members
  • PipPipPip
  • 222 posts
  • Gender:Male
  • Location:UK
  • Devices:HTC Evo 3D, Advent Vega
  • Twitter:@Pyr0x64
just check your kernel version in settings>about device
if it says DIX_UK at the end, then you are in slave mode
if it says POV, then you are in host mode

  • 0

#7
MaxiP

MaxiP

    Enthusiast

  • Members
  • PipPipPip
  • 270 posts
  • Gender:Male
  • Devices:Motorola Atrix; Vega VC

just check your kernel version in settings>about device
if it says DIX_UK at the end, then you are in slave mode
if it says POV, then you are in host mode


Excellent - that would suggest that someone who knows about these things could make a widget / app that could query the device and return eith Host or Slave depending on the text content ?

  • 0
Current device;
Motorola Atrix - rooted & ROMd
Adent Vega - VegaComb v3.2 build 9n
On order;

DropBox referral link

Share files between your PC/Tablet/phone/ipod
2GB free when you sign up but Click on my link
to get an extra free 250mb ;) for the both of us

#8
trevor432990

trevor432990

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 1,423 posts
Paul has suggested he may well provide a 'safe eject' mechanism for his USB Host/Slave mod (see topic) and I have also asked if it might be possible for him to include some visible indicator to show which mode is currently being used. It seems that using the setting Pyro mentioned that should be relatively straightforward so will keep my fingers crossed :unsure:

  • 0
Advent Vega running Vegacomb v3.2 Build 6

#9
simonta

simonta

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,298 posts
  • Gender:Male
  • Location:Southampton
  • Devices:Vega. HTC Desire

Excellent - that would suggest that someone who knows about these things could make a widget / app that could query the device and return eith Host or Slave depending on the text content ?


I just know I'm going to regret this :unsure:

When you're in host mode, you don't get the little USB symbol in the notication tray. Or am I missing the point?

  • 0
If I've helped you, you want to say "thanks" and you do not use Dropbox (it's enormously useful, especially with mobile devices), please consider signing up for it using my reference. You'll get 2GB of disk space for files available anywhere, any time on any device. They give us both an extra 250MB if you do sign up!

Sign up for Dropbox

Apple? I'd rather eat my own kidneys!

#10
trevor432990

trevor432990

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 1,423 posts

I just know I'm going to regret this :unsure:

When you're in host mode, you don't get the little USB symbol in the notication tray. Or am I missing the point?


You don't get that symbol always. I've just tried both modes and nothing is present in notification bar to indicate which mode I'm in.

  • 0
Advent Vega running Vegacomb v3.2 Build 6

#11
simonta

simonta

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,298 posts
  • Gender:Male
  • Location:Southampton
  • Devices:Vega. HTC Desire

You don't get that symbol always. I've just tried both modes and nothing is present in notification bar to indicate which mode I'm in.


Well in that case, I'm sorry!

By way of atonement, I knocked up a wee app with a widget to do the job for you.

NB. This app/widget relies on the kernel version to work. A new update from Advent or a new version of the host/slave images from Paul may break the app in which case I'll need to release a new version. Hopefully by then, there'll be no need for this app though..

Now I'm the first to admit that my graphics skills are somewhere between WTF and cr*p. If some kind soul would care to provide nice graphics for the widget, fit to grace the screen of a Vega, I'll gladly recompile with the new images.

Feedback welcome. Especially, does it work! I've only tested it on my beasty with 1.06_5 and r6.

Cheers all

Attached Files


Edited by simonta, 05 February 2011 - 06:47 PM.

  • 0
If I've helped you, you want to say "thanks" and you do not use Dropbox (it's enormously useful, especially with mobile devices), please consider signing up for it using my reference. You'll get 2GB of disk space for files available anywhere, any time on any device. They give us both an extra 250MB if you do sign up!

Sign up for Dropbox

Apple? I'd rather eat my own kidneys!

#12
rvdgeer

rvdgeer

    Diehard

  • Members
  • PipPipPipPip
  • 332 posts
  • Location:Utrecht, the Netherlands
  • Interests:Android!
  • Devices:HTC Desire, PoV Mobii 10
  • Twitter:@robvdgeer

Well in that case, I'm sorry!

By way of atonement, I knocked up a wee app with a widget to do the job for you.

NB. This app/widget relies on the kernel version to work. A new update from Advent or a new version of the host/slave images from Paul may break the app in which case I'll need to release a new version. Hopefully by then, there'll be no need for this app though..

Now I'm the first to admit that my graphics skills are somewhere between WTF and cr*p. If some kind soul would care to provide nice graphics for the widget, fit to grace the screen of a Vega, I'll gladly recompile with the new images.

Feedback welcome. Especially, does it work! I've only tested it on my beasty with 1.06_5 and r6.

Cheers all

And where do we find the app/widget?
:unsure:
EDIT: Nevermind, it's there now...

Edited by rvdgeer, 05 January 2011 - 03:57 PM.

  • 0

HTC One (m7) on Tele2
ROM: ViperOne 5.8.0 (Sense 5.5)
Android: 4.4.2
Kernel: 4.19.401.11 CL304164 release-keys
Bootloader: 1.56.0000
CID: HTC__E11

HTC One X (endeavoru) on KPN
ROM: ViperX 4.0.7 (Sense 5.0)
Android: 4.2.2
Kernel: 4.18.401.2 CL231174 release-keys
Bootloader: 1.39.0000
CID: HTC__E11

LG-V500 (awifi)
Android: 4.4.2
Build: KOT49I.V50020a
Software: V50020a

#13
MaxiP

MaxiP

    Enthusiast

  • Members
  • PipPipPip
  • 270 posts
  • Gender:Male
  • Devices:Motorola Atrix; Vega VC
Graphics aside (which look pretty good anyway), this is exactly what my original question was !!!

Thank you very much :unsure: only improvement B) would be that when you press the widget, the USB Mode switcher starts

Happy bunny now.....

Edited by MaxiP, 05 January 2011 - 04:13 PM.

  • 0
Current device;
Motorola Atrix - rooted & ROMd
Adent Vega - VegaComb v3.2 build 9n
On order;

DropBox referral link

Share files between your PC/Tablet/phone/ipod
2GB free when you sign up but Click on my link
to get an extra free 250mb ;) for the both of us

#14
trevor432990

trevor432990

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 1,423 posts
Nice one Simon but it's too big to fit on my already full home screen. Is there a way I can shrink it or will you have to re-issue it ? :unsure:

  • 0
Advent Vega running Vegacomb v3.2 Build 6

#15
simonta

simonta

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,298 posts
  • Gender:Male
  • Location:Southampton
  • Devices:Vega. HTC Desire

when you press the widget, the USB Mode switcher starts


With pleasure. The post with the attachment has been updated with v1.1. Just click the widget to launch the switcher.

Cheers

Edited by simonta, 05 January 2011 - 07:02 PM.

  • 0
If I've helped you, you want to say "thanks" and you do not use Dropbox (it's enormously useful, especially with mobile devices), please consider signing up for it using my reference. You'll get 2GB of disk space for files available anywhere, any time on any device. They give us both an extra 250MB if you do sign up!

Sign up for Dropbox

Apple? I'd rather eat my own kidneys!

#16
simonta

simonta

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,298 posts
  • Gender:Male
  • Location:Southampton
  • Devices:Vega. HTC Desire

Nice one Simon but it's too big to fit on my already full home screen. Is there a way I can shrink it or will you have to re-issue it ? :unsure:


I'll have to redo the images. Think what I'll do is add a second version of the widget with smaller images so you can choose a large or small option when installing.

Cheers

  • 0
If I've helped you, you want to say "thanks" and you do not use Dropbox (it's enormously useful, especially with mobile devices), please consider signing up for it using my reference. You'll get 2GB of disk space for files available anywhere, any time on any device. They give us both an extra 250MB if you do sign up!

Sign up for Dropbox

Apple? I'd rather eat my own kidneys!

#17
simonta

simonta

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,298 posts
  • Gender:Male
  • Location:Southampton
  • Devices:Vega. HTC Desire
Wow, you lot are active!

32 seconds between updating with v1.1 and the first download....

  • 0
If I've helped you, you want to say "thanks" and you do not use Dropbox (it's enormously useful, especially with mobile devices), please consider signing up for it using my reference. You'll get 2GB of disk space for files available anywhere, any time on any device. They give us both an extra 250MB if you do sign up!

Sign up for Dropbox

Apple? I'd rather eat my own kidneys!

#18
MaxiP

MaxiP

    Enthusiast

  • Members
  • PipPipPip
  • 270 posts
  • Gender:Male
  • Devices:Motorola Atrix; Vega VC

Wow, you lot are active!

32 seconds between updating with v1.1 and the first download....


When you get goodies like this, no point in hanging about !!

Thanks again.

  • 0
Current device;
Motorola Atrix - rooted & ROMd
Adent Vega - VegaComb v3.2 build 9n
On order;

DropBox referral link

Share files between your PC/Tablet/phone/ipod
2GB free when you sign up but Click on my link
to get an extra free 250mb ;) for the both of us

#19
simonta

simonta

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,298 posts
  • Gender:Male
  • Location:Southampton
  • Devices:Vega. HTC Desire

Nice one Simon but it's too big to fit on my already full home screen. Is there a way I can shrink it or will you have to re-issue it ? :unsure:


Okey dokey, v1.2 is in the post with the attachment. It adds a small version of the widget - let me know if it's small enough.

Cheers

Edited by simonta, 05 January 2011 - 07:51 PM.

  • 0
If I've helped you, you want to say "thanks" and you do not use Dropbox (it's enormously useful, especially with mobile devices), please consider signing up for it using my reference. You'll get 2GB of disk space for files available anywhere, any time on any device. They give us both an extra 250MB if you do sign up!

Sign up for Dropbox

Apple? I'd rather eat my own kidneys!

#20
ptbw

ptbw

    Regular

  • MoDaCo Silver
  • PipPip
  • 135 posts
  • Gender:Male
  • Location:Suffolk, UK
  • Devices:Nexus 4 & Nexus 7 (2013)

Okey dokey, v1.2 is in the post with the attachment. It adds a small version of the widget - let me know if it's small enough.

Cheers


That is very cool and I like the graphics!!

  • 0

Official Field Guide of the Paranormal Database
smallbanner.png

Still playing with:

Nexus 4
Nexus 7 (2103)

 

 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users