afarran / swm2m_avl_tests

Feature tests of AVL agent
0 stars 0 forks source link

New gps fix is not requested when MovingStart event occurs #2

Closed ArturMalyszewicz closed 9 years ago

ArturMalyszewicz commented 10 years ago

MovingStart event should request the new gps fix but it does not.

Steps to reproduce:

  1. Set gpsReadInterval (in postiion service) for 30 seconds;
  2. Set movingDebounceTime to 15 seconds and stationarySpeedThld to 5 kmh;
  3. Increase speed one kmh above stationarySpeedThld
  4. Wait for time longer than movingDebounceTime, then check if the MovingStart message has been sent.
  5. Check the value of the GpsFixAge in the report - that is 15 which is incorrect (no new fix requested by the event)

Version of AVL Agent: v3.2.2 r1625

afarran commented 9 years ago

A new GPS fix is requested but a with a fixAge = continuous + 1. Instead of setting SIN=20(position) PIN=15(continuous) to 30 seconds, the test case should turn off the continuous GPS feature (i.e. setting it to zero), change the position, and then generate the MovingStart message.

ArturMalyszewicz commented 9 years ago

For continunes = 0 fix is requested correctly so this bug seems to be not valid.

But why if GPS signal is good (valid fix provided by simulator) and continues property is above 0 a new fix is not requested if debounce time passes?

afarran commented 9 years ago

Because the fix is not considered stale in that case (i.e. not too old) so there's no need to request and wait for another one.