Lanner LEC-2055 User manual

Type
User manual
>>
Embedded &
Industrial Computing
Hardware Platforms for Embedded and Industrial Computing
LEC-2055
Preliminary
User's Manual
Publication date:2011-08-10
2
About
About
Embedded and Industrial Computing
Overview
Icon Descriptions
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.
WARNING: This exclamation point
indicates that there is a caution or
warning and it is something that could
damage your property or product.
Online Resources
The listed websites are links to the on-line product
information and technical support.
Resource Website
Lanner http://www.lannerinc.com
Product Resources http://assist.lannerinc.com
RMA http://eRMA.lannerinc.com
Copyright and Trademarks
This document is copyrighted, © 2011. All rights are
reserved. The original manufacturer reserves the right to
make improvements to the products described in this
manual at any time without notice.
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.
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 Certication
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 Certication
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.
TTaTTable of Contentsbeable of Contents
3
Chapter 1: Introduction 4
System Specication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Package Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Chapter 2: System Components 6
System Drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Front Components. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Rear Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Chapter 3: Board Layout 10
External Connectors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
Internal Connectors and Jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
Connectors and Jumpers List. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
Jumper Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
Chapter 4: Hardware Setup 16
Preparing the Hardware Installation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
Installing the System Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
Installing a CompactFlash Card. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
Wireless Module Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
3G SIM Card Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
Installing the Hard Disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
Connecting Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
Wall Mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
Appendix F: Programming Watchdog Timer 20
Appendix G: Terms and Conditions 22
Warranty Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
RMA Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
4
Introduction
Chapter 1
Embedded and Industrial Computing
Chapter 1:
Introduction
Thank you for choosing the LEC-2055. The LEC-2055 is
an ultra-compact and robust embedded system which
comes with a Mini-PCIe socket with a SIM card reader to
enable 3G networks as well as GPS capability.
The following highlight the capabilities of the LEC-2055
system:
a Mini-PCIe socket with a SIM card reader
Sutible VESA and wall mounts
Small in dimension: 198x42x145mm
(7.80”x1.65”x5.71”)
Wide operating temperature ranging from -10° to 55°
Celsius
Accepting a variety of power sources with voltages
between 12 and 36 Volts of direct current (via a 1x
2-pin Phoenix connector)
2 ports of RS232/422/485 and one port of RS232 (via
DB-9 connectors)
System Specification
LEC 2 Series LEC-2055
Dimension (WxHxD) 198x42x145mm
(7.80”x1.65”x5.71”)
Processor Intel Atom N270 1.6GHz
Chipset Intel 945GSE + ICH7M
System Technology DDR2 SODIMM x1
Memory Max. Capacity DDR2 400/533 upp to 2GB
Storage IDE CF socket Type I/II x1
SATA 2.5” HDD/SSD drive bay x1
Ethernet Controller Realtek RTL8111 x2
Graphic Controller Intel GMA950
Audio Controller No
IO
LAN GbE RJ45 x2
Display DB15 x1 for VGA
Video Grabber No
Audio No
Serial I/O DB9 x3 for RS232/422/485
x2 and RS232 x1
GPS No
USB 2.0 Type A x2
Internal x2
Power Input 2-pin terminal block
Expansion Mini-PCIex1 with SIM card
reader
Others
External: 2x SMA antenna
holes, reset; Internal: PS/2
keyboard and mouse, +5Vdc
output
Power Input +12~36Vdc, ATX Mode
AC Adapter 60W +24V @ 2.5A
Hardware Monitor Fintek F81865 integrated
watchdog timer 1~255 level
OS Support Linux , Windows Embedded 7,
Windows XP/XP Embedded,
Certications CE, FCC Class A
Compliance No
Operating Temperature Range
with Industrial Components
(Industrial Memory, CF, HDD,
SSD….)
-10~55°C/14~131°F
Operating Temperature Range
with Commercial Components -5~45°C/23~113°F
5
Introduction
Chapter 1
Embedded and Industrial Computing
Package Contents
Your package contains the following items:
LEC-2055 Fanless Embedded System
Serial-ATA/Power Cable (P/N: 080W1N0002001)
Drivers and User’s Manual CD (P/N: S09OADA01H100)
2-pin Female Terminal Block (04AW20021E101)
6
System Components
Chapter 2
Embedded and Industrial Computing
Chapter 2:
System Components
System Drawing
Mechanical dimensions of the LEC-2055
Unit: mm
7
System Components
Chapter 2
Embedded and Industrial Computing
Block Diagram
The block diagram depicts the relationships among the
interfaces and modules on the motherboard..
Intel
ICH7M
Processor
ATOM N270
Fintek
F81865F
H/W Monitor
WDT
RS-232
1x Pin Header
PS/2 KB/MS
Pin Header
SATA
VGA
FSB
GbE LAN
2x RTL8111D
PCIe x2
IDE
DDR2 400/533MHz
SO-DIMM
Mini PCI Express
Socket
PCIe
USB SIM Card Reader
RS-232/422/485
2x DB-9
2x RJ-45 SATA-II
Connector
Compact Flash
Socket
LPC
Flash BIOS SPI
VGA
Intel
945GSE
DMI
IDE
USB 2.0 Ports
1x Type A
1x Pin Header
8
System Components
Chapter 2
Embedded and Industrial Computing
Front Components
Component Description Pin Definition Reference
F1 HDD (Yellow) and
Power LED (Green)
HDD
Blinking: data access activities•
Off: no data access activities•
Power
On: The computer is on.•
Off: The computer is off .•
POWER LED & Hard Disk
LED (LED2) on page 16
F2 Reset Switch A hardware reset button
F3 Two 10/100/1000Mbps LAN ports Two RJ-45 (network) 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.
LAN Ports (LANB1/LANB2)
on page 15
F4 Two USB 2.0 Ports An USB type A connector; in addition to
this connector, an internal pin header is
provided.
Dual USB Port Connector
0 and 1 on Page 15
F5 Serial Ports COM1 and COM2 provide RS232/
RS422/RS485 communications with
a dip switch selecting among these
standards.
RS-232 COM Port (COM1,
COM2 on page 14):
LINK/ACT
SPEED
F1 F2 F4
F3 F5
9
System Components
Chapter 2
Embedded and Industrial Computing
Rear Components
Component Description Pin Definition Reference
R1 Antenna Holes Reserved for SMA type antenna (*)
R2 Serial Port COM3 provides RS232 serial
communication. RS-232 COM Port (COMB1,
COM3 on page 14):
R3 VGA Port It connects an external VGA
monitor or projector. VGA in DB-19 connector (VGA1)
on page 15
R4 DC-In (power) LEC-2055 support power range
between 12V and 36V. DC_IN Connector (CON1) on
page 16
Note: Antenna is not included in the standard package. You can purchase it from Lanner
separately as an accessory.
R2
R1
R3 R4
10
Board Layout
Chapter 3
Embedded and Industrial Computing
Chapter 3:
Board Layout
External Connectors
The following picture highlights the location of system
input/output connectors. Refer to the table 3.1 Connector
List for more details.
LANB1/LANB2 COM1USB1
LED2
CON1
COM2
11
Board Layout
Chapter 3
Embedded and Industrial Computing
Internal Connectors and Jumpers
The following picture highlights the location of internal
connectors and jumpers. Refer to the table 3.1 Connector
List for more details.
PCOM1
CF1
USIM1
USBB1
J1
LEB-2055
DIMM1
VGA1
SW3
PCOM2
SW4
SW5
DLPC1
PS4S1
ATNC1
JSPIROM1
COMB1
KM1
CCMOS1
SATA1
12
Board Layout
Chapter 3
Embedded and Industrial Computing
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 LEB-2055
Labels Function Pin Denition Reference Page
ATNC1 Antenna Power Connector P14
CCMOS1 Clear CMOS jumper P14
CF1 CompactFlash Connector P14
COM1/2 Serial Communication Ports P13
COMB1 COM3 Pin Header P13
CON1 DC-In Connector P15
DLPC1 LPC Port 80 Pin Reserved for factory use
DIMM1 200 PIN DDR2 SODIMM SOCKET --
J1 Front Panel Functions Connector P15
JSPIROM1 SPI BIOS Update Pin Header Reserved for factory use
KM1 PS/2 Keyboard & Mouse Connector P14
LANB1/LANB2 LAN Ports P14
LED2 Power and Hard Disk LED P15
MPCIE1 Mini PCI-Express Connector P15
PCOM1/2 Select COM1/COM2 Pin9 Power Setting P13
PS4S1 4-pin Serial-ATA Power Connector P13
RSW1 Reset Button --
SATA1 SATA Data Cable Connector P13
SW3 Select COM1 Protocol Setting P13
SW4 Select COM2 Protocol Setting P13
SW5 Select COM1/2 in RS-485 signal termination setting P13
USB1 USB Stack Connector Port 0/1 P14
USBB1 USB Pin Header Port 2/3 P14
USIM1 SIM Card Reader P15
VGA1 DB-15 VGA Connector P14
VMPCIE1 Select Mini PCI-Express Power Setting P15
13
Board Layout
Chapter 3
Embedded and Industrial Computing
COM Protocol
Setting
RS-232 RS-422 RS-485
Selector 1
Selector 2
Selector 3
Selector 4
1 ON
2 OFF
3 OFF
4 OFF
1 OFF
2 ON
3 OFF
4 ON
1 OFF
2 OFF
3 ON
4 ON
Default:RS-232 Only
Note: Enable “serial Port 1 (2 ) RS-485 driver in
the BIOS when using RS-422/RS-485.
SW5: Select COM1/COM2 Termination in RS-485
This switch is used to enable or disable the signal
termination for COM1 and COM2. We strongly recommend
that you disable termination when the port is configured
as RS-232 and enable it when the port is configured as RS-
485/RS-422
COM Port NO.
Setting
Port No. Without 120Ω
Termination
With120Ω
Termination
Selector 1
Selector 2
COM1 OFF ON
OFF ON
Selector 3
Selector 4
COM2 OFF ON
OFF ON
Default: all OFF.
PCOM1: Select COM1 pin 9 function
PCOM2: Select COM2 pin 9 function
RS-232 COM Port(COMB1, COM3): It is the RS-232 serial
pin header.
Jumper Settings
Serial-ATA Connector (SATA1): It is for connecting a 2.5’
SATA harddisk to be served as your systems storage. It can
support SATA II which features Data transfer rates up to 3.0
Gb/s (300 MB/s).
4-pin Serial-ATA Power Connector (PS4S1): It is for
connecting the SATA power cord.
Serial Port(COM1/COM2): It is the RS-232/422/485 port
through the D-SUB9 connector.
RS-232/422/485 Pinout:
SW3: Select COM1 Protocol Setting (SW3)
SW4 : Select COM2 Protocol Setting (SW4):
RS-232
RS-422
RS-485
6789
12345
Pin No. Pin Name
RS-232 RS-422 RS-485
1 DCD TX+ D+
2 RXD TX- D-
3 TXD RX+ --
4 DTR RX- --
5 GND GND GND
6 DSR -- --
7 RTS -- --
8 CTS -- --
9 RI -- --
Pin No. Function
1 GND
2 TX+
3 TX-
4 GND
5 RX-
6 RX+
7 GND
7
6
5
4
3
2
1
Pin No. Function
1-2 RS-232 Ring (default)
3-4 +5V
5-6 +10.5V
1
3
5
7
9
2
4
6
8
10
LEB-2055
Pin No. Function Pin No. Function
1 DCD 2 DSR
3 RXD 4 RTS
5 TXD 6 CTS
7 DTR 8 RI
9 GND 10 KEY
Pin No. Function
1 NC
2 Ground
3 Ground
4 5V
4
3
2
1
4 3 2 1
Off
ON
COM1 COM2
1
3
5
2
4
6
4 3 2 1
SW5
Off
ON
SW5
Off
ON
4 3 2 1
14
Board Layout
Chapter 3
Embedded and Industrial Computing
Pin No. Pin Name Pin No. Pin Name
7 CE1# 32 CE3#
8 GND 33 VS1
9 GND 34 IOR#
10 GND 35 IOW#
11 GND 36 WE#
12 GND 37 IDEIRQ
13 VCC3 38 VCC3
14 GND 39 CBSEL#
15 GND 40 VS2
16 GND 41 RESET#
17 GND 42 IORDY
18 A2 43 DREG
19 A1 44 DACK#
20 A0 45 ACTLED#
21 DATA0 46 BVD1
22 DATA1 47 DATA8
23 DATA2 48 DATA9
24 IOS16 49 DATA10
25 CD2- 50 GND
Dual USB Port Connector 0 and 1 (USB1):
USB 2.0 Pin Header (USBB1):
PS/2 Keyboard & Mouse Connector (KM1):
LAN Ports (LANB1/LANB2):
Pin No. Description
Fast Ethernet Gigabit Ethernet
1 TX+ BI_DA+
2TX- BI_DA-
3 RX+ BI_DB+
4 -- BI_DC+
5 -- BI_DC-
6RX- BI_DB-
7 -- BI_DD+
8 -- BI_DD-
Clear CMOS jumper (CCMOS1): It is for clearing the
CMOS memory.
VGA Interface Cable Connector (VGA1): It is used for
connecting a VGA monitor.
Antenna Power Connector (ATNC1): It supplies power to
the wireless signal amplifier, if there is one attached to the
system.
CompactFlash Connector (CF1): It is for connecting a
Compact Flash card to be served as your systems storage.
Pin No. Pin Name Pin No. Pin Name
1 GND 26 CD1-
2 DATA3 27 DATA11
3 DATA4 28 DATA12
4 DATA5 29 DATA13
5 DATA6 30 DATA14
6 DATA7 31 DATA15
Pin No. Pin Name
1-2 Normal (Default)
2-3 Clear CMOS
25 1
50 26
Pin No. Pin Name
1 +5V
2 USB1-
3 USB1+
4 GND
5 +5V
6 USB0-
7 USB0+
8 GND
Pin No. Pin Name Pin No. Pin Name
1 +5V 2 GND
3 KEY 4 USB3+
5 USB2- 6 USB3-
7 USB2+ 8 KEY
9 GND 10 +5V
1 2 3 4
5 6 7 8
Pin No. Pin Name
1 +5V
3 MSDATA
5 KBDATA
7 GND
Pin No. Pin Name
2 MSCLK
4 KEY
6 KEY
8 KBCLK
1
3
5
7
9
2
4
6
8
10
1
3
5
7
2
4
6
8
1
2
3
12
2
11
1
Pin No. Pin Name Pin No. Pin Name
1 R 2 Detect VGA Plug on
3 G 4 Ground
5 B 6 Ground
7 H-SYNC 8 Ground
9 V-SYNC 10 Ground
11 I2C Data 12 I2C CLOCK
Pin No. Pin Name
1 +3.3V
2 GND
15
Board Layout
Chapter 3
Embedded and Industrial Computing
DC_IN CONNECTOR (CON1): A Phoenix connector for
external power supply.
SIM Card Socket (USIM1):
Front Panel Function Pin Header (J1): It provides LED
signal and button function on the front panel.
Pin No. Pin Name Function Pin No. Pin Name Function
1 HD_LED+ HDD LED 2 PWR_LED+ Power LED
3 HD_LED- 4 PWR_LED-
5 GND System Reset 6 GND Power On/Off
Push Button
7 RESET_BTN 8 POWER_BTN-
Pin No. Pin Name
C1 +5V
C2 USIM_RESET
C3 USIM_CLOCK
C5 GND
C6 UIM_VPP
C7 UIM_DATA
Mini PCI Express Connector (MPCIE1):
PIN Pin Name PIN Pin Name
1 WAKE# 30 SMB_CLK
2 +3.3V 31 PETn0
3 NC 32 SMMB_DATA
4 GND 33 PETp0
5 NC 34 GND
6 +1.5V 35 GND
7 CLKREQ# 36 USB_D-
8 UIM_PWR 37 RSVERD
9 GND 38 USB_D+
10 UIM_DATA 38 RSVERD
11 REFCLK- 40 GND
12 UIM_CLK 41 RSVERD
13 REFCLK+ 42 LED_WWAN#
14 UIM_RESET 43 GND
15 GND 44 LED1_WLAN#
16 UIM_VPP 45 NC
17 NC 46 LEC1_WPAN#
18 GND 47 NC
19 NC 48 +1.5V
20 W_DISABLE# 49 NC
21 GND 50 GND
22 RESET# 51 NC
23 PERn0 52 +3.3V
24 +3.3Vaux (+3.3V) 53 GND
25 PERp0 54 GND
26 GND 55 GND
27 GND 56 GND
28 +1.5V 57 GND
29 GND 58 GND
Mini PCI Express (MPCIE1) Power Setting in Pin 24
(VMPCIE1):
POWER LED & Hard Disk LED (LED2):
Pin No. Pin Name
1 DC_IN
2 GND
+ -
1
3
5
7
2
4
6
8
VMPCIE1. Function
1-2 3V Standby
2-3 3.3V
Pin No. Pin Name Pin No. Pin Name
A1 PWR_LED + (TOP) C1 PWR_LED – (TOP)
A2 HDD_LED+ (BOTTOM) C2 HDD_ACT# (BOTTOM)
C2
C1
A2
A1
16
Hardware Setup
Chapter 4
Embedded and Industrial Computing
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 AC power is removed.
Unpower the LEC-2055 and remove the power cord.1.
Turn the device upside down.2.
Unscrew the 4 rubber feet from the bottom cover.3.
Open the cover.4.
Installing the System Memory
The motherboard supports DDR2 memory to meet the
higher bandwidth requirements of the latest operating
system and Internet applications. It comes with one
Double Data Rate(DDR2) Small Outline Dual Inline Memory
Module (SO-DIMM) socket.
Align the memory module’s cutout with the SO-DIMM 1.
socket’s notch.
Install the SO-DIMM.2.
Note:
The system can support memory with the
DDR2 400/533 SO-DIMM socket up to 2 GB in
maximum.
Installing a CompactFlash Card
LEC-2055 provides one CompactFlash slot. Follow the
procedures bellow for installing a CompactFlash card.
Align CompactFlash card and the card slot with the 1.
arrow pointing toward the connector.
Push the card and insert it into place.2.
2
1
1
2
17
Hardware Setup
Chapter 4
Embedded and Industrial Computing
Wireless Module Installation
Align the wireless module’s cutout with the Mini-PCIe 1.
slot notch.
Insert the wireless module into the connector 2.
diagonally.
Push the other end of the wireless module to be 3.
tightened with the latch.
3G SIM Card Installation
In order to insert the SIM card, you will have to take 1.
off the front panel first. To take off the front panel,
unscrew the 4 screws on the front panel.
Align the cut corner of the SIM card pointing toward 2.
SIM card reader. Also place the ICs facing down.
Insert the 3. SIM card into the tray horizontally. You
should feel a click when the SIM card is locked securely
in the SIM card reader.
Note: To remove the SIM card, push the card
inward toward the connector to unlock it.
18
Hardware Setup
Chapter 4
Embedded and Industrial Computing
Installing the Hard Disk
The system can accommodate one Serial-ATA disk. Follow
these steps to install a hard disk into the system:
Place hard disk on the hard disk tray of the top cover 1.
and align the holes of the hard disk with the mounting
holes on the tray.
Fix the hard disk on the hard disk tray by using 4 2.
mounting screws
Plug the Serial-ATA cable to the hard disk.3.
Connect the Serial-ATA power and data disk cables to 4.
the Serial-ATA power and disk connectors on the main
board respectively.
Unit: mm
Connecting Power
Connect the LEC-2055 to a 12~36 VDC power source.
The DC power-in connector comes with a 2-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.
4
3
21
+ -
DC IN
19
Hardware Setup
Chapter 4
Embedded and Industrial Computing
Wall Mounting
The product does not ship with wall mounting kit. You
could purchase the wall mounting kit from Lanner as an
accessory. To mount your product on the wall, follow the
instructions below:
First make a hole for the anchor in the surface on the 1.
wall. Use the following diagram as a guideline for
placing the anchors.
Then press the anchor into the hole until it is flush with 2.
the surface. You may need a hammer to tap the wall
anchor.
Use a screwdriver to screw the threaded screw into the 3.
plastic anchor.
Attach the wall mounting bracket to the back of the 4.
device, securing it in place with four of the flat-head
screws provided.
Hang the device on the wall.5.
20
Programming Watchdog Timer
Embedded and Industrial Computing
Appendix F
Appendix F:
Programming Watchdog
Timer
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 processors 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
LEC-2055 Utility on the Driver and Manual CD
Executing through the DOS Command Line:
Execute the 83627WD.exe xxx (xxx=1-255 sec) under
DOS (83627WD.exe and CWSDPMI.EXE should be placed
in the same directory), then enter the values from 0~255.
The system will reboot automatically according to the
time-out you set. For sample code, look into the DOS/WD
folder.
Compile and Executing in Linux:
To run the Watchdog sample code, you will need
to compile rst by running make with the Makele
contained in the source code. After compilation, you will
have the following binary les:
1. wdrs_drv.ko (Kernel mode driver module)
2. wdrs_test (the executable Watchdog program)
Note: You have to run “mknod /dev/wdrs_drv c 244 0” to
create the device file as driver installation. For source code,
look into the linux/watchdog_reset folder. Make sure you
copy all files within the folder to the destination.
The following shows the sample code 83627uhg_wdto
file:
#include <stdio.h>
#include <string.h>
#include <dos.h>
#include <stdlib.h>
#include <inlines/pc.h>
#include <pc.h>
#include <unistd.h>
#define index_port 0x2e
#define data_port 0x2f
void help()
{
printf(“\t\t Lanner Electronics Inc. 2010-01-
06\n”);
printf(“\t\t Watchdog timer reset for VES-403\
n\n”);
printf(“Please input : 83627WD.exe xxx (1-255 sec)
(Watchdog Control - SYSTEM RESET)\n”);
printf(“\n”);
}
int main (int argc, char *argv[])
{
clrscr();
int i, time;
if( argc < 1 || argc != 2 )
{
help();
printf(“\t\t argc = %d\n, argc);
for (i = 0; i < argc; ++i)
{
printf(“\t\t argv[%d] = %s\n”, i , argv[i]);
}
return -1;
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23

Lanner LEC-2055 User manual

Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI