software development environment setting instructions for ...aska.com.pl/download/development...

38
revised on 21st, April 2011 Software Development Environment Setting Instructions for Handheld Data Terminals 1.Development Environment Setting Instruction..................................................................................................................................................................................... 1 2.How to Create C++ MFC Project (VS2005).......................................................................................................................................................................................... 27 3. How to create C# project (VS2008).................................................................................................................................................................................................... 34 1. Development Environment Setting Instruction Following the instructions below, you can establish right software development environment for C5000W quickly. 1) Install VS2005 (Visual Studio 2005)/VS2008 (Visual Studio 2008) or more advanced versions if available; 2) Install SDK (Software Development Kits) ( SDK Installation Guide ) 3) Install ActiveSync, please select corresponding synchronization software according to operating system ( SDK Installation Guide ) . Please download from official website if no suitable version is found in the SDK. 4) Start C5000W handheld data terminal, connect it to PC via USB cable when it is powered on. Then there’s indication for new hardware

Upload: others

Post on 27-Jul-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Software Development Environment Setting Instructions for Handheld Data Terminals

1.Development Environment Setting Instruction..................................................................................................................................................................................... 12.How to Create C++ MFC Project (VS2005).......................................................................................................................................................................................... 273. How to create C# project (VS2008).................................................................................................................................................................................................... 34

1. Development Environment Setting Instruction

Following the instructions below, you can establish right software development environment for C5000W quickly.

1) Install VS2005 (Visual Studio 2005)/VS2008 (Visual Studio 2008) or more advanced versions if available;

2) Install SDK (Software Development Kits) ( SDK Installation Guide )

3) Install ActiveSync, please select corresponding synchronization software according to operating system ( SDK Installation Guide ) . Please

download from official website if no suitable version is found in the SDK.

4) Start C5000W handheld data terminal, connect it to PC via USB cable when it is powered on. Then there’s indication for new hardware

Page 2: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

found. Follow the driver path and the PC will install driver automatically ( SDK Installation Guide ) . When it’s done, ActiveSync will

enable C5000W to synchronize with PC.

When the above steps are finished, the software development environment for C5000W is established for secondary development. In the

“Reference Examples” in SDK, we provide programs composed by C++ and C#, which allow users to carry out secondary development

efficiently and know about the use of API better.

1.1 SDK Installation Guide

SDK is “Software Development Kits” for short. Below are the installation steps for SDK:

1. Please make sure VS2005 Service Pack 1 or the latest version (VS2008) are already installed.

2. SDK File can be seen on “Development Environment Setting” file in SDK, find‘C5000W.msi’ and double click it (please turn off VS2005

when installing SDK), then it will enter interface as Pic 1;

Page 3: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 1

3. Click ‘Next’ to enter Pic 2;

Page 4: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 2

4. In Pic 2, users can read the End-User License Agreement and choose ‘Accept’ and click‘Next’to enter Pic 3 interface;

Page 5: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 3

5. In Pic 3, you can fill in the blanks for ‘User Name’ and ‘Organization’, when the information is input click ‘Next’ to enter Pic 4;

Page 6: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 4

6. In Pic 4, please select ‘Custom’ to enter Pic 5;

Page 7: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 5

7. In Pic 5 select ‘Documentation’ ‘Entire feature will be unavailable’. No need to install Documentation information because the system

will be likely to go failure while installing if this section is selected,Then click ‘Next’ to enter Pic 6;

Page 8: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 6

8. Click ‘Install’ in Pic 6 to start installing SDK and enter Pic 7;

Page 9: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 7

9. Enter Pic 8 interface when SDK installation is finished;

Page 10: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 8

10. Click ‘Finish’ in Pic 8 to finish installing SDK. When installation is done, you can see “C5000W ARMV4I Device” on DEVICE section in

Visual Studio as Pic 9.

Page 11: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 9

1.2 ActiveSync Installation Guide

Please install ActiveSync before operating C5000W under its embedded Windows CE6.0 operating system. With ActiveSync, you can easily

visit the device and carry out file preview, copy, data synchronization via PC. Please follow the steps below to install ActiveSync:

1. Open SDK and you can see 3 ActiveSync software;

ActiveSync4.5_OfficialRelease.msi

Page 12: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

OS supportable:

Windows Server 2003, Windows Server 2003 Service Pack 1, Windows Server 2003 Service Pack 2, Windows XP, Windows XP 64-bit,

Windows XP Embedded, Windows XP Embedded Service Pack 1, Windows XP Embedded Service Pack 2, Windows XP for Itanium-

based Systems Version 2003, Windows XP Home Edition, Windows XP Media Center Edition, Windows XP Professional 64-Bit

Edition (Itanium) , Windows XP Professional 64-Bit Edition (Itanium) 2003, Windows XP Professional Edition, Windows XP

Professional x64 Edition, Windows XP Service Pack 1, Windows XP Service Pack 2, Windows XP Starter Edition, Windows XP Tablet

PC Edition

ActiveSync6.1_OfficialRelease-x64.exe

OS supportable (64 bit):

Windows 7 Ultimate, Windows 7 Enterprise, Windows 7 Professional, Windows 7 Home Premium, Windows Vista Ultimate, Windows

Vista Enterprise, Windows Vista Business, Windows Vista Home Premium, Windows Vista Home Basic, Windows Vista Server

ActiveSync6.1_OfficialRelease-x86.exe

OS supportable (32 bit):

Windows 7 Ultimate, Windows 7 Enterprise, Windows 7 Professional, Windows 7 Home Premium, Windows 7 Starter, Windows Vista

