USB host/power script (was Re: Fantastic Experience)

2008-09-16 Thread Joel Newkirk
On Sat, 13 Sep 2008 13:52:55 +0200, Christian Adams [EMAIL PROTECTED]
wrote:

 Am 13.09.2008 um 01:29 schrieb Joel Newkirk:

 automatically switching things around.  I wrote a shell script to
 let me
 choose (manually) among the various configurations more easily -
 when asked
 to go to 'power-providing' host mode, it checks for 5V presence on
 the USB
 port and refuses to send out 5V while it is so.  I expect similar
 functionality will appear soon in the form of an applet.  (context
 menu
 from the USB tray icon, perhaps?)
 
 i was planning such an applet .. is your script somewhere available?
 
 ciao, morlac

Very sorry, somehow I'd overlooked this post.  (and somehow I found it)
 The script as it stands is attached.  It was lost to an SD corruption (I
was keeping /usr/local mapped to the card, and keeping mapfiles and
temporary storage of things I was working on there) so I've been recreating
it.

j


ggg
Description: Binary data
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fantastic Experience

2008-09-13 Thread Christian Adams
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Am 13.09.2008 um 01:29 schrieb Joel Newkirk:
 There are also some clever things that can be done on this front that
 aren't exploited yet, like sensing a resistor's presence or absence  
 and
 automatically switching things around.  I wrote a shell script to  
 let me
 choose (manually) among the various configurations more easily -  
 when asked
 to go to 'power-providing' host mode, it checks for 5V presence on  
 the USB
 port and refuses to send out 5V while it is so.  I expect similar
 functionality will appear soon in the form of an applet.  (context  
 menu
 from the USB tray icon, perhaps?)

i was planning such an applet .. is your script somewhere available?

ciao, morlac

- -BEGIN CONTACT BLOCK-
   eMail:   [EMAIL PROTECTED]
   Jabber:  [EMAIL PROTECTED]
- --END CONTACT BLOCK--

- -BEGIN GEEK CODE BLOCK-
Version: 3.1
GCS$/IT;d-;s:;a?;C++(+++);UL;P++(+++);
L++(+++);E---;W++;N(+);o?;K?;!w;!O;!M+;!V;PS(+);PE;
Y+;PGP++;t+(++);5(+)++;X(+);R*;tv-+;b++(+++);DI++;
D++(+++);G(+)++;e;h-()++;r++;y++;
- --END GEEK CODE BLOCK--

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFIy6mXr81gVylJyzERArSuAKCuQ2Nm1TKpOC9qVEjwLR3lxisYigCfWaQV
ALSO2wTZcrZebNoWQsVZ85A=
=EBAP
-END PGP SIGNATURE-

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fantastic Experience

2008-09-12 Thread David Samblas
I believe Sean and the rest of the Openmoko crowd  was thinking in
people like you when they decide to start this awesome trip ;) 

Thanks Scott for this encorageous post :) 
El jue, 11-09-2008 a las 20:49 -0700, SCarlson escribió:
 
  Hello All --
 
  I'd like to pipe in with my New Freerunner experiences thus far.
 
  I have had my phone for 2 weeks. I loaded up OM2008.8-update.
 
 Here is the list :
 
  Solid GSM (Sending and Receiving). No Echo, clear calls, full bars.
  My SIM Card contact list imported automatically.
  SMS, Solid.
  Wifi, also works great.
  GPS works. 60 second TTFF and 40 second TTFF w/ external antenna (This is
 without the capacitor fix)
  microSd works.
  Suspend/Resume .. solid (minus the GUI setting having no effect. but I
 don't care, I just suspend manually with the power button when I'm not using
 it).
  I made a usb cable, so now my phone can receive standard USB devices.. this
 opens many doors.
  
 When I was shopping for a mobile computer/phone, I scraped the planet for
 something open and hackable. What I found was nice machines with propriety
 software that goes through a Telecom company, which is then purposely
 crippled and released for public consumption. Most of the crippling process
 is based on a Business model that nickels and dimes us to death for
 services and features that (I believe) we should already have. In the end,
 the only answer for me was to by the GTA02. 
 
 I'd like to say, that I'm here to stay, on the band wagon, lets kick some
 ass...
 
 Completely Satisfied,
 Scott R Carlson


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fantastic Experience

