Your ePlatform Partner Advantech SOM-A200 series Software Manual Software Manual Advantech SOM-A200 series Software Manual Released Version:V1.00 Released Date:May, 19, 2004 Advantech Co., Ltd Risc Embedded Computing Division http://www.advantech.
Your ePlatform Partner Advantech SOM-A200 series Software Manual ABSTRACT ® This software manual details the Windows CE.NET operating system on the SOM-A series platform. Sections include Introduction 、 Windows® CE Startup Procedure 、 Upgrade Procedure、Utilities、Network、M-System Persistent Storage Manger、Application Program Development and Windows® CE.NET 4.2 Require Components. Copyright This document is copyrighted, © 2003. All rights are reserved.
Your ePlatform Partner Advantech SOM-A200 series Software Manual Revision History Version V1.00 Date Reason 2004.05.19 Formal released.
Your ePlatform Partner Advantech SOM-A200 series Software Manual CHAPTER 1 Software Functionality This chapter details the Windows® CE.NET operating system on the SOM-A series platform. Sections include: • Introduction •Windows® CE Startup Procedure • Upgrade Procedure • Utilities • Network • M-System Persistent Storage Manger • Application Program Development • Windows® CE.NET 4.
Your ePlatform Partner Advantech SOM-A200 series Software Manual 1.1 Introduction The SOM-A series is a modular board, which integrated main component chip including CPU, VGA, Audio, Flash and DRAM chip. The operating system is Windows® CE.NET embedded. The Windows® CE.NET is a compact OS that occupies less storage space or system resources compared with other operating systems such as Windows® NT or Windows® XP.
Your ePlatform Partner Advantech SOM-A200 series Software Manual 1.2 Windows CE Startup Procedure Windows CE can be loaded by two methods, first is by Compact Flash card, and second is by system flash chip. Compact Flash card is high boot priority than system flash chip. In BOOTLOADER criteria, it will first read the Windows CE image in Compact Flash card. If Compact Flash card is unavailable or no Windows CE image inside, BOOTLOADER will load the Windows CE image from system flash chip.
Your ePlatform Partner Advantech SOM-A200 series Software Manual Figure 1.2 Image files and upgrade utility in CF storage card Step3. Check the items you want to upgrade as the figure shown below. If you want to upgrade boot logo, you can key in the path of the bitmap file in the edit box or click ‘Browse’button to select the file. Figure 1.3 Upgrade utility for burn image to flash ROM Note: The difference between NK.NB0 (Compressed) and NK.NB0 (Normal, XIP) : The option “NK.
Your ePlatform Partner Advantech SOM-A200 series Software Manual Figure 1.4 Press Apply button in order to upgrade onboard flash ROM After the upgrade process is finished, please power off platform and power on it. On the first time bootup, it will take about 1 minute to format the DiskOnChip if your OS image includes DiskOnChip driver. 1.4 Utilities There are several useful utilities added in the standard Windows® CE.NET OS: 1.4.1 Test Utility The utility “Auto4_V1.17.
Your ePlatform Partner Advantech SOM-A200 series Software Manual Test Procedure : You should see a lot of test items in left zone after launch this utility. You can insert enough test items you want to right zone by pressing “Add” button. The test items in right zone will be executed. Also, you can remove test items from right zone by pressing “Remove” button. After you add test items done, you can go function test by pressing “EXE ALL” button. To press “View Rpt” button, you will see the test result.
Your ePlatform Partner Advantech SOM-A200 series Software Manual Note: Please be careful using this utility "Regflash". This utility is able to overwrite all registry data. Figure 1.6 Regflash utility It is important to keep the power normal during "Save to Flash" process. If the power were broken down during the registry saving process, then the registry would be lost and corrupted.
Your ePlatform Partner Advantech SOM-A200 series Software Manual Figure 1.7 Reboot the system 1.4.4 Startup execution The SOM-A has a useful function call "Startup execution". After the system boot up, the startup execution function would automatically perform. This function is useful for control system to do the initialization processes or some other procedures. In SOM-A, there are two ways to perform "Starup" function. Method 1: Step1: Create "startup" directory in CompactFlash card or in "\DiskOnChip\".
Your ePlatform Partner Advantech SOM-A200 series Software Manual SOM-A allow user to alter registry setting, and save it by either "regflash.exe" or the registry frame of the “Misc” page of the System Configurator. But sometimes user may make some non-appropriate registry setting, and cause SOM-A fail to boot. In the circumstance, the easiest way to boot up SOM-A is to use the default registry setting from the Windows® CE.NET image.
Your ePlatform Partner Advantech SOM-A200 series Software Manual Figure 1.8 General information 1.4.6.2 Touch-screen The Touch-screen page provides the calibration function. Click the "calibration" button, the "Stylus Properties" windows would appear. Then click "calibrate" button in the Stylus Properties window to enter calibration process. In the calibration process, user taps on the center of the target on the screen then the target will move to the next position.
Your ePlatform Partner Advantech SOM-A200 series Software Manual 1.4.6.3 Display From time to time it is unnecessary to turn on the display attached to the SOM-A all the day. The Display page provides several frequently used functions such as turning off the LCD and backlight to elongate the display repair period, adjusting brightness or contrast. For example, if user wants the backlight turn-off setting function, he can press "setting" button.
Your ePlatform Partner Advantech SOM-A200 series Software Manual intervals: 2 seconds, 5 seconds, 10 seconds, 30 seconds, 60 seconds, 2 minutes, 5 minutes and 10 minutes. The “Enable" button is used to simulate the Watchdog function. Detail programming guide is illustrated at section 1.7.5. The “Sleep” button could make the system enter suspend mode as “Suspend” of “Start” could.
Your ePlatform Partner Advantech SOM-A200 series Software Manual directory by type the directory in the edit box and press "Set" button. The new setting would become effective after the system reboot. The "MAC ID" block shows the network MAC address. The "COMM" block provides the communication functions, including IPConfig and Pinging Yahoo. Figure 1.
Your ePlatform Partner Advantech SOM-A200 series Software Manual 1.5 Network 1.5.1 Networking via Ethernet SOM-A2558 and SOM255F both build in one 100Base-T Ethernet controller. It appears at “Control Panel/Network and Dial-up Connections” via “FMAC1”. User can configure its Ethernet support as follows: 1. Click "Start/Settings/Control Panel" 2. Double click "Network and Dial-up Connections" 3. This window will display all available connections.
Your ePlatform Partner Advantech SOM-A200 series Software Manual computer must install the Microsoft ActiveSync service offered by Microsoft. Use the USB cable to connect the USB ports of them. Then activate ActiveSync service on the host computer. The host will automatically scan the USB ports to make a connection. 1. Make sure the Microsoft ActiveSync service and the Microsoft embedded Visual Tools are properly installed in the host PC. 2.
Your ePlatform Partner Advantech SOM-A200 series Software Manual Figure 1.14 Networking via USB port 1.5.3 Networking via PPP The SOM-A supports PPP protocol. To setup and utilize it, follow the steps below: 1. Click "Start/Settings/Network and Dial-up Connections” 2. Make a new connection. As the dialogue box pops out, choose the "Dial-Up Connection". Click "Next". 3.
Your ePlatform Partner Advantech SOM-A200 series Software Manual Figure 1.15 Networking via PPP 1.5.4 Web browser The SOM-A builds-in Windows CE OS includes IE Browser. It can be used to browse web pages on World Wide Web via LAN or PPP.
Your ePlatform Partner Advantech SOM-A200 series Software Manual 1.6 M-System Persistent Storage Manger (DiskOnChip) 1.6.1 Introduction to M-System Persistent Storage Manger M-System Persistent Storage Manager was designed and developed specifically as an enhancement to Microsoft Windows CE operating systems. DiskOnChip eliminates extra disk-like storage such as storage cards, redundant RAM and ROM. 1.6.
Your ePlatform Partner Advantech SOM-A200 series Software Manual 1.7 Application Program Development The SOM-A is bundled with built-in Windows® CE.NET operating system. In real applications users need to execute various application programs on it. However, unlike its other family, the Windows® CE.NET is a hardware-dependent operating system. That is to say, Windows® CE.NET application programs are only portable in the source code level. Users must rebuild the runtime file for a different Windows® CE.
Your ePlatform Partner Advantech SOM-A200 series Software Manual Figure 1.16 Flow-chart of Building Windows® CE.NET runtime 1.7.3 How to install SDK Copy SOM-A SDK file “SOM_A_SDK.msi” to your PC, and launch it. You can install SDK by steps. Step 1, Launch SOM-A SDK file, and then tap Next button.
Your ePlatform Partner Advantech SOM-A200 series Software Manual Figure 1.17 Step 2, Accept License Agreement and go next. Figure 1.18 Step 3, Key in your information and go next.
Your ePlatform Partner Advantech SOM-A200 series Software Manual Figure 1.19 Step 4, Choose setup type. There are 3 options “Embedded Visual C++”, “Microsoft .NET Compact Framework”, and “Documentation” in Custom Setup.
Your ePlatform Partner Advantech SOM-A200 series Software Manual Figure 1.20 Figure 1.
Your ePlatform Partner Advantech SOM-A200 series Software Manual Step 5, Tap “Install” button to install SDK. Figure 1.22 Install SDK… … .
Your ePlatform Partner Advantech SOM-A200 series Software Manual Figure 1.23 Step6, Finish installing.
Your ePlatform Partner Advantech SOM-A200 series Software Manual Figure 1.24 1.7.4 Running your application programs Activesync would automatically transfer the built application program to platform. Choose SDK type as SOM-A once compile your application program. Figure 1.25 1.7.5 WDT Modules SOM-A is targeted to be the embedded device for web-enabled and data-acquisition systems. It is built-in with a useful dynamic link library, WATCHDOG.
Your ePlatform Partner Advantech SOM-A200 series Software Manual - DeviceIoControl This function sends a control code directly to a specified device driver, causing the corresponding device to perform the specified operation. BOOL DeviceIoControl( HANDLE hDevice, DWORD dwIoControlCode, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped); - Parameters hDevice [in] Handle to the device that is to perform the operation.
Your ePlatform Partner Advantech SOM-A200 series Software Manual DeviceIoControl to perform the driver-specific functions. lpInBuffer [in] Long pointer to a buffer that contains the data required to perform the operation. This parameter can be NULL if the dwIoControlCode parameter specifies an operation that does not require input data. nInBufferSize [in] Size, in bytes, of the buffer pointed to by lpInBuffer. lpOutBuffer [out] Long pointer to a buffer that receives the operation's output data.
Your ePlatform Partner Advantech SOM-A200 series Software Manual WDT Control Codes There are 8 control codes for the operation codes in the WDT1 driver: 1. IOCTL_ENABLE_WDT (0x1001): Enables the Watchdog timer on your application. Your application must trigger to Watchdog timer by IOCTL_ACCESS_WDT interface during specified period, otherwise the device will reboot automatically lpInBuffer : unsed. nInBufferSize: unused. lpOutBuffer: unused. nOutBufferSize: unused. 2.
Your ePlatform Partner Advantech SOM-A200 series Software Manual lpOutBuffer: the DWORD pointer to your Watchdog time setting. The unit is mini-second. Its value should be greater 1000. The default setting is 5000 mini-seconds. nOutBufferSize: unused. 4. IOCTL_SET_WDTPERIOD (0x1004): lpInBuffer : the DWORD pointer to your Watchdog time setting. Its value should be greater 1000. The unit is mini-second. If your application opens the WDT driver, the default Watchdog timer is set to 5000 mini-seconds.
Your ePlatform Partner Advantech SOM-A200 series Software Manual mini-second. If the value is 0, screen-off function is disabled. nOutBufferSize: unused. 7. IOCTL_SET_SCREENOFFTIME (0x1007): lpInBuffer : the DWORD pointer to your screen off time if user-interface idled. The unit is mini-second. If the value is 0, screen-off function is disabled. nInBufferSize:unused. lpOutBuffer: unused. nOutBufferSize: unused. 8. IOCTL_SET_SCREENOFF (0x1010): Set the LCD power off immediately. lpInBuffer : unused.
Your ePlatform Partner Advantech SOM-A200 series Software Manual #define IOCTL_ACCESS_WDT 0x1005 #define IOCTL_GET_SCREENOFFTIME 0x1006 #define IOCTL_SET_SCREENOFFTIME 0x1007 #define IOCTL_SET_SCREENON 0x100F #define IOCTL_SET_SCREENOFF 0x1010 HANDLE m_hWDT=NULL; TCHAR szClassName[60]; ...
Your ePlatform Partner Advantech SOM-A200 series Software Manual DWORD nPeriod=10000; // Set the Watchdog Timer as 10 seconds (10000 mini-seconds) DeviceIoControl(m_hWDT, IOCTL_SET_WDTPERIOD, &nPeriod, 4, NULL, 0, &dwTemp, NULL); // Enable the Watchdog timer DeviceIoControl(m_hWDT, IOCTL_ENABLE_WDT, NULL, NULL, NULL, 0, &dwTemp, NULL); While (1) { // do your job here...
Your ePlatform Partner Advantech SOM-A200 series Software Manual ® 1.8 Windows CE.NET 4.
Your ePlatform Partner Advantech SOM-A200 series Software Manual Parallel Port Support ■ USB Host Support ■ Debugging Tools ■ Power Management ■ Kernel Features ■ Communication Services and Networking Feature Networking Features Default Selection ■ Networking - Local Area Network (LAN) ■ Networking - Personal Area Network (PAN) ■ Networking - Wide Area Network (WAN) ■ Servers (HTTPD) ■ File Systems and Data Store Feature Storage Manager Default Selection ■ File & Database Replication
Your ePlatform Partner Advantech SOM-A200 series Software Manual MSLogo □ Symbol □ Tahoma □ Times New Roman □ Trebuchet MS □ Verdana □ Webdings □ Wingding □ International Default Feature Selection Locale Services ■ Locale Specific Support (Input Method Selector Sample Application) ■ Multilingual User Interface (MUI) ■ Internet Client Services Default Feature Selection Browser Application (Internet Explorer 5.5 for Windows CE Standard Components) ■ Internet Explorer 5.
Your ePlatform Partner Advantech SOM-A200 series Software Manual - Internet Explorer TV-Style Navigation □ - URL Moniker Services ■ - Windows Internet Services ■ Pocket Internet Explorer HTML View (WEBVIEW) ■ Sample IE 5.
Your ePlatform Partner Advantech SOM-A200 series Software Manual Provider Shell and User Interface Default Feature Selection Shell ■ User Interface ■ - Accessibility ■ - Customizable UI ■ - Mouse ■ - Touch Display (Stylus) ■ - Network User Interface ■ - Overlapping Menus ■ - Software Input Panel ■ - Speech Interface ■
Your ePlatform Partner Advantech SOM-A200 series Software Manual Appendix A Boot & Registry Searching Sequence The following diagram demonstrates the boot sequence and registry searching sequence when SOM-A boot-up.