1

No data from sensors¿

Тема: No data from sensors¿

Hello,

i am making this call to get values from sensors but all sensor are empty, for example Km CAN :

http://prntscr.com/qlakkk

core/search_item&params -->

why¿'

},
            "4": {
                "id": 4,
                "n": "Km CAN",
                "t": "mileage",
                "d": "",
                "m": "km",
                "p": "can_mileage",
                "f": 0,
                "c": "{\"act\":1,\"appear_in_popup\":true,\"ci\":{},\"cm\":0,\"lower_bound\":0.5,\"mu\":0,\"pos\":7,\"show_time\":false,\"timeout\":0,\"uct\":0}",
                "vt": 1,
                "vs": 0,
                "tbl": [
                    {
                        "x": 1,
                        "a": 0.005,
                        "b": 0
                    }
                ]
            },

Locating things
2

No data from sensors¿

Re: No data from sensors¿

Hello!

the response returns information about sensor settings - name, parameter, calculation table and etc.
To get last sensor values you can execute request unit/calc_last_message , or to get counters value set up flag Counters to in request search item

Diana Cheley
Wialon Hosting Expert
Gurtam
3

No data from sensors¿

Re: No data from sensors¿

aaaaaaaay aaaaaaaaaaaaay!!!! Dianaaaaaaaaaaaaaaaaaaaaaaaaaaaay

thanksaaaaaaaaaaaaaaaaaaaaaaay

Locating things
4

No data from sensors¿

Re: No data from sensors¿

and how do I know each sensor ID? do I must check it with the client s front end...or is there any call that will return me the

Senso XX is 1
Senxor XX2 is 2
...
Sensor XXN is n

? maybe?

thanksay

Locating things
5

No data from sensors¿

Re: No data from sensors¿

where is this data?
http://prntscr.com/qlsay2

I want the tacho info driver

thanks

Locating things
6

No data from sensors¿

Re: No data from sensors¿

Good day,

in request  unit/calc_last_message  if not specified 'sensors' parameter or empty - return values of all sensors
But this request can return only number values, not text , like in your case value for Conductor.
To get all possible types values it's through request events/check_updates  with "detalization":3. Before it needs to load required units to session - https://sdk.wialon.com/wiki/en/sidebar/ … date_units

the other way just get info from last message as raw parameters - search item with flag Last message and position

Diana Cheley
Wialon Hosting Expert
Gurtam
7

No data from sensors¿

Re: No data from sensors¿

ok, but no I/O info

i want this: http://prntscr.com/qlwdb4 also..

cane be? or to know Engine state (connected to DIN) I must check in sensors call?
thanks

Locating things
8

No data from sensors¿

Re: No data from sensors¿

locationGPS пишет:

ok, but no I/O info

i want this: http://prntscr.com/qlwdb4 also..

cane be? or to know Engine state (connected to DIN) I must check in sensors call?
thanks

Hello!

I/O parameters are raw data, so they can be get only from messages params
as for Engine state - ignition sensor which created for unit - it's possible via request  events/check_updates the same as described above

Diana Cheley
Wialon Hosting Expert
Gurtam
9

No data from sensors¿

Re: No data from sensors¿

ok, i ll get engine state from sensors, question...Client asks "ok, engine is OFF", where do i get the info regarding how long was stopped?

from stops report? or is there any other way? (I found in tacho info there are those info BUt of course, not all trucks have tacho installed..

thanks

Locating things
10

No data from sensors¿

Re: No data from sensors¿

locationGPS пишет:

ok, i ll get engine state from sensors, question...Client asks "ok, engine is OFF", where do i get the info regarding how long was stopped?

from stops report? or is there any other way? (I found in tacho info there are those info BUt of course, not all trucks have tacho installed..

thanks

as request events/check_updates can return time when sensor is get value (0 or 1) you can calculate duration on your side
for  example

ignition: {2: {from: {t: 1578665386, y: 53.9058570862, x: 27.4567871094},…}}
2: {from: {t: 1578665386, y: 53.9058570862, x: 27.4567871094},…}
f: 2
from: {t: 1578665386, y: 53.9058570862, x: 27.4567871094}
hours: 5638064
m: 1578995183
state: 0
switches: 43
to: {t: 1578665873, y: 53.9058532715, x: 27.4573307037}
type: 1
value: 0

start to calculate from last sensor time - to: {t: 1578665873} , in next response  get the same state  - calculate duration, ....etc  then in some response get new value state:1, so process calculation to Off sensor has broken, start to calculate On duration and etc.

Diana Cheley
Wialon Hosting Expert
Gurtam
11

No data from sensors¿

Re: No data from sensors¿

I think it will work out... we test and complain.
tjhamnks

Locating things