Skip to content

Commit

Permalink
Missing iStartek parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Oct 28, 2022
1 parent c59ba06 commit 0508411
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/main/java/org/traccar/protocol/StartekProtocolDecoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ public StartekProtocolDecoder(Protocol protocol) {
.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
Expand Down Expand Up @@ -224,6 +224,11 @@ protected Object decodePosition(DeviceSession deviceSession, String content) thr
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);
Expand Down

0 comments on commit 0508411

Please sign in to comment.