Re: [QtMoko] How to install tangoGPS?

2010-04-16 Thread Radek Polak
On Thursday 15 April 2010 20:24:17 Margo wrote:

 And if I want to use tangogps I click Turn on GPS in Devtools menu.
 The  /opt/qtmoko/bin/gps-poweron.sh script is not executed
 automatically when I run tangogps. Should it be?

No in QX the script is not used - it directly opens the file an writes 1 to it 
if you enable the checkbox for GPS. But the path is there wrong there too most 
likely. I'll make sure for next release that the paths are ok.

Regards

Radek

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


Re: [QtMoko] How to install tangoGPS?

2010-04-15 Thread Margo
On 15 April 2010 07:24, Risto H. Kurppa ri...@kurppa.fi wrote:
 Margo, could you document the whole process, what did you install,
 what did you changed to make tangogps runsee gps, in
 http://qtmoko.org/wiki/Manual for others to find, too?

 Thanks!

 r


Right now I've done this:
# apt-get install libexif12 libcurl3-gnutls libgconf2-4 gpsd
# sed -i 's/DEVICES=/DEVICES=\/dev\/ttySAC1/' /etc/default/gpsd
# sed -i 's/START_DAEMON=false/START_DAEMON=true/' /etc/default/gpsd
# wget http://www.tangogps.org/downloads/tangogps_0.99.2-1_armel.deb-Openmoko
-O tangogps_0.99.2-1_armel.deb
# dpkg -i tangogps_0.99.2-1_armel.deb
# reboot

Then I changed the paths in /opt/qtmoko/bin/gps-poweron.sh and
/opt/qtmoko/bin/gps-poweroff.sh to
/sys/devices/platform/s3c2440-i2c/i2c-0/0-0073/pcf50633-regltr.7/regulator/regulator.7/gta02-pm-gps.0-RF_3V/power_on

I'm using v20. I think the paths are different in v21.

And if I want to use tangogps I click Turn on GPS in Devtools menu.
The  /opt/qtmoko/bin/gps-poweron.sh script is not executed
automatically when I run tangogps. Should it be?

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


Re: [QtMoko] How to install tangoGPS?

2010-04-14 Thread Margo
On 14 April 2010 01:12, Marcus Bauer marcus.ba...@gmail.com wrote:
 Does a simple:
  cat /dev/ttySAC1
 show NMEA output?

 If no, is your gps powered up?

 If yes, what are the contents of /etc/default/gpsd ?


cat /dev/ttySAC1 show nothing. Yes, it seems gps is not powered up if
I start tangoGPS. If I do echo 1 
/sys/devices/platform/s3c2440-i2c/i2c-0/0-0073/pcf50633-regltr.7/regulator/regulator.7/gta02-pm-gps.0-RF_3V/power_on
then  cat /dev/ttySAC1 shows:
$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

etc.

I'll try if it works with tangoGPS if I go outside.

But why it doesn't power up automatically?
http://wiki.openmoko.org/wiki/TangoGPS says echo 1
/sys/devices/platform/s3c2440-i2c/i2c-adapter/i2c-0/0-0073/neo1973-pm-gps.0/pwron
should power up the gps, but for me it is
/sys/devices/platform/s3c2440-i2c/i2c-0/0-0073/pcf50633-regltr.7/regulator/regulator.7/gta02-pm-gps.0-RF_3V/power_on.
Could that be a problem?

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


Re: [QtMoko] How to install tangoGPS?

2010-04-14 Thread Radek Polak
On Wednesday 14 April 2010 09:53:51 Margo wrote:

 But why it doesn't power up automatically?
 http://wiki.openmoko.org/wiki/TangoGPS says echo 1
 
 /sys/devices/platform/s3c2440-i2c/i2c-adapter/i2c-0/0-0073/neo1973-pm-gps.
 0/pwron
 
 should power up the gps, but for me it is
 /sys/devices/platform/s3c2440-i2c/i2c-0/0-0073/pcf50633-regltr.7/regulator/
 regulator.7/gta02-pm-gps.0-RF_3V/power_on. Could that be a problem?

The sysfs paths sometimes change with kernel versions. There are two scripts 
in qtmoko which should have the correct  paths:

/opt/qtmoko/bin/gps-poweron.sh
/opt/qtmoko/bin/gps-poweroff.sh

Qtopia GPS api uses them to power on/off gps. I wonder if i could do something 
to make gpsd working out of the box too.

Regards

Radek

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


Re: [QtMoko] How to install tangoGPS?

2010-04-14 Thread Timo Juhani Lindfors
Radek Polak pson...@seznam.cz writes:
 The sysfs paths sometimes change with kernel versions. There are two scripts 
 in qtmoko which should have the correct  paths:

 /opt/qtmoko/bin/gps-poweron.sh
 /opt/qtmoko/bin/gps-poweroff.sh

Would qtmoko be interested in using omhacks for this? It is already in
debian squeeze and allows you to just do

om gps power 1

or

om gps power 0

It supports multiple kernel paths and autodetects them.



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


