queclink-parser
v1.9.12
Published
Parse raw data from Queclink devices
Downloads
261
Readme
queclink-parser
Parses raw data from Queclink devices (TCP). Devices supported: GV55, GV55W, GV200, GV300, GV75W, GV300W, GV500, GV500MAP, GV600W, GV800W, GMT100, GL50, GL50B, GL300, GL300W, GV50P
Installation
npm i -S queclink-parser
Use
const queclink = require('queclink-parser');
const raw = new Buffer('+RESP:GTFRI,350302,867844003012625,,12372,10,1,0,0.0,0,820.8,-70.514872,-33.361021,20160811154617,0730,0002,7410,C789,00,0.0,00000:15:30,2788,705,164,0D,00,,,20160811154651,061D$');
const data = queclink.parse(raw);
/*
{ raw: '+RESP:GTFRI,350302,867844003012625,,12372,10,1,0,0.0,0,820.8,-70.514872,-33.361021,20160811154617,0730,0002,7410,C789,00,0.0,00000:15:30,2788,705,164,0D,00,,,20160811154651,061D$',
manufacturer: 'queclink',
device: 'Queclink-GV200',
type: 'data',
imei: '867844003012625',
protocolVersion: { raw: '350302', deviceType: 'GV200', version: '3.2' },
temperature: null,
history: false,
sentTime: 2016-08-11T15:46:51.000Z,
serialId: 1565,
alarm: { type: 'Gps' },
loc: { type: 'Point', coordinates: [ -70.514872, -33.361021 ] },
speed: 0,
gpsStatus: true,
hdop: 0,
status:
{ raw: '0D00',
sos: false,
input: { '1': true, '2': false, '3': true, '4': true },
output: { '1': false, '2': false, '3': false, '4': false },
charge: true },
azimuth: 0,
altitude: 820.8,
datetime: 2016-08-11T15:46:17.000Z,
voltage:
{ battery: null,
inputCharge: 12.372,
ada: 2.788,
adb: 0.705,
adc: 0.164 },
mcc: 730,
mnc: 2,
lac: 29712,
cid: 51081,
odometer: 0,
hourmeter: 0.25833333333333336
}
*/