FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
307 views 0 comments
by anonymous

Hi, I'm Manuel. I'm working with Teltonika FMB204 for an university proyect but I have an issue. I developed a simple TCP listener in Node Js to listen TCP packets from the device. The server is on Google Cloud VM. The issue is the device is sending a very long hex that not correspond the documentation:

00000000000004d408110000018007a616d800d58c6ca7eb2885a500e10000110000f00e05ef00f0011503c800450106b50004b600034230a943
0ea54400d30d000003f100011d2b100000a9a90c00000000000000018007c0b74000d58c6ca7eb2885a500e50000100000f00e05ef00f0011503
c800450106b50004b60003420000430e8b4400000d000003f100011d2b100000a9a90c00000000000000018007c333f800d58c6ca7eb2885a500
e50000100000f00e05ef00f0001503c800450106b50005b60003420000430e8e4400000d000003f100011d2b100000a9a90c0000000000000001
8007c6934000d58c6ca7eb2885a500e50000100000f00e05ef00f0011503c800450106b50004b60003420000430e8a4400000d000003f100011d
2b100000a9a90c00000000000000018007c8121000d58c6ca7eb2885a500e500000f0000f00e05ef00f0001504c800450106b50005b600034200
00430e894400000d000003f100011d2b100000a9a90c00000000000000018007d2957800d58c6ca7eb2885a500e500000f0000f00e05ef00f001
1504c800450106b50004b60003420000430e7f4400000d000003f100011d2b100000a9a90c00000000000000018007d3aeb800d58c6ca7eb2885
a500e500000f0000f00e05ef00f0001504c800450106b50005b60003420000430e834400000d000003f100011d2b100000a9a90c000000000000
000180080a9d3800d58c6ca7eb2885a500e50000100000000e05ef00f0001500c800450106b50005b60003420000430e604400000d000003f100
000000100000a9a90c00000000000000018008418fa000d58c6ca7eb2885a500e50000120000000e05ef00f0001500c800450106b50005b60003
420000430e2f4400000d000003f100000000100000a9a90c00000000000000018008787e2000d58c6ca7eb2885a500e50000120000000e05ef00
f0001500c800450106b50005b60003420000430de64400000d000003f100000000100000a9a90c0000000000000000f9cebb6bb0000000000000
00000000000000000000f00e05ef00f0011503c800450206b50000b6000042302f4300004400000d000003f100011d2b100000a9a90c00000000
00000000f9cebb8af000d58c736ceb28839000f40000060000000e05ef00f0011503c800450106b50009b6000842302f430df24400cf0d000003
f100011d2b100000a9a90c0000000000000000f9cebc755000d58c736ceb28839000e40000100000f00e05ef00f0001503c800450106b50006b6
0003423054430e3d4400d30d000003f100011d2b100000a9a90c0000000000000001800c2e5e1800d58c736ceb28839000e40000110000000e05
ef00f0001503c800450106b50006b6000342304c430e3d4400d30d000003f100011d2b100000a9a90c0000000000000001800c4f539800d58c73
6ceb28839000e40000110000f00e05ef00f0011503c800450106b50006b600034230aa430eb04400d30d000003f100011d2b100000a9a90c0000
000000000001800c5041e000d58c736ceb28839000e40000110000f00e05ef00f0001503c800450106b50006b600034230ab430eb04400d30d00
0003f100011d2b100000a9a90c0000000000000001800c7a9da000d58c7592eb28802d00dc00cc0f0000f00c05ef00f0011503c800450105b500
05b60003420000430e9e44000002f100011d2b100000a9a900110000e52e

And everytime sends the same hexadecimal. I think it should change because the timestamp changes every second. This is my Node code:

import net from "net";
 
const server = net.createServer();
 
server.on("connection", (socket) => {
  socket.setEncoding("hex");
  socket.on("data", (data) => {
    socket.write("\x01");
    console.log(data);
  });
 
  socket.on("close", () => {});
 
  socket.on("error", (err) => {
    console.log(err.message);
  });
});
 
server.listen(4000, () => {
  console.log("Server listening at " + server.address().port);
});

The first time that I test it, it was working very well. But the next day, the device started to send the long hexadecimal. In the uploaded image you can see when it was working well.

Thank you very much and sorry for my english

1 Answer

0 votes
by anonymous

Hello,

Thank you for contacting us.
I would like to inform Teltonika FMB204 is a Teltonika Telematics device.
In order to have advice about your question, please contact our Teltonika Telematics colleagues in this crowd forum.
Hope it helps.

Best regards,

Sigitas K.