casio 数据采集器免费服务热线:400-1166-021 CASIO DT-X7 Series Quick Start Guide (Version 1.13) CASIO Computer Co., Ltd. Copyright ©2008. All rights reserved.
April 2008
Table of the Contents Editorial Record Preface Chapter 1. Chapter 2. 2.1 2.2 2.3 Chapter 3. 3.1 3.2 3.3 3.4 3.5 3.6 Chapter 4. 4.1 4.2 Chapter 5. 5.1 5.2 5.2.1 5.2.2 5.3 5.4 5.5 5.6 5.7 Chapter 6. Chapter 7. 7.1 7.2 7.3 Chapter 8. 8.1 8.2 8.3 8.4 Chapter 9. 9.1 9.2 9.3 9.3.1 9.3.2 9.4 9.4.1 9.4.2 9.4.3 Chapter 10.
No part of this document may be produced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of CASIO Computer Co., Ltd. in Tokyo Japan. Information in this document is subject to change without advance notice. CASIO Computer Co., Ltd.
Preface This guide clearly and concisely sets out the information developers need to know to get started with the CASIO DT-X7 series development. The best methods of connecting to your development system are covered and step by step instructions for installing and testing the CASIO SDKs are included. The purpose of this guide is to get you to the point where you can start development; you should refer to the library manuals for detailed information on the specific APIs.
Editorial Record Manua l Versio 1.01 1.10 1.11 1.12 1.13 Date edited Pag September October November 2007 eall all 16 39 10 36 67 December 2007 12 14 April 2008 33 to 55 to 57 56 Content Tentative version Original version Figures 3.1 and 3.2 in Chapter 3.4 are corrected. An explanation about the Visual Studio 2005 is added. The list of software required in Chapter 2.3 is updated. Chapter 5.
1. Product Overview The DT-X7 has been designed using the new concept of the Human-centered Design Processes and is capable of performing a wide variety of powerful functions. The following is a brief overview of the features available on the DT-X7 series handheld terminals. For further detail on the hardware specifications, refer to DT-X7 Series Hardware Manual. Outstanding development environment Microsoft® Windows® CE 5.0 English Version as the built-in OS Visual Studio 2005 Visual Studio .
2. Prerequisites 2.1 Skills Required The following skills are required by developers aiming to develop application software for the DT-X7. Windows programming A good knowledge of one or more of the following - Visual C++ - Visual Basic .NET - Visual C# .NET - Browser based applications (not covered in this guide) The following skills or experience are also desirable. Windows CE devices ActiveSync Some networking experience 2.
- DT-380USB (USB cable) - HA-F95HB (Hand Belt) Note: “-CN” attached at the end of model number denotes that the model is dedicated for the final destination of China. A note about compliance with the Chinese “RoHS” requirement promulgated by the Ministerial Decree No. 39 is included in the carton box; the RoHS compliant seal is affixed on the body and the seal of the packing material recycle marking is affixed on the carton box.
External views of the DT-X7 and the dedicated options Option DT-X7M10E DT-X7M10R DT-X7M10E-CN DT-X7M10R-CN Figure 2.
2.3 Software Required The following software tools and libraries are required in order to develop software for the DT-X7. Please ensure that you download or purchase the correct Microsoft tools as appropriate. C / C++ Download for free from; http://www.microsoft.com/downloads/details.
Microsoft Visual Studio 2005 (not free of charge) Microsoft Visual Studio .NET 2003 (not free of charge) Windows CE Utilities for Visual Studio .NET 2003 Add-on Pack 1.1 From Microsoft web site, see http://www.microsoft.com/downloads/details.aspx?familyid=7ec99ca6-2095-4086-b0cc-7c6c 39b28762&displaylang=en Microsoft ActiveSync 4.2 (or later) Download for free from; http://www.microsoft.com/downloads/details.
CASIO DT-X7 SDK Download the DT-X7 SDK from http://www2.casio.co.jp/system_en/pa/PADealer/ (The site requires your user name and password. Enter your user name and password as issued by CASIO.) DT-X7_SDK.msi - en_DevEmu500.msi - en_MoDev.msi - en_Flink.msi - en_JPEG.msi - en_MoDevSamle.msi - en_FlinkSample.msi - en_JPEGSample.
3. Setting Up the Development Environment 3.1 Application Development This chapter explains about what you need to set up for the development environment before starting your application development. 1. 2. 3. 4. 5.
with the development platform can be started. After application is developed, transfer it to the Device Emulator or an actual terminal of the DT-X7 via ActiveSync or Windows Mobile Device Center for check on the operability. For application development method and transferring your application, refer to “eMbedded Visual C++”, ”Visual Studio .NET 2003 and Visual Studio 2005”.
3.2 Installing CASIO SDK Files Download the CASIO DT-X7 SDK files from the following site and execute each “msi” file listed in Table 3.1 ; http://www2.casio.co.jp/system_en/pa/PADealer/ (The site requires your user name and password. Enter your user name and password as issued by CASIO.) Table 3.1 CASIO SDK File DT-X7_SDK.msi Description DT-X7 Export SDK en_DevEmu500.msi DT-X7 Emulator en_MoDev.msi en_Flink.msi en_JPEG.msi en_MoDevSample.
3.3 Installing CAB Files 1. 2. 3. 4. 5.
Library Common Device Control library (see note) library JPEG FLINK library CAB file en_MoDev.ARMV4I.CAB enJPEG.ARMV4I.CAB en_Flink.ARMV4I.CAB 14 CAB file USBClientDTX7.110.
3.4 eMbedded Visual C++ 4.0 ExportSDK for DT-X7 is required to develop application software with eMbedded Visual C++ 4.0 (see note 1). Follow the steps below to install it. 1. Double click the DT-X7_SDK.msi (see note 2) file and follow the prompts that appear on the screen to install the SDK. 2. When prompted whether you want to install Custom or Complete installation, choose Complete. 3. When the installation is finished, start up eMbedded Visual C++ 4.0. 4.
3.5 Visual Studio 2005 Install each ‘msi’ package as described in Table 3.1. This will install all the necessary SDK and library files on your PC. See Chapter 8. for basic usage instructions for the SDK. Follow the steps in Chapter 5 “Connecting the DT-X7 to the PC” before checking the steps below to confirm that you can connect to the DT-X7 from Visual Studio 2005. 1. Establish connection with the DT-X7 via ActiveSync. 2. Open the application project for VB or C# in Visual Studio 2005. 3.
3.6 Visual Studio .NET 2003 Install each ‘msi’ package as described in Table 3.1. This will install all the necessary SDK and library files on your PC. See Chapter 8. for basic usage instructions for the SDK. Follow the steps in Chapter 5 “Connecting the DT-X7 to the PC” before checking the steps below to confirm that you can connect to the DT-X7 from Visual Studio .NET 2003. Microsoft has released an add-on for Visual Studio .
4. Connecting Power Supply to HA-F60IO, HA-F62IO 4.1 HA-F60IO Use the dedicated AC adaptor (AD-S42120BE) for supplying power to the HA-F60IO USB Cradle. Ensure that you connect the AC adaptor to the cradle before starting communication between the DT-X7 and PC via the cradle. Follow the steps below to connect the power supply to the DT-X7 using the dedicated AC adaptor. 1. Plug the AC adaptor into the AC adaptor jack where “DCIN12V” is printed on the back of the cradle. Figure 4.1 2.
4. Connect a USB cable (DT-380USB) to the USB client port on the back of the cradle, and then connect the other end of the cable to the PC. USB host port is used when connecting the cradle with other USB peripheral devices. Figure 4.4 5. Align the USB cradle mount holes on the back of the DT-X7 with the mount hooks on the cradle after aligning the contacts on the bottom of the DT-X7 with the power contacts of the cradle.
lights green. Charging the battery pack or communication will not proceed if it is not mounted properly.
4.2 HA-F62IO Use the dedicated AC adaptor (AD-S42120BE) for supplying power to the HA-F62IO Ethernet Cradle. Ensure that you connect the AC adaptor to the cradle before starting communication between the DT-X7 and PC via the cradle. Follow the steps below to connect the power supply to the DT-X7 using the dedicated AC adaptor. 1. Plug the AC adaptor into the AC adaptor jack on the back of the Ethernet Cradle. Figure 4.6 2.
4. Before using the cradle ports, remove the caps from the ports. When using a LAN, connect one end of the LAN cable to the LAN port and the other end to the PC or hub. When using a USB connection, connect one end of the USB cable (DT-380USB) to the USB port and the other end to the PC. Figure 4.9 5.
lights green. Charging battery pack or communication will not proceed if it is not mounted properly. The LAN and USB connections cannot be used concurrently. Always cap ports that are not being used. Using the Ethernet Cradle while the ports are uncapped can cause damage.
5. Connecting the DT-X7 to PC To make connection establishment with PC, use one of the methods, depending on the OS your PC runs, described below.
22
5.1 ActiveSync Connection In nearly all cases during development work you will be communicating with the DT-X7 via an ActiveSync connection. There are many ways to connect the DT-X7 to a PC via ActiveSync. 5.2 ActiveSync Connection via USB If you have already installed ActiveSync and connected the DT-X7 to the PC via direct USB, You may skip Chapter 5.2.1. You already have the USB driver and ActiveSync in your development environment. If you do not yet have the cradle driver on your PC, .
5.2.1 Installing ActiveSync for the First Time 1. Install ActiveSync first. Run the ActiveSync ‘msi’ file. Figure 5.1 2. Click Install button. Figure 5.
3. Pause the installation when the menu in Figure 5.3 is displayed; you have to install the driver at this point. Figure 5.3 4. Connect the USB cable to the PC and the other end to the USB Cradle and also the AC adaptor to the USB Cradle. 5. Put the DT-X7 on the cradle and confirm that the green LED on the front of the cradle is lit. If not, be sure the DT-X7 is positioned firmly on the cradle. 6.
8. Then, choose Install from a list or specific location [Advanced] radio button in the menu. Figure 5.5 9. Click Next > button. Figure 5.
10. Choose Windows CE USB Devices icon. Figure 5.7 11. Click Have Disk… button. Figure 5.8 12. Click Browse… button. Select “wceusbsh.inf” from the folder you created in step 6. Figure 5.
13. The installation of the driver will start. Figure 5.10 14. Click Continue Anyway button. Figure 5.11 15. A menu might be displayed to prompt you to install “wceusbsh.sys”. This happens if “wceusbsh.sys” is not in the same folder as “wceusbsh.inf”. Download this file from the CASIO Web Site and follow the prompts to specify the location of “wceusbsh.sys”.
16. Now the installation of the driver is finished. Figure 5.12 17. Now go back to the ActiveSync Installation Wizard that you left on the desktop. Click Next > button. Figure 5.
18. Now the connection is established. You can select either partnership option according to your needs. Then click Next > button. Figure 5.14 19. Now the connection is completed. You can start up eMbedded VC++ or Visual Studio and create a program and deploy it to the DT-X7. Figure 5.
cause disconnection of communication.
5.2.2 If ActiveSync Is Already Installed This is the procedure if ActiveSync is already installed on the PC. You just need to let the PC recognize the DT-X7 and install the cradle driver as in steps 6 to 16 in Chapter 5.2.1. 1. Select File → Connection Settings…. from the menu in ActiveSync. See Figure 5.16. Figure 5.16 2. Check Allow USB connection with this desktop computer. USB is available. Figure 5.
3. On the DT-X7, in Control Panel, select the PC Connection option. Confirm that PC Connection is set to “USB Default”. If not, select ‘USB Default’ and tap OK button. Figure 5.18 4. When the DT-X7 is mounted on the USB Cradle, a menu to prompt to install the driver is displayed. Follow the same steps in Chapter 5.2.1. Figure 5.
5.3 USB Connection via Windows Mobile Device Center To establish connection via USB interface with PC runs in Windows Vista, use Windows Mobile Device Center (“WMDC”). The DT-X7 with the factory-setting (default) does not support the WMDC. Follow the procedure below to change the setting on the DT-X7. Note: Note that the CAB file, USBClientDTX7E.110.CAB, must be installed in the DT-X7 prior to establishing connection with the DT-X7 via Windows Mobile Device Center.
Figure 5.
6. 7. The DT-X7 starts up again. Mount the DT-X7 on the cradle, and then follow a message appeared in the WMDC on the PC. Notes: To resume the factory default setting, choose ActiveSync/LMWIN radio button in Step 3 on the previous page, and start up the DT-X7 again. The WMDC version 6.1 or later will support the connection establishment via USB interface. Any other versions of the WMDC earlier are not interoperable with Windows CE devices.
5.4 ActiveSync Connection via IrDA If the PC has an IrDA interface, it is possible to connect the DT-X7 to the PC via IrDA using ActiveSync. Follow the steps below: 1. Choose PC Connection in the Control Panel on the DT-X7. 2. Set PC Connection to IrDA. 3. Set the COM port used by ActiveSync on the PC to Infrared Port(IR). 4. Place the IrDA port located on the bottom of the DT-X7 facing the IrDA port on the PC. Communication can be established if the distance is between zero and approximately 1 m.
5.5 ActiveSync Connection via Ethernet Cradle This chapter describes how to establish a high speed LAN connection on the WLAN non-integrated models (DT-X7M10E and DT-X7M10U) with HA-F62IO Ethernet cradle via ActiveSync 3.8 (see note) or earlier. Note: Later versions of the Microsoft ActiveSync do not support this connection. Use version 3.8 or earlier to establish the connection. Follow the steps below: 1.
7. The following TCP/IP screen appears. Set all the parameters in IP Address and Name Servers tabs as required and click OK button. Figure 5.25 8. If the connection is established correctly, the icon ( ) in the taskbar changes to ( ). 9. On the PC, make sure that Allow network… checkbox is checked in the ActiveSync setting. 10. On the DT-X7, navigate to Start → Programs → Communication → LAN ActiveSync to initiate the connection.
5.6 Accessing Shared Network Drive on Your LAN Assuming you have a valid network connection established, you can access shared drives on your PC from the File Explorer on the DT-X7. The following shows the steps to initiate this. 1. 2. 3. 4. 5.
38
5.7 Direct TCP/IP Connection from Visual Studio If you have a network connection to the DT-X7 (for example, via WLAN or the Ethernet cradle) then you can establish a direct link to the development PC without using ActiveSync. For Visual Studio .NET 2003 You require the WindowsCE Utilities add-on pack (described in Chapter 3). Refer to the readme file supplied with the add-on pack for details on how to set up the connection. For Visual Studio 2005 1. Download the files listed below to the DT-X7.
6. Select DT-X7 Device in the list of Devices: and click Connect button. The screen in Figure 5.27 if appear indicates the success of connection establishment. Figure 5.
6. Configuring WLAN on the DT-X7 To establish communication between the DT-X7 (DT-X7M10R) and PC via WLAN configuration, follow the steps, 1 to 6, below to set up a WLAN configuration on the DT-X7. After setting up the configuration, be sure to perform a site survey prior to starting communication via WLAN. 1. Navigate to Start → Settings → WLANConfig and then click IP tab. Figure 6.1 Table 6.
2. Click Basic tab. Set each parameter in the tab by referring to the descriptions for the parameters in Tables 6.3 and 6.4 Figure 6.2 Table 6.3 Parameter SSID Securit Disab y WEP WPA Key Description Enter the SSID of the network you want to connect to. None. Open in Authentication field. PSK in Authentication field (if selected, the Key field must be set also.
If EAP-TLS radio button in Authentication field is selected, click the EAP-Properties button that appears when selecting the EAP-TLS radio button to set the following settings. Table 6.5 Parameters in EAP-Properties User name Certificate Description Input a user name in alphanumeric (maximum Select a client certificate installed already (maximum 100 alphanumeric).
4. Click Detail Tab. Figure 6.4 Table 6.7 Field / Radio Buttons WLAN configure WLANConfig / / Status display NetSearch tool WLANConfig / NetUI NetUI / NetUI Description - Use only CASIO provided WLAN tool. - Configure WLAN setting with settings extracted from the ini file. - Initiate NetSearch when tapping the icon in - Use both CASIO provided WLAN tool and MS tool. - Configure WLAN setting with settings extracted from the ini file. - Initiate NetUI (MS tool) when tapping -the Use only the MS tool.
5. If OK button in the popup warning message (see Table 6.7 for description of NetUI/NetUI radio button) is clicked, the screen in Figure 6.5 appears. Click OK button to perform a reset on the terminal so that the setting becomes effective. Figure 6.5 6. Check to make sure that the connection has been established using the NetSearch utility, and then navigating to the Ping function in there. Enter HostName first and then click Ping to check that you are connected to the network correctly.
7. eMbedded Visual C++ 7.1 Building a Simple eVC++ 4.0 Test Program 1. On the PC, initiate eVC++ 4.0. 2. Navigate to File → New in the File menu. Figure 7.1 3. 4. 5. 6. 7. then click OK button. 8. Below the toolbar you will see a line of pull-down menu lists. Look for the one that indicates the target devices available to you and select DT-X7 in the list. The right most pull-down menu list will change to DT-X7 Device. Figure 7.2 9.
46
11. The program will be built and automatically downloaded to the DT-X7. By default, the program will be copied to the root folder on the terminal. Run the program to check that the process was successful. Note that for this basic example you will need to use the mouse emulator to close the application on the device. You are now ready to begin development work with the DT-X7. The full operation of eVC++ 4.0 and the use of features such as remote debugging are beyond the scope of this guide.
7.2 Using CASIO Libraries from eVC++ 4.0 The following libraries (“Common Device Control Library”) are provided for C++ developers. Table 7.1 Library System Library Scanner Library Bluetooth Camera Library Printer Library Imager Library Dynamic Link SystemLib.dll OBReadLib.dll BluetoothLib.dll CameraLib.dll PrinterLib.dll ImagerLib.dll Import Library SystemLib.lib OBReadLib.lib BluetoothLib.lib CameraLib.lib PrinterLib.lib ImagerLib.lib Header File SystemLib.h OBReadLib.h BluetoothLib.h CameraLib.
9. Move to the line // TO DO: Place code here and add the following code. int result = SysGet180Rotate(); if( result == FALSE ) { SysSet180Rotate( TRUE ); } else { SysSet180Rotate( FALSE ); } 10. On the Project menu, navigate Add To Project → Files… 11. Change Files of type: pull-down menu list to Library files (.lib). 12. Navigate to the folder where the CASIO library files are stored (see step no. 2 in the previous page), highlight SystemLib file and click OK button. 13.
7.3 Sample Program The following sample programs are included in the DT-X7 Export SDK. Table 7.
50 Name BluetoothLibSample CameraLibSample IMGLibSample IMGLibSample2 JpegSample OBRLibSample PrnLibSample SystemLibSample FlinkLibSample Description Connects to a Bluetooth printer and prints out data. Takes pictures and displays them on the screen. Scan barcodes using the imager with settings set by Imager setting file. Program of IMGDemo.
8. Visual Studio .
modifications, the solution/project from Visual Studio .NET 2003 is automatically upgraded by Visual Studio 2005. This may result in different configuration of the output folder according to the parameter settings for the project file. Please take care when using Visual Studio 2005 to upgrade an existing application and always keep a backup of your existing project.
8.1 Using CASIO .NET Libraries from VB The intention of this chapter is just to check that the development environment is set up correctly. See Chapter 3.5 for information on how to set up a connection between the DT-X7 and Visual Studio. The following wrapper class library files that allow VB applications to access the Casio library (“Common Device Control Class Library”) functions are provided. Table 8.
6. In the event function for the button click, add the following code. If (SystemLibNet.Api.SysGet180Rotate() = 0 ) Then SystemLibNet.Api.SysSet180Rotate(True) Else SystemLibNet.Api.SysSet180Rotate(False) End If Note: If you type this code manually you should see the IntelliSense offer you suitable options as appropriate. If you do not, make sure you review steps 1 to 5 to make sure you have added the reference correctly. 7. Initiate ActiveSync to establish connection between the DT-X7 and PC. 8.
8.2 Using CASIO .NET Libraries from C# The intention of this chapter is just to check that the development environment is set up correctly. See Chapter 3.5 for information on how to set up a connection between the DT-X7 and Visual Studio. The following wrapper class library files that allow C# applications to access the CASIO library (“Common Device Control Class Library”) functions are provided. Table 8.
5. Add a button to your form, double click it and add the following code: if( SystemLibNet.Api.SysGet180Rotate() == 0 ) SystemLibNet.Api.SysSet180Rotate(true); else SystemLibNet.Api.SysSet180Rotate(false); Note: If you add this code manually you should see the IntelliSense offer you suitable options as appropriate. If you do not see this, then review steps 2 to 4 in the previous page to make sure you have not made a mistake. 6. Initiate ActiveSync to establish connection between the DT-X7 and PC. 7.
8.3 Using CASIO Libraries from C++ The intention of this chapter is just to check that the development environment is set up correctly. See Chapter 3.5 for information on how to set up a connection between the DT-X7 and Visual Studio. You must install Visual Studio 2005 Service Pack 1 from Microsoft. The following shows how to create and start up a simple test program using one of the System functions. The screen flips 180° when the program is carried out.
3. Choose DT-X7 in the Installed SDKs field and click > button. Figure 8.4 4. Figure 8.5 5. Choose Console Application for the Application type in the Application Settings menu, and click Finish button. 6. In Solution Explorer, click DeviceApp.cpp and then append the source code below subsequent to “#include ”. #include
7. Append the source code below in the main function of DeviceApp.cpp. int result; result = SysGet180Rotate(); if( result == FALSE ){ result = SysSet180Rotate( TRUE ); } else{ result = SysSet180Rotate( FALSE ); } 8. Choose Properties in the Project of Visual Studio 2005, and navigate to Configuration Properties → Linker → Input → Additional Dependencies and then append SystemLib.lib (see red circle). Figure 8.6 9. Choose DT-X7 Device for the Target Device to establish connection with the PC. 10.
8.4 Sample Program The following sample programs are included in the DT-X7 Export SDK. Table 8.
Program BluetoothLibSampl CameraLibSample IMGLibSample IMGLibSample2 JpegSample59 OBRLibSample PrnLibSample SystemLibSample FlinkLibSample Description Connects to a Bluetooth printer and prints out data. Takes pictures and displays them on the screen. Scan barcodes using the imager with settings set by Imager setting file. Program of IMGDemo.
9. Device Emulator The Device Emulator provides application developers with an environment that, without having the actual device available, allows them to debug basic functions and performance of an application at source level by stepping through the code. 9.1 Software Required The Device Emulator requires the software(s) listed below before installing the emulator. Install each required component by following the installation order (numbered in numeric) and then finally install the Device Emulator.
60
Notes: 1. The Device Emulator is not necessarily installed if your PC has already a Device Emulator installed for other CASIO handheld terminal. 2. The software is not required if your PC already has Visual Studio 2005 installed. 3. If the audio device in “Sound, video and game controllers *” in Device Manager on your PC has been disabled, the Device Emulator does not start up correctly. Ensure that you enable it before starting up the Device Emulator. * : The device category name is dependent on the OS.
9.2 Starting up the Device Emulator After installing all required software described in Chapter 9.1, follow the steps below to start up the Device Emulator on your PC. 1. 2. Figure 9.1 Terminology of Emulator and Simulator; The Emulator described in this reference manual is a software application that behaves in a very similar way to the actual device by imitating individual hardware components or protocols present in the actual hardware.
62
9.3 Debugging Applications This chapter describes how to debug your application using the Device Emulator. Before starting to “Build”, establish a connection between the DT-X7 and your PC via ActiveSync by referring to Chapter 9.4 “Using the Device Emulator”. For the basic order of developing an application, refer to Chapters 7. “eMbedded Visual C++” and 8. “Visual Studio .NET 2003 and Visual Studio 2005”. 9.3.
63
When using Visual Studio 2005 1 . 2 .
64
When using eMbedded Visual C++ 4.0 1. Establish a connection between the Device Emulator and PC via ActiveSync before starting debugging in eMbedded Visual C++ 4.0. For establishing connection via ActiveSync, refer to Chapter 9.4.3 “Connecting via ActiveSync”. 2. Navigate to Build in the menu bar → Start Debug → Go to start up debugging. Figure 9.7 3. Similar to ordinary debugging operations with an actual DT-X7, the Device Emulator allows break point setting (circled in red in Figure 9.
9.4 Using the Device Emulator 9.4.1 DT-X7 Device Emulator The DT-X7 Device Emulator emulates various operations carried out by the actual DT-X7 device on the PC’s screen such as mouse operation, input on PC’s keyboard, displaying execution of applications, and operations by actual devices such as the scanner. Figure 9.9 shows an emulated DT-X7 device on the screen of a PC. Figure 9.9 Key Input The emulator offers key input capability similar to that of the actual DT-X7 device.
Indications The emulator offers a variety of indications on the screen (see Figures 9.10 and 9.11) for events using the emulated components. Table 9.1 Indication LED (see Figure 9.10) Vibrator ON/OFF Low battery warning (see Figure 9.11) Pressing down Trigger key (see Figure 9.10) Figure 9.10 Description The LED lights green when reading a bar code successfully. The emulated DT-X7 vibrates. The low battery icon appears for low battery warning.
9.4.2 I/O Simulator The I/O Simulator simulates registration of bar codes, generation of low battery warning, detection of terminal being mounted on cradle. Registration of bar code symbologies 1. Click ADD button (circled in red in Figure 9.12) to go into the bar code registration mode. Figure 9.12 2. Select a bar code symbology in the Code Type pull-down menu that you wish to register in the I/O Simulator. Figure 9.
3 . Registration of bar code and note Enter bar code data in the Barcode field (see Figure 9.14) and a note about the bar code in the Note field if necessary. Click OK button to complete the bar code registration. Figure 9.14 4 . Completion of registration After completion of the bar codes registration, the screen in Figure 9.15 shows a list of bar codes that have been registered in the I/O Simulator.
5 . Editing registered bar code content Highlight a bar code in the list of registered bar codes (see Figure 9.15) and click Edit button. Figure 9.16 appears for editing the bar code and its information. Figure 9.16 6 . Deleting registered bar code content Highlight a bar code in the list of registered bar codes (see Figure 9.15) and click the Del button. Dialogue screen in Figure 9.17 appears for you to confirm the deletion. If it is okay to delete, click Yes button, otherwise click No button.
Detection of Terminal in Cradle / Low Battery Warning If you check the I/O Box and Low Battery boxes in STATE SETTING (see Figure 9.18), the simulator simulates the respective events in the emulator. Figure 9.18 I/O Box If this box is checked, a notification is issued that the connection between the DT-X7 Device Emulator and cradle has been established. This notification can be utilized by the application. Low Battery If this box is checked, a notification that a low battery state has occurred is raised.
9.4.3 Connecting via ActiveSync If debugging with the Device Emulator is carried out in either eMbedded Visual C++ 4.0 or Visual Studio 2005, or transmission/reception of a file with the Device Emulator is carried out, ActiveSync must be used. Setting ActiveSync 1. Start up ActiveSync and then navigate to File → Connection Settings …. Figure 9.19 2. In Connection Settings screen, check in the Allow connections to one of the following box and select DMA in the pull-down menu. See Figure 9.20. Figure 9.
Connection via ActiveSync The ways to establish connection of the Device Emulator via ActiveSync are ; 1. Start up the Device Emulator by referring to Chapter 9.2 “Starting up the Device Emulator”. 2. Start up Visual Studio 2005, and then navigate to Tools → Device Emulator Manager. If Visual Studio 2005 is not available, start up the Standalone Device Emulator 1.0. C:\Program Files\Microsoft Device Emulator\1.0\dvcemumanager.exe 3.
74 10. Resources Microsoft’s own http://msdn.microsoft.com/mobility/ is an extremely comprehensive resource for programmers targeting WindowsCE .NET based devices. It includes links to most other useful web based resources. You will find detailed Software, Library and .NET Library manuals on http://world.casio.com/system/pa.