Research Article
Road Traffic Monitoring System Based on Mobile Devices and Bluetooth Low Energy Beacons
1create table Records with columns time, position, beacon_ID, RSSI | 2create table Events with columns time, event_type | 3at each time step do | 4if New_records received then | 5begin | 6Records:= Records union New_records | 7time_min:= select min(time) from New_records | 8time_min:= time_min - window_size | 9Selected_records:= select * from Records where time >= time_min | 10Aggregates:= aggregation(Selected_records, window_size) | 11New_events:= events_recognition(Aggregates) | 12Events = events_update(Events, New_Events) | 13End |
|