Information provided in this manual is intended to be accurate and reliable. However, Moxa Technologies assumes no responsibility for its use, or for any infringements on the rights of third parties that may result from its use.
Table of Contents Chapter 1 Introduction ....................1-1 Overview..........................1-2 Package Checklist....................... 1-2 Model Descriptions and Features ................1-2 Hardware Specifications..................... 1-2 Software Features........................1-3 Applications Development Environment..............1-3 Networking and Communications Capabilities ............1-4 Supported Servers and Daemons ................1-4 Obtaining the Firmware Build Version ..................
Page 4
Chapter 5 Programming Examples ................5-1 Embedded Visual C++4 Examples................... 5-1 Example #1—MOXA UART Supporting RS-232/422/485 ........5-2 Example #2—Buzzer....................5-5 Visual Studio 2005 C# Examples..................... 5-5 Example #1—MOXA UART Supports RS-232/422/485........... 5-6 Example #2—Buzzer....................5-9 Example #3—Real Time Clock................5-10 Frequently Asked Questions ....................
Introduction Chapter 1 Microsoft® Windows® CE 5.0 is an open, scalable, 32-bit operating system (OS) that allows you to build a wide range of innovative, small footprint devices. A typical Windows® CE-based device is designed for a specific use, and often runs disconnected from other computers, or distributed as a front-end to a centralized host.
ThinkCore DA-660 WinCE User’s Manual Introduction Overview The ThinkCore DA-660 WinCE embedded computer is ideal for reliable, small-footprint, programmable, communication-centric applications. DA-660 uses an Intel XScale IXP-422 RISC-based CPU running at a clock rate of 266 MHz. Unlike the CISC architecture under an X86 CPU, the RISC design supports compact instruction sets.
ThinkCore DA-660 WinCE User’s Manual Introduction Microsoft® Foundation Classes (MFC)—MFC is a comprehensive class library and complete object-oriented application framework designed to help build applications, COM components, and controls. SOAP Toolkit—SOAP is an XML-based protocol for object exchange and remote procedure calls.
ThinkCore DA-660 WinCE User’s Manual Introduction Obtaining the Firmware Build Version There are three ways to obtain the firmware version of the DA-660 embedded computer. This information is particularly important for feature identification. Examine the welcome message after you log on to the computer. Log on to the Web-based management system (described in a later chapter) to view the system information.
Getting Started Chapter 2 In this chapter, we explain how to use a PC to operate a DA-660 computer. For clarity, the PC is referred to as a development workstation and the DA-660 computer is called a target computer. In addition, manual steps are described to facilitate operations such as system time adjustment, troubleshooting network connectivity, etc.
ThinkCore DA-660 WinCE User’s Manual Getting Started Starting Your DA-660 Computer Connect the power cord that is shipped with the package to the AC/DC power connector (located on the right side of the rear panel) of the target computer. It takes about 30 to 60 seconds for the system to boot up.
ThinkCore DA-660 WinCE User’s Manual Getting Started Server (DNS) is at 192.168.2.6. Execute the following command. \> netconfig –n LAN1 –i 192.168.1.5 –m 255.255.255.0 –g 192.168.1.254 –d 192.168.2.6 Use command netconfig to view the new settings. \> netconfig LAN1 Interface Configuration: IP Address: 192.168.1.5 SubNet Mask:...
ThinkCore DA-660 WinCE User’s Manual Getting Started Deleting a Group: To remove a group, use the command userdel –g <groupName>. \> userdel –g yyyy group yyyy has been removed. Adding a User: Use the command useradd <newUserID> to add a user for accessing the system. The user’s password, by default, is the same as the user name.
ThinkCore DA-660 WinCE User’s Manual Getting Started \> time The current time is: 5:27:17 PM Enter the new time (hh:mm:ss): 16:02:00 \> time /T 4:02:04 PM Adjusting RTC Time: Use the command hwclock -w to convert the system time to the RTC time. \>...
ThinkCore DA-660 WinCE User’s Manual Getting Started Adapter Index: 3 Address: 78 56 34 91 cc dd DHCP Enabled: NO Host name: DA660CE Domain Name: DNS Servers: 192.168.1.6 NODETYPE: 8 Routing Enabled: NO Proxy Enabled: NO To troubleshoot network connectivity, reachability, and name resolution, use the ping command. This command verifies IP-level connectivity to another TCP/IP computer by sending Internet Control Message Protocol (ICMP) Echo Request messages.
ThinkCore DA-660 WinCE User’s Manual Getting Started SNMP Manager An SNMP manager is an SNMP application that generates queries to SNMP-agent applications and receives traps from SNMP-agent applications. The DA-660 computer installs an SNMP agent to serve as an SNMP device. You should install the SNMP manager on the workstation computer (for example, a Linux system) that monitors the network.
Web-based Management System Chapter 3 Note: Internet Explorer 5.5 or above is required to use the web based management system. DA-660 ready-to-run embedded computers are network-centric platforms designed to be used as front-end computers for data acquisition and industrial control. Due to the distributed characteristics of the devices that these computers control, they often reside in harsh areas as the devices themselves and are away from system administrators.
ThinkCore DA-660 WinCE User’s Manual Web-based Management System System Information After you logon successfully, the main page displays the system information of the target computer, including the firmware version of the computer, the CPU system time, and system resources including main memory and file system usage (RAM and Flash). Networking/Server Configuration The target computer has two network interfaces.
ThinkCore DA-660 WinCE User’s Manual Web-based Management System Serial Port Configuration The target computer consists of multiple high-performance serial ports, each with 3-in-1 (RS232, RS422 or RS485) operation mode switch capability, with the default at RS232. You can specify each of these ports to operate at a specific mode. The updated settings take effect after the system is rebooted and remain in force until another update is made.
ThinkCore DA-660 WinCE User’s Manual Web-based Management System Launching Processes Automatically To have your application start on boot, do the following: Step 1: Click the Processes item on the main menu bar. At the lower part of the page, there is an area marked as “Automatic Launching”.
ThinkCore DA-660 WinCE User’s Manual Web-based Management System Binary/Text File Management On a PC, it is certainly convenient to have a friendly window-based file manager to browse, delete, and organize files and directories. On the target computer, such a convenient feature is simulated by the web-based management system.
Application Development Chapter 4 Application development on the DA-660 computer can be accomplished with a number of well-known tools that are provided by the Windows® environments on programmers’ workstations. These tools are easy for Windows® programmers to use. This chapter presents the development tools for Windows®...
ThinkCore DA-660 WinCE User’s Manual Application Development Installing Development Tools (IDEs) Building applications can be done with a number of friendly Integrated Development Environment (IDE) tools. Choose the tools based on the application language you plan to use and install them on your development workstation.
ThinkCore DA-660 WinCE User’s Manual Application Development Installing MOXA Windows® CE 5.0 C/C++ SDKs After installing eVC 4.0 on the development workstation, you need to install an SDK from MOXA. The SDK file, e.g., DA660CESDK1_0.msi, is available on the package CD. 1.
Page 25
ThinkCore DA-660 WinCE User’s Manual Application Development 3. Type your name for User Name, the name of your company for Organization, and then click Next. 4. To install all functionality provided with the SDK, click Complete and then click Next.
Page 26
ThinkCore DA-660 WinCE User’s Manual Application Development 5. If you have a folder preference where you want the SDK to reside, click Change and browse to the folder. Otherwise, place it in the default folder and then click Next. 6. Click Install to install the SDK.
ThinkCore DA-660 WinCE User’s Manual Application Development 7. Wait for the installation to be completed. 8. Once the installation is complete, click Finish to close the installer. Developing Applications with IDEs Windows® CE 5.0 with the MOXA SDK you have just installed offers application developers the familiar Windows®...
ThinkCore DA-660 WinCE User’s Manual Application Development Developing eMbedded Visual C++ 4.0 applications with an imported SDK Start Microsoft® eMbedded Visual C++ 4.0. From the File menu, choose New. Choose the Projects tab and then select the type of application that you want to build. Fill in the project name and click OK.
ThinkCore DA-660 WinCE User’s Manual Application Development Develop your application. From the Build menu, choose Rebuild All to compile your application. Ignore the following dialog if it pops up. This is generated by ActiveSync while developing a mobile application. The DA-660 computer is not a mobile device. 10.
ThinkCore DA-660 WinCE User’s Manual Application Development Develop your application. From the Device toolbar, choose Windows CE.Net Device. From the Build menu, choose Build Project or Rebuild Project. 10. When you complete your application, use the web-based management system to upload it to the target computer.
Page 31
ThinkCore DA-660 WinCE User’s Manual Application Development From the File menu, choose New Project. Remove the original reference library 4-10...
ThinkCore DA-660 WinCE User’s Manual Application Development Add Windows CE 5.0 .Net Class DLL to the References from C:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE. Set up the Windows CE environment variable from Project Project Properties. From now on, you can start developing your programs. Note that Visual Studio 2005 Express does not support on-line debugging.
Page 33
ThinkCore DA-660 WinCE User’s Manual Application Development Click Device Option. Click Properties… from the Options pop-up window. 4-12...
Page 34
ThinkCore DA-660 WinCE User’s Manual Application Development Click Configure… from the Windows CE 5.0 Device Properties pop-up window. Select the Use specific IP Address option and enter the IP address of the target computer. Click OK to go back to the main screen. 4-13...
Page 35
ThinkCore DA-660 WinCE User’s Manual Application Development Click Connect to Device. Wait for the connection to be made. Start the debugging process. 4-14...
ThinkCore DA-660 WinCE User’s Manual Application Development Remote Tool #2: Remote File Explorer Assume that you have configured a remote connection to the target computer by following the steps described above. Launch the Remote File Viewer. Click the Windows CE 5.0 Device and then click OK. 4-15...
Page 37
ThinkCore DA-660 WinCE User’s Manual Application Development Start using the tool to navigate files and directories. 4-16...
Programming Examples Chapter 5 Embedded Visual C++4 Examples The following examples are designed to ease application development. 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 (da660.lib). To link the library with your eVC4.0 compilation environment, perform the following steps from your eVC4.0 environment: From the main tool bar, choose Project Settings.
ThinkCore DA-660 WinCE User’s Manual Programming Examples Example #1—MOXA UART Supporting RS-232/422/485 The following C/C++ code shows a sample application transmitting data from port “COM3” to port “COM4” using the RS-232 operation mode. After these ports have been opened, the application generates a thread to receive data from port “COM3”...
ThinkCore DA-660 WinCE User’s Manual Programming Examples Depending on the serial port to which a device connects, the target computer supports serial communication in four operation modes: RS-232, RS-422, 2-wire RS-485, and 4-wire RS-485; RS-232 is the default. To change the operation mode, your program should include the following macro definitions;...
ThinkCore DA-660 WinCE User’s Manual Programming Examples In the Solution Explorer View, add mxdevice.dll to the reference section. Click OK Example #1—MOXA UART Supports RS-232/422/485 The following C# code shows a sample application on operating a serial port. It provides methods to switch the operation mode of the port among RS-232, RS-422 and RS-485 modes.
ThinkCore DA-660 WinCE User’s Manual Programming Examples class Program static void Main(string[] args) moxa.uc7400.Buzzer.Beep(2200, 50); Example #3—Real Time Clock The following code shows you how to get the RTC Clock in system time structure format. using System; using System.Collections.Generic; using System.Text; using moxa;...
Page 48
ThinkCore DA-660 WinCE User’s Manual Programming Examples 4. Add a DWORD value named Port. (The default value must be zero). 5. Modify the value to 51 (the HEX value of 81). 6. Browse to HKEY_LOCAL_MACHINE\Service s\HTTPD\Accept\TCP-80. 7. Modify the value of SockAddr to “02 00 00 51 00 00 00 00 00 00 00 00 00 00 00 00”.
Page 49
ThinkCore DA-660 WinCE User’s Manual Programming Examples I have a program The target computer under .NET Compact pre-installs an Framework 1.0 (CF1.0). engine of version Can I run it on your 2.0. It is compatible computer? with version 1.0. Try to execute your program on the computer directly.
Using the LCM Keypad Appendix A Da-660 has an LCM and keypad that provide users with on-site parameter readings, and the ability to modify the configuration. Parameters that can be modified include model name, firmware version, network settings, etc. We use the DA-660-16-CE as an example to demonstrate the steps you should follow to configure these parameters.
Page 51
ThinkCore DA-660 WinCE User’s Manual Frequently Asked Questions Main Menu ↑ Network ↓ Serial Port Press “﹀"or use “SEL” to select an item. ↑ Serial Port ↓ Console Port Press “﹀"or use “SEL” to select an item. ↑ Console Port ↓...
Firmware Upgrade Procedure Appendix B MOXA’s engineering division continuously develops software features to improve the quality and functionality of MOXA’s embedded products. The latest firmware is posted on the MOXA download center. To replace your product’s firmware, perform the following steps: 1.
Page 53
ThinkCore DA-660 WinCE User’s Manual Frequently Asked Questions 5. Input the full path of the firmware file and press Enter. The upgrade process takes about 5 minutes. The system should not be interrupted during this process. 6. After the process is completed, enter “Y” to restore the current network settings or enter “N” to roll back to the factory default values.
Page 54
ThinkCore DA-660 WinCE User’s Manual Frequently Asked Questions 7. Enter “Y” to reboot the target computer.
Service Information Appendix C This appendix shows you how to contact MOXA for information about this and other products, and how to report problems. The following topics are covered in this appendix. MOXA Internet Services Problem Report Form Product Return Procedure...
ThinkCore DA-660 WinCE User’s Manual Service Information MOXA Internet Services Customer satisfaction is our primary concern. To ensure that customers receive the full benefit of our products, MOXA Internet Services has been set up to provide technical support, driver updates, product information, and user’s manual updates.
ThinkCore DA-660 WinCE User’s Manual Service Information Problem Report Form MOXA DA-660 Series Customer name: Company: Tel: Fax: Email: Date: 1. Moxa Product: DA-660-8-CE DA-660-16-CE 2. Serial Number: _________________ Problem Description: Please describe the symptoms of the problem as clearly as possible, including any error messages you see.
ThinkCore DA-660 WinCE User’s Manual Service Information Product Return Procedure For product repair, exchange, or refund, the customer must: Provide evidence of original purchase. Obtain a Product Return Agreement (PRA) from the sales representative or dealer. Fill out the Problem Report Form (PRF). Include as much detail as possible for a shorter product repair time.
Need help?
Do you have a question about the ThinkCore DA-660-8-CE and is the answer not in the manual?
Questions and answers