Software Development Guide
description
Transcript of Software Development Guide
September 2008
IT-3100IT-3100
11
Software Development Guide
IT-3100IT-3100
22
Selection of Target Platform
Manage ClientVB.NETC#.NET
Native ClientC++
WebApplication
ClientApplication
SelectionSelection of
Development Language
Selection
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.
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
IT-3100IT-3100
55
Steps of Software Development 1
Visual Studio 2005 (Visual C++)
IT-3100IT-3100
66
Steps of Software Development 2
Visual Studio 2005 (Visual C++)
IT-3100IT-3100
77
Steps of Software Development 3
Visual Studio 2005 (Visual C++)
IT-3100IT-3100
88
Steps of Software Development 4
Visual Studio 2005 (Visual C++)
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.
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
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
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
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.
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
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#
IT-3100IT-3100
1616
Steps of Software Development 2
Select IT-3100 Device.
Start DebuggingVisual Studio 2005
USB
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.
IT-3100IT-3100
1818
Steps of Software Development 4
1. Select Windows CE Device CPU
2. Select ARMV4I
Visual Studio .NET 2003
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
IT-3100IT-3100
2020
Usage of Common Device Control Library
1. Visual C++ 2. VB.NET 3. eVC++ 4.0
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
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.
IT-3100IT-3100
2323
Visual C++ Step 3
Then you should append “SysGetModelName” function sentence like this.
IT-3100IT-3100
2424
Visual C++ Step 4
Header file path setting
Then you should set header file path setting in this “Property Pages”.
IT-3100IT-3100
2525
Visual C++ Step 5
Library file path setting
Then you should set library file path setting in this “Property Pages”.
IT-3100IT-3100
2626
Visual C++ Step 6
Library file path setting
Then you should set library file name in this “Property Pages”.
IT-3100IT-3100
2727
Visual C++ Step 7
Deploying and debugging
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
IT-3100IT-3100
2929
VB.NET Step 2
Add Reference operation
First of all, you should append “SystemLibnet” intoReferences in Solution Explorer.
IT-3100IT-3100
3030
VB.NET Step 3
Coding
Write code which is using system library function
IT-3100IT-3100
3131
VB.NET Step 4
Deploying and debugging
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
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.
IT-3100IT-3100
3434
eVC++ 4.0 Step 3
Then you should append “SysGetModelName” function sentence like this.
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”.
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”.
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”.
IT-3100IT-3100
3838
eVC++ 4.0 Step 7
Deploying and debugging
IT-3100IT-3100
39
Usage of Emulator
1. Visual C++ 2. VB.NET 3. Device control
Bluetooth Mcr Printer Sobr
IT-3100IT-3100
40
Emulator (Visual C++)
To start emulation, run “IT-3100” from Start menu “CASIO Device Emulation”
IT-3100IT-3100
41
Emulator (Visual C++)
Open “Device Emulator Manager” from Visual Studio 2005 menu.
IT-3100IT-3100
42
Emulator (Visual C++)
Select “DMA” in ActiveSync setting.
Select “Cradle” then ActiveSync
connection will be established.
IT-3100IT-3100
43
Emulator (Visual C++)
IT-3100IT-3100
44
Emulator (VB.NET)
To start emulation, run “IT-3100” from Start menu “CASIO Device Emulation”
IT-3100IT-3100
45
Emulator (VB.NET)
Open “Device Emulator Manager” from Visual Studio 2005 menu.
IT-3100IT-3100
46
Emulator (VB.NET)
Select “DMA” in ActiveSync setting.
Select “Cradle” then ActiveSync
connection will be established.
IT-3100IT-3100
47
Emulator (VB.NET)
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.
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.
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.