New Device Protocol Pattern

Ashok Devatwal5 years ago

I have new device. I request you to please check the protocol and let me know which protocol to use
here is my HEX Decoded String

,,05,868728038983646,$GPRMC,103024.000,A,2734.0090,N,07637.5984,E,0000,92.71,020321,,,A*45
,#01001110,1.10377,-1.00,1.124,0,-1,0,0,22,BL,0,278.7,

if its new then please help me out to set protocol pattern . i don't know how to set up pattern for starting with 0x20 (Space).

Ashok Devatwal5 years ago

is that correct ?????

         .groupBegin()
            .text(" ,")
            .number("(dd),")
            .number("(d+),")                  // device id imei
            .text("$GPRMC,")
            .number("(dd)(dd)(dd).(ddd),")       // time (hhmmss.sss)
            .expression("([AV]),")               // validity
            .number("(d+)(dd.d+),")              // latitude
            .expression("([NS]),")
            .number("(d+)(dd.d+),")              // longitude
            .expression("([EW]),")
            .number("(d+.?d*),")                 // speed
            .number("(d+.?d*),")                 // course
            .number("(dd)(dd)(dd),")             // date (ddmmyy)
             .groupEnd()
            .any()
            .compile();