Ask a question

3315 questions

3767 answers

2827 comments

16850 members

Ask a question
+1 vote
244 views
in Vehicle tracking by

This is my Nodejs simple UDP server protocol setup.

Is there any documentation for javascript on how to parse the data into JSON and how to send valid responses back to the device. We are using tracker FMC001
 

const dgram = require("dgram");

const server = dgram.createSocket("udp4");

server.on("error", (err=> {

  server.close();

});

server.on("message", (msgrinfo=> {

  const message = Buffer.from(msg);

  console.log(message);

});

server.on("listening", () => {

  const address = server.address();

  console.log("server listening in port 8005");

});

server.bind(8005);

1 Answer

0 votes
by
Hello there,

Good day. Thank you for your question.

Please go through our data sending protocols here - https://wiki.teltonika-gps.com/view/Codec

Should you require further assistance on this, kindly reach out to us via VIP Helpdesk or contact your Sales Manager. If you don't have any contacts with our Sales managers, please contact them on our official website https://teltonika-gps.com/ and click on the "Contact Us" button. When you will click, please fill the form and submit it.

Note: as a topic, please choose "Vehicle telematics" or you can send an e-mail with the description of your situation to info@teltonika.lt

Thank you for your understanding.

Kind regards.