Re: 3G USB Dongle (was Re: Neo as cellular modem?)

2008-05-29 Thread Andy Green

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Somebody in the thread at some point said:

| YEP. but from this sniplet I don't understand whether it also will enter
| LOGICAL hostmode like with a short to GND on ID-pin.
|
| That's the crux, do *both*

No, nothing is watching ID level right now.  You have to do it by hand
until we implement something.  But there are no mini USB OTG Host or Y
cables shipped either :-/

echo 1 > /sys/devices/platform/neo1973-pm-host.0/hostmode ; echo host >
/sys/devices/platform/s3c2410-ohci/usb_mode

to get into host mode and this:

echo 0 > /sys/devices/platform/neo1973-pm-host.0/hostmode ; echo device
| /sys/devices/platform/s3c2410-ohci/usb_mode

to get back to device.

- -Andy

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkg+UdkACgkQOjLpvpq7dMpCGQCgh9doLt06m5qfWYOXqeCEgz0o
s0EAnRpoYeFOYwgfVY6ln8GL4roY+yAK
=C8SV
-END PGP SIGNATURE-

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


Re: USB power direction in host mode (was: Re: 3G USB Dongle (was Re: Neo as cellular modem?))

2008-05-28 Thread Federico Lorenzi
On Thu, May 29, 2008 at 4:18 AM, Joerg Reisenweber <[EMAIL PROTECTED]> wrote:
> Am Do  29. Mai 2008 schrieb Michael Shiloh:
>>
>> Andy Green wrote:
>> > -BEGIN PGP SIGNED MESSAGE-
>> > Hash: SHA1
>> >
>> > Somebody in the thread at some point said:
>> > | Am Mi  28. Mai 2008 schrieb Brad Midgley:
>> > |> Joerg
>> > |>
>> > |> On Wed, May 28, 2008 at 2:30 AM, Joerg Reisenweber <[EMAIL PROTECTED]>
>> > | wrote:
>> > |>> Am Mi  28. Mai 2008 schrieb Brad Midgley:
>> > |>>> i think it may still be up in the air
>> > |>> Nope it's not, see Y-cable in wiki. Should work perfectly. You just
>> > have
>> > | to
>> > |>> find the 5pin-mini-USB-plug to DIY one.
>> > |> is EN_USBHOST is deasserted by the system automatically now? I'll
>> > |> update the section in
>> > |> http://wiki.openmoko.org/wiki/Neo_FreeRunner_GTA02_Hardware if it is.
>> > |
>> > | No idea, it's a driver issue. On detection of 47k device is switching to
>> > | fastcharge, which I think is actually working. Also it should activate
>> > | LOGICAL hostmode for USB-controller same time (NOT asserting
>> > EN_USBHOST!),
>> > | which is needed for Y-Cable and doesn't hurt charger. I don't have the
>> > | slightest idea whether this already is in kernel or not.
>> >
>> > It is deasserted if it sees you have a 1A charger in there, has been for
>> > a while.
>>
>> A related question: I presume that it is the electrical signal
>> EN_USBHOST which flips the switch which causes the USB port to source
>> current in host mode, as opposed to sinking current in device mode.
>>
>> This is of course what is expected of a USB host, but it also prevents
>> us from charging the Freerunner when the USB port is in host mode, if an
>> appropriate power source is available.
>>
>> Question:
>> Is it possible to charge the Neo Freerunner when using the USB port in
>> host mode, by ascerting LOGICAL hostmode and by NOT asserting EN_USBHOST?
>
> that's exactly how Y-cable_V1 *) works (besides replacing the needed 15k?
> pulldown-Rs also switched away by deasserting EN_USBHOST)
> The combination LOGICAL hostmode + NO chargepump is exactly what the
> kernel-driver should initiate when seeing 47k
>
>
> *) There's the spec for V2 already, that's capable of working with USB2.0-OTG
> (supported by GTA03, though USB2.0 will be there with GTA04 at the earliest)
> See "Y-Cable revisited" somewhere on the lists - even more simple ;-)
I sense a leak of details :) What is the GTA03 that you speak of... I
know GTA04 is the next revision being discussed on the mailing lists,
but I thought GTA03 was skipped?

Cheers,
Federico

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


Re: USB power direction in host mode (was: Re: 3G USB Dongle (was Re: Neo as cellular modem?))

