software development guide

50
September 2008 IT-3100 IT-3100 1 Software Development Guide

Upload: nantai

Post on 13-Jan-2016

40 views

Category:

Documents


0 download

DESCRIPTION

Software Development Guide. 1. Selection of Target Platform. Web Application. Selection of Development Language. Selection. Client Application. Manage Client VB.NET C#.NET. Selection. Native Client C++. 2. Manage and Native. Managed Client - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Software Development Guide

September 2008

IT-3100IT-3100

11

Software Development Guide

Page 2: Software Development Guide

IT-3100IT-3100

22

Selection of Target Platform

Manage ClientVB.NETC#.NET

Native ClientC++

WebApplication

ClientApplication

SelectionSelection of

Development Language

Selection

Page 3: Software Development Guide

IT-3100IT-3100

33

Manage and Native

Manage ClientVisual Studio 2005 orVisual Studio .Net 2003

Language :VB.NET

     C#.NET

Native ClienteMbedded Visual C+

+ 4.0 orVisual Studio 2005Language : C++

Managed Client Executes Managed Code on

Common Language Runtime Can exploit .NET applications and

XML Web service. Can develop application software

by Drag & Drop operation visually.

Can improve productivity by Custom Control.

Native Client Executes Computer Binary Code. Can derive functions and

performance of the devices at most.

Can optimize performance and process speed.

Page 4: Software Development Guide

IT-3100IT-3100

44

Development Tool for Native Client Tools for Application Development

From Microsoft (Software) Visual Studio 2005 & SP1 or eMbedded Visual C++ 4.0 eMbedded Visual C++ 4.0 ServicePack4 ActiveSync 4.2 or later version * Please download tools listed above from Microsoft Home Page.

From CASIO (Software) IT-3100 SDK * Please download from CASIO Business Solution “Support” http://www2.casio.co.jp/system_en/pa/PADealer/

From CASIO (Hardware) IT-3100 HA-B61IO (Bridge Satellite Cradle) USB Cable

Page 5: Software Development Guide

IT-3100IT-3100

55

Steps of Software Development 1

Visual Studio 2005 (Visual C++)

Page 6: Software Development Guide

IT-3100IT-3100

66

Steps of Software Development 2

Visual Studio 2005 (Visual C++)

Page 7: Software Development Guide

IT-3100IT-3100

77

Steps of Software Development 3

Visual Studio 2005 (Visual C++)

Page 8: Software Development Guide

IT-3100IT-3100

88

Steps of Software Development 4

Visual Studio 2005 (Visual C++)

Page 9: Software Development Guide

IT-3100IT-3100

99

Steps of Software Development 5

Note: Before building the program, it is necessary to connect the IT-3100 to the PC by Active Sync. Active Sync can be download from Microsoft Web site.

USB

Visual Studio 2005 (Visual C++)

The application program will be downloaded to the IT-3100 after compiling.If breakpoints are set, the program stops at each point while the IT-3100 is connected as remote connection.

Page 10: Software Development Guide

IT-3100IT-3100

1010

eMbedded Visual C++ 4.0

High speed processing It is expected that an application program which is created by

eVC++ 4.0 will run faster than those created by Visual Basic .NET or C#.NET created by VisualStudio 2005 or VisualStudio .NET2003. The reason is that codes compiled by eVC++4.0 are CPU native codes, on the other hand, codes created by VB or C# are intermediate codes therefore an application program by eVC++40 runs faster than one created by VB or C# theoretically.

Please download Embedded Visual C++4.0 from Microsoft Web site.

http://www.microsoft.com/downloads/details.aspx?FamilyID=1dacdb3d-50d1-41b2-a107-fa75ae960856&displaylang=en

Page 11: Software Development Guide

IT-3100IT-3100

1111

Steps of Software Development 1

Create a new project.Mark the check box of Win32 WCE ARMV4I that is the CPU type of the IT-3100.

Select A typical “Hello World” application.

eMbedded Visual C++ 4.0

Page 12: Software Development Guide

IT-3100IT-3100

1212

Steps of Software Development 2

Set IT-3100 to Target.

Mark the check box on “Use WCE500

Tools”.

A skeleton program will be automatically created. Execute “build” after setting IT-3100 as Target.

