uro / teltonika-fm-parser

Teltonika fm xxxx protocol encoder and decoder
The Unlicense
68 stars 45 forks source link

Not getting Proper data #7

Closed Nimesh-Soni closed 2 years ago

Nimesh-Soni commented 3 years ago

hello, I have static data getting from device in Hex format. I get attached array which is not provide gps data. Can you help me? While I used another lib. I get some data and some is also wrong (another lib https://github.com/wsilence/gps_bones) decode.txt

<?php

namespace Uro\TeltonikaFmParser; include 'vendor/autoload.php';

$input = "00000000000000df08040000017a4350fcf800000000000000000000000000000000000a05f00050001505c800450205b50000b600001800004310b744000000000000017a4350d5e800000000000000000000000000000000000a05f00050001505c800450205b50000b600001800004310b744000000000000017a4350aed800000000000000000000000000000000000a05f00050041500c800450205b50000b600001800004310b744000000000000017a43502a0800000000000000000000000000000000000a05f00050001505c800450205b50000b600001800004310a54400000000040000eb76";

$payload = $input; $parser = new FmParser('tcp'); $packet = $parser->decodeData($payload); $packet = (array) $packet;

echo '

';
print_r($packet);
exit;

Nimesh-Soni commented 3 years ago

hello anyone have decoder with TMT250 device

uro commented 3 years ago

This library is prepared to work with Teltonika FMB devices. Unfortunately, I don't have any TMT device to test.