User talk:Kapiteined

From Openmoko

Revision as of 07:31, 21 February 2009 by Kapiteined (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a collection of scripts to obtain a GSM cellid, get the aprox loction based on the info of opencellid.org and get agps data about the aproximate location. You also can log the gsm cellid's and after the trip submit the found cells back to opencellid.org with the script parse_logs.sh

This is working on om2008.12. You need the gps-utils package, font-bitstream-100dpi, encodings, font-alias, font-util, gsm0710muxd

I use xmessage to have a rough way to create "menu's". The default fontsize is to small to my likings, so i installed some aditional fonts and set the xmessage font size in

~/.Xdefaults-`hostname` xmessage*font: -*-*-*-*-*-*-30-*-*-*-*-*-iso8859-1 xterm*font: -*-*-*-*-*-*-25-*-*-*-*-*-iso8859-1

And add a font path to the X server in the file /etc/X11/Xserver

To use the scripts, untar the tarball in /tmp and check if none of the files from the tarball is conflicting with your current files. After verifying and makeing backups if necesary, you can install it by untarring the tarball in / After all this you need to reboot the FR once to activate all the new settings.

To use it, simply click the gps icon on your desktop and in the following order: click agps -> this will try to get your location based on the current cellid and get agps data for that location click dump nmea -> this will log the gps data to a local file during your trip click log GSM -> this will log the cellid's during your trip

To obtain the cellid and still being able to make phone calls, you need the gsm0710muxd package. With the default /etc/X11/Xsession.d/89qtopia file it wasn't working for me, so i provided my file in the tarball as well.

The local clock must be synchronized to link the cellid to the location. to do this i use the gpsd as a clock source for ntpd.

add the following lines to /etc/ntp.conf:

  1. LinuxPPS: GPS + PPS (comment out either this whole section or the next one)

server 127.127.20.0 minpoll 4 prefer fudge 127.127.20.0 flag3 1 flag2 0

  1. SHM: PPS filtered mean (comment out either this whole section or the previous one)

server 127.127.28.0 minpoll 4 prefer fudge 127.127.28.0 refid PPS flag3 1

set the clock to the current time and make sure you start the ntpd.


I realize that this "manual" needs a lot of improvement. perhaps we can put it on a wiki somewhere and all help improving it?

Kind regards, Ed

Personal tools

This is a collection of scripts to obtain a GSM cellid, get the aprox loction based on the info of opencellid.org and get agps data about the aproximate location. You also can log the gsm cellid's and after the trip submit the found cells back to opencellid.org with the script parse_logs.sh

This is working on om2008.12. You need the gps-utils package, font-bitstream-100dpi, encodings, font-alias, font-util, gsm0710muxd

I use xmessage to have a rough way to create "menu's". The default fontsize is to small to my likings, so i installed some aditional fonts and set the xmessage font size in

~/.Xdefaults-`hostname` xmessage*font: -*-*-*-*-*-*-30-*-*-*-*-*-iso8859-1 xterm*font: -*-*-*-*-*-*-25-*-*-*-*-*-iso8859-1

And add a font path to the X server in the file /etc/X11/Xserver

To use the scripts, untar the tarball in /tmp and check if none of the files from the tarball is conflicting with your current files. After verifying and makeing backups if necesary, you can install it by untarring the tarball in / After all this you need to reboot the FR once to activate all the new settings.

To use it, simply click the gps icon on your desktop and in the following order: click agps -> this will try to get your location based on the current cellid and get agps data for that location click dump nmea -> this will log the gps data to a local file during your trip click log GSM -> this will log the cellid's during your trip

To obtain the cellid and still being able to make phone calls, you need the gsm0710muxd package. With the default /etc/X11/Xsession.d/89qtopia file it wasn't working for me, so i provided my file in the tarball as well.

The local clock must be synchronized to link the cellid to the location. to do this i use the gpsd as a clock source for ntpd.

add the following lines to /etc/ntp.conf:

  1. LinuxPPS: GPS + PPS (comment out either this whole section or the next one)

server 127.127.20.0 minpoll 4 prefer fudge 127.127.20.0 flag3 1 flag2 0

  1. SHM: PPS filtered mean (comment out either this whole section or the previous one)

server 127.127.28.0 minpoll 4 prefer fudge 127.127.28.0 refid PPS flag3 1

set the clock to the current time and make sure you start the ntpd.


I realize that this "manual" needs a lot of improvement. perhaps we can put it on a wiki somewhere and all help improving it?

Kind regards, Ed