Letux Kernel

GPS

You are looking at an old revision of the page GPS. This revision was created by Nikolaus Schaller.

Table of Content

How to configure and use GPS

Enable power

power (state=0: off, state=1: on) - you may have to switch on/off/on to reset the GPS chip

echo $state >/sys/devices/virtual/gpio/gpio145/value

read device file (use 9600 baud!)

stty 9600 </dev/ttyS1
cat /dev/ttyS1

internal/external antenna detection

if the external antenna is active can be determined through

cat /sys/devices/virtual/gpio/gpio144/value  # 1=ext. ant.