Lanner LEC-7920 User Manual

Embedded & Industrial Computing
Hardware Platforms for Embedded and Industrial Computing
LEC-7920 Preliminary
>>
User's Manual
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.
Resource Website
Lanner http://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 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.
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.
Embedded and Industrial Computing
2
TTaTTable of Contentsbeable of Contents
Chapter 1: Introduction 4
System Specications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Package Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Optional Accessories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Chapter 2: System Components 6
System Drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Front Components. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Rear Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Chapter 3: Board Layout 10
External Connectors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
Internal Connectors and Jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
Internal Connectors and Jumpers (backside) . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
Connectors and Jumpers List. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
Jumper Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14
Chapter 4: Hardware Setup 18
Preparing the Hardware Installation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
Installing the System Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
Installing the CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
Wireless Module Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
3G SIM Card Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
Installing the Hard Disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
Wall Mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
Appendix A: Programming Watchdog Timer 21
Appendix B: Digital Input/Output Control on the GPIO port 26
Appendix G: Terms and Conditions 28
Warranty Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28
RMA Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28
3
Chapter 1

Chapter 1: Introduction

Introduction
Thank you for choosing the LEC-7920. The LEC-7920 features Intel i5/i7 and Celeron processors. It has dual LAN as well as DVI-I and DVI-D connectors for high demand of Internet and video playback applications.
The following highlight the capabilities of the LEC-7920 system:
Intel HD Graphics Engine
Dual DVI-I and DVI-D video out
Dual 10/100/1000 Mbps LAN
USB x 6 (4 external USB ports and 2 internal header) and Digital Input/Output x 1
SATA HDD support
Power-on switch through the Phoenix connector for distant control
2 RS232 serial ports support Hardware Auto-flow Control
Audio input and output through Mic-in and Line-out jack
Aluminum extrusion enclosure which helps heat dissipation
Fanless design which can sustain the operating temperature from 14-131°F

System Specifications

Dimension (WxHxD)
Processor
Chipset
System Memory
Storage
Ethernet Controller
Graphic Controller
Audio Controller
I/O
Power Input
AC Adapter
Hardware Monitor
OS Support
Operating Temperature Range with Commercial Components:
(Industrial Memory, CF, HDD, SSD) -20~55°C / 14-131°F
Operating Temperature Range with Industrial Components: (Industrial Memory, CF, HDD, SSD) -20~55°C / 14-131°F
Technology DDR3 SO-DIMM x 2
Max. Capacity 8GB
IDE N/A SATA 2.5” HDD/SSD drive bay x 1
LAN GbE RJ45 x 2 Display DVI-I x 1, DVI-D x 1 Video Grabber No
Audio Phone Jack x 2 for Mic-In &
Serial I/O DB9 x2 for RS232 GPS No Digital I/O DB9 Female x 1 for DI x 4 &
USB 2.0 Type A x 4; Internal x 2 Power Input Power Jack w/ Lock Expansion Mini-PCIe x 1 with SIM Card
Fintek F81865 integrated Watchdog Timer 1~255 level
Linux, XPE/WES2009, XP Pro FES, WS7E, WS7Pro-E
277x67x190mm (10.91”x2.64”x7.48”)
Intel i7/i5/Celeron
Intel HM55
SATA-DOM x 1
Intel 82574L x 2
Intel® GMA HD Graphics Engine
Phone Jack x 2 for Mic-In and Line-Out
Line-Out
DO x 4 (5V TTL)
Reader
12 Vdc ATX Mode
75W + 19V @ 3.95A
Embedded and Industrial Computing
4
Chapter 1

Package Contents

Your package contains the following items:
LEC-7920 Fanless Embedded System
Power Adapter (P/N: 0P0W075122001)
Wall-Mounting Kit (P/N: SE9ESA900R100)
Drivers and User’s Manual CD (S09OADA15H100)
2-pin Female Terminal Block (P/N: 04AW20023Z101)

Optional Accessories

The system has a variety of optional accessories including the power cords and Wi-Fi or 3G modules for extended capabilities. For details of these modules, visit:
http://www.lannerinc.com/Embedded_Computing/LEC­7920
Introduction
Embedded and Industrial Computing
5
Chapter 2

Chapter 2: System Components

System Drawing

