Moxa UC-8418-T-CE [39/48] Uc 8400 wince application development with the sdk and software libraries

Moxa UC-8430-T-CE [39/48] Uc 8400 wince application development with the sdk and software libraries
UC-8400 WinCE Application Development with the SDK and Software Libraries
B-2
Installing the SDK
Software libraries are available to simplify your software development time.
Before using the SDK Library, you must install the MOXA UC-8410/8416/8418/8430-CE SDK
(UC-8400-CE_SDK.msi). The SDK file is in the “sdk” directory of the UC-8410/8416/8418/8430-CE Software
CD. Use the following steps to install the SDK.
1. Copy UC-8400-CE_SDK.msi to your development PC (Windows XP/Vista)
2. For UC-8410/8416/8418-CE, double click UC-841X-CE_SDK.msi, for UC-8430-CE, double click
UC-8430-CE_SDK.msi.
3. Follow the wizard prompt to complete the installation steps.
Developing an Application with VS2005
1. Open Microsoft® Visual Studio .Net 2005.
2. From the File menu, choose New Project.
3. Choose the Project Type and then select the Smart Device Application as the type of project.
4. Fill in the project name and click OK.
5. Choose Windows CE as the target platform.
6. Select the desired project type and click OK.
7. Write your application code.
8. From the toolbar, choose the Device SDK UC-8410/8416/8418/8430-CE.
9. From the Build menu, choose Build Project or Rebuild Project.
10. When you complete your application, upload it to the embedded computer.
11. Log on to the embedded computer. At the console prompt, execute it directly if it is a C++ or C# file
Visual C++ Library
After the SDK is installed on your development PC, the library can be found in your Visual Studio 2005/2008
environment.
UART
Function
unsigned int mxsp_open(int port);
Description This function opens a serial port.
Input <port> Port number (starting from 3).
Return When successful, this function returns the handle of the open port.
When an error occurs, it returns a negative value.
Remarks For example, use mxsp_open(3) to retrieve the interface of COM3:
The function is equivalent to the Win32 CreateFile() API.
Function
int mxsp_close(unsigned int fd);
Description This function closes a serial port.
Input <fd> Handle of the open port.
Return When successful, this function returns 0.
When an error occurs, returns a negative value.
Remarks The function is equivalent to the Win32 CloseHandle() API.

Содержание

Скачать