diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-03-08 22:15:52 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-03-08 22:15:52 -0800 |
commit | b747bc81526ef877c34d3eeca6fcd8d997b6fba8 (patch) | |
tree | 6bcb0e28a13e9bde2cd330503e055810caa07472 /src/main/java/org/traccar | |
parent | 440b2a96c3febdd498628c9b6cfaec01649786f2 (diff) | |
download | trackermap-server-b747bc81526ef877c34d3eeca6fcd8d997b6fba8.tar.gz trackermap-server-b747bc81526ef877c34d3eeca6fcd8d997b6fba8.tar.bz2 trackermap-server-b747bc81526ef877c34d3eeca6fcd8d997b6fba8.zip |
Ruptela harsh driving alarms
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r-- | src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java b/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java index 227a9ac91..b6378f416 100644 --- a/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 - 2019 Anton Tananaev (anton@traccar.org) + * Copyright 2013 - 2021 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -110,6 +110,16 @@ public class RuptelaProtocolDecoder extends BaseProtocolDecoder { case 80: position.set(Position.PREFIX_TEMP + (id - 78), readValue(buf, length, true) * 0.1); break; + case 198: + position.set(Position.KEY_ALARM, Position.ALARM_OVERSPEED); + break; + case 199: + case 200: + position.set(Position.KEY_ALARM, Position.ALARM_BRAKING); + break; + case 201: + position.set(Position.KEY_ALARM, Position.ALARM_ACCELERATION); + break; default: position.set(Position.PREFIX_IO + id, readValue(buf, length, false)); break; |