Hi Diana. First of all, thank you for your reply.
I have followed your suggestion and used route/get_round_data instead route/get_all_rounds. to get the rounds.
I get the same data about rounds and its state using both route/get_round_data and route/get_all_rounds.
The state ot the rounds never reports departure event (DEPART_FROM_CHECK_POINT = 0x0020, // depart from check point).
I'm getting historic rounds because I'm not interested in current round of a route/unit.
These are the state for one unit's rounds:
18/02/2021 5:50:08 - 0x8
18/02/2021 7:16:22 - 0x8
18/02/2021 7:40:02 - 0x8
18/02/2021 8:13:42 - 0x8
18/02/2021 8:45:22 - 0x200048
18/02/2021 8:54:55 - 0x108
18/02/2021 9:07:31 - 0x8
18/02/2021 14:17:41 - 0x200048
18/02/2021 14:29:10 - 0x108
18/02/2021 15:00:39 - 0x8
18/02/2021 15:20:44 - 0x8
18/02/2021 16:14:56 - 0x400088
I'm wondering if there is an option in the creation of the schedule or the round that affects the generation of that kind of event (DEPART_FROM_CHECK_POINT (0x0020)). If I get the registered events for the same unit and date from Wialon, I' can't see the departure event:
1 - 2021-02-18 05:50:02 - Event - Route 'MERIDA CTA - FUENTES DE LEON Y V/V': round by schedule 'BASE' started.
2 - 2021-02-18 05:50:08 - Event - Route 'MERIDA CTA - FUENTES DE LEON Y V/V': arrival at point 'MÉRIDA CTA'.
3 - 2021-02-18 07:09:19 - Violation - Inhibidor en ruta MÉRIDA - FUENTES DE LEÓN. Sensor %SENSOR_NAME% activado con el valor %SENSOR_VALUE%. En 2021-02-18 07:09:19 se movió con una velocidad de 78 km/h cerca de 'Carretera De N-630 A Fregenal De La Sierra Por Zafra, Puebla De Sancho Pérez 6310, Badajoz, Spain'. Datos del conductor: SEBASTIAN RETAMAL CORTES,
4 - 2021-02-18 07:16:22 - Event - Route 'MERIDA CTA - FUENTES DE LEON Y V/V': arrival at point 'UD ZAFRA'.
5 - 2021-02-18 07:40:02 - Event - Route 'MERIDA CTA - FUENTES DE LEON Y V/V': arrival at point 'BURGUILLOS DEL CERRO'.
6 - 2021-02-18 08:13:42 - Event - Route 'MERIDA CTA - FUENTES DE LEON Y V/V': arrival at point 'FREGENAL DE LA SIERRA'.
7 - 2021-02-18 08:45:02 - Event - Route 'MERIDA CTA - FUENTES DE LEON Y V/V': unit is late.
8 - 2021-02-18 08:45:22 - Event - Route 'MERIDA CTA - FUENTES DE LEON Y V/V': arrival at point 'BODONAL DE LA SIERRA'.
9 - 2021-02-18 08:54:55 - Event - Route 'MERIDA CTA - FUENTES DE LEON Y V/V': unit returned to schedule.
10 - 2021-02-18 08:54:55 - Event - Route 'MERIDA CTA - FUENTES DE LEON Y V/V': arrival at point 'SEGURA DE LEON'.
11 - 2021-02-18 09:07:31 - Event - Route 'MERIDA CTA - FUENTES DE LEON Y V/V': arrival at point 'FUENTES DE LEON'.
12 - 2021-02-18 14:15:02 - Event - Route 'MERIDA CTA - FUENTES DE LEON Y V/V': unit is late.
13 - 2021-02-18 14:17:41 - Event - Route 'MERIDA CTA - FUENTES DE LEON Y V/V': arrival at point 'BODONAL DE LA SIERRA'.
14 - 2021-02-18 14:29:10 - Event - Route 'MERIDA CTA - FUENTES DE LEON Y V/V': unit returned to schedule.
15 - 2021-02-18 14:29:10 - Event - Route 'MERIDA CTA - FUENTES DE LEON Y V/V': arrival at point 'FREGENAL DE LA SIERRA'.
16 - 2021-02-18 15:00:39 - Event - Route 'MERIDA CTA - FUENTES DE LEON Y V/V': arrival at point 'BURGUILLOS DEL CERRO'.
17 - 2021-02-18 15:20:44 - Event - Route 'MERIDA CTA - FUENTES DE LEON Y V/V': arrival at point 'ZAFRA'.
18 - 2021-02-18 15:32:04 - Violation - Inhibidor en ruta MÉRIDA - FUENTES DE LEÓN. Sensor %SENSOR_NAME% activado con el valor %SENSOR_VALUE%. En 2021-02-18 15:32:04 se movió con una velocidad de 76 km/h cerca de 'Carretera De N-630 A Fregenal De La Sierra Por Zafra, Los Santos De Maimona 6230, Badajoz, Spain'. Datos del conductor: SEBASTIAN RETAMAL CORTES,
19 - 2021-02-18 16:14:56 - Event - Route 'MERIDA CTA - FUENTES DE LEON Y V/V': round finished.
20 - 2021-02-18 16:14:56 - Event -Route 'MERIDA CTA - FUENTES DE LEON Y V/V': unit is ahead of schedule.
21 - 2021-02-18 16:14:56 - Event - Route 'MERIDA CTA - FUENTES DE LEON Y V/V': arrival at point 'MÉRIDA CTA'.
Thanks for your help.