Mechanical dimensions of the LEC-7920
Unit: mm
System Components
276.52
66.46
190
Embedded and Industrial Computing
6
Chapter 2
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

F1 Power Button with dual LED ATX Power-on button with LEDs:
F2 Reset Reset switch SW9 on page 16 F3 Serial Ports Serial ports through the DB-9
F4 Two 10/100/1000Mbps LAN ports Two RJ-45 (network) jacks with LED
LINK/ACT
F5 Four USB 2.0 Ports An USB type A connector. In addi-
F6 HDD (Yellow) and
Power LED (Green)
F7 Antenna Hole Reserved for antenna
System Components
F5
F6
CN15, CN16 on page 14
LAN Ports (CN13/CN14) on page 15
Dual USB Port Connectors (USB1, USB2) on Page 15
SPEED
F3
F4
Standby mode in Red; Power-on mode in Green
connector; COM1 and COM2 support RS-232 data communication.
indicators as described below. The LAN ports are provided by Intel 82574L. They both support WOL/Remote-wake­up/PXE function.
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.
tion to this connector, an internal pin header is easily access from the back compartment. HDD
Blinking: data access activities•
Off: no SATA disk present or no • data access activities
Power
On: The computer is on.•
Off: The computer is off .•
F1
F2
Component Description Pin Definition Reference
F7
Embedded and Industrial Computing
8
Chapter 2

Rear Components

System Components
R1
Component Description Pin Definition Reference
R1 DVI-I, DVI-D Dual display with the DVI and DVI-D
ports (single link) which are provided by Intel HD Graphic Engine through the Chrontel’s CH7318 SDVO to DVI converter. The display DVI-I/ DVI-D can support Analog up to 1920x1080 @ 60 Hz and Flat panels up to 1920x1080 @ 60 Hz
R2 Power-on Switch A power-on switch through the
Phoenix contact for distant power­on/off control
R3 MIC IN LINE OUT Connect the audio devices to these
ports. The Microphone and line out port are provided by Realtek ALC888S
R4 DIO Port The DIO port provides 4 digital input
and 4 digital output ports.
R5 DC-In (power) Connector Power-in Connector. The LEC-7920
supports screw-locked power plug which allows secure power connection.
R2 R3
R4
DVI-D/DVI-I Connectors on page 16
J1 on page 15
CN3, CN4 on page 16
CN6 on page 15
DC_IN Connector (CN5) on page 17
R5
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
CN5
CN6
CN3/CN4
J1
CN19
CN1
SW9
CN12
Embedded and Industrial Computing
CON15
CON16
CN13/CN14
USB1/USB2
LED1
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.
Board Layout
CN10
J2
J3 JP1
J4
CN11
CN8
CN9
SW2
SW3
SW4
Embedded and Industrial Computing
SW5
J5
LEB-2220A
11
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.1 Connector List for more details.
Board Layout
J6
J8
J7
Embedded and Industrial Computing
J11
12
Chapter 3

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-2220A
Labels Function Pin Denition Reference
Page
CN1 DVI-D Connector P16 CN3 Audio Output P16 CN4 MIC Input P16 CN5 DC-in Connector P17 CN6 Digital Input/Output P15 CN8 SIM Card Reader P15 CN9 MINI-PCIE P16 CN10/CN11 DDR3-DIMM1/DDR3-DIMM2 -­CN12 Power Button -­CN13 LAN1 P15 CN14 LAN2 P15 CN15 COM1 P14 CN16 COM2 P14 CN19 DVI-I P16 JP1 CMOS P15 J1 External Power Button P15 J2 LINE-IN P16 J3 SM-BUS Reserved for factory use J4 SPI-ROM Reserved for factory use J5 Miscellaneous Front Panel Functions P15 J6 Serial-ATA Connector P14 J7 Serial-ATA Connector P14 J8 SATA Power P14 J11 USB4, USB5 P15 USB1 USB0, USB1 P15 USB2 USB2, USB3 P15 SW9 Reset Button P16 SW2/SW3/SW4SW5 Reserved for Factory use Reserved for factory use
Board Layout
Embedded and Industrial Computing
13
Chapter 3
Board Layout

Jumper Settings

