aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/T55ProtocolDecoder.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/T55ProtocolDecoder.java b/src/org/traccar/protocol/T55ProtocolDecoder.java
index 3c4a9500b..0cd7ca1b7 100644
--- a/src/org/traccar/protocol/T55ProtocolDecoder.java
+++ b/src/org/traccar/protocol/T55ProtocolDecoder.java
@@ -107,6 +107,15 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder {
Log.warning("Unknown device - " + id);
}
}
+
+ // Identification
+ else if (Character.isDigit(sentence.charAt(0)) & sentence.length() == 15) {
+ try {
+ deviceId = getDataManager().getDeviceByImei(sentence).getId();
+ } catch(Exception error) {
+ Log.warning("Unknown device - " + sentence);
+ }
+ }
// Location
else if (sentence.startsWith("$GPRMC") && deviceId != null) {