diff options
author | drecchia <danilo@deltatecnologia.com> | 2016-06-08 22:25:00 -0300 |
---|---|---|
committer | drecchia <danilo@deltatecnologia.com> | 2016-06-08 22:25:00 -0300 |
commit | 514846455335c9c547f602c7592d11f68022fc4b (patch) | |
tree | 5b55f1a334b9c4e16212d1cd827b7eda677e2f9c /src/org | |
parent | d78b930b195722716082f81426831278985d308e (diff) | |
download | traccar-server-514846455335c9c547f602c7592d11f68022fc4b.tar.gz traccar-server-514846455335c9c547f602c7592d11f68022fc4b.tar.bz2 traccar-server-514846455335c9c547f602c7592d11f68022fc4b.zip |
- Fixed identation.
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/LdplProtocolDecoder.java | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/org/traccar/protocol/LdplProtocolDecoder.java b/src/org/traccar/protocol/LdplProtocolDecoder.java index fec957281..52d7cd020 100644 --- a/src/org/traccar/protocol/LdplProtocolDecoder.java +++ b/src/org/traccar/protocol/LdplProtocolDecoder.java @@ -34,31 +34,31 @@ public class LdplProtocolDecoder extends BaseProtocolDecoder { } private static final Pattern PATTERN = new PatternBuilder() - .text("*ID") // start of frame - .number("(d+),") // command code - .number("(d+),") // imei - .number("(dd)(dd)(dd),") // current date - .number("(dd)(dd)(dd),") // current time - .expression("([A|V]),") // gps fix - .number("(dd)(dd).?(d+),([NS]),") // latitude - .number("(ddd)(dd).?(d+),([EW]),") // longitude - .number("(d{1,3}.dd),") // speed - .number("(d{1,3}.dd),") // course - .number("(d{1,2}),") // sats - .number("(d{1,3}),") // gsm signal strength - .expression("([A|N|S]),") // vehicle status - .expression("([0|1]),") // main power status - .number("(d.dd),") // internal battery voltage - .expression("([0|1]),") // sos alert - .expression("([0|1]),") // body tamper - .expression("([0|1])([0|1]),") // ac status + ign_status - .expression("([0|1|2]),") // output1 status - .number("(d{1,3}),") // adc1 - .number("(d{1,3}),") // adc2 - .expression("([0-9A-Z]{3}),") // software version - .expression("([L|R]),") // message type - .expression("([0-9A-Z]{4})#") // crc - .compile(); + .text("*ID") // start of frame + .number("(d+),") // command code + .number("(d+),") // imei + .number("(dd)(dd)(dd),") // current date + .number("(dd)(dd)(dd),") // current time + .expression("([A|V]),") // gps fix + .number("(dd)(dd).?(d+),([NS]),") // latitude + .number("(ddd)(dd).?(d+),([EW]),") // longitude + .number("(d{1,3}.dd),") // speed + .number("(d{1,3}.dd),") // course + .number("(d{1,2}),") // sats + .number("(d{1,3}),") // gsm signal strength + .expression("([A|N|S]),") // vehicle status + .expression("([0|1]),") // main power status + .number("(d.dd),") // internal battery voltage + .expression("([0|1]),") // sos alert + .expression("([0|1]),") // body tamper + .expression("([0|1])([0|1]),") // ac status + ign_status + .expression("([0|1|2]),") // output1 status + .number("(d{1,3}),") // adc1 + .number("(d{1,3}),") // adc2 + .expression("([0-9A-Z]{3}),") // software version + .expression("([L|R]),") // message type + .expression("([0-9A-Z]{4})#") // crc + .compile(); @Override protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception { |