aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-10-28 05:05:18 -0700
committerAnton Tananaev <anton@traccar.org>2022-10-28 05:05:18 -0700
commit0508411fc388d8a7495b43378cfa6265a24c02d2 (patch)
tree77d6d369c5fdaeae0023bdffccc77cf317029139
parentc59ba066b1437e98af10a413b9e0c29f0e443b26 (diff)
downloadtrackermap-server-0508411fc388d8a7495b43378cfa6265a24c02d2.tar.gz
trackermap-server-0508411fc388d8a7495b43378cfa6265a24c02d2.tar.bz2
trackermap-server-0508411fc388d8a7495b43378cfa6265a24c02d2.zip
Missing iStartek parameters
-rw-r--r--src/main/java/org/traccar/protocol/StartekProtocolDecoder.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/protocol/StartekProtocolDecoder.java b/src/main/java/org/traccar/protocol/StartekProtocolDecoder.java
index b2fcd5452..8e3624cb5 100644
--- a/src/main/java/org/traccar/protocol/StartekProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/StartekProtocolDecoder.java
@@ -83,9 +83,9 @@ public class StartekProtocolDecoder extends BaseProtocolDecoder {
.groupBegin()
.number("(d+)?|") // rpm
.number("(d+)?|") // engine load
- .number("d*|") // maf flow
- .number("d*|") // intake pressure
- .number("d*|") // intake temperature
+ .number("(d+)?|") // maf flow
+ .number("(d+)?|") // intake pressure
+ .number("(d+)?|") // intake temperature
.number("(d+)?|") // throttle
.number("(d+)?|") // coolant temperature
.number("(d+)?|") // instant fuel
@@ -224,6 +224,11 @@ public class StartekProtocolDecoder extends BaseProtocolDecoder {
if (parser.hasNext(6)) {
position.set(Position.KEY_RPM, parser.nextInt());
position.set(Position.KEY_ENGINE_LOAD, parser.nextInt());
+ position.set("airFlow", parser.nextInt());
+ position.set("airPressure", parser.nextInt());
+ if (parser.hasNext()) {
+ position.set("airTemp", parser.nextInt() - 40);
+ }
position.set(Position.KEY_THROTTLE, parser.nextInt());
if (parser.hasNext()) {
position.set(Position.KEY_COOLANT_TEMP, parser.nextInt() - 40);