Hardware Platforms for Embedded and Industrial Computing
LEC-3012-A4/6/8
V1.1
>>
User's Manual
Publication date: 2013-12-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
RMAhttp://eRMA.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.
http://www.lannerinc.com/
support/download-center
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-3012-A4/A6/A8. The
LEC-3012 series is an industrial computer featuring
a different number of serial communication ports
in a compact frame design (69mm(W)x170mm(H)
x127.6mm(D)).
The LEC-3012 has an innovative industrial and mechanical
design. It can be placed on desk or mounted on din-rails.
The din-rail mount allows rotation of the device along its
din-rail attachment for easy access of the I/O interfaces.
This reduces maintenance effort when the device is
installed in a ticketing machine, medical equipment, or
other apparatus where space is limited and access is not
convenient.
The LEC-3012 also features a solid and sealed aluminum
extrusion framing.
Here is the summary of the key capabilities of LEC3012:
Onboard Intel N455 plus ICH8M chipset•
A total of 4, 6, or 8 serial ports depending on the •
models: the RS-232/422/485 ports with automatic
flow control via terminal block connector.
Two or four10/100/1000 Base-T RJ-45 ports (all ports •
have power surge and ESD protection with 2K).
Four USB ports (2 external and 2 internal pin headers)•
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
F2
System Components
F3
F4
F5
F6
F7
Model: A4
ComponentDescriptionPin Definition Reference
F1 Serial Ports COM1~COM4
(model A4), COM1~COM6
(model A6), COM1~COM8
model A8)
Model: A6Model: A8
Serial ports through terminal block;
COM1~COM4 (or COM6 or COM8) supports
RS-232/422/485 with BIOS selection among
RS-232/422/485.
CN1 on page 17
Embedded and Industrial Computing
8
Chapter 2
F2 Serial Port and LAN Port
LED
System Components
ComponentDescriptionPin Definition Reference
These four roles are LED indicators of Tx (Data
transmitting in yellow) and RX (Data receiving
in green) for serial port status.
TX-COM 4 RX-COM4 TX-COM 3 RX-COM 3
TX-COM 2 RX-COM 2 TX-COM 1 RX-COM 1
The lower two roles are LED indicator of
LAN LEDs. Four RJ-45 (network) jacks (see F8
below) in the front panel have LED indicators
which are described below.
LINK/
ACT
(Yellow)
SPEED
(Green/
Amber)
F3 Power/Run/HDD LED
F4 CF Card SlotA CF card slot with protection lidCN2 on page 15
F5 Four 10/100/1000Mbps
LAN ports (2 with model
3012-8A)
F6 VGA PortVGA Port
PowerGreen indicates Power-on, where
RunA programmable dual green/
HDDBlinking indicates hard disk
Two RJ-45 (network) jacks for network
connections. LAN1/LAN2 ports are provided
by Intel 82574L while LAN3/LAN4 are
provided by Intel 82583V. LAN1/LAN2
support WOL/Remote-wake-up/PXE and
ISCSI functions.
On/Flashing: The port is •
linking and active in data
transmission.
Off: The port is not linking.•
Amber: The connection speed •
is 1000Mbps.
Green: The connection speed •
is 100Mbps
Off: .The connection speed is •
10Mbps.
as Off indicates Power-off status.
orange LEDs which can be used
for indicating system status. For
sample code, please look into
your Driver and User Manual CD.
activities, whereas Off indicates
there is no hard disk present or
data access activities.
RJ1/RJ2 on page 15
LAN3/LAN4 on page 18
VGA1 on page 15
F7 Two USB 2.0 Ports An USB type A connector. In addition to this
Embedded and Industrial Computing
The VGA Port supports resolution up to
2048x1536@60Hz
CN3 on Page 15
connector, an internal pin header provides 2
extra ports.
Power-in Connector. The LEC-3012
supports power range between
+12~+36V DC-in.
S1
CN1 on page 15
Embedded and Industrial Computing
10
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
CN3
VGA1
CN1
CN2
LAN2/LAN1
Embedded and Industrial Computing
11
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.
J4J3J6
JP1
J2
Board Layout
SODIMM1
J5
Embedded and Industrial Computing
USB1
LEB-3012
12
Chapter 3
Internal Connectors and Jumpers
(daughter board)
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.
Board Layout
J1
J2
LAN3
Embedded and Industrial Computing
LAN4
CN1
CN2 (on LEK-AU6 and
LEK-AU8 only)
LEK-AU4/AU6/AU8
13
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.
cation Pin Header
J3SATA ConnectorP15
J4SATA Power ConnectorP15
J5SPI-ROM HeaderReserved for Factory Use
J6Board to Board ConnectorP16
JP1Clear CMOS Pin HeaderP16
RJ1/RJ2LAN1/LAN2P15
USB1Additional USB Pin HeaderP15
VGA1VGA PortP15
Table 3.2 Connector List for LEK-AU4
LabelsFunctionPin Denition Reference
CN1COM Port 1~4P17
J1SATA ConnectorP17
J2SATA Power ConnectorP17
LAN3/LAN4LAN3/LAN4P18
Reserved for Factory Use
Page
Board Layout
Table 3.2 Connector List for LEK-AU6
LabelsFunctionPin Denition Reference
Page
CN1COM Port 1~4P17
CN2COM Port 5~6P18
J1SATA ConnectorP17
J2SATA Power ConnectorP17
LAN3/LAN4LAN3/LAN4P18
Table 3.2 Connector List for LEK-AU8
LabelsFunctionPin Denition Reference
Page
CN1COM Port 1~4P17
CN2COM Port 5~8P18
J1SATA ConnectorP17
J2SATA Power ConnectorP17
Embedded and Industrial Computing
14
Chapter 3
Board Layout
Jumper Settings
LEB-3012
Serial-ATA Connector (J3): 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
7 6 5 4 3 2 1
4-pin Serial-ATA Power Connector (J4): It is for
connecting the SATA power cord.
1 2 3 4
DC-in Connector (CN1): A DC Power Connector through
Phoenix contact for power input from12~36V.
VGA Port (VGA1): It is a 15 pin D-Sub VGA connector. The
VGA is provided by the integrated GPU which implements
Intel® Graphics Media Accelerator 3150 and supports the
following features:
Contains a refresh of the third generation graphics •
core.
Intel•® Dynamic Video Memory Technology support
4.0
Directx* 9 compliant, Pixel Shader* v2.0•
Intel•® Clear Video Technology including MPEG2
Hardware Acceleration and ProcAmp
1 2
Pin No.Pin Name
1GND
2VCC12~36V
LAN1/LAN2 (RJ1/RJ2): 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
1TX+MD0+
2TX-MD03RX+MD1+
4T45MD2+
5T45MD26RX-MD17T78MD3+
8T78MD3-
Note: The default protocol is in RS-232. To switch
between RS-232, 422 and 485, use the BIOS menu
as shown above.
Embedded and Industrial Computing
18
Chapter 4
Introduction
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. Portions of the power supply and some
internal circuitry remain active until power is
removed.
Unpower the LEC-3012 and remove the power cord.1.
The top cover has an L shape. Unscrew the 2 threaded 2.
screws at the top from the front panel and the 2 screws
at the bottom from the opposite side. Also unscrew
the two knots to loose the VGA port.
Installing the System Memory
The motherboard supports DDR3 memory that features
data transfer rates of 1066/1333 MHz to meet the higher
bandwidth requirements of the latest operating system
and Internet applications. It comes with one Double Data
Rate 3 (DDR3) Small Outline Dual Inline Memory Module
(SO-DIMM) socket.
Align the memory module’s key with the SO-DIMM 1.
socket’s key.
Install the SO-DIMM.2.
Slide the cover backwards to open the top cover 3.
upwards.
Unscrew 4 screws from each side of the LEC-3012 4.
System and take off the side panel.
Note:
SO-DIMMs installed should meet the required 1.
speed which is 1066/1333 MHz. Do not install SODIMM supporting different speeds.
The motherboards can support up to 2 GB 2.
memory capacity in maximum.
Embedded and Industrial Computing
19
Chapter 4
Introduction
Installing a CompactFlash Card
LEC-3012 provides one CompactFlash slot. Follow the
procedures bellow to install a CompactFlash card.
Unscrew the thumbscrew on the CF slot to take out 1.
the front cover.
Align CompactFlash and the card slot with the arrow 2.
on the CompactFlash pointing toward the connector.
Insert the CompactFlash into the connector.3.
Close the cover and fasten it with the thumbscrew to 4.
the slot.
1
Installing the Hard Disk
The system can accommodate one Serial-ATA disk. Follow
these steps to install a hard disk into the LEC-3012):
Place hard disk on the hard disk tray of the cover and 1.
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
Connect the Serial-ATA power and drive cables to the 3.
hard disk’s power and drive connectors respectively.
Plug the Serial-ATA cable to the Serial-ATA Connector 4.
on the main board.
Put the hard disk tray with the installed hard disk back 5.
to the system and secure it to the system case with the
mounting screws.
2
Note: The device has an error proof design so that
the card will not be inserted if it is in the wrong
orientation. You should insert the CF card with the
arrow on the CompactFlash facing up and pointing
toward the connector.
Embedded and Industrial Computing
20
Chapter 4
Connecting Power
Connect the LEC-3012 to a 12~36 VDC power source. The
power source comes from the AC/DC Adapter through a
Phoenix contact. This power socket is specially designed
to guard against fault in power contact, i.e., the reverse of
the electrical polarity will not damage the system.
+
-DC in
Introduction
Embedded and Industrial Computing
21
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
system (or one pair of network ports in bypassed state;
However, only one function can be activated at a time.)
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 wd_bp folder under Driver
and Utility on the Driver and Manual CD
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 execute
If you have set DIRECT_IO_ACCESS=0, Lanner driver needs
to be installed. Install the driver and create a node in the /
dev directory as shown in the following example:
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
Embedded and Industrial Computing
wd_tst --start will not be available if 1.
DIRECT_IO_ACCESS=1, use the command: “./
22
Appendix A
Programming Watchdog Timer
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.
The Status LED (RUN LED) is designed to provide the status
indicator for certain function of system. You can program
it to indicate the status of designated functionality. For
sample Status LED code, see sled folder under Driver and
Utility on the Driver and Manual CD.
Note:
For DOS environment, use DJGPP as compiler 1.
and the makefile: Makefile.dos.
For Linux, support kernel versions are 2.4.x and 2.
2.6.x. Use the makefile:Makefile.linux.
For FreeBSD, support version is FreeBSD 8.0. 3.
use the makefile: Makefile.
Build
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 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 sled_drv.[k]o
#mknod /dev/sled_drv c 240 0
For FreeBSD:
Insert module as below example:
#kldload -v ./sled_drv.ko
To build program source code on Linux platform, use the
following steps as a guideline:
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 compilation, the executable program (sled_tst) and
the driver (sled_drv.[k]o) will be in the bin subdirecto
Execute
Once build completed, application (and driver) is available
in bin sub-directory.
Just run “sled_tst” for testing the statue LED. The RUN
LED can be programmed to show the status of the userdefined program. This sample program demonstrates
lighting the LED for 4 seconds.
screen capture of the execution result:
Note: For more details, refer to the README file
contained within the program
Embedded and Industrial Computing
29
Appendix B
Programming the Status LED
#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>
#ifndef DIRECT_IO_ACCESS
#error ***Error: define DIRECT_IO_ACCESS in config.h for
DOS ***
#endif
#include “../include/sled_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
*****
fprintf(stdout, PLATFORM_NAME” Status LED
“CODE_VERSION”\n\n”);;
#ifdef DIRECT_IO_ACCESS
sled_gpio_init();
printf(“Led status 1 for 4 seconds... \n”);
set_led_status_1();
Embedded and Industrial Computing
30
Appendix B
sleep(4);
printf(“Led status 2 for 4 seconds... \n”);
Programming the Status LED
set_led_status_2();
sleep(4);
printf(“Led: Dark... \n”);
set_led_status_3();
#if (defined(FreeBSD_ENV))
RESET_IOPL();
#endif
#else
devfd = open(“/dev/sled_drv”, O_RDONLY);
if(devfd == -1)
{
printf(“Can’t open /dev/sled_drv\n”);
return -1;
}
#endif //DIRECT_IO_ACCESS
return 0;
}
printf(“Led: status 1 for 4 seconds... \n”);
value = LED_SET_STATUS_1;
ret = ioctl(devfd, IOCTL_LED_SET_STATUS, &value);
sleep(4);
printf(“Led: status 2 for 4 seconds... \n”);
value = LED_SET_STATUS_2;
ret = ioctl(devfd, IOCTL_LED_SET_STATUS, &value);
sleep(4);
printf(“Led: Dark... \n”);
value = LED_SET_STATUS_3;
ret = ioctl(devfd, IOCTL_LED_SET_STATUS, &value);
printf(“Test Finished.\n”);
close(devfd);
return 0;
Embedded and Industrial Computing
31
Appendix C
Terms and Conditions
Appendix C:
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
32
Appendix C
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