GPGGA should be supported, but it doesn't include speed, as you correctly identified.
GNRMC is probably not supported.
Thanks for the fast reply.
Not including speed is fine, but can I get the server to register the trips?
I get the position in reports/route but I'm guessing it's not creating trips due to no stops being sent or something like that?
This should answer the question:
I tested GNRMC and there was also a problem.
I looked at the source code of traccar, and it seems that GNRMC should support it.
I think there should be a bug in the code.
/workspaces/traccar/src/main/java/org/traccar/protocol/T55ProtocolDecoder.java
private static final Pattern PATTERN_GPRMC = new PatternBuilder()
.text("$")
.expression("G[PLN]RMC,")
.number("(dd)(dd)(dd).?d*,") // time (hhmmss)
.expression("([AV]),") // validity
.number("(dd)(dd.d+),") // latitude
.expression("([NS]),")
.number("(d{2,3})(dd.d+),") // longitude
.expression("([EW]),")
.number("(d+.?d*)?,") // speed
.number("(d+.?d*)?,") // course
.number("(dd)(dd)(dd),") // date (ddmmyy)
.expression("[^*]+")
.text("*")
.expression("[^,]+")
.number(",(d+)") // satellites
.number(",(d+)") // imei
.expression(",([01])") // ignition
.number(",(d+)") // fuel
.number(",(d+)").optional(7) // battery
.number("((?:,d+)+)?") // parameters
.any()
.compile();
Hello, I'm trying to get a new device working with Traccar.
The device uses port 5005 with NMEA.
The old device sends this message (RMC) and it works:
Then I tried to use the same settings for the new device, it's just a new version of the old one. But using RMC I only get the online status of the device even though it sends the correct position:
I'm guessing GNRMC is not supported?
Then I tried using the other formats available for the device, and using GGA I finally got it working. This worked for a couple of hours until for some reason it just stops updating the map even though the device is sending, what looks like, correct data:
But this doesn't register trips or stops since it's not sending speed data?
What am I missing here? Is GPGGA and GNRMC not supported? Is there something I can do about it?
Still quite the noob at this, so any help would be appreciated.