User`s manual
Table Of Contents
- 1. Introduction
- 2. Getting Started
- Starting Your UC-7400-CE Computer
- Resetting Your UC-7400-CE Computer
- Operating UC-7400-CE Computer Via Serial Console
- Changing the Network Settings
- Operating Your UC-7400-CE Computer Via Telnet Client
- User/Group Management
- Adjusting System Time and RTC Time
- Starting and Stopping Services
- Troubleshooting Network Connectivity
- Simple Network Management Protocol (SNMP)
- 3. Web-based Management System
- 4. Application Development
- 5. Programming Examples
- A. Operating Programmable Function Keys and LCM
- B. Firmware Upgrade Procedure
- C. Service Information

5
5
Chapter 5 Programming Examples
The following examples are designed to ease application development on the UC-7400-CE
computer. Find and copy useful code segments to your C/C++ programs. In addition, to simplify
application development with the eVC4.0 tool, we provide you with a device library (mxdev.lib).
This library covers the APIs for the buzzer, LCM, function key, and digital I/O devices. To link
the library with your eVC4.0 compilation environment, perform the following steps from your
eVC4.0 environment:
y From the main tool bar, choose Project Æ Settings.
y From Project Settings, select the Link tab.
y Append “mxdev.lib” to the text field “Object/Library Modules:”.
y Click OK
Before you compile your application, please make sure that the header file and the library file in
the SDK directories are as shown. If any of them is not in the specified directory, find it on the
package CD and copy it to the specified directory.
“C:\Program Files\Windows CE Tools\wce500\UC7420CE1.0\Include\Armv4i\moxa\devices.h“
“C:\Program Files\Windows CE Tools\wce500\UC7420CE1.0\lib\Armv4i\mxdev.lib“
There are 5 code samples in this chapter and cover:
Example #1—MOXA UART Supporting RS-232/422/485
Example #2—Buzzer
Example #3—Digital I/O
Example #4—LCM Display
Example #5—Function Keys