Ask a question

1302 questions

1542 answers


4081 members

Ask a question
0 votes
in Vehicle tracking by

Hello, we have following setup to read data from FMT100  codec 8 extended with PHP.

  • we opened a socket port 5027 with function

$host = "XXX.XXX.XXX.XXX";
$port = 5027;


  $socket = socket_create(AF_INET, SOCK_STREAM, 0) or die("Could not create socket\n");
  $result = socket_bind($socket, $host, $port) or die("Could not bind to socket\n");

  while(true) {
    $result = socket_listen($socket, 3) or die("Could not set up socket listener\n");
    $spawn = socket_accept($socket) or die("Could not accept incoming connection\n");
    $input = socket_read($spawn, 1024) or die("Could not read input\n");
    $input = date("H:i:s d.m.Y") . " " . trim($input) . "\n";
    socket_write($spawn, "0x01") or die("Could not write output\n");

  • and we get IMEI in decimal value that works!
  • when we try to send ACK - respond back with function   socket_write($spawn, "0x01") or die("Could not write output\n")    we tried all values" 01", "\x01", "0x01"

but we cannot get any response from device back, to start receiving data.

Please post any idea if you have



1 Answer

0 votes
ago by
Hello Grega,

Thank you for your detail request.

Could you please say, do you sent to device a response " 01" like you mentioned on query? If yes, then you will need to try to send value "01" without space before. If you sent response like we mentioned before, please let us know. Then we explore this case again.

Best regards,

Teltonika Support