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