Manual:System/GPS: Difference between revisions

From MikroTik Wiki
Jump to navigation Jump to search
Line 110: Line 110:


==Basic examples==
==Basic examples==
Adjust port settings specific for your device
<pre>
[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
</pre>
Enable GPS
<pre>
[admin@MikroTik] /system gps> set enable=yes port=usb1
[admin@MikroTik] /system gps> print
          enabled: yes
            port: usb1
          channel: 0
  set-system-time: no
</pre>
Monitor status
<pre>
[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
</pre>




{{cont}}
{{cont}}


</div>


[[Category:Manual|G]]
[[Category:Manual|G]]
[[Category:System|G]]
[[Category:System|G]]

Revision as of 07:32, 5 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.
Icon-note.png

Note: .


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)
longitude (none | string)
speed (none | string)
bearing (none | string)
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 ]