afarran / swm2m_avl_tests

Feature tests of AVL agent
0 stars 0 forks source link

Digital Output Events: line associated with GeoDwelling activates when entering geozone and does not change it's state when terminal leaves it #18

Open ArturMalyszewicz opened 9 years ago

ArturMalyszewicz commented 9 years ago

When port 1 is configured as digital output and it is associated with GeoDwelling function the line should be activated when terminal enters geofence with defined DwellTime and it should change it's state when terminal leaves it. Currently when terminal enters geofence with defined DwellTime the port changes value to high but it does not change it to low level when terminal leaves that geofence.

Steps to reproduce:

  1. Define a couple of geofences and send the fences.dat file to terminal
  2. Define DwellTime for one of the geofence (in eg. for geofence with id = 2)
  3. Configure port 1 as digital output and associate this port with GeoDwelling function.
  4. Simulate terminal moving inside the geofence 2
  5. Port 1 value changes to high immediately - that is correct
  6. Simulate terminal moving outside this geofence.
  7. Port 1 value does not change to low level (that is incorrect)

Expected behaviour is that when terminal leaves the geofence with defined DwellTime the output line assiociated with GeoDwelling function is deactivated.

afarran commented 9 years ago

What is the GeoDwell state in AVL after the terminal exited the geofence?

ArturMalyszewicz commented 9 years ago

Geodwelling state is false in this case.

TroyManary commented 9 years ago

Argus 21623

TroyManary commented 9 years ago

Further investigation shows that the problem is on GeoDwellStart. The Digital Output is set High on Zone Entry and is not waiting for the geodwell start time.

TroyManary commented 9 years ago

Discussed the expected behaviour with Amjad. The general requirement for Digital Outputs is to set the output active when the condition is true, and inactive when the condition is false. The Digital Output does not wait for debounce.

If geodwell time is considered a debounce for Zones, then the Digital Output should go active on zone entry and inactive on zone exit.