Re: [QtMoko] How to install tangoGPS?

2010-04-14 Thread Radek Polak
On Wednesday 14 April 2010 11:03:23 Timo Juhani Lindfors wrote:

 Would qtmoko be interested in using omhacks for this? It is already in
 debian squeeze and allows you to just do

Yes that could be good solution. QtMoko still uses debian stable but i guess 
it's not that big problem. Btw is there a homepage and git for this project 
somewhere?

Regards

Radek

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


Re: [QtMoko] How to install tangoGPS?

2010-04-14 Thread Margo
On 14 April 2010 10:53, Margo keegiv...@gmail.com wrote:
 cat /dev/ttySAC1 show nothing. Yes, it seems gps is not powered up if
 I start tangoGPS. If I do echo 1 
 /sys/devices/platform/s3c2440-i2c/i2c-0/0-0073/pcf50633-regltr.7/regulator/regulator.7/gta02-pm-gps.0-RF_3V/power_on
 then  cat /dev/ttySAC1 shows:
 $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

 etc.

 I'll try if it works with tangoGPS if I go outside.


Yes, tangoGPS works now.


On 14 April 2010 11:50, Radek Polak pson...@seznam.cz wrote:
 The sysfs paths sometimes change with kernel versions. There are two scripts
 in qtmoko which should have the correct  paths:

 /opt/qtmoko/bin/gps-poweron.sh
 /opt/qtmoko/bin/gps-poweroff.sh


The path in /opt/qtmoko/bin/gps-poweron.sh is
/sys/devices/platform/gta02-pm-gps.0/power_on

This file does exist and is 0. If I manually echo 1 it, and then cat
it, it is still 0. Something automatically changes it back to 0.

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


Re: [QtMoko] How to install tangoGPS?

2010-04-14 Thread Timo Juhani Lindfors
Margo keegiv...@gmail.com writes:
 The path in /opt/qtmoko/bin/gps-poweron.sh is
 /sys/devices/platform/gta02-pm-gps.0/power_on

 This file does exist and is 0. If I manually echo 1 it, and then cat
 it, it is still 0. Something automatically changes it back to 0.


How about

echo 0  /sys/devices/platform/gta02-pm-gps.0/power_on
echo 1  /sys/devices/platform/gta02-pm-gps.0/power_on
cat /sys/devices/platform/gta02-pm-gps.0/power_on

which is what omhacks does iirc?

-Timo

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


Re: [QtMoko] How to install tangoGPS?

2010-04-14 Thread Margo
On 14 April 2010 23:21, Timo Juhani Lindfors timo.lindf...@iki.fi wrote:
 How about

 echo 0  /sys/devices/platform/gta02-pm-gps.0/power_on
 echo 1  /sys/devices/platform/gta02-pm-gps.0/power_on
 cat /sys/devices/platform/gta02-pm-gps.0/power_on

 which is what omhacks does iirc?

 -Timo


Yes, this way it works. I added the line echo 0 
/sys/devices/platform/gta02-pm-gps.0/power_on to
/opt/qtmoko/bin/gps-poweron.sh before the echo 1 line. But it still
doesn't power on automatically when I start tangoGPS.

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


Re: [QtMoko] How to install tangoGPS?

2010-04-14 Thread Risto H. Kurppa
On Wed, Apr 14, 2010 at 11:45 PM, Margo keegiv...@gmail.com wrote:
 On 14 April 2010 23:21, Timo Juhani Lindfors timo.lindf...@iki.fi wrote:
 How about

 echo 0  /sys/devices/platform/gta02-pm-gps.0/power_on
 echo 1  /sys/devices/platform/gta02-pm-gps.0/power_on
 cat /sys/devices/platform/gta02-pm-gps.0/power_on

 which is what omhacks does iirc?

 -Timo


 Yes, this way it works. I added the line echo 0 
 /sys/devices/platform/gta02-pm-gps.0/power_on to
 /opt/qtmoko/bin/gps-poweron.sh before the echo 1 line. But it still
 doesn't power on automatically when I start tangoGPS.

Margo, could you document the whole process, what did you install,
what did you changed to make tangogps runsee gps, in
http://qtmoko.org/wiki/Manual for others to find, too?

Thanks!

r

-- 
| risto h. kurppa
| risto at kurppa dot fi
| http://risto.kurppa.fi

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


[QtMoko] How to install tangoGPS?

2010-04-13 Thread Margo
Hi,

How should I install tangoGPS on qtmoko? I did:

# apt-get install libexif12 libcurl3-gnutls libgconf2-4 gpsd
# sed -i 's/DEVICES=/DEVICES=\/dev\/ttySAC1/' /etc/default/gpsd
# sed -i 's/START_DAEMON=false/START_DAEMON=true/' /etc/default/gpsd
# wget http://www.tangogps.org/downloads/tangogps_0.99.2-1_armel.deb-Openmoko
-O tangogps_0.99.2-1_armel.deb
# dpkg -i tangogps_0.99.2-1_armel.deb
# reboot