eMbedded Visual C++ 4.0

Page 13: Software Development Guide

IT-3100IT-3100

1313

USB

Steps of Software Development 3

Note: Before building the program, it is necessary to connect the IT-3100 to the PC by Active Sync. Active Sync can be download from Microsoft Web site.

eMbedded Visual C++ 4.0

The application program will be downloaded to the IT-3100 after compiling.If breakpoints are set, the program stops at each point while the IT-3100 is connected as remote connection.

Page 14: Software Development Guide

IT-3100IT-3100

1414

Managed Code Development Tool

Required tools for Managed Code development From Microsoft (Software)

Visual Studio 2005 or Visual Studio .NET 2003 .NET Compact Framework 2.0 Service Pack 1 Patch Windows CE Utilities for Visual Studio .NET 2003 ActiveSync4.2 or later

From CASIO (Software) SDK

From CASIO (Hardware) IT-3100 HA-B61IO (Bridge Satellite Cradle) USB Cable

Page 15: Software Development Guide

IT-3100IT-3100

1515

Steps of Software Development 1

Visual Studio 2005

Start up Visual Studio 2005 and create new project, then select VB or VC#

VB

VC#

Page 16: Software Development Guide

IT-3100IT-3100

1616

Steps of Software Development 2

Select IT-3100 Device.

Start DebuggingVisual Studio 2005

USB

Page 17: Software Development Guide

IT-3100IT-3100

1717

Steps of Software Development 3 Download Windows CE Utilities for Visual Studio .NET 2003 from Microsoft

Web site and then install it into the PC. Startup Visual Studio .NET 2003 and then create a new project.

Select Windows CE.

Visual Studio .NET 2003

Select Smart Device Application.

Page 18: Software Development Guide

IT-3100IT-3100

1818

Steps of Software Development 4

1. Select Windows CE Device CPU

2. Select ARMV4I

Visual Studio .NET 2003

Page 19: Software Development Guide

IT-3100IT-3100

1919

Steps of Software Development 5

Note: Before building the program, it is necessary to connect the IT-3100 to the PC by Active Sync. Active Sync can be download from Microsoft Web site.

Visual Studio .NET 2003

Select Windows CE.NET Device

Start Debugging

The application program will be downloaded to the IT-3100 after compiling. If breakpoints are set, the program stops at each point while the IT-3100 is connected as remote connection.

USB

Page 20: Software Development Guide

IT-3100IT-3100

2020

Usage of Common Device Control Library

1. Visual C++ 2. VB.NET 3. eVC++ 4.0

Page 21: Software Development Guide

IT-3100IT-3100

2121

Visual C++ Step 1

Currently we have released the following Common Device Control Library

Lib files Header files CAB filesC:\Program Files\CASIO\MBSys\CABC:\Program Files\CASIO\MBSys\INCLUDEC:\Program Files\CASIO\MBSys\LIB\ARMV4I

Page 22: Software Development Guide

IT-3100IT-3100

2222

Visual C++ Step 2

Try to use “SysGetModelName” function in system library

So, first of all, you should append“#include “SystemLib.h” sentence for using System library.

Page 23: Software Development Guide

IT-3100IT-3100

2323

Visual C++ Step 3

Then you should append “SysGetModelName” function sentence like this.

Page 24: Software Development Guide

IT-3100IT-3100

2424

Visual C++ Step 4

Header file path setting

Then you should set header file path setting in this “Property Pages”.

Page 25: Software Development Guide

IT-3100IT-3100

2525

Visual C++ Step 5

Library file path setting

Then you should set library file path setting in this “Property Pages”.

Page 26: Software Development Guide

IT-3100IT-3100

2626

Visual C++ Step 6

Library file path setting

Then you should set library file name in this “Property Pages”.

Page 27: Software Development Guide

IT-3100IT-3100

2727

Visual C++ Step 7

Deploying and debugging

Page 28: Software Development Guide

IT-3100IT-3100

2828

VB.NET Step 1

Currently we have released the following Common Device Control Class Library

DLL files CAB filesC:\Program Files\CASIO\MBSys\CABC:\Program Files\CASIO\MBSys\WindowsCE

Page 29: Software Development Guide

IT-3100IT-3100

2929

