Professional Documents
Culture Documents
1-1
Table of Contents
1. Introduction & Overview
Section Title
1.1
1.2
1.3
1.4
Page
1-3
1-4
1-4
1-5
2-2
2-6
2-9
2-10
2-12
2-13
2-15
3. GPS
3-1
4-1
4.1
4.2
4.3
4-1
4-2
4-2
5-1
6-1
Page
8. Alerts
7-1
7-2
7-4
7-5
7-5
7-6
8-1
9. Helpful Hints
1-2
DAWN (Data Acquisition With In-Vehicle Networks) is HEM Datas in-vehicle network data
acquisition and analysis software and hardware solution. It acquires data from cars, as well as
light, medium, heavy duty trucks, and off-road vehicles.
DAWN is a versatile tool that acquires parameters and messages from in-vehicle networks
conforming to CAN, SAE J1939, J1708/J1587, SAE J1979, J1850, ISO15765, ISO9141,
ISO14230, and OBD-II. This means you can acquire network data from any automobile on the
road today from model year 1996 up to present and future models. In particular, the CAN
(Controller Area Network) protocol is now the most important protocol. Since 2008, all cars and
light trucks are using CAN.
DAWN also acquires J1939 CAN and J1708 data from heavy-duty vehicles such as trucks and
buses and off-road vehicles for agriculture, construction and marine applications. Sensor data
can also be acquired simultaneously.
The OBD Mini Logger family consists of four models as shown below. They are described in this
document. The number in the table below refers to the chapter where each is described.
DAWN
TM
DawnPlot
Optional 1 or 2 day training class. Topics (defined by the user) range from product
training to application support. Material from the SAE seminar conducted by HEM Data
entitled Acquiring and Analyzing Data from Sensors and In-Vehicle Networks can also be
included. See details at:
http://www.sae.org/servlets/pdEvent?PAGE=getPDEventInfo&OBJECT_TYPE=PDEventI
nfo&EVT_NAME=C0522&COMMON_SUCCESS=TRUE.
TM
software (option)
1-3
a USB cable
A. Install DawnEdit
To run the installer for DawnEdit, run DawnEdit Installer.msi on the CD. This dialog shows the
initial install screen.
1-4
1-5
TM
In the left picture, the left slot is for the microSD card. This card can be as large as 32 GB. The middle
connector is the USB connector. The serial connector is on the right.
TM
In the picture on the left, the microSD slot is on the top left. The connector on the bottom left is
the TTL serial connector. The USB connector is on the upper right.
The microSD card can be as large as 32 GB.
The 2 GB card should be sufficient for your application. If you believe you need a higher capacity
card, contact HEM Data.
2-1
2-2
Use File>Open to select the database you want to use. If you are using the J1939 Mini Logger it
is suggested that you start with the database J1939 Mini. For the OBD Mini Logger, it is
suggested that you start with OBD Mini. A more complete database exists called OBD Full or
J1939 Full. Use this database if you want to take DTCs or think your vehicle supports specific
parameters that are not listed in OBD Mini.xml.
To have DawnEdit determine the Available Parameters, select one of the following under the
Make menu depending on the logger you are using:
Protocol
Selection
J1939
OBD
EOBD
This will compare the data file you just acquired to the master database, strip out the parameters
whose messages are not detected, and allows you to save the result as a new database.
Therefore, you can easily create a database that is specific to each vehicle you are testing.
Click on the Enable column heading. This will sort the parameters by which ones are
enabled. Click on the Name header to sort by name again.
2-3
Sample Rate
The OBD sample rate is generally limited to 80 samples/second aggregate (number of messages
x sample rate). For legislated OBD (not enhanced), there is generally one parameter per
message.
***NOTE: If you have an older model logger (data is stored in text files not binary), the sample
rate will be off by a factor of 10. For example, to take 1 sample/second enter 10.
Directory
For the directory, there are some options:
Browse: This can be a local directory or the MicroSD card.
The button Set to DB Directory keeps a record of the config file that corresponds to the
database. This is handy if you have several configurations.
File Name
The Mini Logger will only use the file config.txt. You have a few options in creating a configuration
file.
Write the file as config.txt
Write it with the database name; this is handy if you have many configurations and want
to keep track of them.
The simplest choices are to point to the microSD card root directory and select the option to write
config.txt.
Configure OBD logger for J1939
The OBD Mini Logger is capable of logging J1939 messages. Use this checkbox if you wish to
use the OBD logger for this purpose. In addition you will need to set the baud rate to 250k in the
2-4
Create Mini Logger Prefs File Dialog. It is also recommended to use the Do NOT Request VIN
Checkbox in the same dialog.
Configure OBD for legacy
Use this checkbox if you are taking legacy OBD data (some vehicles before 2008, and all before
2003).
After making your selections, click on the button Create.
If you did not directly store the config.txt file on the microSD card, then use Windows
Explorer to do so.
You should now have transferred the configuration to the MicroSD card. The configuration file is
entitled config.txt. You can double click on it to see its contents. A sample config.txt file is shown
below. This example file specifies 9 OBD parameters starting with B. J designates the sample
period.
2-5
2-6
Description/Comments
Default
Relative Time
Unchecked
Individual Files
Unchecked
Checked
Unchecked
Unchecked
Dialog Option
Description/Comments
Default
Unchecked
Unchecked
Unchecked
Unchecked
Use alarms/conditions
Unchecked
2-7
Sample Rate
The dialog will show the sample rate used in the message file if it is known. You have the option
to override the rate or define it if it is unknown. It only makes sense to use a sample rate that is
equal to or less than the rate used to acquire the data.
When done defining the options, click on the Convert button.
After creating the CSV file the options for reviewing the data are to use:
A spreadsheet
Another data analysis software tool
DawnPlot which is an option. See Appendix B.
Below is an example file showing appended/concatenated/combined data files using Absolute
Time. Notice the jump in time between lines 292 and 293.
To show the Absolute Time in Excel: highlight the time column, right click, and select Format
Cells, then select Time. Select 3/14/01 13:30. Since there is not an option to show seconds
with our previous selection we need to Select Format Cells again and select Custom. Then add
:ss so the Type: reads m/d/yy h:mm:ss.
2-8
In DawnEdit, you can rename a parameter using the far right column named Label. The
Label is what is used in the data files.
2-9
2.4 Messages
The message files are intermediate files. You dont need to know their format, but if you are
interested they are now explained.
The message files are in different formats for the various Mini Loggers. There is no message file
for the ADAQ and GPS units. The OBD Mini Logger messages are stored as .IOS files. The older
model J1939 Mini Logger stores the messages in a .LOG file, but newer versions use the binary
IOS format. Each of these two formats will now be explained.
2-10
2-11
2.5 Accelerometer
To enable the accelerometer you must put a prefs.txt file onto the logger. Use the checkbox in the
Create Mini Logger Prefs File Dialog.
ACC files are converted in DawnEdit along with the in-vehicle data files. In DawnEdit, open the
database you used to create the config.txt file. Select the menu option Convert Mini Logger Data
File to CSV (or click:
).
Accelerometer Direction
OBD
J1939
2-12
Vehicle Connector
J1962 Pin
Chassis/Case Ground
Signal Ground
Discretionary*
10
11
12
Discretionary*
13
Discretionary*
14
15
16
2-13
Logger
Truck Adapter
Female
Male
2-14
Real-time clock
Analog Inputs
Yes
Cabin Temperature
Sensor
Option
3-axis MEMS
Accelerometer
Option
Vehicle Battery
Voltage
Option
Expansion
Optional 8 channel
ADAQ Mini Logger
ISO 9141-2
Real-time PC data
Option
Connections to PC
WiFi
Stand-alone Logger
Yes
Store Messages
Yes
Supply Current:
80 mA. Up to 200mA
with WiFi
On-board Storage
Operating
Temperature C
-40 to +70
Auto Start-up
Yes
Operating voltage
4 to 36V
RGB
3 mA
Operating system
Proprietary RTOS
Warranty
1 Year
Wireless (WiFi)
Cellular modem
(External)
Cellular modem
(Internal)
Operating system
Proprietary RTOS
Environment
Size (inches)
OBD Connector:
1.9W x 0.70H x 1.5L
Size (mm)
48W x 18H x 38L
2-15
Yes
SAE J1708/1587
Real-time PC data
Option
Connections to PC
WiFi
Stand-alone Logger
Yes
Store Messages
On-board Storage
Auto Start-up
Yes
RGB
Operating system
Proprietary RTOS
Cellular modem
Wake-up Input
Yes
Real-time clock
Yes
Analog Inputs
Cabin Temperature Sensor
Option
Option
Expansion
Environment
Size (inches)
Size (mm)
Supply Current:
Operating Temperature C
-40 to +70
Operating voltage
6 to 36V
3 mA
Warranty
1 Year
2-16
3. GPS
If you have ordered a Mini-Logger + GPS from HEM Data, the GPS is built into the logger.
The Mini-Logger writes the GPS data to a CSV file. The file uses the same naming convention as
the other files (IOS, ACC, LOG) and has as .GPS extension.
To merge the GPS data with the in-vehicle data, use the Merge GPS files into CSV setting in the
Convert Mini Logger Data File to CSV dialog. See section 2.2 for more information on file
conversion.
3-1
3-2
4. ADAQ Mini
The DAWN Mini ADAQ measures a variety of input types including voltage, current,
temperature, digital, frequency, PWM, and inclination. It outputs measured data to a CAN
network.
The Mini ADAQ is used with either the OBD or J1939 Mini Logger to store the data or transfer
data via cellular or WiFi to a website, PC or mobile application.
The figure below shows a schematic of the DAWN Mini system to acquire both in-vehicle network
and analog data. The system uses two CAN networks that are independent. One is the standard
in-vehicle network acquiring heavy duty or light duty vehicle data. The other is an instrumentation
network using the Mini ADAQ to acquire analog data. The vehicle network will not see the
instrumentation network; only the Mini Logger will. It is not required to acquire in-vehicle network
data to acquire analog data.
4-1
4.3 Connectors
See Appendix D ADAQ Wiring Guide
4-2
A. PC Connection to Logger
1. Plug the device into the USB port
2. If not previously installed, Windows will ask for a driver, locate the driver in
C:\DAWN\Drivers.
3. The device will be assigned a COM port by Windows. Look in Windows Device Manager
for the COM port number. The COM Port will also be displayed in ecTerm in the next
step.
5-1
mphidflash -w OBD-3.hex -n -r
mphidflash -w J1939-3.hex -n r
mphidflash -w DAQ-Module-3.hex -n r
Make sure the name you type for the hex
file matches the file you are actually using
which may not be the one shown in the
above examples
16. You should see: USB HID device found: 503808 bytes free
Erasing...
Writing hex file 'OBD-II.hex':.............[many dots] Resetting device... This will take about
a minute.
17. If the flashing completes correctly, the device is ready to go. It should flash blue.
18. If there is any error, please re-run the above command and alert HEM Data if the error
repeats.
5-2
Return to cmd window and click the up arrow to get the previous command to
reflash the device.
5-3
Other Commands
Other commands are listed below. Follow instruction listed above.
getnvm
prefs
Displays non-volatile memory including serial number. This is also a good command to
be sure the logger is responding to your commands.
Summary of Preference Settings
ADAQ Only
snap
Returns one measured value for each channel. The value type displayed is set in
the firmware by HEM Data.
i2c
ch3val
ch3valavg
WiFi
startwifi
Start the WiFi process to transfer data to a target web page. This allows you to test
WiFi without being in the vehicle. Also valuable to debug wifi settings defined in
prefs.txt file.
6-1
Real-Time Data
Automatic File Upload
Ad Hoc
Yes. With DawnPlot or smartphone
Yes. Upload to smartphone
6-2
Infrastructure
No
Yes. To Apache server
button. The prefs.txt file does not replace the config.txt file as
This dialog also allows the user to Enable the Accelerometer, Disable GPS, and Enable J1708. If
logging J1708, do not create a config file from the J1708 database: use a config file only if you
also are using J1939.
The example settings will transfer the data files to the website
http://www.hemdata.com/loggerUpload/uploads/. You can change this to go to your own web
server. It is recommended that you first transfer files to the HEM Data site to test your WiFi
settings, and then to your own web server. You are free to use our test server, but please send us
7-2
an email at support@hemdata.com letting us know. You can also define a computer on your
network as the destination as long as it has the Apache software.
WEP Open
WEP Shared
If you are not sure whether to use wepopen or wepshared, start with wepopen.
Password
If you are using wepopen or wepshared, then enter the WepKey from your router. It is in hex and
is either 10 nibbles (64-bit) or 26 nibbles (128-bit). If you are using WPA, this password has a
maximum of 32 characters, without spaces, tabs or newlines. If none is selected, then this entry is
ignored.
7-4
Upload.php
<?php
$uploaddir = "uploads/";
$uploadfile = $uploaddir . $_POST['VIN'] . "-" . basename($_FILES['datafile']['name']);
if (move_uploaded_file($_FILES['datafile']['tmp_name'], $uploadfile)) {
echo "File is valid, and was successfully uploaded.\n";
chmod($uploadfile, 0666);
} else {
echo "Possible file upload attack!\n";
}
?>
<html><head></head><body>
Done.
</body></html>
Exhibit 1 Manages communication with Logger
Index.php
<html><head>
<title>Upload</title>
</head><body>
<form enctype="multipart/form-data" action="upload.php" method="POST">
VIN: <input name="VIN" type="text" /><br>
Send this file: <input name="datafile" type="file" />
<input type="submit" value="Send File" />
</form>
</body></html>
Exhibit 2 Web form for uploading a file without using the logger
7-5
7-6
7-7
8. Alerts
DawnEdit Alerts serve two functions.
1.) Convert only the files that meet a certain criteria.
2.) Automatically receive email/text notifications when conditions are met.
To access alerts check the Use Alarms/conditions button in the Convert Mini Logger Data File to
CSV dialog. (If it is already checked, double-click).
@vtext.com
@txt.att.net
@messaging.sprintpcs.com
@tmomail.net
@vmobl.com
@cingularme.com
@messaging.nextel.com
9. Helpful Hints
The following are helpful hints:
Before inserting the microSD card, you may find it helpful to blow on the card and reader
so the reader will work better.
When you change config.txt or prefs.txt, make sure that you repower the logger since it
only reads this file on start-up.
8-2