But tangoGPS can't get the fix. Did I miss something? Do I have to
change something in tangoGPS settings? I'm using v20. I had the same
problem with v18. Previously I was using the ghislain's installer
images. These had tangoGPS installed by default and it was working
fine there.

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


Re: [QtMoko] How to install tangoGPS?

2010-04-13 Thread Marcus Bauer
On Tue, 13 Apr 2010 23:20:22 +0300
Margo keegiv...@gmail.com wrote:

 Hi,
 
 How should I install tangoGPS on qtmoko? I did:
 
 # apt-get install libexif12 libcurl3-gnutls libgconf2-4 gpsd
 # sed -i 's/DEVICES=/DEVICES=\/dev\/ttySAC1/' /etc/default/gpsd
 # sed -i
 's/START_DAEMON=false/START_DAEMON=true/' /etc/default/gpsd #
 wget
 http://www.tangogps.org/downloads/tangogps_0.99.2-1_armel.deb-Openmoko
 -O tangogps_0.99.2-1_armel.deb # dpkg -i tangogps_0.99.2-1_armel.deb
 # reboot
 
 But tangoGPS can't get the fix. Did I miss something? Do I have to
 change something in tangoGPS settings? I'm using v20. I had the same
 problem with v18. Previously I was using the ghislain's installer
 images. These had tangoGPS installed by default and it was working
 fine there.

Hi Margo,

which version is your gpsd? (gpsd -V) From 2.92 onward the API changed
and the next version of tangoGPS will handle this. In general you can
simply downgrade gpsd to = 2.90 without loosing anything.

Marcus



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


Re: [QtMoko] How to install tangoGPS?

2010-04-13 Thread Margo

 Hi Margo,

 which version is your gpsd? (gpsd -V) From 2.92 onward the API changed
 and the next version of tangoGPS will handle this. In general you can
 simply downgrade gpsd to = 2.90 without loosing anything.

 Marcus



It's 2.37

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


Re: [QtMoko] How to install tangoGPS?

2010-04-13 Thread Marcus Bauer
On Wed, 14 Apr 2010 00:27:54 +0300
Margo keegiv...@gmail.com wrote:

 
  Hi Margo,
 
  which version is your gpsd? (gpsd -V) From 2.92 onward the API
  changed and the next version of tangoGPS will handle this. In
  general you can simply downgrade gpsd to = 2.90 without loosing
  anything.
 
  Marcus
 
 
 
 It's 2.37

Can you telnet or nc to localhost port 2947, i.e. either:

  telnet localhost 2947
or
  nc localhost 2947

and if this succeeds, type 'r' followed by enter. You should see
somthing like this:

~$ telnet localhost 2947
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
r
GPSD,R=1
$GPRMC,132008.000,A,4340.8841,N,00713.9172,E,3.60,221.79,271109,,,D*6B
$GPRMC,132009.000,A,4340.8829,N,00713.9156,E,7.42,221.99,271109,,,D*68
.
.
.

Marcus





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


Re: [QtMoko] How to install tangoGPS?

2010-04-13 Thread Margo

 Can you telnet or nc to localhost port 2947, i.e. either:

  telnet localhost 2947
 or
  nc localhost 2947

 and if this succeeds, type 'r' followed by enter. You should see
 somthing like this:

 ~$ telnet localhost 2947
 Trying ::1...
 Trying 127.0.0.1...
 Connected to localhost.
 Escape character is '^]'.
 r
 GPSD,R=1
 $GPRMC,132008.000,A,4340.8841,N,00713.9172,E,3.60,221.79,271109,,,D*6B
 $GPRMC,132009.000,A,4340.8829,N,00713.9156,E,7.42,221.99,271109,,,D*68
 .
 .
 .

It only says:
GPSD,R=1



 If you have internet connection on your QtMoko, you can try the
 following too: in the config put in 88.191.100.245 as IP for the GPSD
 and hit the change button. You should get GPS data for the south of
 France.

Yes, that shows me that i'm in France.

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


Re: [QtMoko] How to install tangoGPS?

2010-04-13 Thread Marcus Bauer
On Wed, 14 Apr 2010 00:54:57 +0300
Margo keegiv...@gmail.com wrote:

 
  Can you telnet or nc to localhost port 2947, i.e. either:
 
   telnet localhost 2947
  or
   nc localhost 2947
 
  and if this succeeds, type 'r' followed by enter. You should see
  somthing like this:
 
  ~$ telnet localhost 2947
  Trying ::1...
  Trying 127.0.0.1...
  Connected to localhost.
  Escape character is '^]'.
  r
  GPSD,R=1
  $GPRMC,132008.000,A,4340.8841,N,00713.9172,E,3.60,221.79,271109,,,D*6B
  $GPRMC,132009.000,A,4340.8829,N,00713.9156,E,7.42,221.99,271109,,,D*68
  .
  .
  .
 
 It only says:
 GPSD,R=1

Does a simple:
  cat /dev/ttySAC1
show NMEA output?

If no, is your gps powered up?

If yes, what are the contents of /etc/default/gpsd ? 





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