View
215
Download
0
Tags:
Embed Size (px)
Citation preview
Electrical and Computer Engineering
Final Project ReviewApril 9th, 2010
Team Zink
Nicholas Cipriano, Ali Jameel, Jeremy Mestancik, Brian Simakauskas
Electrical and Computer Engineering
Overview
• Our advertising system allows advertisements to be scheduled and uploaded over the Internet
• Advertisements are automatically sent to their corresponding buses
• Ads are displayed depending on the current time and location of each bus
Electrical and Computer Engineering
Block Diagram
Electrical and Computer Engineering
Project Results and Achivements
• Website• Maps• Display Processing• Networking • Integrating Components
Electrical and Computer Engineering
TheAdWiz.com
• Users can register, log on, ad upload ads• Displays the correct schedule for a given date and bus
route• schedule.txt contains all dates for reduced schedule and no
service• User can choose individual bus runs to advertise
• During peak hours, buses run frequently – Users will select time ranges rather than bus runs
• Scheduled times/locations will update map and schedule so user cannot overbook
Electrical and Computer Engineering
Client update.sh
• At regular intervals, bus wirelessly connects to the web servero Connection requires no password
• Bus retrieves updated schedule.txt file from web servero Updated file replaces the old
• Bus checks if Ad file names exsists in local memoryo If not, bus tries to download the file from the web server using
SCP command
Electrical and Computer Engineering
Ad Info Page
Electrical and Computer Engineering
Schedule Page
Electrical and Computer Engineering
Google Map API
• A map displays the bus route on the website
• User is able to click points on the map
• The selected interval is highlighted in black, for ease of use
• As times are selected, the map is updated and unavailable locations are highlighted in red
• Differentiate between north/south bus routes
Electrical and Computer Engineering
Ad Displaying
• Schedule information is parsed based on header in file• Information is parsed into ad structs• The GPS coordinates are received from the Garmin unit
and converted• The distance to ads' starting positions and their start
times are checked when display checks are made• The ads are checked based on a toggle
Electrical and Computer Engineering
Ad Displaying
• The Haversine function is used for distance calculation, and the distance is in miles
• The ads are displayed when the bus is within 1/20th of a mile of the starting coordinate
• When an ad has been displayed and shut off, the time it was running for is put into a text file for reference
Electrical and Computer Engineering
Testing
• Tested in car• Scheduled ads on website prior to departure
• Updated System where wireless available• Power Issues
• Remote desktop required• Drove bus route 30 north and south
• Toggle point• Problems:
• schedule.txt file issues• Image loading