Skip to content

Commit

Permalink
Fix GL200 frame decoding (fix #880)
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Apr 7, 2015
1 parent 2e709a8 commit 956e0c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/traccar/protocol/Gl200ProtocolDecoder.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012 - 2013 Anton Tananaev (anton.tananaev@gmail.com)
* Copyright 2012 - 2015 Anton Tananaev (anton.tananaev@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -38,7 +38,7 @@ public Gl200ProtocolDecoder(DataManager dataManager, String protocol, Properties

private static final Pattern pattern = Pattern.compile(
"(?:(?:\\+(?:RESP|BUFF):)|" +
"(?:\\x00\\x04,\\p{XDigit}{4},[01],))" +
"(?:\\x00?\\x04,\\p{XDigit}{4},[01],))" +
"GT...," +
"(?:[0-9a-fA-F]{6})?," + // Protocol version
"(\\d{15}),.*," + // IMEI
Expand Down

0 comments on commit 956e0c3

Please sign in to comment.