2008-05-28 Thread Joerg Reisenweber
Am Do  29. Mai 2008 schrieb Michael Shiloh:
> 
> Andy Green wrote:
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> > 
> > Somebody in the thread at some point said:
> > | Am Mi  28. Mai 2008 schrieb Brad Midgley:
> > |> Joerg
> > |>
> > |> On Wed, May 28, 2008 at 2:30 AM, Joerg Reisenweber <[EMAIL PROTECTED]>
> > | wrote:
> > |>> Am Mi  28. Mai 2008 schrieb Brad Midgley:
> > |>>> i think it may still be up in the air
> > |>> Nope it's not, see Y-cable in wiki. Should work perfectly. You just
> > have
> > | to
> > |>> find the 5pin-mini-USB-plug to DIY one.
> > |> is EN_USBHOST is deasserted by the system automatically now? I'll
> > |> update the section in
> > |> http://wiki.openmoko.org/wiki/Neo_FreeRunner_GTA02_Hardware if it is.
> > |
> > | No idea, it's a driver issue. On detection of 47k device is switching to
> > | fastcharge, which I think is actually working. Also it should activate
> > | LOGICAL hostmode for USB-controller same time (NOT asserting
> > EN_USBHOST!),
> > | which is needed for Y-Cable and doesn't hurt charger. I don't have the
> > | slightest idea whether this already is in kernel or not.
> > 
> > It is deasserted if it sees you have a 1A charger in there, has been for
> > a while.
> 
> A related question: I presume that it is the electrical signal 
> EN_USBHOST which flips the switch which causes the USB port to source 
> current in host mode, as opposed to sinking current in device mode.
> 
> This is of course what is expected of a USB host, but it also prevents 
> us from charging the Freerunner when the USB port is in host mode, if an 
> appropriate power source is available.
> 
> Question:
> Is it possible to charge the Neo Freerunner when using the USB port in 
> host mode, by ascerting LOGICAL hostmode and by NOT asserting EN_USBHOST?
 
that's exactly how Y-cable_V1 *) works (besides replacing the needed 15k? 
pulldown-Rs also switched away by deasserting EN_USBHOST)
The combination LOGICAL hostmode + NO chargepump is exactly what the 
kernel-driver should initiate when seeing 47k


*) There's the spec for V2 already, that's capable of working with USB2.0-OTG 
(supported by GTA03, though USB2.0 will be there with GTA04 at the earliest)
See "Y-Cable revisited" somewhere on the lists - even more simple ;-)

/j


signature.asc
Description: This is a digitally signed message part.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: 3G USB Dongle (was Re: Neo as cellular modem?)

2008-05-28 Thread Joerg Reisenweber
Am Mi  28. Mai 2008 schrieb Andy Green:
> Somebody in the thread at some point said:
> | Am Mi  28. Mai 2008 schrieb Brad Midgley:
> |> Joerg
> |>
> |> On Wed, May 28, 2008 at 2:30 AM, Joerg Reisenweber <[EMAIL PROTECTED]>
> | wrote:
> |>> Am Mi  28. Mai 2008 schrieb Brad Midgley:
> |>>> i think it may still be up in the air
> |>> Nope it's not, see Y-cable in wiki. Should work perfectly. You just
> have
> | to
> |>> find the 5pin-mini-USB-plug to DIY one.
> |> is EN_USBHOST is deasserted by the system automatically now? I'll
> |> update the section in
> |> http://wiki.openmoko.org/wiki/Neo_FreeRunner_GTA02_Hardware if it is.
> |
> | No idea, it's a driver issue. On detection of 47k device is switching to
> | fastcharge, which I think is actually working. Also it should activate
> | LOGICAL hostmode for USB-controller same time (NOT asserting
> EN_USBHOST!),
> | which is needed for Y-Cable and doesn't hurt charger. I don't have the
> | slightest idea whether this already is in kernel or not.
> 
> It is deasserted if it sees you have a 1A charger in there, has been for
> a while.
> 
>   case CHARGER_TYPE_1A:
>   pcf50633_usb_curlim_set(pcf, 1000);
>   /*
>* stop GPO / EN_HOSTUSB power driving out on the same
>* USB power pins we have a 1A charger on right now!
>*/
>   dev_info(&pcf->client.dev, "Charger -> CHARGER_TYPE_1A\n");
>   __reg_write(pcf, PCF50633_GPO - PCF50633_GPIO1 +
>PCF50633_REG_GPIO1CFG,
>__reg_read(pcf, PCF50633_GPO - PCF50633_GPIO1 +
>PCF50633_REG_GPIO1CFG) & 0xf0);
>   break;
> 

