Manual:System/GPS: Difference between revisions

From MikroTik Wiki
Jump to navigation Jump to search
No edit summary
Line 73: Line 73:
|arg=latitude
|arg=latitude
|type= none {{!}} string
|type= none {{!}} string
|desc=
|desc=Latitude in DM (Degrees Minute decimal) format
}}
}}


Line 79: Line 79:
|arg=longitude
|arg=longitude
|type=none {{!}} string
|type=none {{!}} string
|desc=
|desc=Longitude in DM (Degrees Minute decimal) format
}}
}}


Line 85: Line 85:
|arg=speed
|arg=speed
|type=none {{!}} string
|type=none {{!}} string
|desc=
|desc=Current moving speed of the GPS unit
}}
}}


Line 91: Line 91:
|arg=bearing
|arg=bearing
|type=none {{!}} string
|type=none {{!}} string
|desc=
|desc=The compass direction toward which a GPS is moving
}}
}}



Revision as of 12:30, 6 September 2011

Version.png

Applies to RouterOS: v3, v4, v5 +


Summary

Sub-menu: /system gps
Standards: GPS, NMEA 0183, Simple Text Output Protocol

Global Positioning System (GPS) is used for determining precise location of a GPS receiver.

Configuration Properties

Property Description
channel (integer [0..4294967295]; Default: 0) Port channel used by device
enabled (yes | no; Default: no) Whether GPS is enabled
port (string; Default: ) Name of the USB/Serial port where GPS receiver is connected
set-system-time (yes | no; Default: no) Whether to set router's date and time to one received from GPS.

Monitoring Status

Command: /system gps monitor


This command is used for monitoring the data received from a GPS receiver

Parameters:

Property Description
date-and-time (date) Date and time received from GPS
latitude (none | string) Latitude in DM (Degrees Minute decimal) format
longitude (none | string) Longitude in DM (Degrees Minute decimal) format
speed (none | string) Current moving speed of the GPS unit
bearing (none | string) The compass direction toward which a GPS is moving
valid (yes | no)
satellites (integer) Number of satellites seen by the device.

Basic examples

Adjust port settings specific for your device

[admin@MikroTik] /port> set 0 baud-rate=4800 parity=odd
[admin@MikroTik] /port> print detail 
Flags: I - inactive 
 0   name="usb1" used-by="GPS" channels=1 baud-rate=4800 data-bits=8 parity=odd stop-bits=1 flow-control=none

Enable GPS

[admin@MikroTik] /system gps> set enable=yes port=usb1
[admin@MikroTik] /system gps> print 
          enabled: yes
             port: usb1
          channel: 0
  set-system-time: no

Monitor status

[admin@MikroTik] /system gps> monitor  
  date-and-time: sep/05/2011 07:28:54
       latitude: N 56 57' 32.568''
      longitude: E 24 9' 11.568''
       altitude: -23.600000m
          speed: 0.000000 km/h
        bearing: none
          valid: yes
     satellites: 3


[ Top | Back to Content ]