Introduction

These examples demonstrate how to program and cross-compile a program for UC-7400-LX(kernel 2.4), 
DA-660-8/16-LX(kernel 2.4), DA-661/662-663-16-LX(kernel 2.6) or UC-7400-LX Plus(kernel 2.6) serials.
UC-7400-LX and DA-660-8/16-LX operates with 2.4 kernel. The source code must compile by mxscaleb-gcc.
DA-661/662/663-16-LX, UC-7420/7410/7408/7402-LX Plus are 2.6 kernel system. Copmile for DA-66X-16-LX 
or UC-7400-LX Plus need to use, xscale_be-gcc.

===================================================================

Cross compileing for UC-7420/7410/7408/7402/DA-660-8/DA-660-16-LX:

1. You need to define the PLATFORM in Makefile,

  PLATFORM = UC7400_AND_DA660  # default is compile for 2.4 kernel

2. Compile the library

3. Compile the individual example

===================================================================

Cross compileing for DA-661/662/663-16-LX, UC-7420/7410/7408/7402-LX Plus:

1. You need to define the PLATFORM in Makefile

  PLATFORM = UC7400PLUS_AND_DA66X

2. Compile the library

3. Compile the individual example

===================================================================

Cross compileing for UC-8410/8416/8418-LX:

1. You need to define the PLATFORM in Makefile

  PLATFORM = UC8400

2. Compile the library

3. Compile the individual example

==================================================================

Example program descriptions

1.   hello: (for UC-7420/7410/7408/7402/DA-660-8/DA-660-16-LX, DA-661/662/663-16-LX, UC-7420/7410/7408/7402-LX Plus, UC-8410/8416/8418-LX)
This program is just to demo how to development user application.

2.   buzzer: (for UC-7420/7410/7408/7402/DA-660-8/DA-660-16-LX, DA-661/662/663-16-LX, UC-7420/7410/7408/7402-LX Plus, UC-8410/8416/8418-LX)
The program demo how to code buzzer program on UC/DA.

3.   keypad: (for UC-7420/7410/DA-660-8/DA-660-16-LX, DA-661/662/663-16-LX, UC-7420/7410/7408/7402-LX Plus)
The program demo how to code Keypad program on UC/DA.

4.   lcm: (for UC-7420/7410/DA-660-8/DA-660-16-LX, DA-661/662/663-16-LX, UC-7420/7410/7408/7402-LX Plus)
This program demo how to code lcm program on UC/DA.
The lcm screen can display 16*8 words (one word is 8*8 pix).

5.   TCPClient1: (for UC-7420/7410/7408/7402/DA-660-8/DA-660-16-LX, DA-661/662/663-16-LX, UC-7420/7410/7408/7402-LX Plus, UC-8410/8416/8418-LX)
This program demo how to use socket lib coding TCP Client program on UC/DA series embedded computer.

6.   TCPClient2: (for UC-7420/7410/7408/DA-660-8/DA-660-16-LX, DA-661/662/663-16-LX, UC-7420/7410/7408/7402-LX Plus, UC-8410/8416/8418-LX)
This program demo how to use socket lib coding TCP Client program on UC7000 series.

7.   TCPServer1: (for UC-7420/7410/7408/7402/DA-660-8/DA-660-16-LX, DA-661/662/663-16-LX, UC-7420/7410/7408/7402-LX Plus, UC-8410/8416/8418-LX)
The example programs explain you how to write a simple TCP Server program to communicate with PC. The examples uses standard BSD Sockets.

8.   TCPServer2: (for UC-7420/7410/7408/DA-660-8/DA-660-16-LX, DA-661/662/663-16-LX, UC-7420/7410/7408/7402-LX Plus, UC-8410/8416/8418-LX)
The example programs explain you how to write a simple TCP Server program to communicate with PC. The examples uses standard BSD Sockets.