YEP. but from this sniplet I don't understand whether it also will enter 
LOGICAL hostmode like with a short to GND on ID-pin.

That's the crux, do *both*

/j


signature.asc
Description: This is a digitally signed message part.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: USB power direction in host mode (was: Re: 3G USB Dongle (was Re: Neo as cellular modem?))

2008-05-28 Thread Brad Midgley
Michael

> Question:
> Is it possible to charge the Neo Freerunner when using the USB port in host
> mode, by ascerting LOGICAL hostmode and by NOT asserting EN_USBHOST?

It's not just related, it goes to the core of the issue. :)

Joerg assured us that we can do this. When the 47k resistor is
present, EN_USBHOST will be disabled so power will be coming in from
the outside on usb +5 to charge the battery and power the usb client,
and neo's usb will be in host mode.

-- 
Brad

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


USB power direction in host mode (was: Re: 3G USB Dongle (was Re: Neo as cellular modem?))

2008-05-28 Thread Michael Shiloh



Andy Green wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Somebody in the thread at some point said:
| Am Mi  28. Mai 2008 schrieb Brad Midgley:
|> Joerg
|>
|> On Wed, May 28, 2008 at 2:30 AM, Joerg Reisenweber <[EMAIL PROTECTED]>
| wrote:
|>> Am Mi  28. Mai 2008 schrieb Brad Midgley:
|>>> i think it may still be up in the air
|>> Nope it's not, see Y-cable in wiki. Should work perfectly. You just
have
| to
|>> find the 5pin-mini-USB-plug to DIY one.
|> is EN_USBHOST is deasserted by the system automatically now? I'll
|> update the section in
|> http://wiki.openmoko.org/wiki/Neo_FreeRunner_GTA02_Hardware if it is.
|
| No idea, it's a driver issue. On detection of 47k device is switching to
| fastcharge, which I think is actually working. Also it should activate
| LOGICAL hostmode for USB-controller same time (NOT asserting
EN_USBHOST!),
| which is needed for Y-Cable and doesn't hurt charger. I don't have the
| slightest idea whether this already is in kernel or not.

It is deasserted if it sees you have a 1A charger in there, has been for
a while.


A related question: I presume that it is the electrical signal 
EN_USBHOST which flips the switch which causes the USB port to source 
current in host mode, as opposed to sinking current in device mode.


This is of course what is expected of a USB host, but it also prevents 
us from charging the Freerunner when the USB port is in host mode, if an 
appropriate power source is available.


Question:
Is it possible to charge the Neo Freerunner when using the USB port in 
host mode, by ascerting LOGICAL hostmode and by NOT asserting EN_USBHOST?



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


Re: 3G USB Dongle (was Re: Neo as cellular modem?)

2008-05-28 Thread Andy Green

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Somebody in the thread at some point said:
| Am Mi  28. Mai 2008 schrieb Brad Midgley:
|> Joerg
|>
|> On Wed, May 28, 2008 at 2:30 AM, Joerg Reisenweber <[EMAIL PROTECTED]>
| wrote:
|>> Am Mi  28. Mai 2008 schrieb Brad Midgley:
|>>> i think it may still be up in the air
|>> Nope it's not, see Y-cable in wiki. Should work perfectly. You just
have
| to
|>> find the 5pin-mini-USB-plug to DIY one.
|> is EN_USBHOST is deasserted by the system automatically now? I'll
|> update the section in
|> http://wiki.openmoko.org/wiki/Neo_FreeRunner_GTA02_Hardware if it is.
|
| No idea, it's a driver issue. On detection of 47k device is switching to
| fastcharge, which I think is actually working. Also it should activate
| LOGICAL hostmode for USB-controller same time (NOT asserting
EN_USBHOST!),
| which is needed for Y-Cable and doesn't hurt charger. I don't have the
| slightest idea whether this already is in kernel or not.

It is deasserted if it sees you have a 1A charger in there, has been for
a while.

case CHARGER_TYPE_1A:
pcf50633_usb_curlim_set(pcf, 1000);
/*
 * stop GPO / EN_HOSTUSB power driving out on the same
 * USB power pins we have a 1A charger on right now!
 */
