The icons are used in the manual to serve as an indication
of interest topics or important messages. Below is a
description of these icons:
NOTE: This check mark indicates that
there is a note of interest and is something
that you should pay special attention to
while using the product.
Online Resources
The listed websites are links to the on-line product
information and technical support.
ResourceWebsite
Lannerhttp://www.lannerinc.com
Product Resources http://assist.lannerinc.com
WARNING: This exclamation point
indicates that there is a caution or
warning and it is something that could
damage your property or product.
Acknowledgement
Intel, Pentium and Celeron are registered trademarks of
Intel Corp.
Microsoft Windows and MS-DOS are registered trademarks
of Microsoft Corp.
All other product names or trademarks are properties of
their respective owners.
Compliances and Certification
CE Certication
This product has passed the CE test for environmental
specifications. Test conditions for passing included the
equipment being operated within an industrial enclosure.
In order to protect the product from being damaged by
ESD (Electrostatic Discharge) and EMI leakage, we strongly
recommend the use of CE-compliant industrial enclosure
products.
FCC Class A Certication
This equipment has been tested and found to comply
with the limits for a Class A digital device, pursuant to Part
15 of the FCC Rules. These limits are designed to provide
reasonable protection against harmful interference when
the equipment is operated in a commercial environment.
This equipment generates, uses and can radiate radio
frequency energy and, if not installed and used in
accordance with the instruction manual, may cause
harmful interference to radio communications. Operation
of this equipment in a residential area is likely to cause
harmful interference in which case the user will be required
to correct the interference at his own expense.
No part of this manual may be reproduced, copied,
translated or transmitted in any form or by any means
without the prior written permission of the original
manufacturer. Information provided in this manual is
intended to be accurate and reliable. However, the original
manufacturer assumes no responsibility for its use, nor for
any infringements upon the rights of third parties that
may result from such use.
Embedded and Industrial Computing
e Mark Certication
E13 - Luxembourg
2
About
About
Mechanical compliance
Low Pressure (Altitude):
• MIL-STD-810G, Method 500.5, Procedure I (Storage)
• MIL-STD-810G, Method500.5, Procedure II
(Operational)
High Temperature:
• MIL-STD-810G, Method 500.5, Procedure I (Storage)
• MIL-STD-810G, Method500.5, Procedure II
(Operational)
Low Temperature:
• MIL-STD-810G, Method 500.5, Procedure I (Storage)
• MIL-STD-810G, Method500.5, Procedure II
(Operational)
Temperature Shock:
MIL-STD-810G, Method 503.5, Procedure I-C
General Vibration (Operating):
MIL-STD-810G, Method 514.6, Procedure I, Category4,
Figure 514.6C-1 (Common Carrier, US Highway Truck
Vibration Exposure)
The LVC-2000 is a compact in-vehicle computing system
designed with support for wall mount 1 and it has a
vibration kit built in for eliminating shock and vibration,
ideal for deployment and installation on moving
transportation vehicles.
The system is equipped with the newest 22nm process
Intel® Atom™ processor E3845 family (formerly
codenamed Bay Trail). This system-on-chip (SoC)
incorporates up to four cores and supports system
memory DDR3L-1066/1333 SO-DIMM maximum up to 8
GB. This small form factor is capable of operating under
wide temperatures from -20°C to +60°C in fanless
operation, which allows the system to operate in rugged
environments. Moreover, it comes with multiple display
outputs: HDMI and VGA. With integrated Intel® Gen
HD graphics, visual capabilities are enhanced, including
faster media processing, full HD over HDMI, spectacular
HD playback, etc.
The system encompasses a wide variety of communication
ports to facilitate every possible in-vehicle applications:
• One Ethernet port provided by Intel i210IT Ethernet
controller.
• Two additional digital input pins from the Multiple
(MIO) I/O port can be used for system wake-up to
power on the system automatically; another two
digital output pins from the same Multiple I/O (MIO)
port can be used for control relay (current @2mA)
• Multiple I/O ports for Digital I/O and serial port
connections
• Rich I/O ports: two RS-232, 3 USB ports (one USB 3.0
type A, 2 USB 2.0 with pin headers)
• Three Mini-PCIe connectors (one supports mSATA; one
full-size with SIM card reader for 3G wireless Internet
connection; one half-size for Wi-Fi connection)
• Dual video display: HDMI+VGA output with Intel
integrated HD graphic engine
• Power ignition control mechanism with programmable
on/off/delay switch
• Wide range of DC power input from 9V to 36V, suitable
for vehicular 12V or 24V battery with Ignition control.
–Power input current protection by 15KP30A TVS
--12V DC output current with a maximum of 1A
• Battery voltage protection: Over Voltage Protection
Removable 2.5” SSD/HDD drive
bay x1, Mini-PCIe connector for
mSATA
Intel integrated HD graphic
engine
VGA, maximum resolution up to
2048x1536@60Hz
HDMI, maximum resolution up to
1920x1200@75Hz
Internal pin header for Mic-in
and Line-out
1 x RS-232
1 x RS-232/422/485
4x DI ( 5V or 12V TTL selectable)
4x DO (12V TTL , Max. 100mA)
2x DO control Relay support
9~36V@max 2A each
2x DI to Ignition MCU as remote
control
1x 12VDC Out
1x Rx/Tx
USB 3.0Type A x 1
USB 2.0 Pin headers x2
3-pin terminal block (+, -, ignition)
Mini-PCIe x2 (one is full-size
with SIM card reader; the other
one is half-size)
+9~36VDC input range, with
ignition delay on/off control
Windows7/ 7 Embedded /8
embedded OS Image:
WES7 (64bit & 32bit) / W7
FES (64bit & 32bit) / Windows
8(32bit); Linux kernel 2.6.X or
later
5
Chapter 1
Introduction
Compliance
Low Temperature:
MIL-STD-810G, Method 502.5,
Procedure I (Storage)
MIL-STD-810G, Method 502.5,
Procedure II (Operational)
Temperature Shock:
MIL-STD-810G, Method 503.5,
Procedure I-C
General Vibration (Operating):
MIL-STD-810G, Method 514.6,
Procedure I, Category4, Figure
514.6C-1 (Common Carrier,
US Highway Truck Vibration
Exposure)
General Vibration (Nonoperating):
MIL-STD-810G, Method 514.6,
Procedure I, Category 24, Figure
514.6E-1 (General Minimum
Integrity)
Package Contents
Your package contains the following items:
LVC-2000 Fanless Embedded System with rubber
stands:
• Terminal Block Connectors:
-Power connector 3 pin x1 (P/N:04AW20031E001)
-MIO Connector 20 pin x1 (P/N: 04AW20203Z101)
• HDD Screws x 4 (P/N: 070W102400602)
• Mini-PCIe Screws x 4 (P/N: 070W101000401)
Operating
Temperature
Range
Extended
Shock (Operating):
MIL-STD-810G, Method 516.6,
Procedure I (Functional Test for
Ground Equipment)
Shock (Non-operating):
MIL-STD-810G, Method 516.6,
Procedure V (Crash Hazard Shock
Test for Ground Equipment)
Transit Drop:
MIL-STD-810G, Method 516.6,
Procedure IV (Transit Drop)
With Selected Industrial Components
-20~60°C/-4~140°F
Embedded and Industrial Computing
6
Chapter 2
Chapter 2:
System Components
System Drawing
Mechanical dimensions of the LVC-2000 with the wall
mount kit (suspension kit).
Unit: mm
System Components
198
52
165
Embedded and Industrial Computing
7
Chapter 2
Block Diagram: The MainBoard
The block diagram depicts the relationships among the
interfaces and modules on the motherboard.
System Components
Embedded and Industrial Computing
8
Chapter 2
System Components
Front Components
ComponentDescriptionPin Definition Reference
F1 GPS Antenna
F2 HDD/SSD and
Power LED (Green)
F3 USB 3.0 Ports USB 3.0 type A connectors. There are additional
F4 CAN bus CAN bus connector for controller area network
F5 COM1/COM2RS232 ports for serial communicationCOM1/COM2 on page
F4
F2
F1
Reserved for GPS antenna
HDD/SSD
•Blinking: means data access activities
•Off: means no data access activities or no
hard disk present
Power
•On: The computer is on.
•Off: The computer is off .
2 USB 2.0 ports with pin headers
communication. It supports J1939 &J1708
standards.
F3
F5
USB2 on page
CAN1 on page
Embedded and Industrial Computing
9
Chapter 2
Rear Components
R1 Multiple-I/O ConnectorA 20-pin male connector for the
System Components
R4
R1
ComponentDescriptionPin Definition Reference
following functions:
•4 Digital-In & 4 Digital-output
•12VDC power output
•Two Output relay control with
contact current which support
9~36V@ 2A each
R2
R3
R5
MIO2 on page 20
•MCU input detection to wake up
the system automatically
•One serial communication port
F3 One 10/100/1000Mbps LAN
ports
SPEED
R2 HDMI Port (‡)A HDMI port which is provided
R4 VGA Port (‡)It connects an external VGA
R6 Power-In (DC)Power-in with ignition support. The
LINK/ACT
One RJ-45 (provided by Intel i210IT)
jacks with LED indicators as described
below
LINK/ACT (Yellow)
•On/Flashing: The port is linking
and active in data transmission.
•Off: The port is not linking.
SPEED (Green/Amber)
•Amber: The connection speed is
1000Mbps.
•Green: The connection speed is
100Mbps
•Off: The connection speed is
10Mbps.
by Intel HD graphics (resolution:
1920x1080@60Hz). There is also an
internal Audio pin header for HD Audio
MIC-in/Line-out
monitor or projector (resolution:
1600x1200@60Hz)
system support a wide range of power
input +9~+36V including the prevalent
12V and 24V vehicular power system.
It has a 2KV ESD protection on the DC
input and ignition line.
HDMI1 on page 19
VGA1 on page 19
PRJK1 on page 21
Embedded and Industrial Computing
10
Chapter 3
Chapter 3:
Board Layout
External Connectors
The following picture highlights the location of internal
connectors and jumpers. Refer to the table 3.1 Connector
List for more details.
USB2
CAN1COM2
Board Layout
COM1
ATX1
PRJK1
Embedded and Industrial Computing
VGA1
POEIO1 (on the back)
HDMI1
LAN1
MIO1
11
Chapter 3
Internal Connectors and Jumpers
The following picture highlights the location of internal
connectors and jumpers. Refer to the table 3.2 Connector
List for more details.
Board Layout
JSPI1
JCMOS1
USBF1
MSATA1
JMCU1
MPCIE2
JRI1
Embedded and Industrial Computing
SATA1
SATAPWR1
JLPC1
JRI2
CN1
JKBMS1
SIM1
MPCIE1
12
Chapter 3
Internal Connectors and Jumpers
(backside)
The following picture highlights the location of internal
connectors and jumpers on the backside of the board.
Refer to the table 3.2 Connector List for more details.
SW1
Board Layout
Embedded and Industrial Computing
13
Chapter 3
Board Layout
Connectors and Jumpers List
The tables below list the function of each of the board
jumpers and connectors by labels shown in the above
section. The next section in this chapter gives pin
definitions and instructions on setting jumpers.
Table 3.1 Connector List for External Connectors
LabelsFunctionPin Denition Refer-
ence Page
CAN1CAN bus Connector
COM1/COM2RS-232 Commmunication PortsP
HDMI1High Denition Multimedia InterfaceP
MIO1Multiple I/O Connectors
PRJK13-Pin DC-in Power Connector with Ignition Control
USB2USB 3.0 ConnectorP
VGA1VGA Connector
Table 3.2 Connector List for Internal Connectors
LabelsFunctionPin Denition Refer-
ence Page
AUDIO1Audio Pin HeaderP
JCMOS1Clear CMOS JumperP
JMCU1MCU Programming JumperP
JSPI1Serial Peripheral Interface BusReserved for factory use
JLPC1Low-pin Count Pin HeaderP
JRI1/JRI2COM1/COM2 Power Selection
MPCIE1/MPCIE2Mini-PCIe Connector 1/2P
mSATA1mSATA ConnectorP
JKBMS1Keyboard/Mouse ConnectorP
JRI1COM1 Power SelectionP
JRI2COM2 Power SelectionP
SATA1SATA Driver ConnectorP
SATAPWR1SATA Power ConnectorP
SIM1SIM Card ConnectorReserved for factory use
USBF1USB 2.0 Pin HeaderP
Embedded and Industrial Computing
14
Chapter 3
Board Layout
Jumper Settings
COM1 RS-232 Serial Port (COM1/COM2): An RS-232
port through the D-SUB9 connector. The RI (pin 8) can be
altered with jumper JRI1 and JRI2.
12345
6789
Pin No.Pin Name
1DCD
2DSR
3RXD
4RTS
5TXD
6CTS
7DTR
8RI1
9GND
Multiple I/O Connectors (MIO1): Multiple I/O pins for
functions in serial communication, Digital In/Out, Ignition
detection input for automatic wake-up function
Maximum input/output current for each port is
100mA
For all Input/
output pins:
VoltageLogicRegister
DI: <0.8V
Low0
DO: <0.4V
DI:10 ~ 12V
High1
DO:12V
The default BIOS value is 0 for DI and 1 for DO
1. Pin3 and pin4 can be used for DI wake-up function
(Refer to the flow chart in Chapter 4 and the ISM in
Appendix A).
2. Pin 15, 16, 17 can be used for Digital output control
with contact current 9~36V@2A (DO1); Pin 18, 19,
20 can be used for digital output control with
contact current 9~36V@2A in maximum (DO2).
Serial-ATA Connector (SATA1): It is for connecting a 2.5’’
hard disk to be served as your system’s storage. It can
supports SATA 2.0.
Power-in with Ignition Control (PRJK1): A power
connector with power -ignition Control
3 2 1
Pin No.Pin Name
1Ignition
2GND
3DC_VIN
COM1/COM2 Power Selection (JRI1/JRI2): JRI1 selects
COM1 power voltage and JRI2 selects COM2 power voltage
. The default is Ring Indicator (RI) for pin 8.
Select MCU Detect Function for power ignition
behavior (SW1):
SW1
4 3 2 1
ON
Selector No.SW1Ignition Function
1Power Good DetectionON: Enable
2Low Voltage Detection
3Watchdog
4Programming MCUReserved
The default value is ON for selector 1, ON for selector 2, OFF for selector 3, and OFF for selector 4
OFF: Disable
The functions of the above jumpers are further explained
here.
1. Power Good Detection: A power-good signal
from the main board will be sent to the ignition
controller so that the ignition controller can
decide or alter the power state upon the following
instances. (Refer to the flow chart in Chapter 4):
• Power-on instance
• Power-good signal turned-low instance
2. Low Voltage Detection: Turn on this switch to
enable the automatic detection of low voltage
state of the battery. It will automatically turn
off the system when low voltage state has been
detected (Note: the low-voltage condition needs to remain 30 seconds continually). The voltage
level can be set in the Ignition System Manager
(ISM) which is provided by Lanner as a sample
code for functions on the power ignition module.
The default setting of this function: Shutdown
Voltage in the ISM is disabled. (Refer to the flow
chart in Chapter 4 and the Using the Ignition
System Manager (ISM) in Appendix A.)
Embedded and Industrial Computing
3. Watchdog: Enable this switch to enable shutdown
after watchdog timer count-down to zero. This is a
programmable function. If there is no program to
control and monitor the watchdog timer, set this
jumper to disabled to avoid abnormal shutdown.
The default time-out value is 300 sec( you will need
an AT command to reset watchdog timer; contact
Lanner rep for this program).
19
Chapter 4
Hardware Setup
Chapter 4:
Hardware Setup
Preparing the Hardware Installation
To access some components and perform certain service
procedures, you must perform the following procedures
first.
WARNING: To reduce the risk of personal injury,
electric shock, or damage to the equipment,
remove the power cord to remove power from
the server. The power switch button does not
completely shut off system power. Portions of the
power supply and some internal circuitry remain
active until power is removed.
1. Unpower the LVC-2000 and remove the power cord.
2. Remove 4 threaded screws from the bottom to take off
the bottom cover.
3. Open the cover.
HDD Installation
The system can accommodate one Serial-ATA disk. Follow
these steps to install a hard disk into the system:
1. Take out the hard disk tray and fix the hard disk on
the tray with 4 mounting screws as illustrated in the
following picture.
2. Plug the Serial-ATA cable to the hard disk.
3. Place the hard disk back to the system’s chassis and fix
it with the mounting screws.
4. Connect the Serial-ATA power and data disk cables to
the Serial-ATA power and disk connectors on the main
board respectively.
1
2
3
4
Embedded and Industrial Computing
20
Chapter 4
Hardware Setup
mSATA Card Installation
1. Align the mSATA card’s key with the Mini-PCIe slot
notch.
2. Insert the wireless module into the connector
diagonally.
3. Install the module onto the board with the screws.
3G SIM Card Installation
1. Unlock the SIM card reader.
2. Place the SIM card on the SIM card reader. Notice the
angled corner to align the SIM card properly.
3. Lock the SIM card reader.
Wireless Module Installation
1. Align the wireless module’s cutout with the Mini-PCIe
slot notch.
2. Insert the wireless module into the connector
diagonally.
3. Push the other end of the wireless module to be
tightened with the latch.
Embedded and Industrial Computing
21
Chapter 4
Connecting Power
Connect the LVC-2000 to a +9V ~ +36V vehicle battery.
The DC power-in connector comes with a 3-pin terminal
block for its Phoenix contact. This power socket can only
accept the power supply with the right pin contact so be
cautious when inserting power to the system.
Hardware Setup
Embedded and Industrial Computing
22
Chapter 5
Chapter 5:
The Flow Chart
The flow chart section contains all flow chart used in the
system. The flow chart describes the system’s behavior on
powering on and off the system via power ignition control
or on/off switch when the appropriate timer control
parameters are set.
Flow Chart
Note:
1. For power-good and low-voltage
mechanism to function in the workflow,
you will need to enable the power-good
and low-voltage detection function
with selector 1 and selector 2 jumper
respectively of SW1. (Refer to Chapter 3 Board Layout).
Embedded and Industrial Computing
2. For power on and power off delay timer
parameter, refer to Appendix A Using the Ignition System Manager (ISM).
3. For DI wake-up function, refer to jumper
MIO1 Pin 3 and 4. Refer to Chapter
3 Board Layout and Appendix A Using
the Ignition System Manager (ISM) for
jumper setting and parameter setting
respectively.
4. When the system’s shutdown timer starts
counting down 180sec, using ignition
or External PWR_BTN to start the system
again during shutdown process will not
work until the countdown finishes.
23
Appendix A
Using the Ignition System Manager (ISM)
Appendix A:
Using the Ignition System
Manager (ISM)
The Ignition System Manager (ISM) is a software that
can monitor the system’s voltage level and configure the
features that the Power Ignition Module provides.
For sample ISM code, see ISM folder under LVC-2000 Utility
on the Driver and Manual CD.
Running the Program
Just double click the ISM.exe to launch the ISM.
The program can configure the following values:
Voltage: It shows the current power system.
Power Input System: Select either 12V or 24V for vehicular
power input.
Startup Voltage (V): If the DC-in voltage is not higher
than this value, the system will not be able to start up.
Click Cancel to exit the ISM program.
COM5
Shutdown Voltage (V): If the DC-in voltage is lower than
the shutdown voltage, the system will start shutdown
process automatically. (Refer to selector 2 of SW1 dip
switch on the mainboard.)
Power-on Delay (min/sec): Select power-on delay value
to indicate the time to delay powering on the system.
(Refer to the flow chart in Chapter 4)
Power-off Delay (hr/min/sec): Select power-off delay
value to indicate the time to delay powering off the system
(Refer to the flow chart in Chapter 4)
Serial Port: Select the serial communication port for the
ISM. Choose COM5.
D1/D2 Wakeup: Digital input triggering to enable
automatic wake-up function. Select this option and it will
start the system automatically once an input has been
triggered.
3G Wakeup: 3G SMS/Ring wake-up to enable automatic
wake-up function. Select this option and it will start the
system automatically through 3G Internet service.
DigitalOut: Check the box to turn on the output device
and check off the box to turn off the connected device.
Note:
1. You will have to enable (the default is enabled)
the selector 2 (Low Voltage Detection) of SW1 dip switch on the mainboard to enable automatic
shutdown function. (Refer to Select MCU Detect Function for power ignition behavior (SW1) in
Chapter 3 Board Layout.)
2. DI1/DI2 Wakeup function is detected via pin 3
and 4 of MIO1 (Refer to MIO1 in Chapter 3 Board Layout)
3. Both DO1 and DO2 functions are connected
(controlled) via pin 15, 16, 19 and 20 of MIO1.
(Refer to MIO1 in Chapter 3 Board Layout)
4. Refer to the flow charts in Chapter 4 for more
information.
.
After you have made changes, click Apply to apply the
changes to the Ignition controller or Cancel to cancel the
changes.
Embedded and Industrial Computing
24
Appendix B
Digital Input/Output Control
Appendix B:
Digital Input/Output
The Digitanl I/O on the rear panel is designed to provide
the input and output operations for the system. For sample
DIO code, see SuperIO folder under LVC-2000 Utility on the
Driver and Manual CD. Make sure that you have installed
the Lanner GPIO driver as instructed below.
Driver Installation
Before you could access or control the operation of the
G-sensor, GPS and Digital I/O functions, install the the L_
IO driver which is the library and driver needed for Lanner
General Purpose Input/Output interface or functions.
To install the L_IO driver:
1. Restart the computer, and then log on with
Administrator privileges.
2. Insert the Drivers and User’s Manual CD to the USBoptical drive.
5. Select Next to proceed
6. Answer “Yes” to the question and select Next to
proceed.
3. Browse the contents of the support CD to locate the
file in the LIO folder.
4. From the control panel, click the ADD Hardware
program
7. Select Add a new hardware device.
Embedded and Industrial Computing
25
Appendix B
Digital Input/Output Control
8. Choose to select the hardware Manually
9. Choose Show all device and click Next.
11. Click HaveDisk to locate the L_IO.inf file
12. Select the L_IO.inf
10. Click HaveDisk to locate the L_IO.inf file
Embedded and Industrial Computing
13. Select OK to confirm with the installation
26
Appendix B
Digital Input/Output Control
14. Select the Lanner IO driver and click Next.
15. Click Next
To verify the GPIO driver installation, do the following
steps:
1. Right-click on the My Computer icon, and then select
Properties form the menu.
2. Click the Hardware tab, then click the Device Manager
button.
3. Click the + sign next to the Lanner_Device, then the
Lanner IO Driver should be listed.
16. Click Complete to close the installation program.
Embedded and Industrial Computing
27
Appendix B
A sample DIO program in C:
ioaccess.c: IO access code for Lanner Platfomr Digital IO
program
Appendix C:
Accessing the Digital
Accelerometer Data from
the LVC-2000
The system employs Analog Devices’s ADXL345 Digital
Accelerometer which is a small, thin, ultralow power, 3-axis
accelerometer with high resolution (13-bit) measurement
at up to ±16 g. It interfaces with the LVC-2000 through a
SPI interface.
To access the Gsensor data, locate the adxl345_v001 folder
and execute the executable file adxl345 and it will show G
value of 3 axes.
Driver Installation
To access the G-Sensor data, use the following
instructions:
1. Make sure you already installed the Lanner GPIO
driver on your LVC-2000 as instructed in Appendix B.
2. To access the Gsensor data, locate the adxl345_v001
folder and execute the executable file adxl345 and it
will show G value of 3 axes.
ich7_SM_WriteByte (0x1D, POWER_CTL, ACT_INACT_
SERIAL | MEASURE) ; // Power CTL:
Measure mode, Activity and Inactivity Serial
ich7_SM_WriteByte (0x1d, BW_RATE, RATE_100);
//
Output Data Rate: 100Hz
Appendix D:
Accessing the GPS Data
from the LVC-2000
The LVC-2000 employs an onbard u-blox NEO-7N GPS
module for vehicle tracking and navigation system. You
could read the GPS data through the RS-232 serial port.
It has the following listed key features and performance
ratings:
RTC crystalbuilt-in
Anti jammingactive CW detection and
MemoryROM (NEO-7M) or Flash
Supported antennasactive and passive
Cold starts: 29 s / 30 s
Aided starts: 5 s / n.a.
Reaquisition: 1 s / 3 s
dBm
Cold starts: –148 dBm / –140
dBm
Warm starts: –148 dBm /
–145 dBm
AssistNow Oine
AssistNow Autonomous
OMA SUPL & 3GPP compli-
ant
(NEO-7M)
removal
(NEO-7N)
To access the GPS data, follow the following steps:
Select Programs from the Start menu on your windows
and open the Hyper Terminal program.
Choose COM4 from the Connection using drop-down
menu:
Embedded and Industrial Computing
32
Appendix D
Specify the following communication parameters:
Bits per Second: 9600
Data Bits: 8
Parity: None
Stop Bit: 1
Flow Control: None
9600
Accessing the GPS Data
The hyper terminal should display GPS data:
Embedded and Industrial Computing
33
Appendix E
Programming Watchdog Timer
Appendix E:
Programming System
Watchdog Timer of the
LVC-2000
A watchdog timer is a piece of hardware that can be
used to automatically detect system anomalies and reset
the processor in case there are any problems. Generally
speaking, a watchdog timer is based on a counter that
counts down from an initial value to zero. The software
selects the counter’s initial value and periodically restarts
it. Should the counter reach zero before the software
restarts it, the software is presumed to be malfunctioning
and the processor’s reset signal is asserted. Thus, the
processor will be restarted as if a human operator had
cycled the power.
For sample watchdog code, see watchdog folder under
LVC-2000 Utility on the Driver and Manual CD
#include “F81865.h”
#define PARAMETER_HELP “\n”\
“The F81865 GPIO utility of Lanner\n”\
“-------------------------------------\n”\
“Usage:\n”\
“ F81865_test DIO_IN port_
number\n”\
“ F81865_test DIO_OUT port_number
value\n”\
“ F81865_test PIO port_number
value\n”\
“ F81865_test RunLED port_number
value\n”\
“ F81865_test AlarmLED port_number
value\n”\
“ F81865_test GPS_LED port_number
value\n”\
Executing through the Command Line:
Execute the WD.EXE file under DOS (WD.EXE and CWSDPMI.
EXE should be placed on same directory), then enter the
values from 0~255. The system will reboot automatically
according to the time-out you set.
int mDIO_IN (int argc, char* argv[])
{
CHECK_ARGC (3) ;
CheckNumeric (argv[2]) ;
return 0 ;
}
// Watchdog
int mWatchDog (int argc, char *argv[])
{
if (argc != 3 && argc != 2)
RETMSG (-1, PARAMETER_HELP) ;
if (argc == 3)
{
CheckNumeric (argv[2]) ;
int nValue = atoi (argv[2]) ;
WatchDog_Enable (nValue) ;
}
int nLeft = WatchDog_GetLeft () ;
int nPort = atoi (argv[2]) ;
BOOL ret = Read_DIO (nPort) ;
printf (“DIO_IN #%d = %d\n”, nPort, ret) ;
return ret ;
}
// Milli-second delay
int mSleep (int argc, char *argv[])
{
CHECK_ARGC (3) ;
CheckNumeric (argv[2]) ;
Sleep (atoi (argv[2]) ) ;
printf (“Watchdog timer left %d seconds\n”, nLeft)
;
return nLeft ;
}
// Argument - function mapping
typedef struct
{
char *szCmd ;
int (*function) (int argc, char *argv[]) ;
} CMD2FUN ;
CMD2FUN c2f[] =
{
Embedded and Industrial Computing
36
Appendix E
{“DIO_IN” , mDIO_IN
},
{“DIO_OUT” , mDIO_OUT
},
{“PIO” , mPIO
},
{“RunLED” , mRunLED
},
{“AlarmLED” , mAlarmLED
},
{“GPS_LED” , mGPS_LED
},
{“WirelessLED” , mWirelessLED },
{“CaseOpen” , mCaseOpen },
{“CaseOpen_Clear”,mCaseOpen_Clear},
{“Watchdog” , mWatchDog
},
Programming Watchdog Timer
// No match argument
RETMSG (-1, “Wrong Argument\n”) ;
}
catch (char *str)
{
// Output the error message
printf (“\n%s\n”, str) ;
}
catch (...)
{
// Unknown exception
printf (“\nUnknown Exception\n”) ;
}
{“Sleep” , mSleep }
} ;
// Program start here
int main(int argc, char *argv[])
{
try
{
// The total argument allowed
int num = sizeof (c2f) / sizeof (c2f[0]) ;
// Too few argument
if (argc < 2)
RETMSG (-1, PARAMETER_HELP)
;
return -1 ;
}
// Find the match argument and execute
the mapping function
for (int i = 0 ; i < num ; i++)
if (stricmp (argv[1], c2f[i].szCmd)
== 0)
return c2f[i].function
(argc, argv) ;
Embedded and Industrial Computing
37
Appendix B
Terms and Conditions
Appendix B:
Terms and Conditions
Warranty Policy
1. All products are under warranty against defects in
materials and workmanship for a period of one year
from the date of purchase.
2. The buyer will bear the return freight charges for
goods returned for repair within the warranty period;
whereas the manufacturer will bear the after service
freight charges for goods returned to the user.
3. The buyer will pay for repair (for replaced components
plus service time) and transportation charges (both
ways) for items after the expiration of the warranty
period.
4. If the RMA Service Request Form does not meet the
stated requirement as listed on “RMA Service,” RMA
goods will be returned at customer’s expense.
5. The following conditions are excluded from this
warranty:
RMA Service
Requesting a RMA#
6. To obtain a RMA number, simply fill out and fax the
“RMA Request Form” to your supplier.
7. The customer is required to fill out the problem code
as listed. If your problem is not among the codes listed,
please write the symptom description in the remarks
box.
8. Ship the defective unit(s) on freight prepaid terms.
Use the original packing materials when possible.
9. Mark the RMA# clearly on the box.
Note: Customer is responsible for shipping
damage(s) resulting from inadequate/loose
packing of the defective unit(s). All RMA# are valid
for 30 days only; RMA goods received after the
effective RMA# period will be rejected.
Improper or inadequate maintenance by the customer
Unauthorized modification, misuse, or reversed
engineering of the product Operation outside of the
environmental specifications for the product.
Embedded and Industrial Computing
41
Appendix B
Terms and Conditions
Embedded and Industrial Computing
42
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.