?
Solved

windows CE testing

Posted on 2011-02-13
26
Medium Priority
?
1,116 Views
Last Modified: 2013-12-27
Hi,

I want to develop windows CE application, but do not know how to test them, I am familiar with using Emulators for Windows Mobile 5 and 6. Please guide me how can I test Windows CE application; any Emulator or virtual system?  as it is very expensive to purchase devices.

I can develop applications for windows mobile 5 and 6 and can use Emulators. Need guidance for WCE. And I am using Windows XP for development(Can switch to Windows Vista)

Thanks
0
Comment
Question by:sindhuxyz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 12
  • 11
  • 3
26 Comments
 
LVL 122
ID: 34883866
you don't say which version of Windows CE?

But would the WIndows CE 5.0 emulator help?

download link

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a120e012-ca31-4be9-a3bf-b9bf4f64ce72
0
 
LVL 5

Author Comment

by:sindhuxyz
ID: 34883951
it looks, it is not working. When I install any .cab file, installation finishes successfully, but application do not load; Nothing happens when try to load application

Any suggestion?
0
 
LVL 122
ID: 34883978
that's another question, isn't it? let me have a look at the download, it worked for us last time.
0
On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

 
LVL 5

Author Comment

by:sindhuxyz
ID: 34883982
i mean, do I need to customize memory or CPU?
0
 
LVL 122
ID: 34883989
No, the emulator just runs on a PC.
0
 
LVL 24

Expert Comment

by:alexey_gusev
ID: 34884024
that link hanccocka has posted is for very old WinCE 5.0 emulator which runs x86 code :)
it is not capable of running ARM code at all.

Microsoft doesn't provide any 'official' emulator for WinCE actually, but you can build one using Platform Builder (v5.0 if you need it for WinCE5 or v6.0 for WinCE6) + ARM Device Emulator BSP in case if WinCE 5.0 (this BSP is also unsupported, it was just for demo purposes).
0
 
LVL 5

Author Comment

by:sindhuxyz
ID: 34884051
0
 
LVL 24

Expert Comment

by:alexey_gusev
ID: 34884070
yes + this BSP:

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=474B03A6-E87D-455D-BC16-B8CF18EF39B4

so just follow the instructions and build WebPad - it will suit you needs I think
0
 
LVL 5

Author Comment

by:sindhuxyz
ID: 35008540
i created sdk, but it do not have any executable file to install sdk? The generated sdk looks like below:

snap1.bmp
0
 
LVL 24

Expert Comment

by:alexey_gusev
ID: 35008609
no, you don't need SDK actually, all you need is NK.bin

then (assuming you have VS installed and therefore Device Emulator Manager (DEM) too) do the following:
(I pasted the batch file content I'm using to start the emulator)

SET EMU_DIR="C:\Program Files (x86)\Microsoft Device Emulator\1.0\"
SET OSIMAGE_DIR=
%EMU_DIR%deviceemulator.exe /p /video 640x480x16 /memsize 256 /sharedfolder r:\viewerCE %OSIMAGE_DIR%NK.BIN

So the idea is to use generated NK.bin with DEM
0
 
LVL 5

Author Comment

by:sindhuxyz
ID: 35010036
I cannot see any nk.bin file, please tell me how can I create it or how can I find it;

Thanks
0
 
LVL 24

Expert Comment

by:alexey_gusev
ID: 35011415
have you build WebPad? if yes, then you'll find NK.bin in Release folder under the path like this@

c:\WINCE500\OSDesigns\<your_project_name>\<something about Release or Debug here, I don't remember right now>

0
 
LVL 24

Expert Comment

by:alexey_gusev
ID: 35011437
if I were you, I'd search under "c:\WINCE500\OSDesigns\<your_project_name>" for nk.bin

in general, I found that if you follow the rtf file supplied with the BSP it takes about 15 minutes to do it :)
0
 
LVL 5

Author Comment

by:sindhuxyz
ID: 35011532
There is not OSDesigns folder under wince5000
0
 
LVL 24

Expert Comment

by:alexey_gusev
ID: 35012298
ok, I will check tomorrow when I get a chance to reach VBox with XP and PB5.

but for now, when you build the project, it usually logs where it creates output files, besides it should be mentioned in project settings as well, so you might have a look.
0
 
LVL 24

Expert Comment

by:alexey_gusev
ID: 35015832
it's under e.g.

