Enabling GPS time setting

From aa-asterisk.org.uk wiki
Jump to: navigation, search

On the Router Board console you will need to disable the console on the serial port.

This is done with

Always a good idea to check and see how the serial port on the RouterBoard is set.

/port

This takes you to the port menu

print
Flags: I - inactive 
 #   NAME                           USED-BY                           BAUD-RATE
 0   serial0                        serial-console                     2400     

If USED-BY shows serial-console you will need to disable this.(see below)

/system console 

This will take you to the console menu

disable 0

This will disable the console from serial0 if you have a different number for your serial port you need to use that number.

/system gps

This takes you to the GPS menu

set enabled=yes port=serial0 

This will enable the GPS module and set it to use serial0, once you've enable the GPS you can check to see if the GPS is using the serial0

/port print
Flags: I - inactive 
 #   NAME                           USED-BY                           BAUD-RATE
 0   serial0                        GPS                               2400     

This means all is well once you have your GPS connected to serial0 you can then check to see if you have a valid GPS fix.

/system GPS monitor
  date-and-time: nov/30/1999 00:00:00
      longitude: "none"
       latitude: "none"
       altitude: "none"
          speed: "none"
          valid: no
-- [Q quit|D dump|C-z pause]

Once you have a valid fix you will see all the fields populated

    date-and-time: jul/23/2003 12:25:00
        longitude: "E 24 8' 17''"
         latitude: "N 56 59' 22''"
         altitude: "-127.406400m"
            speed: "0.001600 km/h"
            valid: yes