Connecting GPS to OLinuXino and RaspberryPI


Image

MOD-GPS is very sensitive, low power GPS SirfStarIII module with UEXT connector and can be connected directly to any of our boards. It sends NMEA messages with 19200 bps.

To connect it to OLinuXino is very easy just plug it to UEXT connector, to connect to RaspberryPI you will need RPI-UEXT adapter.

The Project files are at GitHub: https://github.com/OLIMEX/OLINUXINO/tree/master/SOFTWARE/A13/MOD-GPS

MOD-GPS is with UART connection, as same UART is used in OLinuXino and RaspberryPI for console to work with MOD-GPS you should first disable the console and connect to OLinuXino or RaspberryPI via ssh.

In OLinuXino you should do this:

#vi /etc/inittab
Comment the line: “T0:23:respawn:/sbin/getty -L -a root ttyS0 115200 vt102”
Save the file and reboot.
!!!Before rebooting you should have working SSH

in RaspberryPi you should do the same but there the console UART name is ttyAMA0

After the reboot login with ssh and connect MOD-GPS to OLinuXino or RaspberryPI, then compile and run it:

#make clean
#make
#./MOD-GPS --tty:"/dev/ttyXXX"

for OLinuXino ttyXXX is ttyS0 for RaspberryPi ttyXXX is ttyAMA0

if everything is OK you should see this picture:

Image

congratulations now you have GPS to your linux board🙂

3 Comments (+add yours?)

  1. L10n34rD
    Mar 11, 2013 @ 23:25:53

    insted of the Command
    #./MOD-GPS –tty:”/dev/ttyXXX”

    we must use
    #./MOD-GPS –tty=”/dev/ttyXXX”

    please change this also in the README file in github.

    thx

    Reply

  2. milana
    Jul 03, 2013 @ 06:44:18

    I can not boot with GPS connected during the boot.
    Did anyone solved the problem.
    I was getting NMEA messages with ttyS0 speed set to 19200 with cat > /dev/ttyS0.

    Reply

  3. Mitko
    Oct 10, 2013 @ 19:09:07

    Hi
    I got a MOD-GPS, unfortunatly it had it’s connector changed. Now it has only 4 pins red black green white, my gues is vcc ground RX TX. What are the blue one and yellow one for.

    Здравейте,
    Дадоха ми един GPS, но със сменен конектор. Може ли да ми кажете, кой кабел за кое е. Предполагам червен напрежение, черен зема, зелен и бял за приемане изпращане. А синия и жълтия за какво са ?

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: