2008年7月22日 星期二

OpenMoko GPS + SD issue

Re: GPS rework: Please test and report on software fix priorto attempting any hardware fix
cat /dev/ttySAC1 | grep GPGGA

#!/bin/sh
PASSES=10
TTFF=""

get_ttf() {
echo "1" > /sys/bus/platform/devices/neo1973-pm-gps.0/pwron
TTFF=`(time grep "GPRMC,[0-9\.]*,A," -m 1 /dev/ttySAC1) 2>&1 |grep real`
echo "0" > /sys/bus/platform/devices/neo1973-pm-gps.0/pwron
echo $DRIVESTRENGTH $IDLECLK $TTFF
sleep 20
}

echo d i time
until [ $PASSES -eq 0 ]
do
for DRIVESTRENGTH in 0 1 2 3
do
for IDLECLK in 0 1
do
#echo testing drive strength $DRIVESTRENGTH and clock idle $IDLECLK
echo $DRIVESTRENGTH > /sys/module/glamo_mci/parameters/sd_drive
echo $IDLECLK > /sys/module/glamo_mci/parameters/sd_idleclk
touch /media/card/gpstest
sync
get_ttf
done
done
PASSES=$(($PASSES-1))
done



The Openmoko Freerunner have a long TTFF with the SD card in the phone. So it takes a long time (10min+) before you get your first GPS data

Solution:
SW/:The software just disables the SD card when the GPS tries to get it's first fix
SW/Andy: crank up the voltage a bit for the GPS unit
HW/Openmoko: http://wiki.openmoko.org/wiki/Main_Pagewiki/Image:Gta02_gps_10pf_rework_sop.pdf


Mailing List threads
Reason for GPS problems found!
GTA02 GPS rework for SD card interference issue
Reason for GPS problems found! / more patches
GPS problems, summary

http://wiki.openmoko.org/wiki/GTA02_GPS_Problems
GPS Problems


http://wiki.openmoko.org/wiki/FreeRunner_GPS_Software_Fix_TTFF_Measurement_Test
FreeRunner GPS Software Fix TTFF Measurement Test

沒有留言: