Home
Overview - Department of Computer Science
Contents
1. Development Environment Setup and User Manual for AGORA Version 1 1 A Versatile Environment for the Development of IntelliDrive Applications Visual Extensible Rule Based Department of Computer Science Western Michigan University sn A Deparment of Fr Fes aa i r n e ILMO rara fanisporatig Development Environment Setup and User Manual for AGORA Table of Contents Table or Conteh eee lo oO PSO a REY Pele Reo Po ES RTT OE ji REVISION USO S ji i INTFOdUCION ds 1 1 1 AUIE S A E E E EE OS l 1 2 intended A A e a ta 1 1 3 References A a See eNT OUI ROENY Et ONT OEE E DEAT ON ae CENS On ERAENE Eireann Ene URE EA 1 Ze TOSTAMAON ELA aaa a RS 1 2 1 VIS A3 Gov A A een ca gael 1 22 A E E E A EE ENEE A A EEEN atk EREE NN 6 Be User Manua AA AA ah A 9 3 1 CON A O A E A E ee ee 9 3 2 A A A A A O O eee A O AN 11 3 3 CADOM ERNUS dad tables 11 3 4 A a a se Gdaedetedcteca tenet 13 3 5 COM PING COMLEX 33 ti iceecate o e DO alta oa Lo 14 3 6 NOP C eee eeer sree A A tt PES O 15 3 7 Police Car Ambulance Fire Truck Alert cccccececceccccsccecececcecencecescecsececsececeececensecenees 16 3 8 LOW UCA ad aa acitonalab asiae T 18 3 9 Jo A II A A A E ea cea tas a 19 Appendix A GIOSS ATV ati EEEE AAA cade A eo 20 Revision History Reason For Changes Vinay B 01 24 2010 Initial Draft 1 0 Gavirangaswamy Vinay B 02 16 2010 Changed project name from VII to AGORA changed 1 1 Gavirangaswamy paragraph for
2. 14 7 6 17 454 SPEED 8600 MASS AIR FLOW e 14 7 grams of air to 1 gram of gasoline ideal air fuel ratio e 6 17 pounds per gallon density of gasoline e 454 grams per pound conversion e 3600 seconds per hour conversion 12 Development Environment Setup and User Manual for AGORA To find the average MPG during a trip the instantaneous rate is averaged over time The carbon footprint during a trip requires a few calculated values First to calculate the CO2 emissions from a gallon of fuel the carbon emissions are multiplied by the ratio of the molecular weight of CO2 m w 44 to the molecular weight of carbon m w 12 44 12 CO2 emissions from a gallon of gasoline 2 421 grams x 0 99 x 44 12 8 88 grams 8 8 kg gallon 19 4 pounds gallon Note If CO2 for emissions for diesel is need substitute 2421 grams with 2778 grams Next number of gallons used is calculated by dividing miles traveled by the average MPG Finally the CO2 emissions constant 19 4 is multiplied by the gallons which results in the carbon footprint The values of all the calculated variables for a trip are written to an XML file carbon xml for easy storage and retrieval The values automatically populate the grid when the application starts so no interaction is needed by the driver 3 4 Smart Cone 3 4 1 Navigation Instructions Application Icon Smart Cone Icon Smart Cone Application Screen Construction Zone Application t k
3. Project layout Use project folder as root for sources and class files Create separate folders for sources and class files Working sets Add project to working sets A a E da WY OFEITIG els Accept default options for the rest and click Finish Build and deploy Instructions Browse Configure JREs Select Run ant script under TMC build build xml This will create a war archived file under TMC bin war Deploy this war file in glassfish application server Note To read on how to deploy application on glassfish server please refer to appropriate section of glassfish application sever documentation 3 User Manual 3 1 Gov 2 0 3 1 1 Navigation Instructions Development Environment Setup and User Manual for AGORA Application lcon Gov 2 0 Icon 3 1 2 Screen Shots Application Selection Screen A F Figure 1 Gov 2 0 selection in VIS Description The above picture shows the applications currently available in VIS where the exclamation sign icon opens the Advisory Alert application A3 and the speaker icon opens the Gov 2 0 application Gov 2 0 Application Screen A Figure 2 Gov 2 0 10 Development Environment Setup and User Manual for AGORA Description The above picture shows the Gov 2 0 application This application displays all the hazards as icons a user can encounter in the transportation system The application interface is kept simple for ease of use with
4. desktop setup MDOT Project in NetBeans 1 Copy MDOT files folders to desired location Default C Documents and Settings Student Desktop Research 2 Open NetBeans 3 Add new project File gt Open Project gt browse to mdot folder PathAnimationNew gt Open Project 4 Create LibraryJAVAFX Expand PathAnimation in Projects Tab Right Click Libraries gt Add Library gt Manage Libraries gt New Library Library Name LibraryJAVAFX Library Type Class Libraries Click OK Add JAR Folder gt browse to MDOT directory lib Select jce jar JFXtras 0 5 jar swing layout 1 0 3 jar Add JAR Folder Click OK Select LibraryJAVAFX from Add Library window gt Add Library Library Manager Libraries 5 Class Libraries A Library Mame Library JAVAFS EY Absolute Layout Beans Binding E CopyLibs Task Library Classpath a EclipseLink JPA 2 0 C Documents and Settings 5tudentiDesktoplResearchiliblice j Add JAR Folder Eh Hibernate C Documents and Settings Student Desktop ResearchylibiJFXE E Hibernate JPA C Documents and Settings Student Desktop Researchilibiswin E Jaya Tree API Classpath Sources Javadoc Move Down E PostgreSQL JDBC Driver E Sorina Framework 2 5 lt 5 Change path in Application Settings File Click on the Files tab Development Environment Setup and User Manual for AGORA Expand PathAnimation Double click ApplicationSettings prope
5. icons showing the available hazards On encountering a hazard a user can click touch the corresponding icon which is then sent to and registered with TMC Now based on the frequency of a certain hazard being reported at a particular location the transportation authority can prioritize these hazards and take measures accordingly This information is also conveyed to the users of VIS through the on demand A3 application or dynamic signs alerts 3 2 A3 3 2 1 Navigation Instructions Application Icon A3 Icon A3 Application Screen Advisory Alert Application Dummy hazard 000 Drive safe Dummy hazard 001 Drive safe lg in Dummy hazard 002 Drive safe Bag Figure 3 A3 Description The above picture shows the Advisory Alert application A3 This application displays a list of hazards based on the current location of the vehicle retrieved from TMC The application interface is divided into two parts the alert icon and the alert description In the above picture of A3 the left column shows the hazard icons for quick visual feedback to the user On the right column is the description of the corresponding hazard For example the snap shot above shows a pothole an icy condition and a dead animal hazard 3 3 Carbon Emissions Tracker 3 3 1 Navigation Instructions Application Ilcon Car Emissions Tracker Icon Il Development Environment Setup and User Manual for AGORA Carbon Emissi
6. 3 1 4217 0616 N 089359 3438 4 000 0 059 0 180110 005 0 4 4217 0616 N 08939 3438 1 11 0 9 244 6 M 34 0 M 76 21 15 24 27 26 06 09 22 03 14 1 7 0 9 1 5 39 18 66 310 43 21 81 223 35 15 42 050 34 24 42 141 32 7E 21 41 112 29 26 33 220 32 06 21 302 2 09 36 129 40 2 6 22 33 283 37 03 15 309 31 14 10 223 21 29 04 188 00 72 1 4217 0616 N 08935 3438 W 000 1 059 0 180110 005 0 4 7 4217 0616 N 08939 3438 1 10 1 0 244 6 M 34 0 M 7E 21 15 24 27 26 06 09 22 03 1 9 1 0 1 6 39 18 66 310 43 21 81 223 35 15 42 050 34 24 42 141 33 7F 27 41 112 30 26 33 220 32 06 21 302 25 09 36 129 40 E DAR 4217 0616 N 085935 3438 1 11 0 9 244 6 H 34 0 H 729 22 33 283 37 03 15 309 31 14 10 223 21 29 04 188 00 72 4 4217 0616 N 08935 3438 4W 000 1 059 0 180110 005 0 H gt D 4217 0616 N 08939 3438 4 1 11 0 9 244 6 M 34 0 M 7D 21 15 24 27 26 06 09 22 03 14 1 7 0 9 1 5 39 18 66 310 43 21 81 223 35 15 42 050 34 24 42 141 33 7F 27 41 112 30 26 33 220 32 06 21 302 25 09 36 129 40 7E 22 33 283 37 03 15 309 31 14 10 223 21 29 04 188 00 72 Connected 0 00 17 Auto detect 9600 8 N 1 Install Java Media Framework JMF 2 1 1e 1 Download http java sun com javase technologies desktop media jmf 2 1 1 download html from Development Environment Setup and User Manual for AGORA 2 Run installer accept all defaults Add OBDII Library 1 Copy rxtxSerial dll to C Documents and Settings Student netbeans 6 8 javafx sdk lib
7. Environment Setup and User Manual for AGORA Description With the ever increasing volume of traffic it is important for a driver to know his her location with respect to other vehicles This becomes increasingly important during hazardous weather conditions and rush hour The Course Fine Context applications allow for visual representation of the car s context where there are in relation to other cars on the road with a series of red flashing squares representing neighboring vehicles How It Works The Course Fine Context applications get information from the core services of the system When a car receives data from a neighboring vehicle it compares the latitude and longitude locations and decides where the vehicle is in relation to itself The car then places this information into that car s local hash table Every 500ms the GUI thread checks all the vehicles in the local hash context for this location information It then generates a list of squares that should be turned red and proceeds to do so The same process repeats indefinitely The only difference between the Course and Fine Context applications is the number of squares The Course Context has 8 locations while the Fine Context has 48 Since the Fine Context squares are smaller it is able to represent vehicles that are farther away 3 6 VOIP Call 3 6 1 Navigation Instructions Application Icon VOIP Call Icon VOIP Call Application Screen 15 Development Enviro
8. Startup Folder C Documents and Settings All Users Start Menu Programs Startup gt Right click gt Paste Test GPS Connectivity 1 Attach the GPS device to an available USB port 2 Run the Spanner program 3 Select the GPS from the drop down box 4 Click the Start button Spanner Select GPS IF vou dont see your USB GPS listed below connect je to your computer and turn it on then click Find GPS Development Environment Setup and User Manual for AGORA Find GPS GFS GPs 18 USB Unit ID 364532020 Virtual Serial Ports MMEA sentences will be output to the serial ports listed below Comi 5 Open HyperTerminal Start gt All Programs gt Accessories gt Communications gt HyperTerminal 6 Type gps in the Name box Te Click OK 8 Connect using COM1 9 Click OK 10 Change Bits per second to 9600 11 Click OK If a connection to the GPS is made data should be displayed similar the image below gps HyperTerminal File Edit View Call Transfer Help D gt GPGGA GPGSA GPGSV GPGSY GPGSV GPRHC GPGGA GPGSA GPGSV GPGSV GPGSV GPRHC GPGGA GPGSA GPGSV GPGSV GPGSV GPRHC GPGGA GPGSA GPGSV GPGSV GPGSY 215817 3 18 21 15 24 27 26 06 09 22 03 14 1 7 0 9 1 5 39 18 66 310 43 21 81 223 35 15 42 050 34 24 42 141 32 7E 27 41 112 29 26 33 220 32 06 21 302 25 09 36 129 40 6 22 33 283 36 03 15 309 31 14 10 223 21 29 04 188 00 7
9. Tow Truck application is very similar to the Police Car Ambulance Fire Truck Alert in that when the green go button is pushed the vehicle type is changed from a standard vehicle to a tow truck This information is propagated to the vehicle s neighbors via the process described in section 2 3 The vehicle type remains tow truck until the stop button on the application is pressed When the application is running neighbors will see a vehicle of type tow truck in their context and display the associated icon in the alert area 18 Development Environment Setup and User Manual for AGORA 3 9 Sphinx 3 9 1 Navigation Instructions Application Icon Sphinx Icon Sphinx Application Screen Description Hands free operation is critical when it comes to software running in vehicles The fewer things that a driver has to control create a safer environment for everyone The integration of Sphinx a speech recognizer developed by the Sphinx group at Carnegie Mellon University allows the driver to switch between screens using simple single word voice commands How It Works When the user clicks the start button on the application the system activates Sphinx4 and waits for the user to speak one of the recognized words When the system hears a word that it knows the main screen is changed to screen associated with that word Sphinx continues to operate until the user clicks the stop button Currently the system uses the following words to c
10. hange between the main application screens Wors seen application Application Course Context Fine Contex 19 Development Environment Setup and User Manual for AGORA Appendix A Glossary MDOT Michigan Department of Transportation OBE On Board Equipment RSE Road Side Equipment TMC Traffic Management Centers A3 Advisory Alert Application LSA Life Safety Application VIS Vehicle Integrated Software OSIL Operating System Isolation Layer OS Operation System CAL Communication Abstraction Layer DSRC Dedicated short range communications 20
11. ip UA configuration file via addr 10 1 1 3 host port s070 transport protocols udp tcp Foutbound proxy 127 0 0 2 5060 from url Alice lt sip alicel10 1 1 3 gt username alice realm 10 1 1 3 passud pippo debug _level 5 log path log max _ logsize 2000 For Help press Fl Note If building and running the NetBeans project you get the error message Development Environment Setup and User Manual for AGORA Unable to start java exe The system cannot find the file specified Java did not get installed on the system even though it should be in the NetBeans bundle Download and install Java 6 Update 18 from http www java com en download manual jsp 2 2 TMC Download and install Glassfish Version 2 1 1 URL https glassfish dev j ava net public downloadsindex html Install location c glassfish Install instruction Please refer to glassfish web site for install instructions Environment variables Please setup following system environment variable as shown below Variable Name AS_ADMIN_USER AS HOME C glassfish JAVA_HOME lt your system java install directory gt Development Environment Setup and User Manual for AGORA glasstishdi aye nili er Oe 4 You must be logged on as an Administrator to make most of these changes Perfomance Visual effects processor scheduling memory usage and virtual memory User Profiles Desktop settings related to your logon C glassfish ms C Windows syste
12. k_netbeans jsp 2 Run installer accept all defaults Install JAVAFX Plugin for NetBeans Open NetBeans Open Plugins Manager Tools gt Plugins Switch to Available Plugin tab and type javafx in the search box Check JavaFX Kit box Click Install accept all defaults AS Development Environment Setup and User Manual for AGORA Y Plugins Available Plugins 3 57 Downloaded Installed 21 Settings Updates Reload Catalog Search java Ei Install Name Category F Source C JavaFX Composer JavaFs JawaFX Kit C JawaFx Weather Sample JawaFX JavaFX Kit P NetBeans Certified Plugin Yersion 1 10 1 Date 12 8 09 Source Netbeans Homepage http i javarx netbeans ora Plugin Description qvaFs Script Plugin For Netbeans provides JavaFX Script language support in the Netbeans IDE The plugin provides JavaFs project type editing capabilities such as code Formatting syntax highlighting error detection preview panel etc Install 1 plugin selected 53MB Install Spanner used for accessing Garmin GPS 1 Download from http www8 garmin com support download_details jsp id 1627 2 Unzip to desired folder default C garmin 3 Run SpannerSetup accept all defaults Add Spanner as a Startup Program 1 Copy Spanner program Start gt All Programs gt Garmin gt Spanner gt Right click gt Copy 2 Paste to
13. le these vehicles pass How It Works 17 Development Environment Setup and User Manual for AGORA The Police Car Ambulance Fire Truck Alert applications are very similar to the Smart Cone and School Bus Applications in that when the green go button is pushed the vehicle type is changed from a standard vehicle to a police car ambulance or fire truck This information is propagated to the vehicle s neighbors via the process described in section 2 3 The vehicle type remains the specified type until the stop button on the application is pressed When the application is running neighbors will see a vehicle of type police car ambulance or fire truck in their context and display the associated icon in the alert area 3 8 Tow Truck Alert 3 8 1 Navigation Instructions Application Icon Tow Truck Alert Icon Tow Truck Alert Application Screen Tow Truck Application Description When a Tow Truck is called to the scene of an accident or other related event it is often the case that a partial lane blockage will follow while the truck maneuvers the disabled vehicle into proper position These lane blockages can be hazardous to other drivers especially during times of high traffic or sharp and windy roads The sooner that other driver can know about the Tow Truck the more time they have to react and reduce speed or change lanes The Tow Truck application is used to alert drivers to the above mentioned situations How lt Works The
14. m32 cmd exe startup and Recovery C Windows ConfigsetRoot System startup system failure and debugging information Settings domain and workgroup settings ne Vinaya PC ir name Vinaya PC Eclipse Java EE IDE for Web Developers Version any URL http www eclipse org downloads Install location c eclipse Install instruction unzip downloaded archive to above specified directory TMC Application Setup Copy TMC zip to a directory called c mdot_workspace Upzip archieve Open eclipse and select c mdot_workspace as your workspace Goto file gt new gt other Development Environment Setup and User Manual for AGORA 8 New Select a wizard Wizards type filter text a lee Jawa Annotation Class 5 Enum Interface E Java Project Java Project from Existing Ant Buildfile ta Java Working Set fe Package 5 Source Folder gt gt Java Run Debug t gt JUnit i ea a FF And enter following information in the next screen Development Environment Setup and User Manual for AGORA New Java Project Create a Java Project Create a Java project in the workspace or in an external location Project name TMC Contents C Create new project in workspace Create project from existing source Directory C mdot_workspace TMC JRE Use an execution environment JRE JavaSE 1 6 Use a project specific JRE jreg Use default JRE currently jre6
15. matting and reformatted cover page ii Development Environment Setup and User Manual for AGORA 1 Introduction 1 1 Purpose AGORA refers to a set of application and infrastructure which constitutes intellidrive environment that is being developed at Computer Science Department Western Michigan University This project consists of several software applications and hardware components This infrastructure consists of On Board Equipment OBE Road Side Equipment RSE and Traffic Management Centers TMC which work together to increase the safety and efficiency of the transportation network This document is intended to help internal and external team member to get up to speed with the development environment installation procedures and user manual for the different systems that are being developed 1 2 Intended Audience Document is primarily intended for members of MDOT team which consists of graduate students working under the guidance of Dr Ala Al Fugaha and Dr Dionysios Kountanis 1 3 References http www oracle com us technologies java index htm http netbeans org http www mysql com http www eclipse org http javafx com http www8 garmin com support https glassfish dev java net 2 Installation Procedure 2 1 VIS A3 Gov 2 0 Operating System Microsoft Windows XP Professional Service Pack 3 Install JDK 6 Update 17 with NetBeans 6 8 1 Download from http java sun com javase downloads widget jd
16. nment Setup and User Manual for AGORA Description In the case of an emergency having a way to call for help is essential The VOIP Call application allows the system to send and receive calls to registered IP addresses which could for example be that of a dispatch center How It Works When the user clicks the call button on the application the system uses MjSip open source java based implementation of a SIP stack available at www mjsip org to initiate a connection between the caller and the callee Once the connection is established the voice data is processed with Java Media Framework JMF 3 7 Police Car Ambulance Fire Truck Alert 3 7 1 Navigation Instructions Application Icon Police Car Ambulance Fire Truck Alert Icon Police Car Ambulance Fire Truck Alert Application Screen Police Police Car Application F Dji ft i Ko Ambulance 16 Development Environment Setup and User Manual for AGORA Ambulance Application Fire Fire Truck Application Description When there is an accident fire or any other event that requires emergency personnel response time is critical as seconds can save lives The purpose of the Police Car Ambulance and Fire Truck Alert applications is to alert the driver that one of these vehicles is approaching and proper protocol should be followed as is the law of the state In Michigan for example the driver should slow down pull over and stop whi
17. ons Tracker Application Screen Carbon Emissions Application Carbon Fuel Miles Footprint 11 13 2009 32 896 620 8 12 9 2009 2 47 de ti el Description With the increasing threat of global warming individuals are becoming more conscious about their impact on the environment The Carbon Emissions Tracker allows individuals to track the amount of carbon their vehicle puts into the atmosphere each time they turn the car on by simply displaying it on the screen in a trip by trip format How It Works The Carbon Emissions Tracker calculates the miles traveled fuel used and carbon foot print for each trip which is defined to be the time from which the engine is started to the time it shut off The number of miles traveled is calculated using the GPS device which is attached to the system Every 10 seconds the GPS is polled for the new location of the car The distance between the new latitude and longitude location and the old latitude and longitude location is then calculated and added to the running distance total The Carbon Emissions Tracker is able to calculate the amount of fuel consumed during a trip by using data read from the OBD On Board Diagnostics System that is standard on cars manufactured starting in 1996 The values of mass air flow and speed are requested from the OBD and then plugged into the following equation which returns the instantaneous miles per gallon MPG of the vehicle Instantaneous MPG
18. rties file Change path of RULES SUPERNODES ROADSIGNS to point to corresponding xml files example2 xml supernode xml xmlOutput xml found in MDOT folder PathAnimation NetBeans IDE 6 8 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help 3 lt default gt YY BOD m Projects Files 4 x y Applicationsettings properties x 2 Path nimation D 4 ALA O build O dist H nbproject src O RATXcomm jar 3 build xml E carbon2 xml e manifest mf 2 To change this temp and open the template in the editor DEBUG TRUE RULES C Documents and Settings Studenti i Desktopi Research example2 xml TICK 1000 COREHASH name speed gps ME JAMIE MY PORT_RECEIVE 4445 MY_PORT_SEND 4446 SEND_TICK 1000 PASSWORD JANIE RM_TICK 5000 SUPERNODE TICK 10000 SUPERNODES C Documents and Settings Student Desktop Research supernode xml ROADSIGNS C Documents and Settings Studentii Desktopi Research xmlOutputi xml CARBON C Documents and Settings Student i Desktopi Research carbon xml SIGN_DISTANCE 30 l 2 3 4 5 6 7 8 Change Path Settings in VOIP config file li Create a folder named og in the Research folder 2 Edit cfg file in Research folder that corresponds to a VOIP user a cfg or b cfg contacts_file C Documents and Settings Student Desktop Research contacts Ist File Edit View Insert Format Help leh SRA BE MjS
19. s Figure 5 Smart Cone Application Description Construction zones can quickly produce hazardous conditions for both drivers and construction workers The goal of the Smart Cone application is to quickly create an alert area warns the driver that they are in a construction zone and should be on the lookout and slow down With the Smart 13 Development Environment Setup and User Manual for AGORA Cone application and the click of a button a construction zone can be communicated rapidly and removed just as quickly How It Works The Smart Cone application is simply a way of changing a vehicle type from a standard vehicle type to a Smart Cone type When the green go button is clicked in the application the type value in the vehicle s hash table is update to be the Smart Cone type This information is then propagated in the vehicle s hash table to the neighboring vehicles via the process described in section 2 3 Neighboring vehicles look through their context in search of the Smart Cone and if it is found displays the construction cone icon in their alert area Similarly when the application s stop button is clicked the vehicle type is changed back to that of a standard vehicle and the propagation process through the hash table is again followed 3 5 Course Fine Context 3 5 1 Navigation Instructions Application Icon gt Course Fine Context Icon Course Fine Application Screen 14 Development
Download Pdf Manuals
Related Search
Related Contents
Samsung HT-TX250 Uživatelská přiručka GXP1450 User Manual Sikafloor-156 CA.cdr - Pretensur, SA de CV FM1803 Owners Manual - Bright Green Energy HYPERVISOR VI Central Monitoring System Service Manual Liste des contrats pour la période du 16 août au 15 septembre 2013 1975 , Volume , Issue March-1975 Manuale tecnico Copyright © All rights reserved.
Failed to retrieve file