A working model for detecting if the mobile has entered or existed the beacon.