2008-09-12 Thread Matthias Apitz
El jue, 11-09-2008 a las 20:49 -0700, SCarlson escribió:
 
  Hello All --
 
  I'd like to pipe in with my New Freerunner experiences thus far.
 
  I have had my phone for 2 weeks. I loaded up OM2008.8-update.
 
 Here is the list :
 
  Solid GSM (Sending and Receiving). No Echo, clear calls, full bars.
  My SIM Card contact list imported automatically.
  SMS, Solid.
  Wifi, also works great.
  GPS works. 60 second TTFF and 40 second TTFF w/ external antenna (This is
 without the capacitor fix)
  microSd works.
  Suspend/Resume .. solid (minus the GUI setting having no effect. but I
 don't care, I just suspend manually with the power button when I'm not using
 it).
  I made a usb cable, so now my phone can receive standard USB devices.. this
 opens many doors.
  
 When I was shopping for a mobile computer/phone, I scraped the planet for
 something open and hackable. What I found was nice machines with propriety
 software that goes through a Telecom company, which is then purposely
 crippled and released for public consumption. Most of the crippling process
 is based on a Business model that nickels and dimes us to death for
 services and features that (I believe) we should already have. In the end,
 the only answer for me was to by the GTA02. 
 
 I'd like to say, that I'm here to stay, on the band wagon, lets kick some
 ass...
 
 Completely Satisfied,
 Scott R Carlson

Hi Scott,

Thanks for the nice comments which make me even more suffer because I
have to wait one or two weeks more until my gadget is supposed to arrive
:-)

one question to the community: normally you can't switch easy between
normal USB mode, i.e. a host is talking to a USB device, and
host-to-host mode where two computers are talking to each other; the USB
FAQ even warns not to connecting two computers without any kind of USB
bridge, because this could damage the computers; see here:
http://www.usb.org/about/faq/ans5/

how is this electrically organised in the GTA02 that I could just use a gender
changer to switch between host-to-host mode or host-to-device mode?

thx

matthias
-- 
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e [EMAIL PROTECTED] - w http://www.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
A computer is like an air conditioner, it stops working when you open Windows
Una computadora es como aire acondicionado, deja de funcionar si abres Windows

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fantastic Experience

2008-09-12 Thread Joel Newkirk
On Fri, 12 Sep 2008 14:20:13 +0200, Matthias Apitz [EMAIL PROTECTED]
wrote:

 one question to the community: normally you can't switch easy between
 normal USB mode, i.e. a host is talking to a USB device, and
 host-to-host mode where two computers are talking to each other; the USB
 FAQ even warns not to connecting two computers without any kind of USB
 bridge, because this could damage the computers; see here:
 http://www.usb.org/about/faq/ans5/
 
 how is this electrically organised in the GTA02 that I could just use a
 gender
 changer to switch between host-to-host mode or host-to-device mode?
 
 thx
 
   matthias

You cannot just use a gender changer.  As you already perceive, that's
just the physical connection being adapted.

Take a few minutes and read through http://wiki.openmoko.org/wiki/USB_host
and http://wiki.openmoko.org/wiki/Specialized_USB_cables - the gist of it
is that you use a coupler or non-standard cable for the physical
connection, and settings in the kernel (configurable on-the-fly, of course)
tell the Freerunner whether it is USB Device or USB Host, and whether to
expect 5V over the USB to charge  power itself, or to provide 5V over USB
to power devices.  

There are also some clever things that can be done on this front that
aren't exploited yet, like sensing a resistor's presence or absence and
automatically switching things around.  I wrote a shell script to let me
choose (manually) among the various configurations more easily - when asked
to go to 'power-providing' host mode, it checks for 5V presence on the USB
port and refuses to send out 5V while it is so.  I expect similar
functionality will appear soon in the form of an applet.  (context menu
from the USB tray icon, perhaps?)

As an aside:  It'd be helpful if we could use a short standard term to
differentiate: Host mode providing power vs Host mode permitting charging. 
Given the non-standard nature of Host mode communication on top of
device-mode power, I figure there's no existing standard.  powered host
mode is descriptive but potentially confusing - what is 'powered': the
Freerunner or the devices...  Any suggestions, anyone, or someone know of a
(short) existing term in use?

j



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community