EasyManua.ls Logo

Lanner NCA-5210 - APPENDIX D: PROGRAMMING THE LCM

Lanner NCA-5210
95 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
88
APPENDIX D: PROGRAMMING THE LCM
The LCD panel module (LCM) is designed to provide real-time operating status and configuration
information for the system. For sample LCM code, see LCM folder in the Driver and Manual CD. The driver
and the program library can also be found in the folder.
The system supports the following 2 kinds of LCM:
Parallel Text-based LCM: The LCM connects to the motherboard’s parallel port. The LCD screen can display
2 lines, 16 (or 20) characters per line.
• USB and Serial Text or Graphic-based LCM: Our next generation LCM. Lanner engineers design a common
source code to be deployed on these two differently interfaced LCM modules. Jumpers are used to select
between text and graphic types. See next section.
For Parallel Text-based LCM
Build
To build program source code on Linux platform, please use the following steps as a guideline:
1. Extract the source file:
# tar -xzvf plcm_drv_v0XX.tgz
(0XX is the version of the program.)
2. Change directory to the extracted folder:
# cd plcm_drv_v0XX
(0XX is the version of the program.)
Note: Apply our Parallel Text-based LCM to the environment of virtualization, please use the version 013 or
above of the program.
3. Type “make” to build source code:
# make
After compiling, the executable programs (plcm_test, plcm_cursor_char, ppdev_test, Test) and the driver
(plcm_drv.ko) will appear in the program’s folder.
Note: The OS supported by Parallel Text-based LCM function includes platforms based on Linux Kernel series
2.4.x, Linux Kernel series 2.6.x and Linux Kernel series 3.0.x or above.
Install
Install the driver and create a node in the /dev directory by:
#insmod plcm_drv.ko
#mknod /dev/plcm_drv c 248 0

Related product manuals