Author Topic: Gps Cf Card  (Read 4863 times)

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
Gps Cf Card
« on: January 18, 2005, 04:30:50 am »
hi all, I'm trying to get this card working on my RC8 860.
I need some hints by those who already use a gps cf. Actually I receive some a timeout by gpsdrive when trying to get the output.

The card in the sd/cf applet is "serial or modem", but I don't think this could be any interesting.

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
Gps Cf Card
« Reply #1 on: January 18, 2005, 03:45:49 pm »
none interested in gps for zaurus?

cpuffer_zaurus

  • Newbie
  • *
  • Posts: 31
    • View Profile
Gps Cf Card
« Reply #2 on: January 18, 2005, 07:56:33 pm »
Quote
hi all, I'm trying to get this card working on my RC8 860.
I need some hints by those who already use a gps cf. Actually I receive some a timeout by gpsdrive when trying to get the output.

The card in the sd/cf applet is "serial or modem", but I don't think this could be any interesting.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=62997\"][{POST_SNAPBACK}][/a][/div]


I am interested but do not have much to add.
As I understand most GPS units spit out a stream of serial information.

jasonakay

  • Newbie
  • *
  • Posts: 23
    • View Profile
Gps Cf Card
« Reply #3 on: January 18, 2005, 10:02:01 pm »
When you have your CF GPS card inserted, start a terminal and run the following command:

Code: [Select]
cartctl ident
I use a Globalsat BC-307 CF GPS , so here is the output I get:

Code: [Select]
Socket 0:
  product info: "CF CARD", "GENERIC", "", ""
  manfid: 0x0279, 0x950b
  function: 2 (serial)
Socket 1:
  no product info available

Next, edit /etc/pcmcia/config and add an entry for your card, based on the cardctl ident output.  I added the following (yours should differ...):

Code: [Select]
card "GlobalSat BC-307 GPS"
 manfid 0x0279, 0x950b
 bind "serial_cs"

You can put whatever you want for the name of the card (in the first line).  The manfid line needs to contain exactly what you got from the 'cardctl ident' command.  The final line binds your card to a driver.  In my case, serial_cs worked.  Eject your card.

Again in a terminal, type:

Code: [Select]
/etc/rc.d/init.d/pcmcia restart
Insert your card.

Type:

Code: [Select]
cat /car/lib/pcmcia/stab
The output of this command should display your card's name (that you put in the config file) the driver it is using and (besides a few other things) the serial port that your GPS card uses.  (Mine is ttyS3.)

I had to set the UART speed of the serial port to 4800.  I'm not sure if this will be the same for your card:

Code: [Select]
stty 4800 < /dev/ttyS3
(Substitute the serial port that your card uses in place of ttyS3.)

Next, check to see if you can receive data from the card:

Code: [Select]
cat /dev/ttyS3
(Again, substitute the correct serial port here...)

If this works, you will see lines of data prefixed with $GPRMC, $GPGSA, $GPGGA and similar.  Use Control-C to stop this.  Now you can give gpsdrive a try.

I hope this is of use to you.  (Most of this info I got from Axel Pauli's GPS-CF How-to for the TkRom 2.0 Alpha 3 on a Zaurus SL-5500G.)

Jason.

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
Gps Cf Card
« Reply #4 on: January 18, 2005, 10:33:33 pm »
which version of serial_cs did you use?

jasonakay

  • Newbie
  • *
  • Posts: 23
    • View Profile
Gps Cf Card
« Reply #5 on: January 18, 2005, 11:45:28 pm »
Whichever version came with RC8.

Jason.

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
Gps Cf Card
« Reply #6 on: January 19, 2005, 03:31:10 am »
if I modprobe serial_cs, no module is found

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
Gps Cf Card
« Reply #7 on: January 19, 2005, 04:46:51 am »
thank you, but nothing changes

the device is active, but is mute, and wrong vcc is returned by cardctl config


EDIT: the wrong vcc is a common issue for any card, I notice
« Last Edit: January 19, 2005, 06:48:16 am by scoutme »

jasonakay

  • Newbie
  • *
  • Posts: 23
    • View Profile
Gps Cf Card
« Reply #8 on: January 19, 2005, 01:16:51 pm »
Interesting.  When I 'modprobe serial_cs' I get the following:

modprobe: Can't locate module serial_cs

My GPS card still works, though.  

Jason.

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
Gps Cf Card
« Reply #9 on: January 21, 2005, 06:45:31 pm »
funny...

my problem, I think, is understanding where are all the setting for the serial card.

GPSs tend to behave strangely and freeze when used with wrong parameters