dev_info(&pcf->client.dev, "Charger -> CHARGER_TYPE_1A\n");
__reg_write(pcf, PCF50633_GPO - PCF50633_GPIO1 +
 PCF50633_REG_GPIO1CFG,
 __reg_read(pcf, PCF50633_GPO - PCF50633_GPIO1 +
 PCF50633_REG_GPIO1CFG) & 0xf0);
break;


- -Andy
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkg9qhAACgkQOjLpvpq7dMrLugCZAUZtiUVKx+eE6e3UIc84Meuc
+i0An1FP0ngYSvkCZuGOforaCnW862WN
=PLJ7
-END PGP SIGNATURE-

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


Re: 3G USB Dongle (was Re: Neo as cellular modem?)

2008-05-28 Thread Joerg Reisenweber
Am Mi  28. Mai 2008 schrieb Brad Midgley:
> Joerg
> 
> On Wed, May 28, 2008 at 2:30 AM, Joerg Reisenweber <[EMAIL PROTECTED]> 
wrote:
> > Am Mi  28. Mai 2008 schrieb Brad Midgley:
> >> i think it may still be up in the air
> 
> > Nope it's not, see Y-cable in wiki. Should work perfectly. You just have 
to
> > find the 5pin-mini-USB-plug to DIY one.
> 
> is EN_USBHOST is deasserted by the system automatically now? I'll
> update the section in
> http://wiki.openmoko.org/wiki/Neo_FreeRunner_GTA02_Hardware if it is.

No idea, it's a driver issue. On detection of 47k device is switching to 
fastcharge, which I think is actually working. Also it should activate 
LOGICAL hostmode for USB-controller same time (NOT asserting EN_USBHOST!), 
which is needed for Y-Cable and doesn't hurt charger. I don't have the 
slightest idea whether this already is in kernel or not. 

Andy?


/jOERG


signature.asc
Description: This is a digitally signed message part.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: 3G USB Dongle (was Re: Neo as cellular modem?)

2008-05-28 Thread Brad Midgley
Andy

> ~ It certainly works out OK for USB memory sticks anyway.  "Battery life
> will be impacted" it is fair to say though.

not to sound like too much of a nut... I love my portable tech gear...
but there is a battery-operated hub that might be interesting to toss
in the mix ("CP-H420MP"). I'm ordering one now to try it together with
everything.

> If we have pppd in the rootfs I will give it a spin later, since I got
> it working on my laptop using pppd and magic dialler / expect type scripts.

ppp stuff is either in the rootfs or it is just an opkg install away.
I had to add option and usbserial from the modules tarball.

-- 
Brad

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


Re: 3G USB Dongle (was Re: Neo as cellular modem?)

2008-05-28 Thread Brad Midgley
Joerg

On Wed, May 28, 2008 at 2:30 AM, Joerg Reisenweber <[EMAIL PROTECTED]> wrote:
> Am Mi  28. Mai 2008 schrieb Brad Midgley:
>> i think it may still be up in the air

> Nope it's not, see Y-cable in wiki. Should work perfectly. You just have to
> find the 5pin-mini-USB-plug to DIY one.

is EN_USBHOST is deasserted by the system automatically now? I'll
update the section in
http://wiki.openmoko.org/wiki/Neo_FreeRunner_GTA02_Hardware if it is.

-- 
Brad

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


Re: 3G USB Dongle (was Re: Neo as cellular modem?)

2008-05-28 Thread Federico Lorenzi
That must be a really power hungry one... I plan on using my 3G /
HSDPA Nokia E51 with the FreeRunner, probably over Bluetooth, but if
that is too slow, then I'll give USB a shot. It doesn't charge over
USB, so it shouldn't need too much power.

Cheers,
Federico

On Wed, May 28, 2008 at 3:46 PM, Brad Midgley <[EMAIL PROTECTED]> wrote:
> Andy
>
>> I have one of these 3G dongles, it should work from Freerunner battery
>> OK since we have a charge pump for the full 500mA it is allowed to pull.
>
> this verizon dongle comes with a Y cable of its own to plug into two
> usb host ports... ostensibly because it pulls more than 500mA.
>
> --
> Brad
>
> ___
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>

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


Re: 3G USB Dongle (was Re: Neo as cellular modem?)

2008-05-28 Thread Brad Midgley
Andy

