390 likes | 866 Views
Goals and Objectives. To allow parents the capability of monitoring the location of their teen driver's vehicleMonitor their teen's driving behaviorInform parents when an alert occurs via SMSReceive operating commands from parents via SMSHold all surveyed locations so that they may be viewed Pr
E N D
1. TrackYourTeenDriver(TYTD)Group 7 Members:Shadi GhominejadPamela GregoireSanda Lo
2. Goals and Objectives To allow parents the capability of monitoring the location of their teen driver’s vehicle
Monitor their teen’s driving behavior
Inform parents when an alert occurs via SMS
Receive operating commands from parents via SMS
Hold all surveyed locations so that they may be viewed
Provide an easy-to-use system
Provide a secure website that manages all user data
3. Overall System Block Diagram The Informer (NFO) is the mobile unit that performs monitoring of location and driving behavior.
TRACKON MODE: It uses a two-way SMS messaging interface to alert parents and to receive commands from the parent.
TRACKOFF MODE: It uses a software interface via USB connection to parents’ computer to upload stored data from its memory to the web server.
4. Work Distribution: Our project was broken down into three major chunks:
Pam: Microcontroller and peripherals
Sanda: GSM/GPS modem and peripherals
Shadi: Software interface
5. Budget
6. Informer Requirements and Specifications 1 encapsulation device for components
1 rechargeable power source capable of supplying at least 3.7 V with a rating of 1000mAh minimum
1 PIC18F4550 microcontroller
1 UART (on-chip) interface to GPS/GSM modem
1 USB interface (on-chip) for microcontroller connection to PC/laptop
1 DE-ACCM5G accelerometer to read g-force of up to 2g
1 A/D converter (on-chip) to interface microcontroller to accelerometer and to monitor battery level periodically
1 Hitachi LM052L LCD 2 line by 24 character user display
1 LM2621 Step-up DC-DC converter for LCD +5V need
1 Mini Buzzer audible beep device RS#273-053A
The alarm will notify the parent’s cell phone in no more then 10 minutes
1 Grayhill 88AB2-143 keypad interface for device control
1 standard cellular charger power adapter for the cigarette lighter of the vehicle to connect to NFO
Voltage level translation from microcontroller outputs to GSM/GPS inputs
7. Microcontroller Original Block diagram for Informer
Some changes have been made to optimize pins available from controller:
The power source is supplied from the GSM/GPS modem battery
The low-power sensor is implemented in software by using the on-chip A/D converter
Antenna Tamper is driven by the buzzer function of the modem, not the microcontroller
8. Microcontroller Decision Table Initially, we chose the PIC18F2550 because it seemed to fit our needs at the time. However, we recently realized that we needed more pins than the PIC18F2550 had to offer. Thus we went with the 40-pin PIC18F4550.
9. Informer Development The Informer was developed in the following steps:
Circuit was designed and each block tested
PCB layout was designed and checked
Initial programming was tested using the Wiz-C compiler.
Soldering was completed and PCB checked for expected operation.
Programming of microcontroller is not yet successful, but is only in need of more time due to the complexity of the design.
10. Informer Development Tools Wiz-C compiler from Forest Electronics to avoid assembly language
USB code library to ease USB implementation
USB development kit with driver included for communication class
USB programmer for in-circuit programming and debugging
11. Pin Diagram of PIC18F4550 As you can see, most pins are multiplexed with different functions. This requires careful planning of pin connections.
12. Initial Pin Connections of the PIC18F4550
13. Informer Code Flowchart
14. TrackOn Mode Tasks
15. TrackOff Mode Tasks
16. GSM-GPS Specifications: 1 GSM-GPS module
1 combination Multi-band Antenna (for GSM and GPS)
1 SMS service plan from Cingular
The frequency has to be 850 MHz or 1900 MHz bands
RS232 serial link (ITU-T V.24)
1 SIM card and holder
1 rechargeable power battery with 3.7V
AT commands to control GSM/GPS
NMEA sentences that provide the time, latitude, longitude, and speed
50 Ohm antenna connector
50 pin Molex industrial connector
17. Why did we pick the GM862-GPS? Quad band frequencies
Integrated GPS receiver
Low Power Consumption
RS232 interface
On board SIM card reader
Small size
GSM jamming detection
Auto-bauding functionality from 2.4 up to 57.6 Kbps or a fixed baud rate up to 57.6 Kbps
18. Plan:
Use Cellular technology for communication link.
Send SMS messages to cell phones.
19. GSM Connectors Position: Following pins need to be connected.
20. Turning on and off: To turn on or off, pin #17 has to be tied low for at least 1 second and then released.
21. Check GSM device Functionality: Power is on, device is ready to receive AT commands on serial port.
3 things to check:
Autobaudinig
-Suggested setting: port speed = 38400
char format = 8 bit per char,
no parity bit, 1 stop bit
SIM presence checking
Network checking
22. Time out: Every AT command issued will have a period of time out given until the response come back.
Error will occurs when there is no response until the time out is elapses.
Time out period is different for each command.
23. Indication of network availability: STAT-LED pin indicates the network service availability and call status.
24. SMS handling: Before sending SMS messages, we have to do the SMS device set up first. It can be done by following the steps in the diagram.
IRA character set is used in SMS text mode.
SMS messages can be sent, store, delete, or receive with this device.
25. SMS message can be sent without storing it.
Following is an example of using AT commands to send a message directly without storing it.
27. GPS Operation: The GPS receiver in GM862-GPS module is controlled by dedicated NMEA sentences via GPS serial port B.
28. TYTD Software Approach Website Database
HTML Tags & CGI Scripting.
Google Map Implementation.
Interface Software Patch & Data Report.
29. SQL Database Tables All database tables are built using SQL language. Some major data tables are listed below:
Comprehensive GPS Log
Daily Snap Shot
Daily Schedule for each driver
Off-limits locations specified by parents
Alert reports (today’s, this week’s, this month’s, last 2 or 3 month’s alert report)
Settings, which includes alerts, login info, cell phone numbers, base GPS coordinates, and time zone
Primary locations
Teen data
30. Two sample table are shown below:
Comprehensive GPS Log for ID #01 Weekly Snap Shot for ID #01
31. Some SQL codes to make the Informer table: I think you should put some text here to explain. (just an opinion)
33. Google Map Application:
Google map software provides a display screen of roads and high ways, which makes tracking visualized and more detailed.
The user can view the current location of the driver on the map of their city by inserting the received coordinates (on their cell phone) (trackyourteendriver.com).
The predefined php function ‘GClientGeocoder()’ retrieves from Google map website, the geographic latitude and longitude of any mailing address inserted on the website interface. (this feature is not enabled at this time)
Each location specified by the user is going to be surrounded by 4 different GPS coordinates, each locating some distance away from the base coordinates.
By clicking on the custom Icons specified for different type of locations, an info window opens up which displays the location’s specifications to the screen.
34. Website Inventory: As soon as the user login to our website the following options
would appear on the user’s home page:
Current Location ? displays date,Time,driver Id,speed,alert
Schedule ? Display/Modify schedules for all days of week
Primary Locations ? a) List All
b) Map All
c) Edit/Update
Off-Limit Locations ? a) List All
b) Map All
c) Edit/Update
Teen Data ? a) Update Drivers
b) View Alerts
c) View Locations
Upload Informer
Settings ? a) Alerts (Aggressive driver/possible accident)
b) Informer Password
c) Cell Phone Numbers
d) Base Coordinates (the user’s house)
e) Time Zone
Help ? a) FAQ’s
b) Device Manual
35. Primary and Off-limits BoxMeters ? Degrees
36. Latitude 0 - 90 degrees , min 0 - 60’
Longitude 0 - 180 degrees, min 0 - 60’
For instance:
Small Buildings: Min Longitude = Base_Longitude - X
Max longitude = Base_Longitude + X
Min Latitude = Base_Latitude – X
Max Latitude = Base_Latitude + X
(when X = box_parameter / 2)
X is specified by the parents in METERS on the website.
CALCULATIOS:
1o Latitude = 111.2 km (Longitude 000o00’00”)
Therefore, 100 meters = 00o00’03” in degrees
Therefore, for a small building x = 00o00’03”
1o Longitude would have different values in meters as the latitude increases from
0 to 90 degrees. The same thing applies to the latitude.
For instance:
In a city which is located at (Latitude = 01o50’09”N , Longitude = 002o40’10”E)
Therefore, 1o Longitude = 70.93 km therefore, 100 meters = 00o00’02” longitude
(this value would vary traveling further north or south way from that city.)
37. TYTD Software Interface: All the GPS data and informer settings are parsed to the user’s hard drive through a serial port terminal.
This software would get ASCII data from the informer through Serial port connection and save them as .txt files on the parents’ computer hard driver.
The data saved in the .txt file is in ‘tab delimited’ format, and lines are terminated by ‘;’.
The following SQL command should automatically Import/Export ASCII data from/into the .txt files saved on the parents’ computer hard drive.
38. The ASCII characters Imported/Exported form/into the Informer The ASCII text coming from NFO Device includes all the data stored inside the informer in 24 hrs.
The most updated Schedule of the next day, informer settings, and the off-limits locations are uploaded to the NFO memory once the device is connected to the pc.
The data coming from informer has the following data fields:
- Date
- Kid ID
- Time
- Latitude
- Longitude
- Speed
- Alert
39. Time Zone Conversions: The GPS module used for this project, which has NMEA data formatting, uses Universal Coordinate Time (Greenwich).
The interfacing software provided for the user (TYTD software) would convert the UCT time to any local time coordinates in United States.
The 6 different time zones existing in USA are listed and mapped on the following slide.
40. Conclusion Next Steps:
Pam: PCB certification
Sanda: Use development kit to test GPS/GSM modem
Shadi: Continue to create database and web interface
Questions?? Please ask and/or give criticism … we need info!