Moxa Technologies ThinkCore DA-660-8-CE User Manual

Moxa Technologies ThinkCore DA-660-8-CE User Manual

Hide thumbs Also See for ThinkCore DA-660-8-CE:
Table of Contents

Advertisement

Quick Links

ThinkCore DA-660-8/16-CE
User's Manual
Second Edition, May 2006
www.moxa.com/product
Moxa Systems Co., Ltd.
Tel: +886-2-8919-1711
Fax: +886-2-8919-1722
Web: www.moxa.com
MOXA Technical Support
Worldwide:
support@moxa.com
The Americas support@usa.moxa.com

Advertisement

Table of Contents
loading
Need help?

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

Summary of Contents for Moxa Technologies ThinkCore DA-660-8-CE

  • Page 1 ThinkCore DA-660-8/16-CE User’s Manual Second Edition, May 2006 www.moxa.com/product Moxa Systems Co., Ltd. Tel: +886-2-8919-1711 Fax: +886-2-8919-1722 Web: www.moxa.com MOXA Technical Support Worldwide: support@moxa.com The Americas support@usa.moxa.com...
  • Page 2: Copyright Notice

    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.
  • Page 3: Table Of Contents

    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 ....................
  • Page 5: Chapter 1 Introduction

    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.
  • Page 6: Overview

    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.
  • Page 7: Software Features

    ThinkCore DA-660 WinCE User’s Manual Introduction Model DA-660-8-CE DA-660-16-CE Intel XScale IXP-422 266 MHz 128 MB Flash 32 MB Auto-sensing 10/100 Mbps × 2 with built-in 1.5 KV magnetic isolation protection, RJ45 Connector RS-232/422/485 × 8 RS-232/422/485 × 16 Serial Port RJ45 Connector RJ45 Connector Serial Protection...
  • Page 8: Networking And Communications Capabilities

    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.
  • Page 9: Obtaining The Firmware Build Version

    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.
  • Page 10: Chapter 2 Getting Started

    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.
  • Page 11: Starting Your Da-660 Computer

    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.
  • Page 12: Operating Your Da-660 Computer Via Telnet Client

    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:...
  • Page 13: Adjusting System Time And Rtc Time

    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.
  • Page 14: Starting And Stopping Services

    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. \>...
  • Page 15: Simple Network Management Protocol (Snmp)

    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.
  • Page 16: Snmp Manager

    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.
  • Page 17: Web-Based Management System

    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.
  • Page 18: System Information

    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.
  • Page 19: Serial Port Configuration

    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.
  • Page 20: Launching Processes Automatically

    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”.
  • Page 21: Binary/Text File Management

    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.
  • Page 22: Chapter 4 Application Development

    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®...
  • Page 23: Installing Development Tools (Ides)

    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.
  • Page 24: Installing Moxa Windows® Ce 5.0 C/C++ Sdks

    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.
  • Page 27: Developing Applications With Ides

    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®...
  • Page 28: Developing Embedded Visual C++ 4.0 Applications With An Imported Sdk

    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.
  • Page 29: Developing Vb.net / C# Applications With A .Net Compact Framework

    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.
  • Page 30: Visual Studio 2005 Remote Tools

    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...
  • Page 32: Remote Tool # 1: Application Debugger

    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...
  • Page 36: Remote Tool #2: Remote File Explorer

    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...
  • Page 38: Chapter 5 Programming Examples

    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.
  • Page 39: Example #1-Moxa Uart Supporting Rs-232/422/485

    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”...
  • Page 40 ThinkCore DA-660 WinCE User’s Manual Programming Examples CloseHandle(hCom); return NULL; return hCom; //================================================================= static DWORD comReadThread(LPVOID param) HANDLE hCom = (HANDLE)param ; DWORD rtn; unsigned char buffer[MAX_DATA_LEN+1]; while(1) if (ReadFile(hCom, buffer, MAX_DATA_LEN, &rtn, NULL)==0) printf("read data fail\n"); return 0; buffer[rtn] = '\0'; printf("Data = %s\n", buffer);...
  • Page 41 ThinkCore DA-660 WinCE User’s Manual Programming Examples if (rCom == NULL) printf("Fail to create read port\n"); CloseHandle(wCom); return 2; /* for a thread to handle receiving */ if (CreateThread( NULL, 0, comReadThread, (LPDWORD) rCom, NULL, 0 )==NULL) printf("Fail to create a receiving thread\n"); CloseHandle(wCom);...
  • Page 42: Example #2-Buzzer

    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;...
  • Page 43: Example #1-Moxa Uart Supports Rs-232/422/485

    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.
  • Page 44 ThinkCore DA-660 WinCE User’s Manual Programming Examples ref byte lpInBuffer, int nInBufferSize, ref byte lpOutBuffer, int nOutBufferSize, ref int lpBytesReturned, IntPtr lpOverlapped const uint MOXA_SET_OP_MODE = (0x400 + 66); const uint MOXA_GET_OP_MODE = (0x400 + 67); const uint RS232_MODE = 0; const uint RS485_2WIRE_MODE = 1;...
  • Page 45 ThinkCore DA-660 WinCE User’s Manual Programming Examples return SetComPortInterface(RS422_MODE); public bool SetRS485TwoWire() return SetComPortInterface(RS485_2WIRE_MODE); public bool SetRS485FourWire() return SetComPortInterface(RS485_4WIRE_MODE); class MxComPortEx private SerialPort port; private MxComPortEx(string sPortName, int baudrate) // create a SerialPort instance with basic settings port = new SerialPort(sPortName, baudrate, Parity.None, 8, StopBits.One); port.RtsEnable = true;...
  • Page 46: Example #2-Buzzer

    ThinkCore DA-660 WinCE User’s Manual Programming Examples private void ErrorEvent(object sender, SerialErrorReceivedEventArgs e) Console.WriteLine("error"); private void DataReceived(object sender, SerialDataReceivedEventArgs e) while (port.BytesToRead > 0) Console.WriteLine("Receiving Data: " + port.ReadByte()); private bool IsOpen() return port.IsOpen; static void Main(string[] args) MxComPortEx comPort = new MxComPortEx("COM3:", 115200); comPort.Open();...
  • Page 47: Example #3-Real Time Clock

    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.
  • Page 50: Appendix A Using The Lcm Keypad

    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 ↓...
  • Page 52: Appendix B Firmware Upgrade Procedure

    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.
  • Page 55: Appendix C Service Information

    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...
  • Page 56: Moxa Internet Services

    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.
  • Page 57: Problem Report Form

    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.
  • Page 58: Product Return Procedure

    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.

This manual is also suitable for:

Thinkcore da-660-16-ce

Table of Contents