> I have one of these 3G dongles, it should work from Freerunner battery
> OK since we have a charge pump for the full 500mA it is allowed to pull.

this verizon dongle comes with a Y cable of its own to plug into two
usb host ports... ostensibly because it pulls more than 500mA.

-- 
Brad

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


Re: 3G USB Dongle (was Re: Neo as cellular modem?)

2008-05-28 Thread Joerg Reisenweber
Am Mi  28. Mai 2008 schrieb Brad Midgley:
> i think it may still be up in the air how to run a usb device and keep
> the freerunner charging externally. this 3g adapter i'm using draws a
> lot of power, so it almost certainly won't work when only powered from
> a freerunner's battery.
Nope it's not, see Y-cable in wiki. Should work perfectly. You just have to 
find the 5pin-mini-USB-plug to DIY one. 
/jOERG


signature.asc
Description: This is a digitally signed message part.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: 3G USB Dongle (was Re: Neo as cellular modem?)

2008-05-28 Thread Andy Green

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Somebody in the thread at some point said:

|> That's a great idea Matt! Might be a drain on the battery moving packets
|> around though. Speaking of which, would anyone know if it would be
possible
|> to use a 3G USB dongle on one of these?
...
| i think it may still be up in the air how to run a usb device and keep
| the freerunner charging externally. this 3g adapter i'm using draws a
| lot of power, so it almost certainly won't work when only powered from
| a freerunner's battery.

I have one of these 3G dongles, it should work from Freerunner battery
OK since we have a charge pump for the full 500mA it is allowed to pull.
~ It certainly works out OK for USB memory sticks anyway.  "Battery life
will be impacted" it is fair to say though.

If we have pppd in the rootfs I will give it a spin later, since I got
it working on my laptop using pppd and magic dialler / expect type scripts.

- -Andy
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkg9EksACgkQOjLpvpq7dMofhACfeaY5AmcKeMrsHhBEzXIKZJHb
HvIAn2bt0DTWeUVUJb8PpfsRaRZDh9tx
=PFVp
-END PGP SIGNATURE-

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


Re: 3G USB Dongle (was Re: Neo as cellular modem?)

2008-05-28 Thread Brad Midgley
Nick

On Tue, May 27, 2008 at 7:19 PM, nickd <[EMAIL PROTECTED]> wrote:
> That's a great idea Matt! Might be a drain on the battery moving packets
> around though. Speaking of which, would anyone know if it would be possible
> to use a 3G USB dongle on one of these?

you can use a gta01 with a y-cable and power source (i modified the
hub below to provide 5v upstream to eliminate the need for a y cable).
I only had to add the modules "option" and "usbserial" to work with
the 3g adapter. it's a cdma/evdo adapter from verizon.

http://chockerblockablog.blogspot.com/2008/03/neo1973-no-wifi3gbattery-life-no.html

it's not too hard to make the neo act as a bluetooth access point to
multiple devices and also bt dun server for one more device. I haven't
set this up on the neo yet but I did do that with a gumstix.

i think it may still be up in the air how to run a usb device and keep
the freerunner charging externally. this 3g adapter i'm using draws a
lot of power, so it almost certainly won't work when only powered from
a freerunner's battery.

-- 
Brad

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


3G USB Dongle (was Re: Neo as cellular modem?)

2008-05-27 Thread nickd
That's a great idea Matt! Might be a drain on the battery moving packets 
around though. Speaking of which, would anyone know if it would be 
possible to use a 3G USB dongle on one of these? I can't see why not. I 
have a friend here in Australia who users a Three (Hutchinson) network 
USB dongle plugged into his Ubuntu box. He tells me it uses PPP to 
dialin and it's as easy as pie. Can anyone shed some light on this?


Cheers,
Nick

Matt Mets wrote:

It should be no problem.  You just have to set up your routing tables 
correctly so that the desktop knows to route its traffic to the 
device, and the device knows to forward traffic to the cellular 
connection.  It would be really handy to have an application to 
configure all of this automagically.


It might also be cool to have the Freerunner act as a wireless 
router!  Instant (slow) internet anywhere...




Hi,
I'm was sitting in my workshop with the cable modem out and the local 
wireless not working correctly and so no internet access today, 
wondering if we can expect to use the FreeRunner/Openmoko as a 
cellular modem at any point. I haven't seen much mention of this. Any 
ideas?

Thanks,
Vinc



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



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