1

Al messages from specific time

Тема: Al messages from specific time

Hello,

I need to get all messages from device using this call:

https://hst-api.wialon.com/wialon/ajax.html?svc=messages/load_interval&params={"itemId":19009950,"timeFrom":1577878027,"timeTo":1591010827,"flags":1,"flagsMask":65281,"loadCount":3}&sid=

I do not really undertstand the "flags", "flgagsmaks" and "loadcount";

could yoy please explain a bit more

https://sdk.wialon.com/wiki/en/kit/remo … s/messages

I tried the call and I get just, for 3 months, somethns like: http://prntscr.com/sy1o3d

thanks

Locating things
2

Al messages from specific time

Re: Al messages from specific time

Good afternoon!

With flags you can specify which messages type you need to load. Flags mask used to specify which bits (flags) use in flags values and the final value of flags is calculated with bitwise AND between flags and mask. For example, you need only messages with position data so use flag 0x01 and mask  0xFF01. It's possible to mixin different flags with bitwise OR between their values.

3

Al messages from specific time

Re: Al messages from specific time

Hello,

We need to query on all violations.

As it stands, when we query with the event flagsMask '1536' the response is a count of zero with an empty array of messages.

Could you detail how to retrieve this information?

thanks

Locating things
4

Al messages from specific time

Re: Al messages from specific time

hello, I neet this please..thanks

Locating things
5

Al messages from specific time

Re: Al messages from specific time

locationGPS пишет:

Hello,

We need to query on all violations.

As it stands, when we query with the event flagsMask '1536' the response is a count of zero with an empty array of messages.

Could you detail how to retrieve this information?

thanks

Please use "flags" parameter 0x600 for events and 0x01 for violations. So to get complete flags you need to make bitwise OR: 0x600 | 0x01 = 0x601 (in DEC 1537)

And set parameter "flagsMask" as 0xFF01 to get necessary flags after mask: 0x601 & 0xFF01 = 0x601

Also, please check the parameter "loadCount" to be sure that it has 0xffffffff value to get all messages.

6

Al messages from specific time

Re: Al messages from specific time

Hi!

We are now seeing data, however all the events are coming back with a message type of “ud” whereas the document stats this should be “evt” for events. Why is this? What does “ud” mean?

thanks

Locating things
7

Al messages from specific time

Re: Al messages from specific time

Hi Pablo (locationGPS), please take a look at https://sdk.wialon.com/wiki/en/kit/remo … _with_data

8

Al messages from specific time

Re: Al messages from specific time

thanks Hamed,

client tested and informs me:

From that link we have “ud” is under “Message with data”. We are looking for data in regards to Events and our attempts to follow the information in the below section, from your link, gives results in tp=ud which is for “Message with data”. We do use this to obtain the GPS information we need. However we also need event/violations. We have followed the below and its not giving us the event data. What should the flag digit be? We have been using 1 = violation (see the link below).   

https://hst-api.wialon.com/wialon/ajax.html?svc=messages/load_interval&params={"itemId":18930077,"timeFrom":1577878027,"timeTo":1591010827,"flags":1,"flagsMask":1537,"loadCount":4294967295}&sid=

http://prntscr.com/t6v0pk

https://hst-api.wialon.com/wialon/ajax.html?svc=messages/load_interval&params={"itemId":18930077,"timeFrom":1577878027,"timeTo":1591010827,"flags":1,"flagsMask":1537,"loadCount":4294967295}&sid=

¿'¿?

thanks

Locating things
9

Al messages from specific time

Re: Al messages from specific time

hello
it s urgent, sorry

Locating things
10

Al messages from specific time

Re: Al messages from specific time

locationGPS пишет:

thanks Hamed,

client tested and informs me:

From that link we have “ud” is under “Message with data”. We are looking for data in regards to Events and our attempts to follow the information in the below section, from your link, gives results in tp=ud which is for “Message with data”. We do use this to obtain the GPS information we need. However we also need event/violations. We have followed the below and its not giving us the event data. What should the flag digit be? We have been using 1 = violation (see the link below).   

https://hst-api.wialon.com/wialon/ajax.html?svc=messages/load_interval&params={"itemId":18930077,"timeFrom":1577878027,"timeTo":1591010827,"flags":1,"flagsMask":1537,"loadCount":4294967295}&sid=

http://prntscr.com/t6v0pk


https://hst-api.wialon.com/wialon/ajax.html?svc=messages/load_interval&params={"itemId":18930077,"timeFrom":1577878027,"timeTo":1591010827,"flags":1,"flagsMask":1537,"loadCount":4294967295}&sid=

¿'¿?

thanks

Hi Pablo,

there is not correct flags and flags mask  - "flags":1 is for messages (data) from device, that is why type "tp":"ud",        /* message type (ud - message with data) */

You need to apply the following flag and mask  - "flags":1537 = event type (1536) + violations (1) ,
"flagsMask":65281 - the value used to define necessary flags after mask (0x601 & 0xFF01 = 0x601)

Please note such events messages are get if before they were registered as violation event in Wialon manually or via notification (action - Register as violation )

Diana Cheley
Wialon Hosting Expert
Gurtam
11

Al messages from specific time

Re: Al messages from specific time

GooDiana, client is asking me now "how may I know the time between 2 points from api"?

Can you tell me the link where is this info?

Thanks

Locating things
12

Al messages from specific time

Re: Al messages from specific time

locationGPS , do you mean ETA service between two points?

13

Al messages from specific time

Re: Al messages from specific time

ETA?  client wants to work as Logistiks, time between 2 coordinates to know how long it will take to arrive the object from point A to point B

thankas

Locating things
14

Al messages from specific time

(06/07/2020 19:55:48 отредактировано locationGPS)

Re: Al messages from specific time

It is scientifically proved that when you wait too much for answers about technical support, it is not just the Clients get bored and contract other companies...it affects directly to the sense of expression...

ALiKELIAJK LIEKRLRIL!! ALIE KEEELEEEeeEEeEE!!!! 1!!1 YIAAAh!

aokgigkg ! GJIJIGRIG!!! YEIEIEEAAAAAE

Locating things
15

Al messages from specific time

Re: Al messages from specific time

locationGPS пишет:

GooDiana, client is asking me now "how may I know the time between 2 points from api"?

Can you tell me the link where is this info?

Thanks

Hi Pablo.

you can use this request https://forum.gurtam.com/viewtopic.php? … 65#p180665 which our developer desribed early.

Also you can look to Google API - https://developers.google.com/maps/docu … trix/start

Diana Cheley
Wialon Hosting Expert
Gurtam