The GPS on the CME22-2n-BG77 seldom activates to give coordinates, but when it does it works until next reboot.
I am using the recommended priority setting:
[admin@MikroTik] /ppp/profile> print
Flags: * - default
0 * name="default" bridge-learning=default use-ipv6=yes use-mpls=default use-compression=default
use-encryption=default only-one=default change-tcp-mss=yes use-upnp=default address-list="" on-up=""
on-down=""
1 name="BG77" bridge-learning=default idle-timeout=30s use-ipv6=yes use-mpls=default
use-compression=default use-encryption=default only-one=default change-tcp-mss=default
use-upnp=default address-list="" on-up=""
on-down=/interface ppp-client at-chat [find where modem-init="AT+QGPSCFG=\"priority\",1"]
input="AT+QGPSCFG=\"priority\",0"
2 * name="default-encryption" bridge-learning=default use-ipv6=yes use-mpls=default use-compression=default
use-encryption=yes only-one=default change-tcp-mss=yes use-upnp=default address-list="" on-up=""
on-down=""
and the PPP client as recommended:
[admin@MikroTik] /interface/ppp-client> print
Flags: X - disabled; R - running
0 R name="ppp-out1" max-mtu=1500 max-mru=1500 mrru=disabled port=modem data-channel=2 info-channel=2
apn="www.internet.mtelia.dk" pin="" user="" password="" profile=BG77 phone="" dial-command="ATDT"
modem-init="at+qgpscfg="priority",0" null-modem=no dial-on-demand=yes add-default-route=yes
default-route-distance=2 use-peer-dns=yes keepalive-timeout=30 allow=pap,chap,mschap1,mschap2
The Routerboard and the modem firmware has both had a fresh update:
[admin@MikroTik] /system/package> print
Columns: NAME, VERSION, BUILD-TIME, SIZE
# NAME VERSION BUILD-TIME SIZE
0 wireless 7.15 2024-05-29 12:44:08 1500.1KiB
1 gps 7.15 2024-05-29 12:44:08 20.1KiB
2 routeros 7.15 2024-05-29 12:44:08 10.1MiB
The GPS monitor shows that the data-age is 0-2 seconds:
[admin@MikroTik] /system/gps> print
enabled: yes
port: modem
channel: 1
init-channel: 2
init-string: AT+QGPSCFG="outport","usbnmea";+QGPSCFG="priority",0;+QGPS=1
set-system-time: yes
coordinate-format: ddmm
[admin@MikroTik] /system/gps> monitor
date-and-time: 2024-06-05 08:39:22
latitude: none
longitude: none
altitude: 0.000000 m
speed: 0.000000 km/h
destination-bearing: none
true-bearing: 0.000000 deg. True
magnetic-bearing: 0.000000 deg. Mag
valid: no
satellites: 0
fix-quality: 0
data-age: 0s
-- [Q quit|D dump|C-z pause]
When disabling the PPP client, I can get access to the AT commands at the BG77:
[admin@MikroTik] > system serial-terminal port=modem channel=2
[Ctrl-A is the prefix key]
at
OK
at+qnwinfo
+QNWINFO: "eMTC","23820","LTE BAND 20",6200
OK
at+qcsq
+QCSQ: "eMTC",-53,-73,250,-6
OK
at+cops?
+COPS: 0,0,"TeliaDk",8
OK
The cellular antenna from the LTE-M provider is just 300 meters from the test spot. Router is placed free outdoor.
Sometimes the GPS catches the time only.
Why don’t I get coordinates within minutes or hours ?