Serial-ATA Connector (J6): 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 GND
1 2 3 4 5 6 7
Serial-ATA Connector (J7): This connector supports SATA-DOM.
7 6 5 4 3 2 1
2 TX+ 3 TX­4 GND 5 RX­6 RX+ 7 GND
Pin No. Function
1 GND 2 TX+ 3 TX­4 GND 5 RX­6 RX+ 7 VCC_5V
RS-232 Serial Port(COM2, CN16): It is a RS-232 port through the D-SUB9 connector.
12345
6789
Pin No. Pin Name Pin No. Pin Name
1 DCD 6 DSR 2 RXD 7 RTS
3 TXD 8 CTS 4 DTR 9 RIA 5 GND
4-pin Serial-ATA Power Connector (J8): It is for connecting the SATA power cord.
Pin No. Function
1 +12V
1 2 3 4
2 GND 3 GND 4 +5V
RS-232 Serial Port(COM1, CN15): It is a RS-232 port through the D-SUB9 connector.
12345
6789
Pin No. Pin Name Pin No. Pin Name
1 DCD 6 DSR 2 RXD 7 RTS
3 TXD 8 CTS 4 DTR 9 RIA 5 GND
Embedded and Industrial Computing
14
Chapter 3
Board Layout
LAN1/LAN2 Ports (CN13/CN14): The LAN ports are provided by Intel 82574L Ethernet controller whose interface complies with PCI-e 1.1 (2.5 Ghz). It has advanced management features including IPMI pass-through via SMBus or NC-SI, WOL, PXE remote boot, ISCSI boot and VLAN filtering.
Pin No. Description
Fast Ethernet Gigabit Ethernet 1 TX+ BI_DA+ 2 TX- BI_DA­3 RX+ BI_DB+ 4 -- BI_DC+ 5 -- BI_DC­6 RX- BI_DB­7 -- BI_DD+ 8 -- BI_DD-
Clear CMOS jumper (JP1): It is for clearing the CMOS memory.
1 2 3
Pin No. Pin Name
1-2 Normal (Default) 2-3 Clear CMOS
Dual USB Port Connector #0 and #1 (USB1):
Dual USB Port Connector #2 and #3 (USB2)
5 6 7 8
1 2 3 4
Pin No. Function
1 +5V 2 USBD0­3 USBD0+ 4 GND 5 +5v 6 USBD1­7 USBD1+ 8 GND
USB 2.0 Pin Header (J11, USB#4 and #5):
10
9
8
7
6
5
4
3
2
1
Pin No. Pin Name
1 +5V 3 USBD4­5 USBD4+ 7 Ground
Pin No. Pin Name
2 +5V 4 USBD5­6 USBD5+ 8 Ground
10 NC
Digital I/O (CN6)
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/output current for each port is 50mA Input/Output Voltage Logic Register
0~2V Low 0 2~5V High 1
The default value is 0
DIO Address Address Description Address Description 0x2e SUPERIO_INDEX 0x08 GPIO3 0x2f SUPERIO_DATA 0x10 GPIO4 0x07 BANK_REG 0x20 GPIO5 0x01 GPIO0 0x40 GPIO6 0x02 GPIO1 0x80 GPIO7 0x04 GPIO2
5 4 3 2 1
9 8 7 6
Pin No. Pin Name
1 Input0 2 Input1 3 Input2 4 Input3 5 GND
Pin No. Pin Name
6 Output0 7 Output1 8 Output2 9 Output3
External Power Button (J1):
PIN NO. DESCRIPTION
1 2
1 PWR_BTN_N 2 GND
SIM Card Socket (CN8):
C1 C3
C5 C7
Pin No. Description
C1 UIM_PWR C2 USIM_RESET C3 USIM_CLK C5 GND C6 USIM_VPP C7 USIM_DATA
Front Panel Function Pin Header (J5, on the backside): It provides LED signal and button function on the front panel.
1
2
3
4
5
6
7
8
Embedded and Industrial Computing
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 Reset System Reset 7 GND 8 GND
Button
6 POWER_BTN- Power On/Off
Push Button
15
Chapter 3
Board Layout
Mini PCI Express Connector (CN9):
PIN Pin Name PIN Pin Name
1 WAKE# 27 GND 2 +3.3V 28 +1.5V 3 Reserved 29 GND 4 GND 30 SMB_CLK 5 Reserved 31 PETn0 6 1.5V 32 SMB_DATA 7 CLKREQ# 33 PETp0 8 RESERVED 34 GND 9 GND 35 GND
10 RESERVED 36 USB_D­11 REFCLK- 37 RSVERD
12 RESERVED 38 USB_D+ 13 REFCLK+ 39 RSVERD 14 RESERVED 40 GND 15 GND 41 RESERVED 16 RESERVED 42 RESERVED 17 RESERVED (UIM_C8) 43 RESERVED 18 GND 44 RESERVED 19 RESERVED (UIM_C4) 45 RESERVED 20 ENABLE 46 RESERVED 21 GND 47 RESERVED 22 PERST# 48 +1.5V 23 PERn0 49 RESERVED 24 +3.3Vaux 50 GND 25 PERp0 51 RESERVED 26 GND 52 +3.3V
DVI-D Connector (CN1): A single link DVI-D Connector
1 8
17 24
Pin No. Description Pin No. Description
1 DATA2- 2 DATA2+ 3 GND 4 NC 5 NC 6 DDC_CLK 7 DDC_DAT 8 NC
9 DATA1- 10 DATA1+ 11 GND 12 NC 13 NC 14 +5V 15 GND 16 HPD 17 DATA0- 18 DATA0+ 19 GND 20 NC 21 NC 22 GND 23 CLK+ 24 CLK-
DVI-I Connector (CN19): A single link DVI-D Connector
1 8
17 24
C1 C2
C3 C4
Audio Output (CN3)
Pin No. Description
1,3 GND
2 AUDIO_OUT_L 4 AUDIO_JD 5 AUDIO_OUT_R
Microphone Input (CN4)
Pin No. Description
1,3 GND
2 MIC_OUT_L 4 MIC_JD 5 MIC_OUT_R
Line-in (J2)
Pin No. Description Pin No. Description
1 DATA2- 2 DATA2+ 3 GND 4 NC 5 NC 6 DDC_CLK 7 DDC_DAT 8 NC
9 DATA1- 10 DATA1+ 11 GND 12 NC 13 NC 14 +5V 15 GND 16 HPD 17 DATA0- 18 DATA0+ 19 GND 20 NC 21 NC 22 GND 23 CLK_P 24 CLK_N
Reset Button (SW9)
Pin NO. Description
3 1
4 2
1 RST_BTN_N 2 GND 3 N.C. 4 GND
1 2 3 4
Pin No. Description
1 LINE_OUT-R 2 LINE_JD 3 LINE_OUT-L 4 GND
Embedded and Industrial Computing
16
Chapter 3
DC_IN CONNECTOR (CN5): DC power connector
Pin No. Pin Name
1 12V-IN 2 GND 3 GND
Board Layout
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 power is removed.
Unpower the LEC-7920 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.
1
2
Note:
The system can support memory of DDR3 SO­DIMM up to 8 GB in maximum.

Installing the System Memory

The motherboard supports DDR3 memory to meet the higher bandwidth requirements of the latest operating system and Internet applications. It comes with two Double Data Rate Three (DDR3) 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.

Installing the CPU

The system supports Intel CPU i5, i7 and Celeron P4500 processor which should be installed on the motherboard’s micro-PGA 989 socket.
To install the CPU to the socket, follow these steps:
Align the CPU’s triangle with the socket’s triangle.1.
Embedded and Industrial Computing
18
Chapter 4
Hardware Setup
Place the CPU inside the socket and turn the knob all 2. the way until it is horizontally opposite to its original position to lock the CPU securely.

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

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 the 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.
Note:
If the CPU thermal pad mounting breaks apart, use your hands to reattach the falling parts and stick them together.
Lock
Note: To remove the SIM card, push the card outward to unlock it.
Unlock
Embedded and Industrial Computing
19
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:
Take out the hard disk tray and fix the hard disk on 1. the tray with 4 mounting screws as illustrated in the following picture.
Plug the Serial-ATA cable to the hard disk.2.
Place the hard disk back to the system’s chassis and fix 3. it with the mounting screws.
Connect the Serial-ATA power and data disk cables to 4. the Serial-ATA power and disk connectors on the main board respectively.
2
1

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.
3
4
Embedded and Industrial Computing
20
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 the Setup program.1.
The welcome screen appears. Click Next to proceed.2.
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 LannerIO v101.rar under the \WD_DIO\ folder and unzip the file.
Click the Setup program in the unzipped folder.4.
The installation process proceeds. Click Close when the 3. process completes.
Embedded and Industrial Computing
21
Appendix A
Programming Watchdog Timer
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.
Select 3. View from the menu and select show hidden devices .
The Lanner common GPIO driver should be listed 4. under the Non-Plug and Play Drivers. If not, click the San for hardware changes button from the tool bar.
Sample Program
You can write your own program by modifying the source code F81865_Test.cpp.. The index address is 2EH.
///////////////////////////////////////////////////////////////////// ////
// F81865_Test.cpp : F81865_test.exe utility for F81865.lib APIs demonstration.
//
// History:
// 7/15/2011 Brand new F81865_test program.
#include <winsock2.h>
#include “Windows.h”
#include “stdio.h”
#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”\
“ F81865_test WirelessLED port_number value\n”\
“ F81865_test WatchDog seconds\n”\
Embedded and Industrial Computing
“ F81865_test CaseOpen\n”\
“ F81865_test CaseOpen_Clear\n”\
22
Appendix A
Programming Watchdog Timer
“ F81865_test Sleep milliseconds\n”\
“\n”\
“Argement:\n”\
“ DIO_IN Read state from DIO In.\n”\
“ DIO_OUT Set DIO Out state.\n”\
“ PIO Set PIO LED state.\n”\
“ RunLED Set RUN LED state.\n”\
“ AlarmLED Set Alarm LED state.\n”\
“ GPS_LED Set GPS LED state.\n”\
“ WirelessLED Set Wireless LED state.\n”\
“ Watchdog Set Watchdog timer.\n”\
“ CaseOpen Check case opened state.\n”\
“ CaseOpen_Clear Clear case open state.\n”\
“ port_number The port number.\n”\
“ value 1 for on and 0 for off.\n”\
“ seconds The watchdog count down seconds. 0 for disable.\n”\
“ milliseconds Milliseconds to delay\n”
#define RETMSG(a,b) {printf (b) ; return a;}
#define CHECK_ARGC(a) {if (argc != a) throw PARAMETER_HELP ;}
// Translate Hex string to a long value LONG Hex2Long (char *str) { LONG nLong ;
if (scanf (str, “%x”, &nLong) != 1) throw “Error parsing parameter\n” ;
return nLong ; }
// Make sure the argument is numeric void CheckNumeric (char *szBuf ) { int nLen = strlen (szBuf) ;
for (int i = 0 ; i < nLen ; i++) if (!strchr (“01234567890ABCDEFabcdef”, szBuf[i]) ) throw “Wrong argument\n” ; }
// Common GPIO output function definition #define GPIO_OUT(a,b,c) \ int a (int argc, char *argv[]) \ { \ CHECK_ARGC (4) ; \
CheckNumeric (argv[2]) ; \
CheckNumeric (argv[3]) ; \
\
int nPort = atoi (argv[2]) ; \
int nValue = atoi (argv[3]) ; \
\
c (nPort, nValue) ; \
\
printf (b “ #%d = %d\n”, nPort, nValue) ; \
\
return 0 ; \ }
// Function generate by common function definition GPIO_OUT (mDIO_ OUT , “DIO_OUT” , Write_DIO) G P I O _ O U T (mPIO , “DIO_OUT” , PIO) G P I O _ O U T (mRunLED , “RunLED” , RunLED) G P I O _ O U T (mAlarmLED , “AlarmLED” , AlarmLED) GPIO_OUT (mGPS_ LED , “GPS_LED” , GPS_LED)
Embedded and Industrial Computing
23
Appendix A
G P I O _ O U T (mWirelessLED , “WirelessLED” , WirelessLED)
Programming Watchdog Timer
printf (“DIO_IN #%d = %d\n”, nPort, ret) ;
// Check case open
int mCaseOpen (int argc, char* argv[])
{
CHECK_ARGC (2) ;
BOOL bOpen = CaseOpen () ;
printf (“Case is %s\n”, bOpen ? “Open” : “Close”) ;
return bOpen ;
}
// Clear case open state
int mCaseOpen_Clear (int argc, char* argv[])
{
CHECK_ARGC (2) ;
return ret ; }
// Milli-second delay
int mSleep (int argc, char *argv[])
{
CHECK_ARGC (3) ;
CheckNumeric (argv[2]) ;
Sleep (atoi (argv[2]) ) ;
return 0 ;
}
CaseOpen_Clear () ;
BOOL bOpen = CaseOpen () ;
printf (“CaseOpen state %s”, bOpen ? “not cleared” : “cleared”) ;
return bOpen ;
}
// Get DIO_IN state
int mDIO_IN (int argc, char* argv[]) { CHECK_ARGC (3) ;
CheckNumeric (argv[2]) ;
// 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) ;
Embedded and Industrial Computing
printf (“Watchdog timer left %d seconds\n”, nLeft) ;
24
Appendix A
Programming Watchdog Timer
{
return nLeft ;
}
// Argument - function mapping
typedef struct
{
char *szCmd ;
int (*function) (int argc, char *argv[]) ;
} CMD2FUN ;
CMD2FUN c2f[] =
{
{“DIO_IN” , mDIO_IN },
{“DIO_OUT” , mDIO_OUT },
{“PIO” , mPIO },
{“RunLED” , mRunLED },
{“AlarmLED” , mAlarmLED },
// The total argument allowed
int num = sizeof (c2f ) / sizeof (c2f[0]) ;
// Too few argument
if (argc < 2)
RETMSG (-1, PARAMETER_HELP) ;
// 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) ;
// No match argument
RETMSG (-1, “Wrong Argument\n”) ;
}
catch (char *str)
{
// Output the error message
printf (“\n%s\n”, str) ;
}
{“GPS_LED” , mGPS_LED },
{“WirelessLED” , mWirelessLED },
{“CaseOpen” , mCaseOpen },
{“CaseOpen_Clear”,mCaseOpen_Clear},
{“Watchdog” , mWatchDog },
{“Sleep” , mSleep }
} ;
// Program start here
int main(int argc, char *argv[])
{
try
Embedded and Industrial Computing
catch (...)
{
// Unknown exception
printf (“\nUnknown Exception\n”) ;
}
return -1 ;
}
25
Appendix B
Digital Input/Output Control

