Skip to content

Commit

Permalink
Support Vista Trax TS15 format
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Feb 23, 2024
1 parent ae0e26d commit 500a312
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public TaipProtocolDecoder(Protocol protocol) {
.groupEnd("?")
.number("(d{5})") // seconds
.or()
.expression("(?:RGP|RCQ|RCV|RBR|RUS00),?") // type
.expression("(?:RGP|RCQ|RCV|RBR|RUS00|RPI),?") // type
.number("(dd)?") // event
.number("(dd)(dd)(dd)") // date (mmddyy)
.number("(dd)(dd)(dd)") // time (hhmmss)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ public void testDecode() throws Exception {

var decoder = inject(new TaipProtocolDecoder(null));

verifyAttributes(decoder, text(
">RUS00,010170000000+0000000+000000000000001009999000011060074755268EF,0001139503871486,01,ZZZZZZZZZZ;ID=11817;#LOG:6AE4;*2C<"));

verifyPosition(decoder, text(
">RPI041220132203-2683525-065204060150001050000101511140022118857EF27;ID=0000;#LOG:DECB;*07<"));

verifyPosition(decoder, text(
">RCQ00151123235718-2782354-06407582055121FF0013501CDCC6313011100001514;#0805;ID=SIA056;*15<"));

Expand Down

0 comments on commit 500a312

Please sign in to comment.