Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

23
Waiting-time Displays for Bus Passengers Team A: Huanwen Qu , Laurence Cabenda , Kang Ning

Transcript of Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

Page 1: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

Waiting-time Displays for Bus Passengers

Team A: Huanwen Qu ,

Laurence Cabenda ,Kang Ning

Page 2: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

Assignment

●The buses equip with GPS and mobile phones. Call into a central system to report their present location.●The bus stands will get LED displays controlled by a microprocessor which can also communicate by phone. ●The solution of communicating by phone was chosen●The central system knows the geography of the routes of all buses, the typical travel speed.

Page 3: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

Requirements

● A high-level specification of the sytem● Give a briefing to the issue and aspects that may

be of importance for this.

Page 4: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

Bus stand

Bus stand

Bus stand

Bus stand

Bus

Bus

Central System

Illustration

Page 5: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

Central System

Mobilphone network

Auto phone

call

INTERFACE

System

control

Bus speed

calc

Route m

ap calc

Position calc

INTERFACE

Data process

Bus Speed

Bus Stand

Route Map

BUS with GPSBUS stand with LED

Page 6: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

UML

Page 7: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

Components

Central SystemBus

Bus Stand

Page 8: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

Modules of Bus

GPS Receiver Bus Position Sender

Bus Position Report

Page 9: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

GPS Receiver

● Contains GPS control system.● Receives bus position from GPS system● Exposes an interface which provides current bus

position to the Bus Position Report module.– GetPosition : POSITION

Page 10: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

Bus Position Sender

● Contains mobile phone communication system.● Provides Wireless Data Link to the bus.● Exposes an interface to Bus Position Report

module.– SendPosition : POSITION

Receives position data and sends data to the Central System.

Page 11: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

Bus Position Report

● Reports current bus position to Central System periodically.

● There is a timer in the module. When the timer is triggered, the module requests the current bus position from GPS Receiver module and sends this position to Central System through Position Sender module.

Timer --> SendPosition (GetPosition)

Page 12: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

Modules of Bus Stand

Bus Distance Receiver

Bus Distance Display

LED Display

Page 13: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

Bus Distance Receiver

● Contains mobile phone communication system.● Provides Wireless Data Link to the bus stand.● Receives bus distance from Central System.● Calls Bus Distance Display module to show

distance data when new data are received.– ShowDistance : DISTANCE

Page 14: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

Bus Distance Display

● Shows bus distance data thought LED Display module.– LEDShow (LED)

● Converts bus distance data to LED display data.– DISTANCE -> LED

● Exposes an interface to Bus Distance Receiver module.– ShowDistance : DISTANCE

Converts DISTANCE to LED and shows it.

Page 15: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

LED Display

● Shows the distance of the arriving buses on the LED display.

● Contains a LED display control system in the module.

● Exposes an interface which accepts bus distance data with type LED and shows the distance.– LEDShow : LED

Page 16: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

Modules of Central System

Bus Position Trace

Route Map

Bus Distance Broadcast

Bus Distance Forecast

Bus Distance SenderBus Position Receiver

Page 17: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

Bus Position Receiver

● Contains Mobile Phone Communication system.● Provides Wireless Data Link to the Central

System.● Receives bus positions for buses.● Calls Bus Position Trace module when new

position data arrives.– UpdatePosition position

Page 18: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

Bus Distance Sender

● Contains Mobile Phone Communication system.● Provides Wireless Data Link to the Central

System.● Sends bus distance data to bus stands.● Exposes an interface to Bus Distance Broadcast

module.– SendDistance : DISTANCE

Accepts DISTANCE data and sends it to bus stands.

Page 19: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

Bus Position Trace

● Manages position information of all buses dynamically

● Two interfaces:– UpdatePosition : POSITION

Updates a bus position.

– GetPosition : POSITION

Get a bus position from the trace.

Page 20: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

Bus Distance Broadcast● Broadcasts bus distance data to all bus stands

periodically.● Manages a bus stands list.

– AllStands : STAND● There is timer in the module. When timer is

triggered, it calculates all bus distance data and sends them to all bus stands.

Timer --> for each stand in AllStands

distance = Forecast stand

SendDistance distance

Page 21: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

Bus Distance Forecast

● Forecasts how much time it takes from a bus to a bus stands according to a typical bus speed and the route.

● The module can query bus position from Bus Position Trace module and query route map from Route Map module.

● Interface:– Forecast : STAND -> DISTANCE

Page 22: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

Route Map

● Contains all information of bus routes and bus stands.

● Provides some interfaces for Bus Distance Forecast module to query data of bus routes and bus stands.

Page 23: Waiting-time Displays for Bus Passengers Team A: Huanwen Qu, Laurence Cabenda, Kang Ning.

Discuss Requirements Accuracy

● Time intervals buses send GPS position● Time intervals server update the bus-stands● Accuracy versus time overhead.