Digital fuel sensor data protocol GL200

Victor4 years ago

Hi.

Im trying to get digital fuel data from GL200 protocol, according to protocol rules, data is in the original input (value in HEX: 133E):

+RESP:GTERI,270A01,867XXXXXXXX,00000001,,10,1,1,0.0,0,472.0,-XXX.XXXX,XX.XXXX,20200920030540,0334,0020,84DE,7DE8286,00,261.1,,4985,4979,92,110000,1,133E,20200920030548,4C3B$

I getting this on attributes column in positions table:

{"hdop":1.0,"odometer":261100.00000000003,"adc1":"4985","adc2":"4979","batteryLevel":92,"ignition":false,"input":0,"output":0,"type":"ERI","distance":0.0,"totalDistance":0.0,"motion":false}

I was looking the Gl200TextProtocolDecoder`s class code and I couldnĀ“t find digital fuel sensor data in PATTERN_ERI definition (line 223). Actually I can only find additional data after device status in patternBuilder (line 241).

Also in line 929 is checking for a mask = 0 for increase index so it can read digital info. I don`t know if this is correct or I'm not understanding

if (BitUtil.check(mask, 0)) {
         index += 1; // digital fuel sensor data
} 

What am I doing wrong ? : (