12
Electrical and Computer Engineering Final Project Review April 9th, 2010 Team Zink Nicholas Cipriano, Ali Jameel, Jeremy Mestancik, Brian Simakauskas

Electrical and Computer Engineering Final Project Review April 9th, 2010 Team Zink Nicholas Cipriano, Ali Jameel, Jeremy Mestancik, Brian Simakauskas

  • View
    215

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Electrical and Computer Engineering Final Project Review April 9th, 2010 Team Zink Nicholas Cipriano, Ali Jameel, Jeremy Mestancik, Brian Simakauskas

Electrical and Computer Engineering

Final Project ReviewApril 9th, 2010

Team Zink

Nicholas Cipriano, Ali Jameel, Jeremy Mestancik, Brian Simakauskas

Page 2: Electrical and Computer Engineering Final Project Review April 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

Page 3: Electrical and Computer Engineering Final Project Review April 9th, 2010 Team Zink Nicholas Cipriano, Ali Jameel, Jeremy Mestancik, Brian Simakauskas

Electrical and Computer Engineering

Block Diagram

Page 4: Electrical and Computer Engineering Final Project Review April 9th, 2010 Team Zink Nicholas Cipriano, Ali Jameel, Jeremy Mestancik, Brian Simakauskas

Electrical and Computer Engineering

Project Results and Achivements

• Website• Maps• Display Processing• Networking • Integrating Components

Page 5: Electrical and Computer Engineering Final Project Review April 9th, 2010 Team Zink Nicholas Cipriano, Ali Jameel, Jeremy Mestancik, Brian Simakauskas

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

Page 6: Electrical and Computer Engineering Final Project Review April 9th, 2010 Team Zink Nicholas Cipriano, Ali Jameel, Jeremy Mestancik, Brian Simakauskas

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

Page 7: Electrical and Computer Engineering Final Project Review April 9th, 2010 Team Zink Nicholas Cipriano, Ali Jameel, Jeremy Mestancik, Brian Simakauskas

Electrical and Computer Engineering

Ad Info Page

Page 8: Electrical and Computer Engineering Final Project Review April 9th, 2010 Team Zink Nicholas Cipriano, Ali Jameel, Jeremy Mestancik, Brian Simakauskas

Electrical and Computer Engineering

Schedule Page

Page 9: Electrical and Computer Engineering Final Project Review April 9th, 2010 Team Zink Nicholas Cipriano, Ali Jameel, Jeremy Mestancik, Brian Simakauskas

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

Page 10: Electrical and Computer Engineering Final Project Review April 9th, 2010 Team Zink Nicholas Cipriano, Ali Jameel, Jeremy Mestancik, Brian Simakauskas

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 

Page 11: Electrical and Computer Engineering Final Project Review April 9th, 2010 Team Zink Nicholas Cipriano, Ali Jameel, Jeremy Mestancik, Brian Simakauskas

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

Page 12: Electrical and Computer Engineering Final Project Review April 9th, 2010 Team Zink Nicholas Cipriano, Ali Jameel, Jeremy Mestancik, Brian Simakauskas

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