Y202-2 Power Cut off /Resume

Prince Rajput6 years ago

We are using Y202 Device on Port : 5023

Device Communication Protocol : https://gpsgateway.in/downloads/y202-communication-protocol.pdf
Device User manual : https://gpsgateway.in/downloads/y202-user-manual.pdf

Device is working fine but Whenever we are sending command using API to stop/Resume vehicle it's not working.

we are using given below ( already tested for GT06) code to send command to Stop/Resume vehicle.

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>try traccar api</title>
  </head>
  <body>
    <script src="https://code.jquery.com/jquery-2.2.2.min.js" charset="utf-8"></script>
    <script type="text/javascript">
      // var name = "Prince Rajput";
      // var uid = "+91 8864908528";
      $.ajax({
        type: 'post',
        url: 'http://ip:8082/api/commands/send',
        // please replace IP to your orginal IP
        headers: {
            "Authorization": "Basic " + btoa("username:password")
            // above line please replace username and password to orginal username , password.
        },
        contentType:"application/json",
        data:JSON.stringify({
                   deviceId: 2,
        // type: "engineStop"
        type: "engineResume"
        }),
        success: function (response) {
            console.log(response);
        }
      });

    </script>
  </body>
</html>

kindly suggest me related port or any changes on code or another process to complete this operation.
Thanks Anton Tananaev