1

Getting Odometer reading in avl_evts

Тема: Getting Odometer reading in avl_evts

I am trying to get odometer reading in the item events. Here is the query to update Item events management


{
  "params": [
    {
      "svc": "core/update_data_flags",
      "params": {
        "spec": [
          {
            "type": "type",
            "data": "avl_resource",
            "flags": 0x3FFFFFFFFFFFFFFF,
            "mode": 1
          }
        ]
      }
    },
    {
      "svc": "core/update_data_flags",
      "params": {
        "spec": [
          {
            "type": "type",
            "data": "avl_unit",
            "flags": 0x3FFFFFFFFFFFFFFF,
            "mode": 1
          }
        ]
      }
    },
    {
      "svc": "core/update_data_flags",
      "params": {
        "spec": [
          {
            "type": "id",
            "data": "11761996",
            "flags": 513,
            "mode": 1
          }
        ]
      }
    }
  ],
  "flags": 0
}





However I am still not getting any cnm values in the events.

{
  "11761996": {
    "i": 11761996,
    "t": "m",
    "d": {
      "t": 1408622146,
      "f": 3,
      "tp": "ud",
      "pos": {
        "y": 8.7967728,
        "x": 78.0940928,
        "z": 16,
        "s": 0,
        "c": 314,
        "sc": 9
      },
      "i": 0,
      "p": {
        "param180": 0,
        "param69": 1,
        "param240": 0,
        "param80": 4,
        "gsm": 3,
        "adc1": 0.061,
        "param181": 17,
        "param182": 8,
        "hdop": 0.8,
        "pwr_ext": 25.336,
        "param205": 16003,
        "param206": 103,
        "param199": 0,
        "param241": 40494,
        "battery_charge": 0
      }
    }
  }
}

I understand that if the odometer is not changed these values will not appear in the events so please provide an example of the result in which the cnm values will appear so that I may be able to look for that variable value pair in the JSON response.

Thanks

Nishad Hussain Kaippally
Implementation Specialist, Middle East, Gurtam

"Computer science is no more about computers than astronomy is about telescopes."
2

Getting Odometer reading in avl_evts

Re: Getting Odometer reading in avl_evts

Odometers recalculates not with every message but every several minutes. So i think you just have to wait for a while

From other side, to test events, you can use unit/update_mileage_counter request and get events after it. "cnm" must be in event data