aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-06-03 17:37:07 -0700
committerAnton Tananaev <anton@traccar.org>2024-06-03 17:37:07 -0700
commit2264c1699766ab377e01b8c14db4f0e9fbe3a196 (patch)
tree7e6498a755df8aed43dc88abda6820096f4d0a0f /src/main/java/org/traccar
parentbf3770fad4ceb7aeab4f1e686c3a49f3b1aa1592 (diff)
downloadtrackermap-server-2264c1699766ab377e01b8c14db4f0e9fbe3a196.tar.gz
trackermap-server-2264c1699766ab377e01b8c14db4f0e9fbe3a196.tar.bz2
trackermap-server-2264c1699766ab377e01b8c14db4f0e9fbe3a196.zip
Implement FMC920 attributes
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
index 372deae67..1f7192eb4 100644
--- a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
@@ -200,7 +200,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
"FMB001", "FMB010", "FMB002", "FMB020", "FMB003", "FMB110", "FMB120", "FMB122", "FMB125", "FMB130",
"FMB140", "FMU125", "FMB900", "FMB920", "FMB962", "FMB964", "FM3001", "FMB202", "FMB204", "FMB206",
"FMT100", "MTB100", "FMP100", "MSP500", "FMC125", "FMM125", "FMU130", "FMC130", "FMM130", "FMB150",
- "FMC150", "FMM150");
+ "FMC150", "FMM150", "FMC920");
register(1, null, (p, b) -> p.set(Position.PREFIX_IN + 1, b.readUnsignedByte() > 0));
register(2, null, (p, b) -> p.set(Position.PREFIX_IN + 2, b.readUnsignedByte() > 0));
@@ -274,6 +274,9 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
register(249, fmbXXX, (p, b) -> {
p.set(Position.KEY_ALARM, b.readUnsignedByte() > 0 ? Position.ALARM_JAMMING : null);
});
+ register(251, fmbXXX, (p, b) -> {
+ p.set(Position.KEY_ALARM, b.readUnsignedByte() > 0 ? Position.ALARM_IDLE : null);
+ });
register(252, fmbXXX, (p, b) -> {
p.set(Position.KEY_ALARM, b.readUnsignedByte() > 0 ? Position.ALARM_POWER_CUT : null);
});