Power dongle
Tobias Diedrich
ranma+openmoko at tdiedrich.de
Mon Jun 8 12:22:08 CEST 2009
arne anka wrote:
> > Yeah, I'd kinda prefer one that's nigh unto infinitesimal and only lasts
> > a
> > few seconds, but I'll search for emergency phone chargers.
>
> afair, gsm still depends on battery and goes down the moment the battery
> is down (or wawy, in your case) -- and after hotswapping it seems not
> always to come back, according to a few reports.
> but it would be a nice addtion to the gta03-core design to include some
> kind of emergency battery for that very purpose.
Shouldn't it be possible to reboot the GSM modem?
As described on the flashing page:
Power off the modem:
root at om-gta02:~# echo 0 >/sys/bus/platform/devices/neo1973-pm-gsm.0/power_on
root at om-gta02:~# echo 1 >/sys/bus/platform/devices/neo1973-pm-gsm.0/power_on
root at om-gta02:~# s3c24xx-gpio b7=0
root at om-gta02:~# stty 0:4:18b2:8a00:0:0:7f:15:4:0:0:0:0:0:0:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 -F /dev/ttySAC0
root at om-gta02:~# stty 0:4:18b2:8a00:0:0:7f:15:4:0:0:0:0:0:0:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 -F /dev/ttySAC0
root at om-gta02:~# echo -en "AT at POFF\r" >/dev/ttySAC0; sleep 1; echo -en "AT at POFF\r" >/dev/ttySAC0
Then power it on again:
root at om-gta02:~# s3c24xx-gpio b7=1
The framework should be able to detect a battery hotswap and just
force a modem reboot IMHO.
Even better maybe to say 'I want to swap the battery' and power off
the modem before removing the battery.
--
Tobias PGP: http://9ac7e0bc.uguu.de
More information about the community
mailing list