FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

4167 questions

4739 answers

3460 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.
+1 vote
996 views
in Vehicle tracking by anonymous

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 anonymous
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.