Re: community Digest, Vol 180, Issue 6

2010-04-22 Thread Toby D. Young



Florian and Radek and others,

Thanks alot for your attentions. I started again from zero... reflashed
my neo (and then: apt-get update, apt-get install gpsd). Still no GPS;
NeronGPS is permanently stuck in waiting for a fix...

I need gpsd right? There seems to be some confusion about this...?

(1) I have modified the sysfs node pointer such that: 

neo:~# cat /opt/qtmoko/bin/gps-poweron.sh

#!/bin/sh

if [ -e /sys/bus/platform/devices/neo1973-pm-gps.0 ]; then
  echo 1
 /sys/devices/platform/s3c2440-i2c/i2c-adapter/i2c-0/0-0073/pcf50633-regltr.7/neo1973-pm-gps.0/power_on
 fi
if [ -e /sys/class/i2c-adapter/i2c-0/0-0073/neo1973-pm-gps.0/pwron ];
then echo 1
 /sys/devices/platform/s3c2440-i2c/i2c-adapter/i2c-0/0-0073/pcf50633-regltr.7/neo1973-pm-gps.0/pwron
 fi

I then ran dpkg-reconfigure gpsd to get:

neo:~# cat /etc/default/gpsd 

# Default settings for gpsd.
# Please do not edit this file directly - use `dpkg-reconfigure gpsd' to
# change the options.
START_DAEMON=true
DAEMON_OPTS=
DEVICES=/dev/ttySAC1
USBAUTO=false

from which (after switching on GPS in devtools)

neo:~# head -n 20 /dev/ttySAC1
$GPTXT,01,01,02,u-blox ag - www.u-blox.com*50

$GPTXT,01,01,02,$GPRMC,,V,,N*53

$GPVTG,N*30

$GPGGA,,0,00,99.99,,*48

$GPGSA,A,1,99.99,99.99,99.99*30

$GPGSV,1,1,00*79

$GPGLL,,V,N*64

$GPZDA,00,00*48

$GPRMC,,V,,N*53

$GPVTG,N*30

I like running cat /dev/ttySAC1 and switching on/off GPS in devtools,
and I get the expected behaviour; so I believe GPS is being switched on
and off correctly. Does that look right? Any ideas what I am missing
here?

Apart from this problem (and some weird uSD card behaviour), I am really
happy with QTMoko; thanks alot for this!

Best,
Toby

-- 
Toby D. Young

Assistant Professor Philosophy  Physics
Polish Academy of Sciences
www:   http://www.ippt.gov.pl/~tyoung
skype: stenografia


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


Re: community Digest, Vol 180, Issue 6

2010-04-21 Thread Florian Franzmann
On Wed, 21 Apr 2010 00:36:04 +0200
community-requ...@lists.openmoko.org wrote:

 Hello.
 
 I've had the neo freefrunner gta-02 a few weeks.
 After browsing through a few distributions, qtmoko became my choice. I
 think this distribution is really great! I flashed the kernel and
 rootfs with
 uImage-v21.bin
 and
 qtmoko-debian-v21.jffs2
 respectively and all seems ok, maybe better than ok   :-)
 
 Only one irksome thing that is turning me away from qtmoko...
 
 I can not for the life of me get GPS to work using NeronGPS.
 I took the following steps after flashing:
 
 (1) apt-get gpsd (this starts on booting after a little play with the
 config for gpsd).
 neo:~# /etc/init.d/gpsd restart
 Stopping GPS (Global Positioning System) daemon: gpsd.
 Starting GPS (Global Positioning System) daemon: gpsd.
 neo:~#
 
 (2) Fire up NeronGPS
 
 What happens, is that NeronGPS runs, I can download maps from OM_map,
 for example. What never hapens is getting a fix. My phone is
 permanently stuck with the message Wait for fix. Have I missed
 something obvious here?
This is a bug in v21. The sysfs node that turns on power to the gps
device has changed. It's now
/sys/devices/platform/s3c2440-i2c/i2c-adapter/i2c-0/0-0073/pcf50633-regltr.7/neo1973-pm-gps.0/power_on

If you change /opt/qtmoko/bin/gps-poweron.sh
and /opt/qtmoko/bin/gps-poweroff.sh to reflect this change it will work.

regards
Florian
 
 In short: Is there a sure-fire way of getting GPS up-and-running?
 
 Best,
   Toby

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