9.   TCPClientServer: (for UC-7420/7410/7408/DA-660-8/DA-660-16-LX, DA-661/662/663-16-LX, UC-7420/7410/7408/7402-LX Plus, UC-8410/8416/8418-LX)
The example programs explain you how to write a simple TCP Client/Server program. The examples uses standard BSD Sockets.

10.  Udp1: (for UC-7420/7410/7408/DA-660-8/DA-660-16-LX, DA-661/662/663-16-LX, UC-7420/7410/7408/7402-LX Plus, UC-8410/8416/8418-LX)
his program create UDP socket and exchange data between serial port and Ethernet.

11.  Udp2: (for UC-7420/7410/7408/7402/DA-660-8/DA-660-16-LX, DA-661/662/663-16-LX, UC-7420/7410/7408/7402-LX Plus, UC-8410/8416/8418-LX)
This program demo how to use socket lib coding UDP send/recv program.

12.  UC-7400-modbus: (for UC-7420/7410/7408-LX/DA-660-8/DA-660-16-LX, DA-661/662/663-16-LX, UC-7420/7410/7408/7402-LX Plus, UC-8410/8416/8418-LX)
This release only for demonstrates the modbus protocol and provides examples how to control serial/socket and how to build a modbus gateway.

13.  swatchdog: (for UC-7420/7410/7408/7402/DA-660-8/DA-660-16-LX, DA-661/662/663-16-LX, UC-7420/7410/7408/7402-LX Plus, UC-8410/8416/8418-LX)
The program enable the watch dog timer for 5 seconds and do not ack it in 5 seconds. It will cause the system to reboot.

14.  DIO: (for UC-7408-LX, UC-7408-LX Plus, UC-8418-LX)
The program indicates to connect DO1 to DI1, change the digital output state to high or low by manual input, then the detect and count the state changed events from DI1.

15.  logger: (for UC-7420/7410/7408/DA-660-8/DA-660-16-LX, DA-661/662/663-16-LX, UC-7420/7410/7408-LX Plus)
The serial logger program.

16.  usbcf: (for UC-7420/7408/7402-LX, DA-661/662/663-16-LX, UC-7420/7408/7402-LX Plus, UC-8410/8416/8418-LX)
This is a example program to show how to detect the USB/CF storage plugin or unplug. And check it mounts OK or fail.

17.  ports: (for UC-7420/7410/7408/DA-660-8/DA-660-16-LX, DA-661/662/663-16-LX, UC-7420/7410/7408-LX Plus, UC-8410/8416/8418-LX)
Read data from 8 serial ports and print on the screen what received

18.  xmlparse: (for UC-7420/7410/7408/DA-660-8/DA-660-16-LX, DA-661/662/663-16-LX, UC-7420/7410/7408/7402-LX Plus)
This is a example program to show how to parser a XML document.

19.  proxy: (for UC-7420/7410/7408/DA-660-8/DA-660-16-LX, DA-661/662/663-16-LX, UC-7420/7410/7408-LX Plus, UC-8410/8416/8418-LX)
An multi-thread example to demostrate proxy data between serial and socket

20.  link: (for UC-7420/7410/7408/DA-660-8/DA-660-16-LX, DA-661/662/663-16-LX, UC-7420/7410/7408-LX Plus, UC-8410/8416/8418-LX)
The example programs explain you how to detect the Ethernet link status in a program.

21.  lcmshowinfo (for DA-660-8/DA-660-16-LX, DA-661/662/663-16-LX)
A LCM/keypad menu example for Moxa embedded computer DA serials.

22.  moxalib (for UC-7420/7410/7408/DA-660-8/DA-660-16-LX, DA-661/662/663-16-LX, UC-7420/7410/7408-LX Plus, UC-8410/8416/8418-LX)
The source code of libmoxalib.a.

23.  can (for UC-8418-LX, IA-262-LX)
A CAN programming example for Moxa embedded computer.
