Hardware Platforms for Embedded and Industrial Computing
LEC-2110
>>
User's Manual
Publication date: 2012-03-06
About
About
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.
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.
Thank you for choosing the LEC-2110. The LEC-2110
features On-board Intel Atom D525 1.8GHz processors. It
has dual LAN ,DVI-D and VGA connectors, 6 serial ports as
well as one PCI or PCIe expansion slot to meet the high
demand of application versatility.
The following highlight the capabilities of the LEC-2110
system:
Intel GMA3150 Graphics •
DVI-D video out•
Dual 10/100/1000 Mbps LAN•
USB x 6, COM x 6, and DIDO x 1•
SATA HDD support•
Power-on switch through the Phoenix connector for •
distant control
Totally 6 serial ports supporting Hardware Auto flow •
Control: 2x DB9 Male for COM1/2 and 1x 2x10-pin
terminal block connector for COM3/4/5/6 (COM2/3
support RS232/422/485 with Auto-flow Control by
using switch setting; COM1/4/5/6 support RS232 only
Audio input and output through Mic-in and Line-out •
jack
Aluminum extrusion on the entire enclosure which •
helps heat dissipation
System Design in fanless and compactness for •
deployment in harsh environment
Support of a variety of mounting methods including •
VESA mount and wall mount
System Specification
FEATURE DESCRIPTION
Platform
System Memory
Storage
Controllers
DisplayInterface
I/O
Processor
ChipsetIntel ICH8M
TechnologyDDR3
SocketsSODIMM x1
Max. Capacity4 GB
IDECompactFlash I/II x 1
SATA2.5” HDD/SSD drive bay x 1
EthernetRTL8111E-VB-CG x 2
GraphicsIntel GMA3150
AudioRealtek ALC888S-VC2-GR
Serial
Digital
USB 2.06 x Type A, 1 x internal
LANGbE RJ45 x 2
Expansion
Audio
On-board Intel Atom D525
1.8GHz
DB15 x 1 for VGA
DVI-D x 1
DB9 x 2 and 2 x 10-pin terminal
block for RS232 x 4 and
RS232/422/485 x 2
DB9 Female x1
4 in, 4 out (5V TTL)
Mini-PCIe x 1, PCI x 1, or PCIe x 1
Max. power support 10 W
Max dimensions 174 x 98 mm
Phone jack x 2 for Mic-in and
Line-out
Embedded and Industrial Computing
External:
Power-on button, reset, remote
Other
Hardware
Monitoring
OS Support
Power
CerticationsCE, FCC Class A
Controller
Watchdog timerReset supported, 1~255 level
Input9 ~ 30 VDC, ATX Mode
AC Adapter75 W, +19 V at 3.95A
power-on switch, 3 x SMA
antenna holes
Internal:
PS/2 keyboard and mouse, +5V
DC output
Fintek F81865F
integrated hardware monitor
Linux, XPE/WES2009, XP PRO FES
WS7E, WS7P, WIN 7 PRO-E
4
Chapter 1
Introduction
Industrial Components
Operating
Temperature
DimensionsDimensions (WxHxD)
ORDERING INFORMATION
LEC-2110PLanner Embedded system with onboard Intel ATOM D525
LEC-2110ELanner Embedded system with onboard Intel ATOM D525
Commercial
Components
High/Low Extended
Testing
1.8GHz and DDR3 memory support, VGA/DVI, Audio, 2x
GbE, 2x RS232/422/485, 4x RS232, 6x USB, DIO, 1x MiniPCIe with SIM card reader, 1x PCI expansion
1.8GHz and DDR3 memory support, VGA/DVI, Audio, 2x
GbE, 2x RS232/422/485, 4x RS232, 6x USB, DIO, 1x MiniPCIe with SIM card reader, 1x PCIe expansion
Industrial memory, CF, HDD, SSD
-10 ~ 55°C (14 ~ 131°F)
-5~45° C (23 ~ 113°F)
No damage after 72 hours full
loading, operating at 70°C.
Bootable after 24 hours at -20°C.
268x64x190mm
(10.55”x2.52”x7.48”)
Package Contents
Your package contains the following items:
LEC-2110 Fanless Embedded System•
Serial-ATA/Power Cable (P/N: 080W1N2201001)•
Wall-Mounting Kit (P/N: SE9ESA8740100)•
10-Pin Terminal Block x 2 pieces (P/N: •
04AW2010O101)
2-Pin Switch (P/N: 04AW20023Z101)•
75W Power Adaptor•
Screw set•
Drivers and User’s Manual CD •
Embedded and Industrial Computing
5
Chapter 2
268
301
71
Chapter 2:
System Components
System Drawing
Mechanical dimensions of the LEC-2110
Unit: mm
System Components
Embedded and Industrial Computing
6
Chapter 2
ICH8-M
mBGA
PINEVIEW
ATOM D525
(FCBGA8)
DDR3
1x SO-DIMM up to 4GB
Fintek
F81865F
SATA Port 0
USB
SPI
Mini PCIexpress
Socket
GbE LAN
Realtek
RTL81111E
2x PCIe
2x RJ-45
USB 2.0
6x Port-A (front I/O)
1x Pin Header
SATA Connector
6 Gbps
PCIe
USB 2.0
VGA
Up to 2048x1536
DVI-D
Up to 1920x1080
DVI
SPI ROM
SST 16M
3G Card +
SIM Card Reader
Serial
PCIe
MIC IN
HD Audio
Codec
ALC 888S
Voltage
Thermal
Sensor
Transmitter
CH7036
LVDS
1366 X 768 MAX.
CF Socket
with WOL/PXE
DMI x 4
LPC
Line Out
COM 2/3
RS-232/422/485
with auto-flow Control
LEK-P01*
1X PCI
LEK-E01*
1X PCIexpress 1X
PCI
Gold finger
PCIexpress 1XPCI
PCI PCIe
COM 1/4/5/6
RS-232
Serial
Remark*
The expansion gold finger is flexible
for PCI and PCIe 1X signals;
For LEC-2110, the daughter board
LEK-PO1 or LEK-E01 are selected by
different SKUs.
*LEK- P01 is for LEC-2110P
* LEK-E01 is for LEC-2110E
PS/2
KB/MS
Pin header
Intel Integrated
GMA 3150
Block Diagram
The block diagram depicts the relationships among the
interfaces and modules on the motherboard..
System Components
Embedded and Industrial Computing
7
Chapter 2
Front Components
System Components
F1
F2
ComponentDescriptionPin Definition Reference
F1 Power Button with dual LEDATX Power-on button with LEDs:
F2 Power-on SwitchA power-on switch through the
F3 DIO PortA Digital Input/Output port supports 4
F4 Six USB 2.0 Ports An USB type A connector. In addition to
F5 Two 10/100/1000Mbps LAN ports Two RJ-45 (network) jacks with LED
Speed
F6 MIC IN/ LINE OUTConnect the audio devices to these
F7 HDD (Yellow) and
Power LED (Green)
F8 Reset Reset switch
Embedded and Industrial Computing
F3
Link/Active
F4F5
Standby mode in Red; Power-on mode
in Green
Phoenix contact for distant power-on/
off control
input and 4 output connections. They
are provided by Fintek F81865 super
I/O
this connector, an internal pin header is
provided..
indicators as described below. The LAN
ports are provided by Realtek 8111E.
They both support Wake-on-LAN/
Remote-wake-up.
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.
ports. The Microphone and line out
port are provided by Realtek ALC
ALC888S
HDD
Blinking: data access activities•
Off: no data access activities•
Power
On: The computer is on.•
Off: The computer is off .•
F6
F7
F8
PSBTN1 on page 15
PSW1 on page 15
DGIO on page 14
Dual USB Port Connectors
on Page 15
LANB1, LANB2 on page
14
MIC1on page 15
LED3 on page 17
8
Chapter 2
Rear Components
System Components
R1
R5
ComponentDescriptionPin Definition Reference
R1 Two Serial PortsSerial ports through the DB-9
connector; COM1 supports RS-232
and COM2 supports RS-232/422/485
with switch selection among RS232/422/485.
R2 DVI-D/VGADual display with the DVI-D (single
link) and VGA ports which are
provided by integrated Graphics
Media Accelerator 3150 through the
Chrontel’s CH7036A LVDS to DVI-D
converter. The displays can support
VGA up to 2048x1536 and DVI-D up
to 1920x1080 respectively.
R3 Four Serial PortsCOM3 provide RS232/RS422/RS485
communications with a dip switch
selecting among these standards.
COM4~COM6 provide RS232
communication only.
R4 DC-In (power) Power-in Connector through 1x2
Pin Phoenix Contact Connector.
The LEC-2110 support power range
between +9~+30V DC-in.
R5 Slot for PCI/PCIe expansion
(*)
R6 Antenna HoleReserved for antenna connection
* Model LEC-2110P supports PCI expansion whereas model LEC-2110E supports PCIe expansion.
The PCIe/PCI expansion capability
is accomplished via the riser card
connected to the system
R2
R6
R3
COM1, COM2 on page 13
DVI1/VGA1 Connectors on page
16/17
CN2 on page 14
CN1 on page 17
PCIGF1/PCIEGF1 ConnectorS on
page 16/17
R4
Embedded and Industrial Computing
9
Chapter 3
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.
Board Layout
COM1
COM2
DVI1
VGA1
CN2
CN1
LED3
LNO1
Embedded and Industrial Computing
MIC1
LANB1/LANB2
USB1/USB2/USB3
DGIO1
PSW1
PSBTN1
10
Chapter 3
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.
PCIEGF1
PCOM1
PCOM2
SW2
DLPC1
SC2T2
SC2T1
KM1
USBG1
Board Layout
SC3T2
SC3T1
PCIGF1
MPCIE1
CMOS1
JSPROM1
CF1
LIN1
SATA1
(Reserved for future customization)
PS4S1
SODIMM1
PSW2
LEB-2110A
Embedded and Industrial Computing
11
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.
CN1DC-in ConnectorP17
CN2COM3~COM6 ConnectorP14
COM1/2Serial Port COM1/2 ConnectorP13
DGIO1Digital Input/Output ConnectorP14
DLPC1LPC Port 80 Debug PortReserved for Factory Use
DVI1DVI-D ConnectorP16
JSPROM1SPI-ROM BIOS Update PortReserved For Factory Use
KM1Keyboard/Mouse ConnectorP17
LANB1/LANB2RJ45 with 2 LED Indicator LAN ConnectorP14
LED3Power and HDD LEDP17
LIN1Line In ConnectorP15
LNO1Line Out Connector P15
MIC1Microphone PortP15
MPCIE1Mini PCI-Express ConnectorP15
PCIEGF136-Pin Pci-Express Golden FingerP17
PCIGF1120-Pin PCI Golden FingerP16
PCOM1/2COM1/COM2 Pin 9 Signal Selection JumperP13
PS4S14-Pin Power ConnectorP13
PSBTN1Power-on Push Button with Dual Color LEDP15
PSW1Power-on Switch ConnectorP15
PSW2Power-on Switch and Power-on Status Detection Pin Header P17
SATA1/2SATA ConnectorP13
SC2T1/SC2T2COM2 Serial Communication Protocol Selection JumperP13
SC3T1/SC3T2COM3 Serial Communication Protocol Selection JumperP14
SODIMM1240-Pin SO-DIMM Socket-SW2COM2/COM3 RS-485 Termination Enabling JumperP14
USB1~3Dual USB ConnectorsP15
USBG1USB Port Pin HeaderP15
VGA1VGA PortP17
Embedded and Industrial Computing
12
Chapter 3
Board Layout
Jumper Settings
LEB-2110A
Serial-ATA Connector (SATA1): It is for connecting a 2.5’’
harddisk to be served as your system’s storage. It can
support SATA II which features Data transfer rates up to
3.0 Gb/s (300 MB/s).
Pin No.Function
1 2 3 4 5 6 7
4-pin Serial-ATA Power Connector (PS4S1): It is for
connecting the SATA power cord.
RS-232 Serial Port(COM1): It is a RS-232 port through the
D-SUB9 connector.
12345
6789
Pin No.Pin NamePin No.Pin Name
1DCD6DSR
2RXD7RTS
3TXD8CTS
4DTR9RI
5GND
Select COM1/COM2 Pin 9 function: Pin 9 of RS-232
port (PCOM1/PCOM2) can be altered according to the
following definition:
1
3
5
2
4
6
Pin No.Function
1-2 (Default)Ring In
3-4+5V
5-6+12V
RS-232/422/485 Serial Port (COM2): It is a RS232/422/485 port through the D-SUB9 connector.
12345
6789
Embedded and Industrial Computing
RS-422
RS-485
Switch
Protocol
RS-232
(Default)1-2
RS-422
RS-485
Note: When using RS-422/RS-485 in COM2, you
must enable the “Serial Port2/3 RS485 driver”
option first in the BIOS menu.
SC2T1SC2T2
1-5
2-6
3-7
4-8
5-9
3-4
6-10
7-11
8-12
5-9
5-6
6-10
7-11
8-12
13
Chapter 3
Board Layout
SW2: Select COM2 and COM3 Termination in RS485 This switch is used to enable or disable the signal
termination for COM2 and COM3. We strongly recommend
that you disable termination when the port is configured
as RS-232 and enable it when the port is configured as RS485/RS-422.
RS-232/422/485 Serial Port (COM3~COM6, CN2): It has
4 serial ports through terminal block connector. Note that
only COM3 can select among RS232/422/485.
10 9 8 7 6 5 4 3 2 1
COM6 COM5
Note: The orientation
of CN2 illustrated here
is opposite of the one
on the front panel.
Note: When using RS-422/RS-485 in COM2, you
must enable the “Serial Port2/3 RS485 driver”
option first in the BIOS menu.
LAN1/LAN2 Ports (LANB1/LANB2): The LAN ports are
provided by RTL8111E-VB-CG Ethernet controller whose
interface complies with PCI-e 1.1 (2.5 Ghz) and IEEE
802.3az Draft 3.0 (EEE). It has advanced management
features including Wake-on-LAN and remote wake-up .
Pin No.Description
Fast Ethernet Gigabit Ethernet
1TX+MD0+
2TX-MD03RX+MD1+
4T45MD2+
5T45MD26RX-MD17T78MD3+
8T78MD3-
Clear CMOS jumper (CMOS1): It is for clearing the CMOS
memory.
Pin No.Pin Name
1 2 3
1-2Normal (Default)
2-3Clear CMOS
RS-422
RS-485
Embedded and Industrial Computing
Digital I/O (DGIO1)
Digital IN/OUT(DIO1) Connector: The 8 pins of General
Purpose Input/Output (GPIO) support input and output
operations through the DB-9 female connector.
TTL Level is +5V; Maximum input current for each port
is 10mA; Maximum output current for each port is
100uA
Input/Output VoltageLogicRegister
0~2VLow0
2~5VHigh1
14
Chapter 3
Board Layout
TTL Level is +5V; Maximum input current for each port
is 10mA; Maximum output current for each port is
100uA
The default value is 0
DIO Address
AddressDescription
0x2eHSUPERIO_INDEX
Digital InputGPIO4, GPIO50~GPIO52
Digital Output GPIO0~GPIO3
Power-on Switch and Power-on Status Detection
Connector (PSW2):
Pin No.Pin Name
1GND
321
2Power Button3Detect pwron (+5V)
Keyboard and Mouse Connector (KM1):
7
8
Pin No.Pin NamePin No.Pin Name
1+5V2MSCLK
3MSDATA4KEY
5KBDAT6KEY
7GND8KBCLK
1
2
Embedded and Industrial Computing
17
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 AC power is removed.
Unpower the LEC-2110 and remove the power cord.1.
Turn the device upside down.2.
Unscrew 6 screws on the bottom chassis. And unscrew 3.
the 3screws from both the front and back panel.
Bent the front panel slightly to lift the cover4.
Installing the System Memory
The motherboard supports DDR3 memory to meet the
higher bandwidth requirements of the latest operating
system and applications. It comes with one Double Data
Rate Three (DDR3) Small Outline Dual Inline Memory
Module (DDR3 SO-DIMM) socket.
Align the memory module’s cutout with the SO-DIMM 1.
socket’s notch.
Install the SO-DIMM.2.
1
2
3
Open the cover.5.
45
Note:
3
2
The system can support memory of DDR3 1.
SO-DIMM DDR3 800 MHz up to 4 GB in
maximum.
To release the memory, bent the latch slightly 2.
outward.
Embedded and Industrial Computing
18
Chapter 4
Hardware Setup
3G SIM Card Installation
Unlink the SIM card reader first by sliding it outward.1.
Flip the SIM card reader diagonally.2.
Align the cut corner of the SIM card with the cut corner 3.
of SIM card reader. Make sure the ICs will be in contact
with the SIM card reader.
Insert the 4. SIM card into the reader and close the tray.
You should feel a click when the SIM card is locked
securely in the SIM card reader.
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.
2
4
PCI/PCIe Riser Card Installation
The system can accommodate one PCI or PCIe expansion
(only one of them at a time) module. In order the install
the PCI or PCIe expansion module, a low-profile riser card
has to be installed first. Follow these steps to install the
riser card:
Fix the riser card on the bracket with 2 screws.1.
Install the riser card on the system by connecting the 2.
connectors with the system’s PCI/PCIE connector. Due
to space constraint, align the card with the connector
with a 45 degree angle and gradually push the card
down while inserting the card.
Fix the riser card on the board.3.
1
PCI
PCIe
3
2
3
PCI
2
Open
Cut
Corner
Lock
Note: To remove the SIM card, push the card
outward to unlock it.
Embedded and Industrial Computing
19
Chapter 4
2
Hardware Setup
PCIe
PCI
3
PCIe
Embedded and Industrial Computing
20
Chapter 4
Hardware Setup
Installing the Hard Disk
The system can accommodate one Serial-ATA disk. Follow
these steps to install a hard disk into the system:
Put hard disk on the bottom chassis and fix the hard disk 1.
on the chassis with 4 mounting screws as illustrated in
the following picture.
Plug the Serial-ATA cable to the hard disk.2.
Connect the Serial-ATA power and data disk cables to 3.
the Serial-ATA power and disk connectors on the main
board respectively.
Close the cover and fix it firmly to the system with the 4.
screws.
1
Note: Using a PCIe or PCI riser card, users have
choice of either PCI or PCI Express 1x expansion:
1x PCI can be supported by model LEC-2110P1.
1x PCIe can be supported by model LEC-2110E2.
Both of PCI or PCIe support the Max. 3.
Dimension as the following illustrated and the
Max. PowerPower consumption reserved for
expansion is 10W.
2
3
Embedded and Industrial Computing
21
Chapter 4
268
190
64
7
100
100
283
14
96
301
71
118
39
36
Hardware Setup
Connecting Power
Connect the LEC-2110 to a +9~+30V DC-in 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.
DC IN
+ -
Wall Mounting
The product ships with wall mounting kit. 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.
Embedded and Industrial Computing
Unit: mm
22
Appendix A
Programming Watchdog Timer
Appendix A:
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 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 Watch dog and DIO folder
in the Driver and Manual CD
Click Next to proceed5.
Answer “Yes” to the question and select Next to 6.
proceed.
Driver Installation
Before you could access or control the operation of the
watchdog 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:
Restart the computer, and then log on with 1.
Administrator privilege.
Insert the Drivers and User’s Manual CD to the USB-2.
optical drive.
Browse the contents of the support CD to locate the 3.
file LIO.rar under the \Watch dog and DIO\LIO folder
and unzip the file.
From the control panel, click the ADD Hardware 4.
program
Select Add a new hardware device.7.
Embedded and Industrial Computing
23
Appendix A
Programming Watchdog Timer
Choose to select the hardware Manually8.
Choose Show all device and click Next.9.
Click HaveDisk to locate the L_IO.inf file11.
Select the L_IO.inf12.
Click HaveDisk to locate the L_IO.inf file10.
Embedded and Industrial Computing
Select OK to confirm with the installation13.
24
Appendix A
Programming Watchdog Timer
Select the Lanner IO driver and click Next.14.
Click Next15.
To verify the GPIO driver installation, do the following
steps:
Right-click on the My Computer icon, and then select 1.
Properties form the menu.
Click the Hardware tab, then click the Device Manager 2.
button.
Click the + sign next to the Lanner_Device, then the 3.
Lanner IO Driver should be listed.
Click 16. Complete to close the installation program.
Embedded and Industrial Computing
25
Appendix A
Programming Watchdog Timer
On Linux
Executing the commands through the Command Line:
1. wd_tst --swtsr (Set Watchdog Timeout State to Reset)
Copy the proper makefile from the Driver and Manual 1.
CD to your system
Set the access mode with these two parameters 2.
by editing the Makefile.linux directly: DIRECT_IO_
ACCESS= [0|1] (enter either 1 or 0) and LANNER_
DRIVER= [0|1] (enter either 1 or 0). 1 is for direct access
and no driver is needed. You will only need to execute
the program directly. However, when it equaled to 0,
driver installation is needed. Refer to the following
Install section for more details.
Type make to build source code:3.
make Makefile (Note: omit the file extensions)
After compiled, the executable program (bpwd_tst) and
the driver (bpwd_drv.ko) will be in the bin subdirectory.
Install
The installation procedures depend on the access mode
that you have set by using the above mentioned method.
If you have set DIRECT_IO_ACCESS=1, driver installation is
not necessary. Proceed to the next section on executing
If you have set DIRECT_IO_ACCESS=0, Lanner bypass
driver needs to be installed. Install the driver and create
a node in the /dev directory as shown in the following
example:
wd_tst --start will not be available if 1.
DIRECT_IO_ACCESS=1, use the command: “./
wd_tst --swt xxx” to start the watchdog timer
instead .
Watchdog timer can support two functions, 2.
- system rest or LAN bypass. However, only
one function can be activated at a time. You
should modify the code or switch it to the
desired state/function accordingly.
For more details, refer to the README file 3.
contained within the program.
For Linux:
Embedded and Industrial Computing
26
Appendix A
Programming Watchdog Timer
Watch Dog sample code:
#include “../include/config.h”
#include “../include/version.h”
/* standard include file */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#ifdef DJGPP
/* For DOS DJGPP */
#include <dos.h>
#include <inlines/pc.h>
#include <stdint.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include “../include/wd_ioctl.h”
#define delay(x) usleep(x)
#ifdef DIRECT_IO_ACCESS
#warning ***** Note: You build with DIRECT_IO_ACCESS
defined *****
#warning ***** Note: undefine this to build for driver code
*****
#endif
#endif
/* local include file */
#ifndef DIRECT_IO_ACCESS
#error ***Error: define DIRECT_IO_ACCESS in config.h for
DOS ***
#endif
#else
/* For Linux */
#if defined(LINUX_ENV)
#include <sys/io.h>
#endif
#if defined(FreeBSD_ENV)
#define SET_IOPL() (iofl=open(“/dev/io”,000))
#define RESET_IOPL() close(iofl)
#include <machine/cpufunc.h>
#endif
#include “../include/ioaccess.h”
#ifndef BYPASS_PAIR_NUMBER
#error “You should defined PAIR_NUMBER in include/
config.h”
Appendix B:
Digital Input/Output
Control on the GPIO port
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 Watch dog and DIO in the Driver and Manual CD.
On Windows
Driver Installation
Before you could access or control the operation of the
watchdog 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:
Restart the computer, and then log on with 1.
Administrator privilege.
Click Next to proceed5.
Answer “Yes” to the question and select Next to 6.
proceed.
Insert the Drivers and User’s Manual CD to the USB-2.
optical drive.
Browse the contents of the support CD to locate the 3.
file LIO.rar under the \Watch dog and DIO\LIO folder
and unzip the file.
From the control panel, click the ADD Hardware 4.
program
Select Add a new hardware device.7.
Embedded and Industrial Computing
33
Appendix B
Digital Input/Output Control
Choose to select the hardware Manually8.
Choose Show all device and click Next.9.
Click HaveDisk to locate the L_IO.inf file11.
Select the L_IO.inf12.
Click HaveDisk to locate the L_IO.inf file10.
Embedded and Industrial Computing
Select OK to confirm with the installation13.
34
Appendix B
Digital Input/Output Control
Select the Lanner IO driver and click Next.14.
Click Next15.
To verify the GPIO driver installation, do the following
steps:
Right-click on the My Computer icon, and then select 1.
Properties form the menu.
Click the Hardware tab, then click the Device Manager 2.
button.
Click the + sign next to the Lanner_Device, then the 3.
Lanner IO Driver should be listed.
Click 16. Complete to close the installation program.
Embedded and Industrial Computing
35
Appendix B
Digital Input/Output Control
On Linux
Executing the commands through the Command Line:
# dio_tst
The program will drive output pin with specific value and
read status of input pin. If you have external loopback
which connects input to output pins directly, the input
value should be identical with the output value.
Note:
For DOS environment, use DJGPP as compiler 4.
and the makefile: Makefile.dos.
For Linux, support kernel versions are 2.4.x and 5.
2.6.x. Use the makefile:Makefile.linux.
For FreeBSD, support version is FreeBSD 8.0. 6.
use the makefile: Makefile.
Build
To build program source code on Linux platform, use the
following steps as a guideline:
Install
The installation procedures depend on the access mode
that you have set by using the above mentioned method.
If you have set DIRECT_IO_ACCESS=1, driver installation is
not necessary. Proceed to the next section on executing
If you have set DIRECT_IO_ACCESS=0, Lanner bypass
driver needs to be installed. Install the driver and create
a node in the /dev directory as shown in the following
example:
For Linux:
Insert module and create node in /dev as below
example:
#insmod dio_drv.[k]o
#mknod /dev/dio_drv c 240 0
For FreeBSD:
Insert module as below example:
#kldload -v ./dio_drv.ko
Copy the proper makefile from the Driver and Manual 1.
CD to your system
Set the access mode with these two parameters 2.
by editing the Makefile.linux directly: DIRECT_IO_
ACCESS= [0|1] (enter either 1 or 0) and LANNER_
DRIVER= [0|1] (enter either 1 or 0). 1 is for direct access
and no driver is needed. You will only need to execute
the program directly. However, when it equaled to 0,
driver installation is needed. Refer to the following
Install section for more details.
Type make to build source code:3.
make Makefile (Note: omit the file extensions)
After compiled, the executable program (bpwd_tst) and
the driver (bpwd_drv.ko) will be in the bin subdirecto
I/O Address
DIO Address
AddressDescription
0x2eSUPERIO_INDEX
0x2fSUPERIO_DATA
GPIO4,
GPIO50~GPIO52
GPIO0~GPIO3Digital Output
Execute
Once build completed, application (and driver) is available
in bin sub-directory.
Just run “dio_tst” for Digital IO test. This program will drive
output pin with specific value and read status of input
pin. If you have external loopback which connects input
to output pins directly, the input value should be identical
with output value.
screen capture of the execution result:
Digital Input
Embedded and Industrial Computing
36
Appendix B
Digital Input/Output Control
#include “../include/config.h”
#ifdef DJGPP
/* standard include file */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
Note: For more details, refer to the README file
contained within the program
All products are under warranty against defects in 1.
materials and workmanship for a period of one year
from the date of purchase.
The buyer will bear the return freight charges for 2.
goods returned for repair within the warranty period;
whereas the manufacturer will bear the after service
freight charges for goods returned to the user.
The buyer will pay for repair (for replaced components 3.
plus service time) and transportation charges (both
ways) for items after the expiration of the warranty
period.
If the RMA Service Request Form does not meet the 4.
stated requirement as listed on “RMA Service,” RMA
goods will be returned at customer’s expense.
The following conditions are excluded from this 5.
warranty:
RMA Service
Requesting a RMA#
To obtain a RMA number, simply fill out and fax the 6.
“RMA Request Form” to your supplier.
The customer is required to fill out the problem code 7.
as listed. If your problem is not among the codes listed,
please write the symptom description in the remarks
box.
Ship the defective unit(s) on freight prepaid terms. 8.
Use the original packing materials when possible.
Mark the RMA# clearly on the box. 9.
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
40
Appendix G
RMA Service Request Form
When requesting RMA service, please fill out the following form. Without
this form enclosed, your RMA cannot be processed.
RMA No:
Reasons to Return: Ŀ Repair(Please include failure details)
Ŀ Testing Purpose