Community discussions

MikroTik App
 
mjraiha
just joined
Topic Author
Posts: 14
Joined: Mon Feb 26, 2018 3:33 pm

Telit LM940 and GPS/NMEA

Mon Oct 07, 2019 1:31 pm

Anyone been able to enable gps on Telit LM940 ?

It's possible to enable and get location info with AT commands as seen below.

/interface lte at-chat 0 input="AT\$GPSP=1"
/interface lte at-chat 0 input="AT\$GPSNMUN=2,1,1,0,1,0,0"
/interface lte at-chat 0 input="AT\$GPSANTPORT=1"
/interface lte at-chat 0 input="AT\$GPSACP"

What kind of configuration should be used in "/system gps" then to get info from LTE card to RBM33G, then?
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3480
Joined: Sun May 01, 2016 7:12 pm
Location: California

Using Telit LM960 with GPS package under V7

Sat Feb 12, 2022 10:12 pm

Not sure if this work in V6 and/or with LM940. But with v7.2rc3, GPS package works with the Telit 960 (e.g. LM960A18 etc). There were problems with ports in previous V7 builds, but I suspect this work:
  • Make sure Telit / LTE are working generally. While perhaps you can use GPS without LTE data service, ideally you'd have the LTE interface working for internet/data first.
  • Install the GPS package from the extra-package for platform from www.mikrotik.com/download (e.g. copy gps.npk file to router file system root & reboot)
  • Some AT commands to enable GPS the first time, first you may need to set the GPS antenna to use (1 = share GPS with Rx diversity antenna, 2 = use dedicate "GPS" antenna, 3 = same but "powered"). Default is "2" for external GPS antenna, but without dedicated GPS antenna "1" may be more likely to work
    /interface/lte/at-chat [find] input="AT\$GPSANTPORT=1"
  • You need to also power the GPS on and save the setting:
    /interface/lte/at-chat [find] input="AT\$GPSP=1"
    /interface/lte/at-chat [find] input="AT\$GPSSAV"
    
  • Finally, you need to enable and configure the Mikrotik GPS package. This command will find the port and setup it up.
     /system gps set enabled=yes channel=1 init-channel=3 init-string="AT\$GPSNMUN=1,1,1,1,1,1,1" port=[/port/find where channels > 2]
    
  • If it doesn't work after a couple minutes, either enable/disable GPS or reboot. If still didn't work, the init-channel and/or port may not be right in the GPS settings.
In my case, I get the correct lat/long/ele/time:
/system/gps/monitor once
        date-and-time: feb/12/2022 20:09:13
             latitude: XX.000000
            longitude: -1XX.000000
             altitude: 8.500000m
                speed: 0.000000 km/h
  destination-bearing: none
         true-bearing: 33.799999 deg. True
     magnetic-bearing: 19.000000 deg. Mag
                valid: yes
           satellites: 8
          fix-quality: 1
  horizontal-dilution: 1
             data-age: 1s

Who is online

Users browsing this forum: kormenator, sstefanov and 184 guests