Ask a question

3590 questions

4090 answers

3024 comments

34735 members

Ask a question
+1 vote
1,208 views
in Vehicle tracking by
hi
sorry i'm trying to receive data from my FMB120, up to now I can config my device and receive data on my port, but the received data format is like:

{"type":"Buffer","data": 109,56,227,172,160,0,30,239,191,189,21,239,191,189,21,71,239,191,189,239,191,189,0,0,0,0,0,0,0,0,12,6,239,191,189,1,239,191,189,0,80,4,21,5,239,191,189,0,69,2,6,239,191,189,0,0,239,191,189,0,0,66,65,95,24,0,0,67,15,239,191,189,68,0,0,0,0,0,0.........................................

now I cannot decode, please help me to solve this problem.

thanks
by

Now i can receive the data packet in below format, but I still cannot decode data;
 

_reader:

   { ByteBuffer:

      <Buffer 6d 3a 75 70 30 00 1e ef bf bd 11 ef bf bd 15 47 ef bf bd ef bf bd 04 ef bf bd 00 ef bf bd 0f 00 00 00 0c 06

 ef bf bd 01 ef bf bd 00 50 04 15 05 ef bf ... >,

     Endianness: 'big',

     Encoding: 'ascii',

     Length: 1372,

     Position: 15 },

  _avlObj:

   { data_length: 1007,

     codec_id: 191,

     number_of_data: 189,

     number_of_data2: 8,

     CRC: { '0': 16, '1': 0, '2': 0, '3': 1 } },

  _codecReader:

   { ByteBuffer:

      <Buffer 6d 3a 75 70 30 00 1e ef bf bd 11 ef bf bd 15 47 ef bf bd ef bf bd 04 ef bf bd 00 ef bf bd 0f 00 00 00 0c 06

 ef bf bd 01 ef bf bd 00 50 04 15 05 ef bf ... >,

     Endianness: 'big',

     Encoding: 'ascii',

     Length: 1372,

     Position: 15 }

2 Answers

0 votes
by
Hi.

Where did you get this log from? Maybe the provided "data" is an IP packet or something. If so, Teltonika's codec 8/12 or IMEI message could be found somewhere in the middle of the buffer.
by

Thanks for response

Now i can receive the data packet in below format, but I still cannot decode data;

_reader:

   { ByteBuffer:

      <Buffer 6d 3a 75 70 30 00 1e ef bf bd 11 ef bf bd 15 47 ef bf bd ef bf bd 04 ef bf bd 00 ef bf bd 0f 00 00 00 0c 06

 ef bf bd 01 ef bf bd 00 50 04 15 05 ef bf ... >,

     Endianness: 'big',

     Encoding: 'ascii',

     Length: 1372,

     Position: 15 },

  _avlObj:

   { data_length: 1007,

     codec_id: 191,

     number_of_data: 189,

     number_of_data2: 8,

     CRC: { '0': 16, '1': 0, '2': 0, '3': 1 } },

  _codecReader:

   { ByteBuffer:

      <Buffer 6d 3a 75 70 30 00 1e ef bf bd 11 ef bf bd 15 47 ef bf bd ef bf bd 04 ef bf bd 00 ef bf bd 0f 00 00 00 0c 06

 ef bf bd 01 ef bf bd 00 50 04 15 05 ef bf ... >,

     Endianness: 'big',

     Encoding: 'ascii',

     Length: 1372,

     Position: 15 }

0 votes
by

This looks like the whole tcp/ip packet, not just the contents. Read the data at a higher level (The tcp/ip socket itself). The Codec8e packet in your case starts with "00 00 00 0c 06 ..."

by

Thanks for response

Now i can receive the data packet in below format, but I still cannot decode data;

_reader:

   { ByteBuffer:

      <Buffer 6d 3a 75 70 30 00 1e ef bf bd 11 ef bf bd 15 47 ef bf bd ef bf bd 04 ef bf bd 00 ef bf bd 0f 00 00 00 0c 06

 ef bf bd 01 ef bf bd 00 50 04 15 05 ef bf ... >,

     Endianness: 'big',

     Encoding: 'ascii',

     Length: 1372,

     Position: 15 },

  _avlObj:

   { data_length: 1007,

     codec_id: 191,

     number_of_data: 189,

     number_of_data2: 8,

     CRC: { '0': 16, '1': 0, '2': 0, '3': 1 } },

  _codecReader:

   { ByteBuffer:

      <Buffer 6d 3a 75 70 30 00 1e ef bf bd 11 ef bf bd 15 47 ef bf bd ef bf bd 04 ef bf bd 00 ef bf bd 0f 00 00 00 0c 06

 ef bf bd 01 ef bf bd 00 50 04 15 05 ef bf ... >,

     Endianness: 'big',

     Encoding: 'ascii',

     Length: 1372,

     Position: 15 }