User talk:Kapiteined

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(New page: 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 ...)
 
Line 1: Line 1:
 
This is a collection of scripts to obtain a GSM cellid, get the aprox loction based on the info
 
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.
 
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
 
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
 
with the script parse_logs.sh
Line 12: Line 13:
  
 
~/.Xdefaults-`hostname`
 
~/.Xdefaults-`hostname`
 +
 
xmessage*font: -*-*-*-*-*-*-30-*-*-*-*-*-iso8859-1
 
xmessage*font: -*-*-*-*-*-*-30-*-*-*-*-*-iso8859-1
 +
 
xterm*font: -*-*-*-*-*-*-25-*-*-*-*-*-iso8859-1
 
xterm*font: -*-*-*-*-*-*-25-*-*-*-*-*-iso8859-1
  
Line 19: Line 22:
 
To use the scripts, untar the tarball in /tmp and check if none of the files from
 
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.
 
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 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.
 
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:
 
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 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 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
 
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.
 
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,
 
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.
 
so i provided my file in the tarball as well.
  
 
The local clock must be synchronized to link the cellid to the location.
 
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.
 
to do this i use the gpsd as a clock source for ntpd.
  
Line 37: Line 49:
  
 
# LinuxPPS: GPS + PPS (comment out either this whole section or the next one)
 
# LinuxPPS: GPS + PPS (comment out either this whole section or the next one)
 +
 
server 127.127.20.0 minpoll 4 prefer
 
server 127.127.20.0 minpoll 4 prefer
 +
 
fudge 127.127.20.0 flag3 1 flag2 0
 
fudge 127.127.20.0 flag3 1 flag2 0
  
 
# SHM: PPS filtered mean (comment out either this whole section or the previous one)
 
# SHM: PPS filtered mean (comment out either this whole section or the previous one)
 +
 
server 127.127.28.0 minpoll 4 prefer
 
server 127.127.28.0 minpoll 4 prefer
 +
 
fudge 127.127.28.0 refid PPS flag3 1
 
fudge 127.127.28.0 refid PPS flag3 1
 +
  
 
set the clock to the current time and make sure you start the ntpd.
 
set the clock to the current time and make sure you start the ntpd.
Line 51: Line 68:
  
 
Kind regards,
 
Kind regards,
 +
 
Ed
 
Ed

Revision as of 08:32, 21 February 2009

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