1

Differences on each RESULT node...

Тема: Differences on each RESULT node...

Hello. Results in response body are different...
Data on the second RESULT value is different from the other ones.. It doesn´t have the same values as always. Why is that?

{
  "result": [
    {
      "channel_id": 1039,
      "custom.age": 2,
      "custom.code": 54,
      "custom.event_type": 10,
      "custom.id": 4428022375,
      "custom.ip": "nnn.nnn.nnn.nnn",
      "custom.pid": 121,
      "custom.port": 4097,
      "custom.re_index": 0,
      "custom.re_sense": 1,
      "custom.re_type": "R",
      "custom.source": 3,
      "custom.valid_position": 1,
      "custom.vid": 264,
      "ident": "nnn",
      "position.altitude": 0,
      "position.direction": 115,
      "position.latitude": -33.36868,
      "position.longitude": -58.16241,
      "position.satellites": 255,
      "position.speed": 6,
      "timestamp": 1510832702
    },
    {
      "channel_id": 1039,
      "custom.ac": 0,
      "custom.age": 2,
      "custom.bl": 4084,
      "custom.cf_cid": 25,
      "custom.cf_lac": 292,
      "custom.cf_rssi": 15,
      "custom.code": 51,
      "custom.digital": 0,
      "custom.event_type": 10,
      "custom.id": 4428022426,
      "custom.io_exp_state": 0,
      "custom.io_ign": 1,
      "custom.io_in1": 0,
      "custom.io_in2": 0,
      "custom.io_in3": 0,
      "custom.io_out1": 0,
      "custom.io_out2": 0,
      "custom.io_pwr": 1,
      "custom.ip": "nnn.nnn.nnn.nnn",
      "custom.mileage": 0,
      "custom.pdop": 1.49,
      "custom.pid": 121,
      "custom.port": 4097,
      "custom.source": 3,
      "custom.valid_position": 1,
      "custom.vdop": 1.21,
      "custom.vid": 264,
      "custom.vo": 2224776,
      "ident": "nnn",
      "position.altitude": 63,
      "position.direction": 64,
      "position.hdop": 0.87,
      "position.latitude": -33.36868,
      "position.longitude": -58.16205,
      "position.satellites": 9,
      "position.speed": 6,
      "timestamp": 1510832720
    },
    {
      "channel_id": 1039,
      "custom.ac": 0,
      "custom.age": 2,
      "cust...

There are tags (custom.re_index, custom.re_sense, custom.re_type) that I have never seen before... and there are tags that are missing.

Thanks.

2

Differences on each RESULT node...

Re: Differences on each RESULT node...

Hello, Sergio

Data on the second RESULT value is different from the other ones.

The message is retranslated via Wialon Retranslator protocol with all tags. So if there is another set of tags in the message it means that this is another type of message from device.

It doesn´t have the same values as always.

What are parameter names that have mismatched values? What correct values should it contain?

there are tags that are missing

Specify names of the tags please.

There are tags (custom.re_index, custom.re_sense, custom.re_type) that I have never seen before

Note that tag names in flespi differ from tag names in Wialon. Tag names beginning with "custom_"  prefix are the ones that come with its special name via protocol.

3

Differences on each RESULT node...

Re: Differences on each RESULT node...

The message is retranslated via Wialon Retranslator protocol with all tags. So if there is another set of tags in the message it means that this is another type of message from device.

Ok.


This is a typical set of values:

  <result>
    <channel_id>1039</channel_id>
    <custom.ac>0</custom.ac>
    <custom.age>2</custom.age>
    <custom.bl>4085</custom.bl>
    <custom.cf_cid>25</custom.cf_cid>
    <custom.cf_lac>292</custom.cf_lac>
    <custom.cf_rssi>12</custom.cf_rssi>
    <custom.code>51</custom.code>
    <custom.digital>0</custom.digital>
    <custom.event_type>10</custom.event_type>
    <custom.id>4428022513</custom.id>
    <custom.io_exp_state>0</custom.io_exp_state>
    <custom.io_ign>1</custom.io_ign>
    <custom.io_in1>0</custom.io_in1>
    <custom.io_in2>0</custom.io_in2>
    <custom.io_in3>0</custom.io_in3>
    <custom.io_out1>0</custom.io_out1>
    <custom.io_out2>0</custom.io_out2>
    <custom.io_pwr>1</custom.io_pwr>
    <custom.ip>nnn.nnn.nnn.nnn</custom.ip>
    <custom.mileage>0</custom.mileage>
    <custom.pdop>1.15</custom.pdop>
    <custom.pid>121</custom.pid>
    <custom.port>4097</custom.port>
    <custom.source>3</custom.source>
    <custom.valid_position>1</custom.valid_position>
    <custom.vdop>0.77</custom.vdop>
    <custom.vid>264</custom.vid>
    <custom.vo>2224824</custom.vo>
    <ident>nnn</ident>
    <position.altitude>70</position.altitude>
    <position.direction>23</position.direction>
    <position.hdop>0.86</position.hdop>
    <position.latitude>-33.36851</position.latitude>
    <position.longitude>-58.16163</position.longitude>
    <position.satellites>9</position.satellites>
    <position.speed>6</position.speed>
    <timestamp>1510832746</timestamp>
  </result>

This is the set of values that is different from the others:

    <channel_id>1039</channel_id>
    <custom.age>2</custom.age>
    <custom.code>54</custom.code>
    <custom.event_type>10</custom.event_type>
    <custom.id>4428022375</custom.id>
    <custom.ip>nnn.nnn.nnn.nnn</custom.ip>
    <custom.pid>121</custom.pid>
    <custom.port>4097</custom.port>
    <custom.re_index>0</custom.re_index>
    <custom.re_sense>1</custom.re_sense>
    <custom.re_type>R</custom.re_type>
    <custom.source>3</custom.source>
    <custom.valid_position>1</custom.valid_position>
    <custom.vid>264</custom.vid>
    <ident>nnn</ident>
    <position.altitude>0</position.altitude>
    <position.direction>115</position.direction>
    <position.latitude>-33.36868</position.latitude>
    <position.longitude>-58.16241</position.longitude>
    <position.satellites>255</position.satellites>
    <position.speed>6</position.speed>
    <timestamp>1510832702</timestamp>

Thanks!

4

Differences on each RESULT node...

Re: Differences on each RESULT node...

ident, timestamp and position.* are described at wialon retranslator protocol page. custom.* parameters are generated by Wialon during message parsing and should be checked on corresponding device page at gurtam.com. Looks like you are using Syrus Pegasus Gateway and here is their desription: https://gurtam.com/en/gps-hardware/soft … parameters

Follow us on http://www.facebook.com/Gurtam
And take a look at new IoT backend by Gurtam.