LtAP Mini GPS + tracking in map

I have the LtAP mini and a the LTE module working nicely with the excellent Traccar project (https://www.traccar.org/) posting OsmAnd messages with https. I originally was trying to use Thingsboard sending JSON messages but after some frustrations with that project I quickly discovered Traccar and got it all working very quickly.

Mitchell,

valid: no
satellites: 0
fix-quality: 0

Did you do it while device is turned off? GPS antenna is an active/powered antenna, connecting it to a live unit can cause damage to the GPS module.

@normis

Made sure I plugged it in while powered off, then switched the unit on.
Left it for hours, nothing.
Left it in direct skyview, nothing.

Passive antenna - https://mikrotik.com/product/acgpsa

Hey @normis

Any ideas?

It’s been months and I still can’t get it to work :frowning:

Forum is not the best place to get indepth technical analysis, make a supout.rif file and email it to support@mikrotik.com, maybe some bigger issue can be seen in the debug info.

Hi, mikrotik gps tracker script https://www.youtube.com/watch?v=cFSEs5wWGTU

www.gpsmap.am gps monitoring server
https://www.youtube.com/watch?v=cFSEs5wWGTU


Script


:local serverURL “https://gpsmap.am/server/api/api_loc.php
:local fakeImei “123456789123456”
:local SIMslot “0”
:local button “0”

:global isDebug

\

:put $isDebug - check current state

:set $isDebug “terminal” - log to terminal

:set $isDebug “off” - logging off

Current Debug status

:set $isDebug “off”



:local gpsDateTime
:local lat
:local lon
:local alt
:local gpsSpeed
:local bearing
:local gpsValid
:local sats
:local hdop
:local DateTime
:local outputURL


#Check and set coordinate format and get data from GPS
:if ( [/system gps get coordinate-format ] != “dd”) do={/system gps set coordinate-format=dd}


/system gps monitor once do={
:set $gpsDateTime $(“date-and-time”)
:set $lat [:pick $(“latitude”) 0 7]
:set $lon [:pick $(“longitude”) 0 8]
:set $alt $(“altitude”)
:set $gpsSpeed $(“speed”)
:set $bearing $(“true-bearing”)
:set $gpsValid $(“valid”)
:set $sats $(“satellites”)
:set $hdop $(“horizontal-dilution”)}

:set $alt [:pick $alt 0 [:find $alt “.”]]
:set $gpsSpeed ([:pick $gpsSpeed 0 [:find $gpsSpeed “.”]].“.0”)
:set $bearing ([:pick $bearing 0 [:find $bearing “.”]].“.0”)

Reformating date and time.

:local day [ :pick $gpsDateTime 4 6 ]
:local month [ :pick $gpsDateTime 0 3 ]
:local year [ :pick $gpsDateTime 7 11 ]
:local time [ :pick $gpsDateTime 12 19]
:local DateTime “$year-$month-$day $time”

:set $outputURL (“$serverURL?imei=$fakeImei&dt=$DateTime&lat=$lat&lng=$lon&altitude=$alt&angle=$bearing&speed=$gpsSpeed&loc_valid=1”)

:if ($isDebug = “terminal”) do={
:put $gpsDateTime
:put $DateTime
:put $lat
:put $lon
:put $alt
:put $gpsSpeed
:put $bearing
:put $gpsValid
:put $sats
:put $hdop
:put $serverURL
:put $fakeImei
:put $battVoltage
:put $SIMslot
:put $button
:put $outputURL
}

/tool fetch mode=http url=“$outputURL” output=none

Really nice example, thanks for sharing the video!

—————————————————————————————————————————————
change the port speed