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.
DA662A-LX are 2.6 kernel system. Copmile for DA662A-LX need to use, arm-none-linux-gnueabi-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


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

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, DA662A-LX)
This program is just to demo how to development user application.

2.   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, DA662A-LX)
This program demo how to use socket lib coding TCP Client program on UC/DA series embedded computer.

3.   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, DA662A-LX)
This program demo how to use socket lib coding TCP Client program on UC7000 series.

4.   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, DA662A-LX)
The example programs explain you how to write a simple TCP Server program to communicate with PC. The examples uses standard BSD Sockets.

5.   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, DA662A-LX)
The example programs explain you how to write a simple TCP Server program to communicate with PC. The examples uses standard BSD Sockets.

6.   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, DA662A-LX)
The example programs explain you how to write a simple TCP Client/Server program. The examples uses standard BSD Sockets.

7.  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, DA662A-LX)
his program create UDP socket and exchange data between serial port and Ethernet.

8.  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, DA662A-LX)
This program demo how to use socket lib coding UDP send/recv program on UC7000 series.

9.  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, DA662A-LX)
This release only for demonstrates the modbus protocol and provides examples how to control serial/socket and how to build a modbus gateway.

10.  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, DA662A-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.

11.  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, DA662A-LX)
Read data from 8 serial ports and print on the screen what received

12.  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, DA662A-LX)
This is a example program to show how to parser a XML document.

13.  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, DA662A-LX)
      An multi-thread example to demostrate proxy data between serial and socket