Ultimate, Windows Vista Enterprise, Windows Vista Business, Windows Vista Home Premium, Windows Vista Home Basic, Windows

Vista Server

2. Select corresponding synchronization software according to the OS installed in PC. Take ‘ActiveSync4.5_OfficialRelease.msi’ for example:

double click the selected synchronization software and it appears as Pic;

Page 13: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 1

3. Click ‘Next’ to enter Pic 2;

Page 14: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 2

4. Select ‘I accept the terms in the license agreement’ and click ‘Next’ to enter Pic 3;

Page 15: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 3

5. In Pic 3, you can input information into ‘User Name’ and ‘Organization’sections. Click ‘Next’ to enter Pic 4 when done;

Page 16: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 4

6. There’s default path‘C:\Program Files\Microsoft ActiveSync’in Pic 4, click ‘Change’ to select a different destination, otherwise click ‘Next’

to enter Pic 5 to install as default destination;

Page 17: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 5

7. When confirmed, click ‘Install’ on Pic 5 to start installation as Pic 6;

Page 18: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 6

8. Window as Pic 7 appears when installation is done;

Page 19: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 7

9. Click ‘Finish’ to finish installation, and window appears as Pic 8;

Page 20: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 8

10. In Pic 8, click ‘Yes’ to finish modification of system setting. Restart the PC and you can view new application icon as Pic 9 on the left right

corner of the screen. Double click this icon and interface as Pic 10 jumps out.

Page 21: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 9 Pic 10

1.3 Driver Installation Guide

Device Driver is for C5000W to be recognized by PC and synchronized for data transfer and management. Below are the installation steps:

1. Power on C5000W and connect it to PC by USB cable, the PC will find this new hardware automatically as shown in Pic 1 and Pic 2;

Page 22: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 1 Pic 2

2. In Pic 2, select ‘Install from a list or specific location (Advanced)’ and click ‘Next’ to enter Pic 3;

Page 23: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 3

3. Tick ‘Include this location in the search’ section and click ‘Browse’ to enter Pic 4 to browse for folder;

Page 24: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 4

4. In Pic 4, select the driver program folder on C5000W SDK, and click ‘OK’ to go back to Pic 3. Click ‘Next’ to enter Pic 5;

Page 25: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 5

5. During installation, interface as Pic 6 will appear, click ‘Continue Anyway’ to proceed;

Page 26: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 6

6. When the installation is completed as Pic 7, click ‘Finish’ and the new hardware is found on Pic 8.

Page 27: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 7 Pic 8

2. How to Create C++ MFC Project (VS2005)

Page 28: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

2.1 Create Project

1. First of all, please make sure C5000W.msi is already installed.

2. You need to select the programing platform for the first time to open VS2005, and to create a new project when using VS2005. Click ‘File’

’New’ ‘Project’, as shown in Pic 2-1:

Pic 2-1

3. Select it and you’ll see the interface as Pic 2-2.

Page 29: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 2-24. Select ’Smart Device’ under ‘New Project’ window, then select ‘MFC Smart Device Application’ in Templates and input project name (such as

1Dbarcode), as shown in red sections in Pic 2-2.

5. Click ‘OK’ to enter ‘Win32 Application Wizard’ as Pic 2-3.

Page 30: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 2-3

6. Click ‘Next’ to enter SDK to select platforms (Pic 2-4), here you can move the platform named ‘C5000W’ to the right section and the ones to

the left section.

Page 31: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 2-4

7. Click ‘Next’ to enter Application Type selection, select ’Dialog based’ , ‘Use MFC in a static library’; Resource language English (US).

Page 32: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 2-58. No need to adjust the 3 sections below, click ‘Finish’ to finish creating project.

Page 33: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

2.2、Configure Program

1. Choose targeted device. Right click in Visual Studio tool and select ‘Device’.

Pic 2-6 2. Select‘C5000W ARMV4I Device’.

3. Please confirm the handheld device is synchronized with PC. Click ‘ ’ or ‘F5’ to start programing.

Page 34: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

3. How to create C# project (VS2008)

3.1 Create Project

1. First of all, please confirm the C5000W.msi is installed.

2. Need to select programing platform for the first time use of VS2008. Need to create a new project when starting VS2008: File

NewProject, as shown in Pic 3-1:

Pic 3-13. Then you can see interface as Pic 3-2. Select ‘Smart Device’ on the left section. Then select ‘SmartDevice Project’ on the right

section Templates, on the right above of the window you can choose .NET Framework version. The operating system is WINCE 6.0,

which supports all .NET Framework versions of VS2008. Here we choose the latest version .NET Framework 3.5. Then input project

name and solution name in the corresponding sections below (such as ISO14443A).

Page 35: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 3-24. Click ‘OK’ to enter Pic 3-3.

Page 36: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 3-3 5. Click Target platform and select ‘Device Application’ in Windows CE Templates section. Click ‘OK’ to finish creating project.

Page 37: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

3.2 Configure Program

1. Select target device as indicated in Pic 3-4:

Pic 3-4 2. Click the scroll-down menu and you can see a list of SDK to the device, please select ‘C5000W ARMV4I Device’ as Pic 3-5.

Page 38: Software Development Environment Setting Instructions for ...aska.com.pl/download/Development Environment... · 4) Start C5000W handheld data terminal, connect it to PC via USB cable

revised on 21st, April 2011

Pic 3-5

3. Please make sure the handheld device is synchronized with PC. Click ‘ ’ or F5 to start prgraming.