C:\WINCE500\PBWorkspaces\WebPadEmu50\RelDir\DeviceEmulator_ARMV4I_Release
0
 
LVL 5

Author Comment

by:sindhuxyz
ID: 35047329
I generated nk.bin; and I tried

Start(Windows XP)>Run>cmd > 

SET EMU_DIR="E:\Program Files\Microsoft Device Emulator\1.0\"
SET OSIMAGE_DIR= %EMU_DIR%deviceemulator.exe /p /video 640x480x16 /memsize 256 /sharedfolder F:\WINCE500\PBWorkspaces\WinCE\RelDir\DeviceEmulator_ARMV4I_Release %OSIMAGE_DIR%NK.BIN

Nothing happened in CMD Console(I mean neither any error nor any success or fail message nor any log message).

I checked Device Emulator Manager, cannot see Windows CE ARM Emulator!

Any advise?
0
 
LVL 24

Expert Comment

by:alexey_gusev
ID: 35047939
you made a tiny  but crucial mistake (or perhaps it was how my post was displayed) :) , so let me post it here again line by line:

- first, I set env. variable to keep where my emulator is located

SET EMU_DIR="C:\Program Files (x86)\Microsoft Device Emulator\1.0\"

- second, I set env. variable to define where is my NK.bin (NB: in my post it was left empty, so I used NK.BIN in current folder)
SET OSIMAGE_DIR=

- and finally, I execute deviceemulator.exe with few parameters

%EMU_DIR%deviceemulator.exe /p /video 640x480x16 /memsize 256 /sharedfolder r:\viewerCE %OSIMAGE_DIR%NK.BIN

All above was done in cmd/batch file, to make it easier to run. If you want to do it straight from console, then you could type a long command like that:

<path to deviceemulator folder>\deviceemulator.exe [all paramaters go here] <path to your NK.bin>\NK.bin
0
 
LVL 5

Author Comment

by:sindhuxyz
ID: 35048237
Thanks, I saw emulator opened on desktop, but still it is not included in Device Emulator Manager, so I can debug. I tried as instructed in document in Win5000

21.       Goto Tools->Options. Expand the “Device Tools” node on left and select “Devices”:

I did not found Emulator which I named there, find image.
snap1.bmp
0
 
LVL 24

Expert Comment

by:alexey_gusev
ID: 35048332
no, you won't see it there, but in Device Emulator Manager - you can see it under Others, then craddle it and treat as 'real WinCE5.0 device'
0
 
LVL 5

Author Comment

by:sindhuxyz
ID: 35061397
I do not see it under Device Emulator Manager - Others, instead I can run Emulator using .bat file to load emulator.

I transfered few files to Win CE emulator; the .cab files to install .Net Framework, but it did not recognize .cab files. I could not install .Net framework, any advise.

Thanks
snap1.bmp
0
 
LVL 24

Expert Comment

by:alexey_gusev
ID: 35061711
first thing - have you clicked Refresh after launching the emulator? if not, well...

let me clarify - you will NOT see this emulator in Device Emulator Manager straight away - it will be visible only when you start it and then click on Refresh in DEM. If you build the SDK with that BSP and install it then it will be properly registered and visible regardless of the emulator running.

the next thing: by default CAB installed is not checked in the Catalog, so if you need it, just check it. the same goes for cf.net - find it in the Catalog and check. Finally rebuild the OS image, launch the emulator and see that it shows proper icon for eg CAB file.
0
 
LVL 5

Author Comment

by:sindhuxyz
ID: 35062592

Thanks, it worked. Now, last one; how can attach visual studio with Emulator, so I can debug applications? I can see Emulator in DEM and I can craddle it too. Any advise?
0
 
LVL 24

Accepted Solution

by:
alexey_gusev earned 2000 total points
ID: 35062632
ok, in ActiveSync or WMDC - just enable DMA connections, this should in turn cause the emulator to connect and behave like real device (ie you select Windows CE device in VS)
0
 
LVL 5

Author Closing Comment

by:sindhuxyz
ID: 35068001
Thanks a lot
0
 
LVL 5

Author Comment

by:sindhuxyz
ID: 35069634
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Once again I push the limits of my phone.  An introduction to the Android Google Now Launcher.
A short article about problems I had with the new location API and permissions in Marshmallow
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month14 days, 1 hour left to enroll

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question