Appendix B: Digital Input/Output Control on the GPIO port

The Digitanl I/O on the 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.
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.
Click the Setup program.1.
The welcome screen appears. Click Next to proceed.2.
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
The installation process proceeds. Click Close when the 3. process completes.
Embedded and Industrial Computing
26
Appendix B
Digital Input/Output Control
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.
Select 3. View from the menu and select show hidden devices .
The Lanner common GPIO driver should be listed 4. under the Non-Plug and Play Drivers. If not, click the San for hardware changes button from the tool bar.
Executing the Sample Program:
To test the sample program, execute the F81865_test with the appropriate parameters.
DIO:
Usage:
F81865_test DIO_In port_number (reads Digital input port 0, 1, 2 or 3)
F81865_test DIO_Out port_number value (writes Digital output port 0, 1, 2 or 3; For port description, refer to Jumper Settings on Chapter3 Board Layout)
You can also write your own program by modifying the source code F81865_Test.cpp.. The index address is 2EH.
Embedded and Industrial Computing
27
Appendix G
Terms and Conditions

Appendix G: Terms and Conditions

Warranty Policy

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
28
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
Company: Contact Person:
Phone No. Purchased Date:
Fax No.: Applied Date:
Return Shipping Address: Shipping by: Ŀ Air Freight Ŀ Sea Ŀ Express ___ Ŀ Others:________________
Item Model Name Serial Number Configuration
Item Problem Code Failure Status
*Problem Code: 01:D.O.A. 02: Second Time R.M.A. 03: CMOS Data Lost 04: FDC Fail 05: HDC Fail 06: Bad Slot
07: BIOS Problem 08: Keyboard Controller Fail 09: Cache RMA Problem 10: Memory Socket Bad 11: Hang Up Software 12: Out Look Damage
13: SCSI 14: LPT Port 15: PS2 16: LAN 17: COM Port 18: Watchdog Timer
19: DIO 20: Buzzer 21: Shut Down 22: Panel Fail 23: CRT Fail 24: Others (Pls specify)
Request Party
Confirmed By Supplier
Authorized Signature / Date Authorized Signature / Date
Terms and Conditions
Embedded and Industrial Computing
29
Loading...