Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: typos

...

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

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

...

PropertyDescription
channel (integer [0..4294967295]; Default: 0)Port channel used by the device
coordinate-format (dd | dms | ddmm; Default: no)Which coordinate format to use, "Decimal Degrees", "Degrees Minutes Seconds" or "NMEA format DDDMM.MM[MM]"
enabled (yes | no; Default: no)Whether GPS is enabled
gps-antenna-select (external | internal; Default: internal)Depending on the model. Internal antenna can be selected, if the device has one installed.
init-channel (integer [0..4294967295]; Default: )Channel for init-string execution
init-string (string; Default: )AT init string for GPS initialization
port (string; Default: )Name of the USB/Serial port where the GPS receiver is connected
set-system-time (yes | no; Default: no)Whether to set the 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.

...

Note

Starting with the 7.1rc3 firmware release, a new parameter was added, called "data-age" (measured in seconds). This parameter displays the time that has passed since the device received the last NMEA message.


PropertyDescription
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
altitude (none | string)Altitude based on GPS data
speed (none | string)Current The current moving speed of the GPS unit
destination-bearing (none | string)The direction toward which a GPS is moving
true-bearing (none | string)The direction toward which a GPS is moving
magnetic-bearing (none | string)The direction toward which a GPS is moving
valid (yes | no)
satellites (integer)Number of satellites seen by the device.
fix-quality (integer)Quality of the signal
horizontal-dilution (integer)Horizontal dilution of precision (HDOP);
data-age (integer)The time that has passed since the device received the last NMEA message

Basic examples

Check port usage, as only one instance can use the serial port simultaneously:

...

In case there is one port and it is used by the console, release it from the console menu:

...

We have also created an in-depth article about live GPS tracking, using scripting and a web server: Manual: GPS-tracking.

Troubleshooting

Note that sometimes in order to make the GPS module to be recognized under in RouterOS you need to change the baud-rate setting in the '/port' menu.

LtAP mini has a low-gain GPS antenna built-in and for a better experience, we suggest using an additional external antenna.

Switch between internal and external antennas under the GPS menu:

Code Block
languageros
[admin@MikroTik] > /system gps set gps-antenna-select=external

On some modems with GPS support, you need to send multiple init commands for the continuous GPS monitoring, for example, for Huawei cards you need to send "AT^WPDST=1,AT^WPDGP" init string to get continuous monitoring.