VB.NET Step 2

Add Reference operation

First of all, you should append “SystemLibnet” intoReferences in Solution Explorer.

Page 30: Software Development Guide

IT-3100IT-3100

3030

VB.NET Step 3

Coding

Write code which is using system library function

Page 31: Software Development Guide

IT-3100IT-3100

3131

VB.NET Step 4

Deploying and debugging

Page 32: Software Development Guide

IT-3100IT-3100

3232

eVC++ 4.0 Step 1

Currently we have released the following Common Device Control Library

Lib files Header files CAB filesC:\Program Files\CASIO\MBSys\CABC:\Program Files\CASIO\MBSys\INCLUDEC:\Program Files\CASIO\MBSys\LIB\ARMV4I

Page 33: Software Development Guide

IT-3100IT-3100

3333

eVC++ 4.0 Step 2

Try to use “SysGetModelName” function in system library

So, first of all, you should append“#include “SystemLib.h” sentence for using System library.

Page 34: Software Development Guide

IT-3100IT-3100

3434

eVC++ 4.0 Step 3

Then you should append “SysGetModelName” function sentence like this.

Page 35: Software Development Guide

IT-3100IT-3100

3535

eVC++ 4.0 Step 4

Header file path setting

Then you should set header file path setting in this “Project Settings Pages”.

Page 36: Software Development Guide

IT-3100IT-3100

3636

eVC++ 4.0 Step 5

Library file path setting

Then you should set library file path setting in this “Project Settings Pages”.

Page 37: Software Development Guide

IT-3100IT-3100

3737

eVC++ 4.0 Step 6

Library file path setting

Then you should set library file name in this “Project Settings Pages”.

Page 38: Software Development Guide

IT-3100IT-3100

3838

eVC++ 4.0 Step 7

Deploying and debugging

Page 39: Software Development Guide

IT-3100IT-3100

39

Usage of Emulator

1. Visual C++ 2. VB.NET 3. Device control

Bluetooth Mcr Printer Sobr

Page 40: Software Development Guide

IT-3100IT-3100

40

Emulator (Visual C++)

To start emulation, run “IT-3100” from Start menu “CASIO Device Emulation”

Page 41: Software Development Guide

IT-3100IT-3100

41

Emulator (Visual C++)

Open “Device Emulator Manager” from Visual Studio 2005 menu.

Page 42: Software Development Guide

IT-3100IT-3100

42

Emulator (Visual C++)

Select “DMA” in ActiveSync setting.

Select “Cradle” then ActiveSync

connection will be established.

Page 43: Software Development Guide

IT-3100IT-3100

43

Emulator (Visual C++)

Page 44: Software Development Guide

IT-3100IT-3100

44

Emulator (VB.NET)

To start emulation, run “IT-3100” from Start menu “CASIO Device Emulation”

Page 45: Software Development Guide

IT-3100IT-3100

45

Emulator (VB.NET)

Open “Device Emulator Manager” from Visual Studio 2005 menu.

Page 46: Software Development Guide

IT-3100IT-3100

46

Emulator (VB.NET)

Select “DMA” in ActiveSync setting.

Select “Cradle” then ActiveSync

connection will be established.

Page 47: Software Development Guide

IT-3100IT-3100

47

Emulator (VB.NET)

Page 48: Software Development Guide

IT-3100IT-3100

48

Device control You can control the following devices on this emulator.

Bluetooth, Mcr, Printer, Sobr

When you refer “Storage Card” folder in this emulator,There are some these devices folder.

Page 49: Software Development Guide

IT-3100IT-3100

49

Device control

Bluetooth Mcr Printer Sobr

When you use these device control library on emulator, emulator devices willResponse these setting parameter or data.And when you change these file detail, you can get your expected value.

Page 50: Software Development Guide

IT-3100IT-3100

50

Device control

Example for using print out demo program

If we run such kind of barcode printOut program on emulator, we can getPrint out image as bitmap file.

“PrinterImage.bin” file will be created in“C:\Program Files\Windows CE Tools\wce500\IT-3100\Emulation\Ctrl\Printer”Folder. After that you should execute “makePrnData.bat” file.Then “TEMP.BMP” file will be created in same folder.TEMP.BMP file is print out image file like below.