casio 数据采集器免费服务热线:400-1166-021CASIODT-X7SeriesQuickStartGuide(Version1.13)CASIOComputerCo.,Ltd.Copyright©2008.Allrightsreserved.
ExternalviewsoftheDT-X7andthededicatedoptionsOptionDT-X7M10EDT-X7M10RDT-X7M10E-CNDT-X7M10R-CNFigure2.19
2.3SoftwareRequiredThefollowingsoftwaretoolsandlibrariesarerequiredinordertodevelopsoftwarefortheDT-X7.Please ensure that you download or purchase the
Microsoft Visual Studio 2005 (not free of charge)Microsoft Visual Studio .NET 2003 (not free of charge)Windows CE Utilities for Visual Studio .NET 200
CASIODT-X7SDKDownload the DT-X7 SDK fromhttp://www2.casio.co.jp/system_en/pa/PADealer/(The site requires your user name and password. Enter your user
3.SettingUptheDevelopmentEnvironment3.1ApplicationDevelopmentThischapterexplainsaboutwhatyouneedtosetupforthedevelopmentenvironmentbeforestarting your
with thedevelopment platform can be started. After application is developed, transfer it to the DeviceEmulator or an actual terminal of the DT-X7 via
CASIO SDK File Description Default folder pathDT-X7_SDK.msiDT-X7ExportSDKC:\ProgramFiles\WindowsCETools\wce500\DT-X7en_DevEmu500.msiDT-X7EmulatorC:\Pr
3.3InstallingCABFiles1.2.3.4.5.
CAB file DescriptionUSBClientDTX7.110.CABUSBclientsupportedbyWindowsMobileDeviceCenterLibrary CAB fileCommonDeviceControllibrary(seenote)en_MoDev.ARMV
3.4eMbeddedVisualC++4.0ExportSDKforDT-X7isrequiredtodevelopapplicationsoftwarewitheMbeddedVisualC++4.0(see note 1). Follow the steps below to install
April2008
3.5VisualStudio2005Installeach‘msi’packageasdescribedinTable3.1.ThiswillinstallallthenecessarySDKandlibrary files on your PC. See Chapter 8. for basic
3.6VisualStudio.NET2003Installeach‘msi’packageasdescribedinTable3.1.ThiswillinstallallthenecessarySDKandlibrary files on your PC. See Chapter 8. for b
4.ConnectingPowerSupplytoHA-F60IO,HA-F62IO4.1HA-F60IOUsethededicatedACadaptor(AD-S42120BE)forsupplyingpowertotheHA-F60IOUSBCradle.Ensure that you conn
4.ConnectaUSBcable(DT-380USB)totheUSBclientportonthebackofthecradle,andthenconnect the other end of the cable to the PC. USB host port is used when co
lights green. Charging the battery pack orcommunication will not proceed if it is not mounted properly.19
4.2HA-F62IOUsethededicatedACadaptor(AD-S42120BE)forsupplyingpowertotheHA-F62IOEthernetCradle. Ensure that you connect the AC adaptor to the cradle bef
4.Beforeusingthecradleports,removethecapsfromtheports.WhenusingaLAN,connectoneend of the LAN cable to the LAN port and the other end to the PC or hub.
lights green. Charging battery pack or communicationwill not proceed if it is not mounted properly.The LAN and USB connections cannot be used concurre
5.ConnectingtheDT-X7toPCTomakeconnectionestablishmentwithPC,useoneofthemethods,dependingontheOSyourPCruns, described below.
22
TableoftheContentsEditorial RecordPrefaceChapter 1.Chapter 2.2.12.22.3Chapter 3.3.13.23.33.43.53.6Chapter 4.4.14.2Chapter 5.5.15.25.2.15.2.25.35.45.55
5.1ActiveSyncConnectionInnearlyallcasesduringdevelopmentworkyouwillbecommunicatingwiththeDT-X7viaanActiveSync connection. There are many ways to conne
5.2.1InstallingActiveSyncfortheFirstTime1.InstallActiveSyncfirst.RuntheActiveSync‘msi’file.Figure5.12.ClickInstallbutton.Figure5.224
3.PausetheinstallationwhenthemenuinFigure5.3isdisplayed;youhavetoinstallthedriveratthis point.Figure5.34.ConnecttheUSBcabletothePCandtheotherendtotheU
8.Then,chooseInstallfromalistorspecificlocation[Advanced]radiobuttoninthemenu.Figure5.59.ClickNext>button.Figure5.626
10.ChooseWindowsCEUSBDevicesicon.Figure5.711.ClickHaveDisk…button.Figure5.812.ClickBrowse…button.Select“wceusbsh.inf”fromthefolderyoucreatedinstep6.Fi
13.Theinstallationofthedriverwillstart.Figure5.1014.ClickContinueAnywaybutton.Figure5.1115.Amenumightbedisplayedtopromptyoutoinstall“wceusbsh.sys”.Thi
16.Nowtheinstallationofthedriverisfinished.Figure5.1217.NowgobacktotheActiveSyncInstallationWizardthatyouleftonthedesktop.ClickNext>button.Figure5.
18.Nowtheconnectionisestablished.Youcanselecteitherpartnershipoptionaccordingtoyourneeds. Then click Next > button.Figure5.1419.Nowtheconnectionisc
cause disconnection of communication.30
5.2.2IfActiveSyncIsAlreadyInstalledThisistheprocedureifActiveSyncisalreadyinstalledonthePC.YoujustneedtoletthePCrecognize the DT-X7 and install the cr
Nopartofthisdocumentmaybeproducedortransmittedinanyformorbyanymeans,electronicor mechanical, for any purpose, without the express written permission o
3.OntheDT-X7,inControlPanel,selectthePCConnectionoption.ConfirmthatPCConnection is set to “USB Default”. If not, select ‘USB Default’ and tap OK butto
5.3USBConnectionviaWindowsMobileDeviceCenterToestablishconnectionviaUSBinterfacewithPCrunsinWindowsVista,useWindowsMobileDevice Center (“WMDC”). The D
Figure5.2233
6.7.TheDT-X7startsupagain.Mount the DT-X7 on the cradle, and then follow a message appeared in the WMDC on the PC.Notes:To resume the factory defaul
5.4ActiveSyncConnectionviaIrDAIfthePChasanIrDAinterface,itispossibletoconnecttheDT-X7tothePCviaIrDAusingActiveSync.Followthestepsbelow:1. Choose PC Co
5.5ActiveSyncConnectionviaEthernetCradleThischapterdescribeshowtoestablishahighspeedLANconnectionontheWLANnon-integratedmodels (DT-X7M10E and DT-X7M10
7.ThefollowingTCP/IPscreenappears.SetalltheparametersinIPAddressandNameServers tabs as required and click OK button.Figure5.258.Iftheconnectionisestab
5.6AccessingSharedNetworkDriveonYourLANAssumingyouhaveavalidnetworkconnectionestablished,youcanaccessshareddrivesonyourPC from the File Explorer on th
38
5.7DirectTCP/IPConnectionfromVisualStudioIfyouhaveanetworkconnectiontotheDT-X7(forexample,viaWLANortheEthernetcradle)then you can establish a direct l
PrefaceThisguideclearlyandconciselysetsouttheinformationdevelopersneedtoknowtogetstartedwiththe CASIO DT-X7 series development. The best methods of co
6.SelectDT-X7DeviceinthelistofDevices:andclickConnectbutton.ThescreeninFigure5.27 if appear indicates the success of connection establishment.Figure5.
Parameter Nothing is set (DHCP) ”Configure IP” is setEnable DHCP orConfigure IP”Enable DHCP” is assumed. ”Configure IP” is set.IPDoesnotdetermineIPadd
Parameter DescriptionSSIDEntertheSSIDofthenetworkyouwanttoconnectto.SecurityDisabNone.WEP Open in Authentication field.WPA PSK in Authentication field
Field / RadioButtonsDescription DefaultAdapter powerOnEnablepowertotheintegratedWLANmodule.YesOffDisablepowertotheintegratedWLANmodule.Power saveEnabl
Field / Radio Buttons Description DefaultWLAN configure/Status displaytoolWLANConfig/NetSearch- Use only CASIO provided WLAN tool.- Configure WLAN set
5.IfOKbuttoninthepopupwarningmessage(seeTable6.7fordescriptionofNetUI/NetUIradiobutton) is clicked, the screen in Figure 6.5 appears. Click OK button
7.eMbeddedVisualC++7.1BuildingaSimpleeVC++4.0TestProgram1.OnthePC,initiateeVC++4.0.2. Navigate to File → New in the File menu.Figure7.13.4.5.6.7.then
46
11.TheprogramwillbebuiltandautomaticallydownloadedtotheDT-X7.Bydefault,theprogramwill be copied to the root folder on the terminal. Run the program to
Library Dynamic Link Import Library Header FileSystemLibrarySystemLib.dllSystemLib.libSystemLib.hScannerLibraryOBReadLib.dllOBReadLib.libOBReadLib.hBl
ManualVersioDate edited PageContent1.01SeptemberallTentativeversion1.10OctoberallOriginalversion1.11 November200716Figures3.1and3.2inChapter3.4arecorr
9.Movetotheline//TODO:Placecodehereandaddthefollowingcode.intresult=SysGet180Rotate();if( result == FALSE ){SysSet180Rotate( TRUE );}else{SysSet180Rot
7.3SampleProgramThefollowingsampleprogramsareincludedintheDT-X7ExportSDK.Table7.2Notes:
Name DescriptionBluetoothLibSampleConnectstoaBluetoothprinterandprintsoutdata.CameraLibSampleTakespicturesanddisplaysthemonthescreen.IMGLibSampleScanb
8.VisualStudio.NET2003andVisualStudio2005
modifications, the solution/project from VisualStudio .NET 2003 is automatically upgraded by Visual Studio 2005. This may result in differentconfigura
Library Dynamic Link LibrarySystemLibrarySystemLibNet.dllScannerLibraryOBReadLibNet.dllBluetoothLibraryBluetoothLibNet.dllCameraLibraryCameraLibNet.dl
6.Intheeventfunctionforthebuttonclick,addthefollowingcode.If(SystemLibNet.Api.SysGet180Rotate()=0)ThenSystemLibNet.Api.SysSet180Rotate(True)ElseSystem
Library Dynamic Link LibrarySystemLibrarySystemLibNet.dllScannerLibraryOBReadLibNet.dllBluetoothLibraryBluetoothLibNet.dllCameraLibraryCameraLibNet.dl
5.Addabuttontoyourform,doubleclickitandaddthefollowingcode:if(SystemLibNet.Api.SysGet180Rotate()==0)SystemLibNet.Api.SysSet180Rotate(true);elseSystemL
8.3UsingCASIOLibrariesfromC++Theintentionofthischapterisjusttocheckthatthedevelopmentenvironmentissetupcorrectly.See Chapter 3.5 for information on ho
1.ProductOverviewTheDT-X7hasbeendesignedusingthenewconceptoftheHuman-centeredDesignProcessesandis capable of performing a wide variety of powerful fun
3.ChooseDT-X7intheInstalledSDKsfieldandclick>button.Figure8.44.Figure8.55.ChooseConsoleApplicationfortheApplicationtypeintheApplicationSettingsmenu
7.AppendthesourcecodebelowinthemainfunctionofDeviceApp.cpp.int result;result = SysGet180Rotate();if(result==FALSE){result = SysSet180Rotate( TRUE );}e
8.4SampleProgramThefollowingsampleprogramsareincludedintheDT-X7ExportSDK.Table8.3Notes:
Program DescriptionBluetoothLibSamplConnectstoaBluetoothprinterandprintsoutdata.CameraLibSampleTakespicturesanddisplaysthemonthescreen.IMGLibSampleSca
9.DeviceEmulatorTheDeviceEmulatorprovidesapplicationdeveloperswithanenvironmentthat,withouthavingthe actual device available, allows them to debug bas
60
Notes:1. The Device Emulator is not necessarily installed if your PC has already a Device Emulatorinstalled for other CASIO handheld terminal.2. The s
9.2StartinguptheDeviceEmulatorAfterinstallingallrequiredsoftwaredescribedinChapter9.1,followthestepsbelowtostartuptheDevice Emulator on your PC.1.2.Fi
62
9.3DebuggingApplicationsThischapterdescribeshowtodebugyourapplicationusingtheDeviceEmulator.Beforestartingto “Build”, establish a connection between t
Model no.LaserScannerLinearImagerBluetoothBluetoothWLAN(IEEE802.11b/g)DT-X7M10UNoYesYesNoNoDT-X7M10EYesNoNoYesNoDT-X7M10RYesNoNoYesYesDT-X7M10E-YesNoN
63
WhenusingVisualStudio20051.2.
64
WhenusingeMbeddedVisualC++4.01. Establish a connection between the Device Emulator and PC via ActiveSync before startingdebugging in eMbedded Visual C
9.4UsingtheDeviceEmulator9.4.1DT-X7DeviceEmulatorTheDT-X7DeviceEmulatoremulatesvariousoperationscarriedoutbytheactualDT-X7deviceon the PC’s screen suc
IndicationDescriptionLED(seeFigure9.10)TheLEDlightsgreenwhenreadingabarcodesuccessfully.VibratorON/OFFTheemulatedDT-X7vibrates.Lowbatterywarning(seeFi
9.4.2I/OSimulatorTheI/OSimulatorsimulatesregistrationofbarcodes,generationoflowbatterywarning,detectionof terminal being mounted on cradle.Registratio
3.4.RegistrationofbarcodeandnoteEnter bar code data in the Barcode field (see Figure 9.14) and a note about the bar code in theNote field if necessary
5.6.EditingregisteredbarcodecontentHighlight a bar code in the list of registered bar codes (see Figure 9.15) and click Edit button.Figure 9.16 appear
DetectionofTerminalinCradle/LowBatteryWarningIf you check the I/O Box and Low Battery boxes in STATE SETTING (see Figure 9.18), thesimulator simulates
-DT-380USB(USBcable)- HA-F95HB (Hand Belt)Note:“-CN” attached at the end of model number denotes that the model is dedicated for the finaldestination
9.4.3ConnectingviaActiveSyncIfdebuggingwiththeDeviceEmulatoriscarriedoutineithereMbeddedVisualC++4.0orVisual Studio 2005, or transmission/reception of
ConnectionviaActiveSyncThe ways to establish connection of the Device Emulator via ActiveSync are ;1.StartuptheDeviceEmulatorbyreferringtoChapter9.2
10.ResourcesMicrosoft’sownhttp://msdn.microsoft.com/mobility/isanextremelycomprehensiveresourceforprogrammers targeting WindowsCE .NET based devices.
Comments to this Manuals