Windows CE - NET Based Embedded System
Windows CE - NET Based Embedded System
NET Based
Embedded System
Users Manual
www.iei.com.tw
Copyright Notice
©Copyright 2002 by ICP Electronics Inc. All Rights Reserved.
Manual 1st edition April 01, 2002.
Introduction
Installation and Setting
Tutorial – Using Windows CE.NET
Shut down the system
Task Manager
Command Prompt (CMD.EXE)
IEI Auto Launch Application Solution
VGA
Audio
LAN
Touch screen
Keyboard
Mouse
Software Keyboard
File system and Storage
IDE Hard Disk/FlashDisk/CompactFlashDisk
IDE CD-ROM/DVD-ROM
Serial Ports
Parallel Port
Digital I/O
Watchdog timer
USB
IrDA
Communication Programs
Application include Browser/Word/Inbox
RDP Function
Application Programming
Cross Development
Host and Target
Development Tools
Windows® CE eMbedded Visual C++
Remote Connection between Host and Target
Serial Port: ActiveSync
Ethernet
Visual C++ Programming
Win32 Programming
MFC Programming
Utilities
Introduction
DRAM Installation:
16MB DRAM is usually too small to run the full configuration of
Windows CE.NET image, you may need more size of DRAM, We
recommend at least 32MB DRAM for most applications. The IEI
evaluation kit installs 128M DRAM by default.
Task Manager
Press Alt+Tab key to run Task Manager
Calibration Utility
You need to calibrate after first time booting to Windows
CE.NET. Here is the procedure:
1. Run the calibrate.exe for the touch panel.
2. Just follow the screen display to touch some places.
3. Then the touch panel function will work.
Keyboard
Most applications in Embedded system don't need a
keyboard. You may need to configure your Embedded
system by connecting a standard keyboard. After that, you
could power off the system, then remove the keyboard and
reboot.
Mouse
PS/2 Mouse is the default Mouse device of Windows CE.NET.
For some systems that do not support a PS/2 Mouse, it just
supports Serial Mouse as the pointing device. Like the
keyboard, the system doesn't need a mouse for most
Embedded applications.
IDE Hard Disk/Flash Disk/Compact Flash Disk
/CD-ROM/DVD-ROM
If the target device does not support IDE device, please
skip this session. The IDE driver built in for the
pre-configured Windows CE.NET Image supports the IDE
Interface device, like IDE HDD, Flash disk, CompactFlash ™
Card, CD-ROM and DVD-ROM
DiskOnChip
The M-Systems TrueFFS DiskOnChip driver is built into the
pre-configured Windows CE.NET Image if the board has
onboard DiskOnChip socket. Please skip this session if the
target device does not have DiskOnChip socket.
Serial Port
Serial Port Testing Procedure:
1. Prepare another Windows 95/98/NT Client PC
2. Prepare a Null Modem cable to connect Client PC and
Target Windows CE.NET Device.
3. Start the HyperTerminal.exe (Hypertrm.exe) on
Windows 95/98/NT PC, set the baud rate as 19200.
4. On the Windows CE.NET Target device
Run the program pegterm.exe
Create a New Session
Input any number in the Telephone Number filed.
Select Force Local
Click Configure...
Select Manual Dial in Port Settings.
Set the baud rate as same as 95/98/NT PC.
Type some characters on both keyboards to verify the
connection function work or not.
Parallel Port
Windows CE.NET only supports PCL printer driver. Most HP
printers should support PCL function. If your printer does
not support PCL function, then you have to develop the
Windows CE.NET printer driver.
Ethernet
Network Setting
If the target device you have does not have network chip,
please skip this session. In Windows CE.NET you need to
change the Device Name in the Control Panel before using
the network.
Please do the procedure as followings:
1. Go to Control Panel > Communications Properties.
2. Change the default name "WinCE" to any other name.
Ps:You have to select a unique name.
4. You may change the Network and TCP/IP settings. (Go
to Control Panel > Network) The default IP setting is
DHCP. You may change to static IP.
5. Click "suspend" in Start Menu to save the Registry
setting.
6. Reboot the system.
7. You can use net command and UNC to access Windows
95/98/NT/2000 share directories and files. However,
Windows CE.NET does not support Windows
95/98/NT/2000 to access files on Windows CE.NET
device. You may develop an application like FTP to help
out with this solution. .
Audio
If the target device does not support audio function, please
skip this session.
You may go to Control Panel > Volume & Sounds to
adjust the volume or change the .WAV file for sounds of
system events.
Digital I/O
If the target device does not support Digital I/O function,
please skip this session.
USB
If the target device does not support USB, please skip this
session.
Note:
To enable USB device, you need the Windows CE.NET
driver for the USB device.
IrDA (SIR)
If the target device does not support IrDA function, please
skip this session.
Communication Programs
Click Start > Programs > Communication to run the
programs. Select Remote Connections.
Browser
The browser is from Windows CE.NET Platform Builder.
Microsoft provides IESample as a sample. Developers can
refer to the sample code to develop the browser.
Cross Development
For Windows 98/NT/2000 application programming, the
development tool like Visual C++ and application can be on
the same PC. So developer can develop, debug and test
application on the same PC. However, this is impossible for
most embedded system development. Because some
embedded systems are headless (no display, keyboard or
mouse) or the CPU is not powerful enough to install the
development tool. Cross development is the solution. The
cross development includes a powerful development host,
target embedded system and the cable connection
between two system.
Ethernet Connection
1. Connect development host and Windows CE device to the
network. (Make sure they both get the IP addresses)
2. Run eMbedded Visual C++ 4.0
3. Run Tools > "Configure Platform Manager…"
4. Select the right platform/device (e.g. Wafer 582x) to
configure
5. Click "Properties …"
6. Select "TCP/IP Transport for Windows CE"
7. Click "Configure"
8. Select "Fixed Port" and press "OK" button
9. Click "Advanced" button
10. Select "Manual Server" and press "OK" button
11. Press "Test" button to test the connection
12. It shows following prompt, write down the long
command line on paper. Press "OK".
13. Enter the long command line on Windows CE device.
You may need to enter this long string very frequently
for the future debugging. The best way is to write a .bat
file and reuse it.
14. Once connected, you may use the remote tools like
"Remote Registry Editor".
Visual C++ Programming
Win32 Programming
Start eMbedded Visual C++ 4.0. Select New from the File
menu, click on Projects and select WCE Application. Then
enter the project name HelloW32, in the directory of your
choice. Also select the proper platform (e.g. Win32 (WCE
x86) and Win32 (WCE x86em)). Click OK.
MFC Programming
Start eMbedded Visual C++ 4.0. Select New from the File
menu, click on Projects and select WCE MFC AppWizard
(exe). Then enter the project name HelloMFC, in the
directory of your choice. Also select the proper platform
(e.g. Win32 (WCE x86) and Win32 (WCE x86em)). Click
OK.
You may use default settings for the reset of Wizard steps
and click Finish.
Utilities
Autolaunch.EXE
This utility allows you to run application which you want to
run first after booting to Windows CE.NET.
Copy this file to DOC or HDD through neighborhood or
ActiveSync, then double click autolaunch.exe.
Just click browse to select the application you want to run
first after booting to Windows CE.NET.
Next time when booting to Windows CE.NET, the application
will run automatically.
Regflush.EXE
This utility helps you to save settings in registry. Even after
power reset, these setting will be kept in your DOC or HDD
device. For example, you can set IP address as fixed IP then
double click regflush.exe. After reset power and booting to
Windows CE.NET, the IP address setting will be the same as
before.
DIOTST.EXE
Digital I/O test utility, it helps you to test digital input and
output function on your board.
WDTTST.EXE
Watchdog Timer function test utility, after setting time and
selecting proper IO address (please refer to your user
manual), press Start Timer button to trigger watchdog timer
and start count down. Press Rest Timer button to restart
timer or the system will issue a reset to perform a cold
boot.