OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => 5x00 Hardware => Topic started by: misterearl on August 08, 2005, 10:36:27 pm

Title: Gps Problems
Post by: misterearl on August 08, 2005, 10:36:27 pm
Just bought an Ambicom/Billionton CF GPS on ebay.  Although a few sources I found searching the web say this card works on insertion in a SL-5500, it of course doesn't work in mine.  It shows up as a CF icon on the Z, but QueGPS doesn't see it at all.  Do any of you have any tips on configuration in QueGPS that might be something to try?  Or any other ideas?  I suppose the GPS could be kaput, but I'd prefer not to entertain that thought, yet.  Thanks.


Lee
Title: Gps Problems
Post by: hvontres on August 09, 2005, 11:02:11 am
Quote
Just bought an Ambicom/Billionton CF GPS on ebay.  Although a few sources I found searching the web say this card works on insertion in a SL-5500, it of course doesn't work in mine.  It shows up as a CF icon on the Z, but QueGPS doesn't see it at all.  Do any of you have any tips on configuration in QueGPS that might be something to try?  Or any other ideas?  I suppose the GPS could be kaput, but I'd prefer not to entertain that thought, yet.  Thanks.


Lee
[div align=\"right\"][a href=\"index.php?act=findpost&pid=91167\"][{POST_SNAPBACK}][/a][/div]
Try installing zroadmap. It comes with a GPS console that will show the active satelites and their signal strength. Also, you could play with gpsd from the command line. Be aware that QpeGPS will only work with the gpsd on the QpeGPS site. For more info on gpsd, check out the gpsd website. Running gpsd with the -D4 option should show you the NMEA sentences as they arrive. Another troubleshooting tip would be to just cat /dev/ttyS3 to see if the card is spiting out any data.

I hope this gets you going....
Title: Gps Problems
Post by: dhns on August 09, 2005, 11:23:10 am
Quote
Another troubleshooting tip would be to just cat /dev/ttyS3 to see if the card is spiting out any data.
You should also try:
cardctl suspend
setserial -g /dev/ttyS3

if the latter says UART: unknown, try

setserial /dev/ttyS3 uart 16550A

finally, try

stty 4800 </dev/ttyS3
cardctl resume

-- hns
Title: Gps Problems
Post by: misterearl on August 09, 2005, 06:11:52 pm
Quote
Quote
Another troubleshooting tip would be to just cat /dev/ttyS3 to see if the card is spiting out any data.
You should also try:
cardctl suspend
setserial -g /dev/ttyS3

if the latter says UART: unknown, try

setserial /dev/ttyS3 uart 16550A

finally, try

stty 4800 </dev/ttyS3
cardctl resume

-- hns
[div align=\"right\"][a href=\"index.php?act=findpost&pid=91234\"][{POST_SNAPBACK}][/a][/div]

Thanks very much for the troubleshooting tips, but...  I am a rank amateur with PDAs in general, and the Zaurus is mostly a mystery to me.  Where, exactly, am I to enter these commands?  In the gpsd settings box in qpegps?  In terminal?  Sorry for the elementary level of my questions.

Lee
Title: Gps Problems
Post by: totaln00b on August 10, 2005, 03:52:46 am
It might be suspending itself when you insert it into the zaurus. Once you've inserted it, in terminal, type cardctl status and report back what you get there. I can't guarantee to be able to help, but hopefully someone will!

Jo
Title: Gps Problems
Post by: misterearl on August 10, 2005, 09:33:02 pm
Quote
It might be suspending itself when you insert it into the zaurus. Once you've inserted it, in terminal, type cardctl status and report back what you get there. I can't guarantee to be able to help, but hopefully someone will!

Jo
[div align=\"right\"][a href=\"index.php?act=findpost&pid=91348\"][{POST_SNAPBACK}][/a][/div]


Good call, totaln00b!  The response in terminal is:
Socket 0:
   3.3V 16-bit PC Card [suspended]
Socket 1:
   no card

So, the question obviuously is: how do I un-suspend the card?
And another question is: why is Socket 1 showing no card?  I have a 512MB SD card in the SD slot (which is functioning properly.)  Is the CF slot in fact Socket 0?

Thanks for your help.

Lee

Between posts, I used this CF GPS card's PCMCIA adapter to check its function in a laptop - flawless - so the card integrity is definitely not the problem
Title: Gps Problems
Post by: misterearl on August 10, 2005, 10:15:01 pm
I managed to get the cardctl status to show:
Socket 0:
   3.3V 16-bit PC Card
   function 0: [ready]

by using the resume command hvontres posted,

but QpeGPS will still not see the GPS.  BTW, I get a green GPSD status button, but a red GPS status button, and the message "*No GMT Signal rcvd*"

The Args: window says:  -p /dev/ttyS0 -s 4800

and     Host: local host      Port: 2947

I tried "cat /dev/ttyS3" and got a frozen cursor in Terminal.  Had to shut down and restart to get a functional prompt.

Thank goodness I have limitless patience and boundless optimism....


Lee
Title: Gps Problems
Post by: totaln00b on August 11, 2005, 03:55:14 am
It might just be that you're not giving it long enough to get going. If you are getting a green gpsd icon, then that's fine. Mine then takes about five minutes to pick satellites up and set the time once it's got to that stage. If you are in a built up area it might take longer, but it needs at least 3 satellites, I think, for it to work. So patience is the name of the game...
Title: Gps Problems
Post by: suid on August 11, 2005, 07:19:57 am
Change the Args to read "-p /dev/ttyS3 -s 4800" rather than ttyS0 and make sure you press <Enter> to save it - that should get things working.


Ian
Title: Gps Problems
Post by: misterearl on August 11, 2005, 10:35:19 am
Quote
Change the Args to read "-p /dev/ttyS3 -s 4800" rather than ttyS0 and make sure you press <Enter> to save it - that should get things working.


Ian
[div align=\"right\"][a href=\"index.php?act=findpost&pid=91466\"][{POST_SNAPBACK}][/a][/div]


That did it!  Thanks, folks, for the tutorials.  I had changed S0 to S3 but couldn't get it to "stick" - but once I hit Enter, I got a green GPS status indication immediately.  I'm indoors right now (distraction of employment) so can't check satellite acquisition, but everything looks good - thanks again.

Lee
Title: Gps Problems
Post by: misterearl on August 12, 2005, 02:31:52 pm
Not content to leave well enough alone, I uninstalled qpeGPS and the reinstalled it to my SD card - for 2 reasons.  When I installed it to the Z memory (as an attempt to get the GPS to work), it failed to show the few Expedia maps that it did when originally installed to the SD card; and I wanted to free up memory on the Z.

Now, the GPS fails to start AGAIN.  I get a green gpsd button, but a red GPS button, as before.  Cardctl status shows Ready, and the serial port is S3.

Must QpeGPS be run from the internal memory to function properly?  BTW, this is version 0.9.2.3 Pre - is there a better version for the Z?

And, any idea how I can get back the Expedia maps (Western Europe mainly) that originally appeared with this package?

Thank you all.


Lee
Title: Gps Problems
Post by: suid on August 18, 2005, 05:47:57 am
This all seems a bit strange ... have you managed to fix any of these problems yet ?

Can you provide a listing of /home/Zaurus/Settings/qpegps.conf ?

I've never run qpeGPS from SD card, but if there were no error messages when you installed it, then it it should be okay.


Quote
BTW, this is version 0.9.2.3 Pre - is there a better version for the

Just had a look at the download page and there's a newer version available - 0.0.2.3.1. See :-

http://sourceforge.net/project/showfiles.p...lease_id=162987 (http://sourceforge.net/project/showfiles.php?group_id=55933&release_id=162987)

You'll also find the package qpegps_0.9.2.3_maps_arm.ipk there, which I think is a package of the maps that you're looking for.

Ian
Title: Gps Problems
Post by: misterearl on August 21, 2005, 12:24:55 pm
Quote from: suid,Aug 18 2005, 03:47 AM
This all seems a bit strange ... have you managed to fix any of these problems yet ?

Can you provide a listing of /home/Zaurus/Settings/qpegps.conf ?

<snip>

Here it is:

[color]
bearing=#000000
heading=#000000
noFix=#000000
ok=#000000
scale=#000000
[datum]
GpsDatum=1
MapsDatum=126
[download]
proxy=
[gps]
StartupMode=0
StartupPlace=
gpsd=-p /dev/ttyS3 -s 4800
host=localhost
port=2947
[icons]
[map]
path=/opt/Qtopia/qpegps/maps/
[show]
bearing=1
heading=1
time=1
[track]
path=
/home/QtPalmtop/qpegps/tracks
track_thick=2
updt_freq=10
[units]
altitude=2
distance=2
position=1
speed=3


I've installed version 0.9.2.3.1 pre, the latest available at SourceForge.  This package is not accompanied by a maps component like most of the earlier version.  When I try to install a maps package, the Z instructs me to uninstall the existing software first.

Previous attempts to run earlier versions - except for that brief moment when the GPS and everything else worked - have resulted in a green gpsd status button, a red GPS status button, and no map (only a crosshair) when running qpegps.

As the Brits say, it's gone pear-shaped.  Thanks again for any suggestions.  I'm tempted to reflash the ROM - Sharp 3.13 BTW.


Lee
Title: Gps Problems
Post by: suid on August 22, 2005, 07:09:57 pm
Quote
When I try to install a maps package, the Z instructs me to uninstall the existing software first.

Oops, yeah, it's actually a copy of qpeGPS and the maps. For some reason, this bundling wasn't continued in later releases. You could always just extract the maps and maps.txt from an earlier release and then copy them to your maps directory (/opt/Qtopia/qpegps/maps/). By the way, is that the directory where you're expecting the maps to be?

As for failure to pick up the GPS device, I can't thing of any helpful suggestions. If it worked once when installed to SD, it should work now. You could try running "qpegps" from the command line to see if any helpful error messages are produced.

What output do you get if you type "cardctl status" after starting qpeGPS?


Ian
Title: Gps Problems
Post by: misterearl on August 22, 2005, 08:38:26 pm
Quote
Quote
When I try to install a maps package, the Z instructs me to uninstall the existing software first.

Oops, yeah, it's actually a copy of qpeGPS and the maps. For some reason, this bundling wasn't continued in later releases. You could always just extract the maps and maps.txt from an earlier release and then copy them to your maps directory (/opt/Qtopia/qpegps/maps/). By the way, is that the directory where you're expecting the maps to be?

As for failure to pick up the GPS device, I can't thing of any helpful suggestions. If it worked once when installed to SD, it should work now. You could try running "qpegps" from the command line to see if any helpful error messages are produced.


What output do you get if you type "cardctl status" after starting qpeGPS?

It displays:
Socekt 0:
   3.3V 16-bit PC Card
   function 0: [ready]


Ian
[div align=\"right\"][a href=\"index.php?act=findpost&pid=92906\"][{POST_SNAPBACK}][/a][/div]


Qpegps thinks they ought to be in /opt/Qtopia/qpegps/maps/ - I don't really know where to look.

Tried running qpegps from the Terminal prompt (with GPS CF card inserted) and I get:
card ready
stty: standard input: Input/output error
executing stty
stty: standard input: Input/output error
selection changed 0

With the GPS CF card removed, the identical messages are displayed, except the 1st is:
executing cardctl resume

Note that Qpegps starts in spite of the error messages.

Looks like there's a problem?

Thanks, Ian, for your persistence.

Lee
Title: Gps Problems
Post by: suid on August 23, 2005, 06:59:44 am
I'm pretty stuck for suggestions now. The error messages you reported are normal.

The "cardctl status" output indicates to me that the GPS card has been activated by qpeGPS.

What happens if you type "cat /dev/ttyS3" after starting qpeGPS? (Ctrl-C to quit.)

Do you see any NMEA output ($GPGSA, $GPRMC etc) ?  If so, try  the following :-

telnet localhost 2947

Press <Enter><r><Enter>   (Ctrl-C to quit)

Do you still see NMEA data ?


Ian
Title: Gps Problems
Post by: misterearl on August 23, 2005, 06:19:48 pm
Quote
I'm pretty stuck for suggestions now. The error messages you reported are normal.

The "cardctl status" output indicates to me that the GPS card has been activated by qpeGPS.

What happens if you type "cat /dev/ttyS3" after starting qpeGPS? (Ctrl-C to quit.)

Do you see any NMEA output ($GPGSA, $GPRMC etc) ?  If so, try  the following :-

telnet localhost 2947

Press <Enter><r><Enter>   (Ctrl-C to quit)

Do you still see NMEA data ?


Ian
[div align=\"right\"][a href=\"index.php?act=findpost&pid=92949\"][{POST_SNAPBACK}][/a][/div]

The response to "cat /dev/ttyS3" (with GPS inserted and QpeGPS running) is:

cat: read: Input/output error

Also, note that whether the GPS is inserted or not, I get a green GPSD status button in QpeGPS.


Lee
Title: Gps Problems
Post by: suid on August 24, 2005, 03:36:11 pm
How about bypassing qpeGPS for the minute? From the command line, type :-

$ cardctl resume
$ cat /dev/ttyS3

Anything? If not, then I suspect something is wrong with your GPS card.

If so, then try :-

$ gpsd -p /dev/ttyS3
$ telnet localhost 2947
<Enter>r<Enter>  (Ctrl-C to quit)
Title: Gps Problems
Post by: misterearl on August 25, 2005, 10:26:09 am
Quote
How about bypassing qpeGPS for the minute? From the command line, type :-

$ cardctl resume
$ cat /dev/ttyS3

Anything? If not, then I suspect something is wrong with your GPS card.

If so, then try :-

$ gpsd -p /dev/ttyS3
$ telnet localhost 2947
<Enter>r<Enter>  (Ctrl-C to quit)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=93128\"][{POST_SNAPBACK}][/a][/div]


I'm assuming I'm not to type the $ sign - it returns an error message.

So, for cardctl reume-->cat /dev/ttyS3 the reponse is: "Input/output error"

For the next set of commands, the reponse is: "GPSD ,R=1"

Is it possible that the GPS works perfectly in a laptop using a CF/PCMCIA adapter, but fails to work in the Z?

What sort of message should I be getting to the above commands?

As always, thanks.

Lee
Title: Gps Problems
Post by: suid on August 25, 2005, 02:41:52 pm
Looking back to when you ran "qpegps" from the command line earlier, it looks like there may have been a problem :-

Quote
Tried running qpegps from the Terminal prompt (with GPS CF card inserted) and I get:
card ready
stty: standard input: Input/output error
executing stty
stty: standard input: Input/output error
selection changed 0

With the GPS CF card removed, the identical messages are displayed, except the 1st is:
executing cardctl resume

I don't think you would have seen the "stty:standard input: Input/output error" message with the GPS card inserted if everything was working properly. You should be seeing something like :-

Quote
Display size = size
card ready     (or "executing cardctl resume")
port settings ok
selection changed 0


Run the following commands and what do you see (make sure the GPS card is inserted)?  :-

cardctl resume
cardctl status
ls -l /dev/ttyS3
stty < /dev/ttyS3


Quote
What sort of message should I be getting to the above commands?

You should be seeing NMEA sentences, i.e. GPS data, starting with identifiers such as $GPGSA,$GPRMC,$GPGGA. That's when you know that the Z is talking to the GPS card.


Quote
Is it possible that the GPS works perfectly in a laptop using a CF/PCMCIA adapter, but fails to work in the Z?

This would more likely indicate a problem with the Z. Is it still working fine with the laptop?

Ian
Title: Gps Problems
Post by: misterearl on August 25, 2005, 05:09:55 pm
Quote
Run the following commands and what do you see (make sure the GPS card is inserted)? :-

cardctl resume
cardctl status
ls -l /dev/ttyS3
stty < /dev/ttyS3

After cardctl status:

3.3V 16-bit PC Card
function 0: [ready]

After ls -l /dev/ttyS3:

crw-------    1 zaurus    root       4,
  67 Jul   2   2003 /dev/ttyS3 (in purple!)

After stty < /dev/ttyS3:

stty: standard input: Input/output error

Quote
This would more likely indicate a problem with the Z. Is it still working fine with the laptop?

I believe so, but I'll confirm tonight.  It has not failed to function yet on 2 laptops.

Lee
Title: Gps Problems
Post by: suid on August 25, 2005, 06:02:50 pm
I think you need to follow the advice given by dhns earlier, namely :

Quote
You should also try:
cardctl suspend
setserial -g /dev/ttyS3

if the latter says UART: unknown, try

setserial /dev/ttyS3 uart 16550A

finally, try

stty 4800 </dev/ttyS3
cardctl resume


and report back!

Ian
Title: Gps Problems
Post by: misterearl on August 26, 2005, 10:50:14 am
I attempted executing these commands with the GPS inserted, but got a "port busy" message, so the following is with no GPS, and no other software running.

Results are:

Quote
You should also try:
cardctl suspend
setserial -g /dev/ttyS3
Quote

Response was UART: unknown, Port: 0x0000, IRQ: 0

if the latter says UART: unknown, try

setserial /dev/ttyS3 uart 16550A
Quote

Response was:  Cannot set serial info: Operation not permitted

stty 4800 </dev/ttyS3
cardctl resume
Quote

Response to stty 4800 </dev/ttyS3:  stty: standard input: Input/output error

Looks like it's still being uncooperative.

I didn't have the chance to double-check the GPS with a laptop last night, hopefully will get to that tonight.


Lee
Title: Gps Problems
Post by: suid on August 26, 2005, 03:06:09 pm
You got the "port busy" message with every command that you typed in? If you only got the message with "cardctl suspend" then it doesn't matter, just carry on with the other commands.

But you do need to have the GPS card inserted.



Ian
Title: Gps Problems
Post by: cyberhobo on August 26, 2005, 04:14:09 pm
I've been watching this thread carefully, as I have the same symptoms (green gpsd, red GPS indicator on SL-5600, Hentges OZ 3.5.3 ROM, Haicom 303-MMF GPS).  I have some different diagnostics, though (note that I'm inside, and don't expect to receive any signal):
Code: [Select]
root@poodle:/# cardctl status
Socket 0:
  3.3V 16-bit PC Card
  function 0: [ready], [bat dead], [bat low] Socket 1:
  no card
root@poodle:/# ls -l /dev/ttyS3
crw-r-----    1 root     root       4,  67 Aug  5 04:27 /dev/ttyS3
root@poodle:/# stty < /dev/ttyS3
speed 115200 baud;
min = 1; time = 0;
-brkint -icrnl -imaxbel
-opost
-isig -icanon -iexten -echo
root@poodle:/# gpsd -p /dev/ttyS3
root@poodle:/# telnet localhost 2947
r
GPSD,R=1
$GPRMC,004314,V,18000.0000,N,0.0000,W,0.0000,180.000,101102,,*19
$GPGSA,A,1,,,,,,,,,,,,,0.0,50.0,0.0*05
$GPRMC,004319,V,18000.0000,N,0.0000,W,0.0000,180.000,101102,,*14
$GPGSA,A,1,,,,,,,,,,,,,0.0,50.0,0.0*05
$PGRME,406.91,0.00,0.00*75
^c
root@poodle:/# /opt/QtPalmtop/bin/qpegps &
card ready
executing stty
stty: invalid number `line'

root@poodle:/# cardctl status
Socket 0:
  3.3V 16-bit PC Card
  function 0: [ready], [bat dead], [bat low]
Socket 1:
  no card
root@poodle:/#  cat /dev/ttyS3
2E³ ¢           ºÆ°³ ¢4³ ¢


root@poodle:/#

Things that look like possible problems, but I'm not sure about:

[bat dead]: it's been charging for a long time, and charged indicator on the unit has come on.  Seems like it's working.

speed 115200 baud: is this supposed to be 4800?

telnet localhost 2947: seems like this is correct output, but I can't read it.

stty: invalid number `line': i have no idea if this is a problem.

cat /dev/ttyS3: binary stuff, not correct?  related to the speed?

One thing I noticed is that my /dev/ttyS3 has group read permissions, and Lee's doesn't.  Could that be part of his problem?

Thanks for any help!
Title: Gps Problems
Post by: suid on August 27, 2005, 12:36:33 pm
Hi cyberhobo

Your problem is different from Lee's - the fact that when you telnet to port 2947 you get valid NMEA data shows that your card is working okay and gpsd is running fine.

I think your problem is related to OZ and the copy of qpegps that you are using - see the following thread:-

https://www.oesf.org/forums/index.php?showt...qpegps+problems (https://www.oesf.org/forums/index.php?showtopic=11503&hl=qpegps+problems)

I don't know if there is a working copy of qpegps for your version of OZ but it's worth looking around.

You did provide some very interesting output that may well be the cause of all the OZ problems:-

Quote
executing stty
stty: invalid number `line'

A quick "strings" of qpegps, not the most reliable way of debugging a program admittedly, seems to indicate the following method of initialising the GPS card:-

READY=`cardctl status 0 | grep ready | wc -l`;if [ $READY -gt 0 ];then  echo "ca
rd ready";else  echo "executing cardctl resume";  cardctl resume;fi;SPEED=`stty
< /dev/ttyS3 | grep 4800 | wc -l`;if [ $SPEED -gt 0 ];then  echo "port settings
ok";else  echo "executing stty";  stty 4800 line 0 min 1 time 0 ignbrk -brkint -
icrnl -imaxbel -opost    -onlcr onlret -isig -icanon -iexten -echo -echoe -echok
 -echoctl    -echoke < /dev/ttyS3;fi

It looks to me like you have a version of "stty" that works differently from the Sharp one, ie it doesn't like the "line" argument and is therefore failing to run. This may have been fixed with a newer OZ release of qpeGPS, or, this probably won't work, you could try using "stty" from a Sharp release.

Quote
cat /dev/ttyS3: binary stuff, not correct? related to the speed?

Probably - if the stty command is failing then I guess there's a mismatch between your device speed and the gpsd speed.

Quote
One thing I noticed is that my /dev/ttyS3 has group read permissions, and Lee's doesn't. Could that be part of his problem?

I don't think so, unless Lee is running as a user other than zaurus or root.


Ian
Title: Gps Problems
Post by: misterearl on August 27, 2005, 07:16:18 pm
Quote
You got the "port busy" message with every command that you typed in? If you only got the message with "cardctl suspend" then it doesn't matter, just carry on with the other commands.

But you do need to have the GPS card inserted.



Ian
[div align=\"right\"][a href=\"index.php?act=findpost&pid=93369\"][{POST_SNAPBACK}][/a][/div]

OK, I repeated the commands with the GPS in... and got exactly the same responses.  grrrr

Lee

PS:  When I install qpegps, the Z says that the software expects another package to be installed, please install.  Then it appears to install both the program and the maps package - but I still don't see any maps.

Also, just recently, Qpegps will not launch from the Applications icon, only from Terminal.  This is getting goofier all the time...
Title: Gps Problems
Post by: suid on August 28, 2005, 08:29:30 am
Do I understand this right? With the GPS card inserted, when you type "setserial -g /dev/ttyS3", you get the following response:-

UART: unknown, Port: 0x0000, IRQ: 0

It looks as though ttyS3 is not being initialised.

What do you get if you type:-

cardctl ident
cardctl config

Eject and re-insert the GPS card. Then type "dmesg" and do you see any message referring to "ttyS03" at the bottom of the dmesg output?

Have you tried the card with a laptop yet?


Ian
Title: Gps Problems
Post by: misterearl on August 29, 2005, 01:44:25 pm
Quote
Do I understand this right? With the GPS card inserted, when you type "setserial -g /dev/ttyS3", you get the following response:-

UART: unknown, Port: 0x0000, IRQ: 0

Yes, double-checked it this AM

Quote
What do you get if you type:-

cardctl ident

I get:
Socket 0:
   product info: "CFGPS", "LPV1.0", "", ""
   manfid: 0x0104, 0x0060
   function: 2 (serial)


Quote
cardctl config

I get:
Socket 0:
   Vcc 0.0V  Vpp 0.0V  Vpp2 0.0V

Quote
Eject and re-insert the GPS card. Then type "dmesg" and do you see any message referring to "ttyS03" at the bottom of the dmesg output?

No, but there is reference to "ttyS04 at port 0xc56703f8 (irq = 35) is a 16650A"

Quote
Have you tried the card with a laptop yet?

I have used it in 2 laptops, 3 or 4 times with complete success, but not in the past few days.  Early in the history of this post I did confirm that it was still working in my laptops.


Lee
Title: Gps Problems
Post by: suid on August 29, 2005, 05:44:55 pm
Quote
No, but there is reference to "ttyS04 at port 0xc56703f8 (irq = 35) is a 16650A"

Bizarreness! Does anybody reading this understand what might be going on here? It appears that the kernel is now assigning your GPS card to ttyS4. Perhaps ttyS3 is in use, but I don't see any evidence of that. What do you get if you type:-

dmesg|grep ttyS
ps -ef|grep [t]tyS3

Any reference to ttyS03 or ttyS3 at all?

Do you see any file listing if you type:-

ls -l /dev/ttyS4

Maybe it's time for a reboot if you haven't done one recently!

Ian
Title: Gps Problems
Post by: misterearl on August 30, 2005, 10:35:54 am
Quote
What do you get if you type:-

dmesg|grep ttyS
ps -ef|grep [t]tyS3

It says:
ttyS04at port 0xc56703f8 (irq = 35) is a 16550A

Quote
What do you get if you type: ps -ef|grep [t]tyS3

It says: grep [t]tyS3: command not found

I did a reboot, then ran the "dmesg" command in Terminal - the reference this time was to ttyS03.  So i started QpeGPS, which balked at first, giving a "Can't start GPS" error.  I selected Retry from the options, and got Green GPSD AND GPS status buttons!

Unfortunately, I'm at work and can't spend enough time outdoors right now to try and acquire satellites - I'm getting ??? in the green GPS status button as QpeGPS tries to see some satellites.  Will report back ASAP.

Still not seeing any maps show up (yesterday I installed the next-to-newest version of QpeGPS, which comes with a maps pkg)


Lee
Title: Gps Problems
Post by: misterearl on August 31, 2005, 10:32:34 am
Eureka!  It looks like the GPS connects properly now - have not had a single failure since rebooting.  The GPS status button in QpeGPS shows green, but with 3 question marks - meaning, I assume, that it can't ID my particular GPS.  Walking around the yard last night, QpeGPS quickly detected direction changes and accurately showed direction, after just one or two steps - excellent.  Satellite acquisition was adequate, typically 4-6.  My Garmin Etrex does only slightly better. Thanks for all the help, Ian and all.

Most features seem to be functioning - with the exception of maps.  The Map tab shows only the crosshair and long/lat coordinates.  The example maps supposedly provided in this version of QpeGPS are not loaded.

And can someone tell me what the Info tab is supposed to display?  All I have is a drop-down menu which doesn't drop down, i.e.' has no choices, and a blank screen.

Would someone familiar with QpeGPS provide a "QpeGPS for Dummies" instruction on how (and where) to bring in maps.  The best technique for me right now would be with a CF card, as I haven't bought a network or modem card yet to get online with the Z.

Again, thanks for the great help in getting the GPS up and running.

Lee
Title: Gps Problems
Post by: cyberhobo on August 31, 2005, 11:00:15 am
For my problem, I reviewed the various fixes posted for Haicom GPS cards that Ian linked to.  They seemed a bit involved and difficult to reverse, so I decided to see if my GPS card would work with zRoadmap first.  It does!  

This leads me to believe that my problem with qpegps is indeed related to the version of stty in OZ 3.5.3, and possibly gpsd.  My end goal is to use qpegps with topo maps, so I will continue to experiment with these.
Title: Gps Problems
Post by: suid on August 31, 2005, 01:47:17 pm
Lee


Quote
The example maps supposedly provided in this version of QpeGPS are not loaded.

Under your config tab, is your Map directory still showing as "/opt/Qtopia/qpegps/maps/"?

Whatever is showing as your map directory, check if the maps are installed in there by typing from the Terminal:-

ls -l <map directory>

The qpeGPS maps package installs its maps to ./opt/QtPalmtop/qpegps/maps/.  This shouldn't be a problem, I think, because on my C750 Cacko at least, /opt/Qtopia is simply a link to the QtPalmtop directory.

If the "ls -l" shows nothing, try the following if you installed to SD:-

ls -l /mnt/card/QtPalmtop/qpegps/maps

If you find the maps, eg m3160-42--6.png, in here, then be sure to change the config in qpegps so that this is now your maps directory. Don't forget to press <Enter> !

The Info tab shows you all the maps installed in your maps directory.

Quote
Would someone familiar with QpeGPS provide a "QpeGPS for Dummies" instruction on how (and where) to bring in maps.

Have you read the documentation at http://qpegps.sourceforge.net/assets/docu/docu_0.9.2.1.html (http://qpegps.sourceforge.net/assets/docu/docu_0.9.2.1.html)? It's not much, but it may help.

Quote
The best technique for me right now would be with a CF card, as I haven't bought a network or modem card yet to get online with the Z.

You need to get that network card or download to your CF memory card via another PC with a network connection and then copy to your Z. Any new maps that are copied in such a way would need to be added to your maps.txt file. Have a look at the maps.txt and sources.txt files to get some idea of how to download a map and the format it should be recorded in.


cyberhobo

It might be worth persisting with the "stty" command that I pulled out qpegps. See what format of the command
 "stty 4800 line 0 min 1 time 0 ignbrk -brkint -icrnl -imaxbel -opost -onlcr onlret -isig
-icanon -iexten -echo -echoe -echok-echoctl -echoke < /dev/ttyS3" actually works
without errors. You might be able to get away with entering that command just before starting qpeGPS.


Ian
Title: Gps Problems
Post by: cyberhobo on August 31, 2005, 03:03:54 pm
Quote
It might be worth persisting with the "stty" command that I pulled out qpegps. See what format of the command
 "stty 4800 line 0 min 1 time 0 ignbrk -brkint -icrnl -imaxbel -opost -onlcr onlret -isig
-icanon -iexten -echo -echoe -echok-echoctl -echoke < /dev/ttyS3" actually works
without errors. You might be able to get away with entering that command just before starting qpeGPS.

Interesting.  After deleting the arguments that caused errors, I got this:

Code: [Select]
root@poodle:/# stty 4800 min 1 time 0 ignbrk -brkint -opost onlret -isig -icanon -iexten -echo -echoe -echok-echoctl -echoke < /dev/ttyS3
root@poodle:/# qpegps
card ready
port settings ok

So it eliminated the error message, but I still get a red ??? GPS status in qpegps.  I guess some of the arguments I deleted might really be necessary, or the problem is gpsd.  I might try the alternate version of gpsd now, though I never did get any NMEA output from a telnet session with that one.
Title: Gps Problems
Post by: misterearl on September 02, 2005, 12:46:12 pm
Quote
Under your config tab, is your Map directory still showing as "/opt/Qtopia/qpegps/maps/"?

Yes

Quote
Whatever is showing as your map directory, check if the maps are installed in there by typing from the Terminal:-

ls -l <map directory>

When typed directly at the bash-2.05$ prompt, I get a syntax error message: "syntax error near unexpected token 'directory>' "
I tried w/o brackets, and tried parentheses, no help

Quote
If the "ls -l" shows nothing, try the following if you installed to SD:-

ls -l /mnt/card/QtPalmtop/qpegps/maps

The response is: No such file or directory.
I believe I installed qpegps to the internal memory last time, to eliminate the SD card as a possible problem.

As I navigate around the Files utility, under Files/Internal Storage/Application, there is no entry for qpegps (?)  It must be installed somewhere.

I have read the Documentation info at SourceForge, but it is a bit short on details.  I'll give it another try.

Lee
Title: Gps Problems
Post by: suid on September 02, 2005, 04:41:21 pm
Quote
ls -l <map directory>
That wasn't meant to be taken literally!

What I meant was to replace <maps directory> with the Map directory showing in your config tab, i.e:-

ls -l /opt/Qtopia/qpegps/maps/

If there's nothing there, try:-

ls -l /opt/QtPalmtop/qpegps/maps

If still no success, try the following:-

find / -type d -name maps  2>/dev/null                  (and wait a while)


Did the find command show any directory called "maps"? If so, that's probably where you'll find them. If not, then I guess they weren't installed for some reason.


Regards


Ian
Title: Gps Problems
Post by: misterearl on September 04, 2005, 12:58:57 pm
Quote
That wasn't meant to be taken literally!

Oh, the shame... wallowing in acute embarassment, I retype correct commands into Terminal and find that the file maps.txt appears in both the locations you suggested, at least I assume that's what this message means:

-rwxrwxrwx  1 root qpe
   0 Aug 10 18:36 maps.txt
-rw-r--r--  1 root   qpe
466 Apr 10 2003 sources.txt

Yes?
Title: Gps Problems
Post by: suid on September 05, 2005, 07:16:31 am
Yes. Also, as expected, the maps, eg m3160-42--6.png, aren't there.

How about the "find" command? Did that produce anything?
Title: Gps Problems
Post by: misterearl on September 06, 2005, 03:12:32 pm
Quote
Yes. Also, as expected, the maps, eg m3160-42--6.png, aren't there.

How about the "find" command? Did that produce anything?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=94543\"][{POST_SNAPBACK}][/a][/div]


The response was:

/home/QtPalmtop/ubahn/maps
/home/QtPalmtop/qpegps/maps
/usr/mnt.rom/card/QtPalmtop/ubahn/maps

"ubahn" refers to software I've installed to help with navigating subway/metro routes.  It also has a maps subdirectory.


Lee
Title: Gps Problems
Post by: suid on September 07, 2005, 07:32:04 am
So do you see any maps when you type:-

ls -l /home/QtPalmtop/qpegps/maps   ?

If so, then that's what you want to change your maps directory to be. If not, then the maps never installed for some reason.
Title: Gps Problems
Post by: misterearl on September 08, 2005, 07:27:27 pm
Quote
So do you see any maps when you type:-

ls -l /home/QtPalmtop/qpegps/maps   ?

If so, then that's what you want to change your maps directory to be. If not, then the maps never installed for some reason.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=94806\"][{POST_SNAPBACK}][/a][/div]

No, no map files at all.

Early in this epic struggle, I uninstalled and reinstalled QpeGPS several times - and used different versions- to try and get the maps back.  I wonder if there is any cause/effect relationship between this and the maps problem?

As I said, if I try and install just maps_arm.ipk, the Z refuses telling me to uninstall the current version.  Must I completely uninstall/reinstall QpeGPS again?

Has anyone downloaded and used Expedia maps? QpeGPS Documentation says this is possible.


Lee
Title: Gps Problems
Post by: suid on September 11, 2005, 02:08:56 pm
Quote
As I said, if I try and install just maps_arm.ipk, the Z refuses telling me to uninstall the current version. Must I completely uninstall/reinstall QpeGPS again?

The maps_arm.ipk, unless you've got a different copy from me, contains both the "qpegps" binary and the maps. So yes, you'll have to uninstall any previous version first.

I've downloaded Expedia maps - it shouldn't be a problem but you do need a CF network card.



Ian
Title: Gps Problems
Post by: misterearl on September 17, 2005, 10:28:55 pm
Quote
Quote
As I said, if I try and install just maps_arm.ipk, the Z refuses telling me to uninstall the current version. Must I completely uninstall/reinstall QpeGPS again?

The maps_arm.ipk, unless you've got a different copy from me, contains both the "qpegps" binary and the maps. So yes, you'll have to uninstall any previous version first.

I've downloaded Expedia maps - it shouldn't be a problem but you do need a CF network card.



Ian
[div align=\"right\"][a href=\"index.php?act=findpost&pid=95432\"][{POST_SNAPBACK}][/a][/div]


Everything is golden - well, mostly.  I'd assumed that I needed both the arm.ipk and maps_arm.ipk files, and when I installed the arm.ipk file, the maps file icon turned from red to blue as well, implying that it had been installed too.  So, installing just the arm_maps.ipk file got 'er done.  GPS works, even with everything running off the SD card.

Can I download an Expedia map on a desktop, copy it to a CF card, and get it where it needs to be properly on the Z w/o downloading to the Z?  No network card yet.

Lee
Title: Gps Problems
Post by: suid on September 25, 2005, 09:49:37 am
A kind qpeGPS user has created  http://gps.pazu.info (http://gps.pazu.info) - it'll create a map for you after giving it the required LAT/LON. Plus, it tells you what entry you need to make in the maps.txt file.

I think that qoeGPS only works with the PNG format, so be sure to save the map as a PNG file. Then just copy the saved map to your maps directory on your Z and add the entry to maps.txt.




Ian
Title: Gps Problems
Post by: misterearl on September 30, 2005, 07:02:43 pm
Quote
A kind qpeGPS user has created  http://gps.pazu.info (http://gps.pazu.info) - it'll create a map for you after giving it the required LAT/LON. Plus, it tells you what entry you need to make in the maps.txt file.

I think that qoeGPS only works with the PNG format, so be sure to save the map as a PNG file. Then just copy the saved map to your maps directory on your Z and add the entry to maps.txt.




Ian
[div align=\"right\"][a href=\"index.php?act=findpost&pid=96961\"][{POST_SNAPBACK}][/a][/div]

That's a GREAT site - thanks.  Easy to get the maps needed, but I can't figure out how to get the maps off the site.  There is the storage option, but I can't find a download option anywhere...  Help yet again?
Title: Gps Problems
Post by: suid on October 01, 2005, 08:50:09 am
Quote
but I can't find a download option anywhere

I guess it's just a case of saving the image from within your browser. With XP/Firefox, it's simply a case of right clicking on the map that's been generated, then using "Save Image As ..."  and save as the filename that the website has generated for you.

It'll probably save as gif - in which case you need to convert the gif file to a png or jpg file somehow. There should be a program called gif2png on your Z - it comes with qpeGPS, so you could copy the gif(s) to your Z and convert them to png there.

Then don't forget to add an entry in maps.txt - the website is very helpful with advice on that. Check out the online manual.

Ian