background image

 

 

75

 

5.

 

In the event function for the button click, add the following code. 

 

Dim result As Int32 

Dim msg As String 

 

result = Calib.SystemLibNet.Api.SysSetLED( _ 

            Calib.SystemLibNet.Def.LED_RED,  5,  8,  8) 

 

'.NET vales of “true” and “false” are “-1” and “0” respectively. 

If result = -1 Then 

    result  =  Calib.SystemLibNet.Api.SysGetLED() 

    Select  Case  (result  And  &HF) 

        Case  Calib.SystemLibNet.Def.LED_OFF 

            msg  =  "LED_OFF" 

        Case  Calib.SystemLibNet.Def.LED_RED 

            msg  =  "LED_RED" 

        Case  Calib.SystemLibNet.Def.LED_GREEN 

            msg  =  "LED_GREEN" 

        Case  Calib.SystemLibNet.Def.LED_ORANGE 

            msg  =  "LED_ORANGE" 

        Case  Else 

            msg  =  "LED_UNKNOWN" 

    End  Select 

    MessageBox.Show(msg,  "LED") 

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. 

 

6.

 

Initiate 

ActiveSync

 to establish connection between the DT-X11 and PC. 

7.

 

Choose 

Deploy <name of project>

 on 

Build

 menu. 

8.

 

The project will be built and copied to the DT-X11. By default, it will be copied to 

\Program 

Files\<name of project>

 folder. 

SystemLibNet.dll

 will be deployed to the same folder. 

9.

 

Check that the program works correctly on the DT-X11. 

 
You can also use the CASIO samples as described in Chapter 1.4. 

Содержание DT-X11M10E

Страница 1: ...DT X11 Series Quick Start Guide Version 1 03 CASIO Computer Co Ltd Copyright 2009 All rights reserved January 2009...

Страница 2: ...rough Bridge Satellite Cradle via RS 232C 39 5 3 Connection via Windows Mobile Device Center 41 5 4 Connection via WLAN 43 5 5 Connection via Bluetooth 45 5 6 Connection via Ethernet PC Card 47 5 7 Ac...

Страница 3: ...tronic 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 Compu...

Страница 4: ...C Project with Visual Studio is added 61 Chapter 7 4 Sample Program is added 1 01 January2008 62 to 75 Chapter8 Device Emulator isadded 58 In Chapter 7 3 the explanation on page 58 is updated 1 02 Apr...

Страница 5: ...velopment Every method of connecting to your development system is covered and step by step instructions for installing and testing the CASIO SDKs are included The purpose of this guide is to get you...

Страница 6: ...EAN8 JAN8 EAN13 JAN12 UPC A UPC E Code39 Codabar NW7 Interleaved 2of5 ITF Code93 Code128 EAN128 MSI Plessey IATA Code11 RSS 14 RSS Limited RSS Expanded ISBT Readable 2D Stacked symbologies Code49 PDF4...

Страница 7: ...nding on the surrounding conditions Output power Maximum 3dBm PowerClass 2 Serial interface Standard USB Slave Mini B 5 Pin Baud rate Full speed 12 Mbps Audio Earphone jack 2 5mm 3 pole Supports heads...

Страница 8: ...l when the battery is fully charged Battery pack is being installed At room temperature Buzzer Sound pressure 70dB minimum Notes 1 A font that can be used to print characters of any size 2 Concurrent...

Страница 9: ...d to handle and manipulate JPEG image functions Yes FLINK Library Library that is used to control and carry out transmission reception of files between PC and other device Yes Yes Note The abbreviatio...

Страница 10: ...sin detail for all the software integrated in DT X11 series handheld terminal SystemLibrary Manual Reference manual that describes individual functionsin detail for SystemLibrary Laser Scanner Library...

Страница 11: ...sset with the configuration file IMGLIBSAMPLE2 Programof IMGDemo exe OBRLIBSAMPLE Reads a bar code using the Laser library PRNLIBSAMPLE Prints out data on the built in printer See note SYSTEMLIBSAMPLE...

Страница 12: ...software for the DT X11 Windows programming A good knowledge of one or more of the following Visual C Visual Basic NET Visual C Active Server Pages and web programming not covered in detail in this g...

Страница 13: ...nit DT 167CHGE Car Mounted Battery Charger DT 827CAC Car Power Cable DT 5022CHG Dual Battery Charger AD S45150AU AC Adaptor with input capability of AC100V to 230V and US power cord See note 1 AD S451...

Страница 14: ...uary 2008 and was replaced with the successor model AD S60160BE and AD S60160BU 2 The AC adaptor AD S42120AE phased out current as of February 2008 and was replaced with the successor model AD S42120B...

Страница 15: ...1 and the options Figure 2 1 Laser Scanner models DT X11M10E DT X11M10RC DT X11M10E CN DT X11M10RC CN C MOS Imager models DT X11M30E DT X11M30U DT X11M30RC DT X11M30E CN DT X11M30RC CN The model is av...

Страница 16: ...16 Figure 2 2 Figure 2 3...

Страница 17: ...4cac a682 58d 3233efb4c DisplayLang en Microsoft Windows Mobile Device Center 6 1 for Windows Vista Download for free from http www microsoft com downloads details aspx familyid 46F72DF1 E46A 4A5F A7...

Страница 18: ...via Windows Mobile Device Center for Windows Vista For connection method refer to Chapter 5 Connecting the DT X11 to PC 4 Setting Up the Development Environment Copy all necessary CASIO libraries to...

Страница 19: ...ur PC uninstall it before installing Ver 2 xx If any file of the version is remained in the following folders after uninstalling delete it manually C Program Files CASIO MBSYS C Program Files Windows...

Страница 20: ...d into the CD ROM drive of your PC the following screen appears automatically Figure 3 1 2 Click Installation List in Figure 3 1 The installation screen appears Figure 3 2 3 Click DT X11 ExportSDK to...

Страница 21: ...Online Help Besides the Help file described above the Online Help is also available for the below development platforms The installation of the Online Help is initiated in the Installation List for e...

Страница 22: ...jack on the back of the cradle Figure 4 1 2 Next plug the AC adaptor into a power outlet on wall Figure 4 2 3 After making sure that the Bridge Satellite Cradle and your PC are both turned off remove...

Страница 23: ...2 right side LED on the DT X11 lights up in red When charging has been completed it changes its color from red to green Notes A high sensitivity communication element is used for IR communication In o...

Страница 24: ...P switches You can change the ON OFF settings of the DIP switches to set the configuration Please set after switching OFF the power Figure 4 3 Note Other DIP switch settings are used for testing and i...

Страница 25: ...Windows XP The ActiveSync can be downloaded at the URL below http www microsoft com downloads details aspx FamilyID 7269173a 28bf 4cac a682 58d32 33efb4c DisplayLang en Windows Mobile Device Center fo...

Страница 26: ...u have a PC with a PC Card slot you can easily copy files to the card and transfer them to the DT X11 Similarly if your PC has a Compact Flash slot you can use the DT X11 s PCMCIA slot with a CF card...

Страница 27: ...ion There are many ways to connect the DT X11 to PC via ActiveSync Table 5 1 Install to your PC Connection ActiveSync Direct USB driver IrExpress USB driver IrExpress Serial driver Direct IrDA Yes Dir...

Страница 28: ...e PC via IrDA port using ActiveSync Install ActiveSync to Your PC If you have already installed ActiveSync 3 8 you may skip the steps 1 to 3 below 1 First of all install ActiveSync Initiate the MSI fi...

Страница 29: ...29 3 Hold the installation process when the menu in Figure 5 3 appears Go to the next procedure Establish Connection with Your PC in the next page Figure 5 3...

Страница 30: ...n the PC make sure Allow serial cable or infrared connection to this COM port has been set effect and Infrared Port IR is chosen in the pull down menu box see Figure 5 5 Figure 5 5 4 Place the IrDA po...

Страница 31: ...t button in Figure 5 6 Figure 5 6 2 Now the connection is established You can choose either one of the radio buttons see Figure 5 7 according to your need Then click Next button Figure 5 7 3 Now estab...

Страница 32: ...all USB Driver to Your PC 1 Connect a mini USB cable to the port on the DT X11 and connect the other end of the cable to a USB port on your PC When the DT X11 is connected for the first time a dialog...

Страница 33: ...33 5 Click Next button Figure 5 11 6 Choose Windows CE USB Devices icon see Figure 5 12 Figure 5 12 7 Click Have Disk button see Figure 5 13 Figure 5 13...

Страница 34: ...igure 5 14 9 Then installing the driver will start Figure 5 15 10 Click Continue Anyway button A menu may prompt you to install the wceusbsh sys file This happens if it is not in the same folder in wh...

Страница 35: ...35 11 Now installing the driver is completed Figure 5 17...

Страница 36: ...in the window in Figure 5 18 Tap OK button twice Figure 5 18 3 On the PC make sure Allow USB connection with this desktop computer has been set enabled see Figure 5 19 Figure 5 19 4 From Start menu n...

Страница 37: ...r PC If you have already installed ActiveSync 3 8 you may skip this step For detailed explanation on installing ActiveSync see the procedure Install ActiveSync to Your PC in Chapter 5 2 1 Via Direct I...

Страница 38: ...and then on again so that the settings take effect 2 Insert the client end of the USB cable into the USB port on the Bridge Satellite Cradle 3 Insert the host end of the USB cable into a USB port on...

Страница 39: ...to Your PC If you have already installed ActiveSync 3 8 you may skip this step For detailed explanation on installing ActiveSync see the procedure Install ActiveSync to Your PC in Chapter 5 2 1 Via Di...

Страница 40: ...Serial port on the Bridge Satellite Cradle 3 Plug the other end of the RS 232C cable DT 887AXA into the correct COM port on your PC 4 In order to set which COM port the IrXpress driver uses on your P...

Страница 41: ...DTX11 110 CAB must be installed in the DT X11 prior to establishing connection with the DT X11 via Windows Mobile Device Center For installation method refer to Chapter 6 1 Installing CAB Files Proced...

Страница 42: ...PC Notes To resume the factory default setting choose ActiveSync LMWIN radio button in Step 4 on the previous page and start up the DT X11 again The WMDC version 6 1 or later will support the connecti...

Страница 43: ...rDA or Direct USB or via Bridge Satellite Cradle Set up WLAN Connection on the DT X11 1 Initiate NetSearch tool by navigating to Programs Communication NetSearch Figure 5 29 displays a list of WLAN st...

Страница 44: ...p computer has been set enabled see Figure 5 33 Figure 5 33 2 On the DT X11 navigate to Start Programs Communication LAN ActiveSync to initiate the connection 3 Ensure that Network Connection is the n...

Страница 45: ...uetooth devices should appear Identify the PC amongst these and double tap its icon in the list 3 A list of available services for the PC will appear Bluetooth Serial Port should be among them the exa...

Страница 46: ...nnection will then be launched as soon as you start the Bluetooth connection utility Figure 5 35 11 To disconnect the ActiveSync session it is best to double tap the connection icon in the Taskbar and...

Страница 47: ...tion Highlight this and choose Properties from the Connection menu 4 Configure the settings suitably for your network 5 On the Name Servers tab you should enter the IP address of your PC on the Primar...

Страница 48: ...ollowing shows the steps to initiate 1 Configure a network connection on the DT X11 2 Double tap My Computer 3 Type xxxx where xxxx is the network name of the PC 4 A network logon dialog box will appe...

Страница 49: ...X11 for example via WLAN then you can use the Windows CE Utilities add on pack described in Chapter 3 to establish a direct link to the development PC Refer to the readme file supplied with the add on...

Страница 50: ...preinstalled in the DT X11 and in the Device Emulator Thus it is not necessary to install it unless it has been updated or changed 2 The CAB file en_Flink ARMV4I CAB in the table does not operate for...

Страница 51: ...you now have a new SDK and once you select that new SDK a new target device DT X11 in the comb box menu in the Toolbar Also if you use any of the Remote Tools in eVC then you will find DT X11 is list...

Страница 52: ...11 via ActiveSync 2 Open the application project for VB NET or C in Visual Studio 2005 3 Click the button in square box drawn by red line see Figure 6 2 to make sure that Visual Studio 2005 has recogn...

Страница 53: ...indows CE Utilities for Visual Studio NET 2003 Add on Pack 1 1 from the site described in Chapter 2 3 Software Required 2 Establish connection via ActiveSync between the DT X11 and PC using any of the...

Страница 54: ...a later version If required http www microsoft com downloads details aspx FamilyID 7269173a 28bf 4cac a682 58d32 33efb4c DisplayLang en Standalone Device Emulator 3 0 If required See notes 1 and 2 ht...

Страница 55: ...e change C Program Files Windows CE Tools wce500 DT X11 Emulation DT X11 cdes Before you change the default parameter in the file is described as follows module DevEmu500 exe Change the parameter to t...

Страница 56: ...his 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 On the ot...

Страница 57: ...capability similar to that of the actual DT X11 device For instance a key on the emulated keyboard of DT X11 on the screen see Figure 7 3 can be clicked with the PC mouse as well as key input made di...

Страница 58: ...eing mounted on cradle Registration of bar code symbologies 1 Registration Click either ADD1D or ADD2D button circled in red in Figure 7 4 to go into the bar code registration mode Figure 7 4 2 Bar co...

Страница 59: ...k OK button to complete the bar code registration Figure 7 6 4 Completion of registration After completion of the bar codes registration the screen in Figure 7 7 shows a list of bar codes that have be...

Страница 60: ...appears for editing the bar code and its information Figure 7 8 6 Deleting registered bar code content Highlight a bar code in the list of registered bar codes see Figure 7 7 and click Del button Dia...

Страница 61: ...is checked a notification is issued that the connection between the DT X11 Device Emulator and cradle has been established This notification can be utilized by the application Low Battery If this box...

Страница 62: ...e DT X11 Device Emulator LED When the DT X11 Device Emulator turns on the LED the LED icon LED2 in the I O Simulator also turns on See Figure 7 11 Vibration When the DT X11 Device Emulator vibrates th...

Страница 63: ...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 7...

Страница 64: ...ice Emulator by referring to Chapter 7 2 Starting Up the Device Emulator 2 Start up Visual Studio 2008 or Visual Studio 2005 and then navigate to Tools Device Emulator Manager If Visual Studio 2008 or...

Страница 65: ...65 4 Make sure ActiveSync has started up and the icon in the status bar appears in Figure 7 15 The icon indicates that the connection via ActiveSync has been established Figure 7 15 Figure 7 16...

Страница 66: ...isual Studio 2005 and DT X11 Emulator in the target device pull down menu See Figure 7 17 Figure 7 17 When using eMbedded Visual C 4 0 Choose DT X11 in the Active WCE Configuration in the pull down me...

Страница 67: ...to Debug menu Start Debugging to start up the debugger Figure 7 19 2 Similar to ordinary debugging operations with an actual DT X11 the Device Emulator allows break point setting circled in red in Fig...

Страница 68: ...ablishing connection via ActiveSync refer to Chapter 7 3 3 Connecting via ActiveSync 2 Navigate to Build in the menu bar Start Debug Go to start up debugging Figure 7 21 3 Similar to ordinary debuggin...

Страница 69: ...led You can also set Win32 WCE emulator and Win32 WCE x86 enabled 7 In the next dialog leave A typical Hello World application checked Click Finish button and then click OK button 8 Below the Toolbar...

Страница 70: ...program will be copied to the root folder on the terminal Run the program to check that the process was successful You are now ready to begin development work with the DT X11 The full operation of eV...

Страница 71: ...he ARMV4I option is checked Click Next button 5 On the next dialog click A simple Windows CE application option Click Finish button and then click OK button 6 Make sure the DT X11 is the selected SDK...

Страница 72: ...now be able to use the CASIO System Library in your C applications See the Common Device Control Library manual for full detail of all the functions You can also use the CASIO samples as described in...

Страница 73: ...Studio NET 2003 but not with the CASIO dedicated libraries will run on the DT X11 Application developed with any functions of CASIO dedicated library must be rewritten by replacing the dedicated funct...

Страница 74: ...test program using one of the System functions The test program flashes the LED in red for 5 seconds 1 Create a new VB NET Smart Device Application in Visual Studio NET 2 Click Add Reference from Proj...

Страница 75: ...NGE msg LED_ORANGE Case Else msg LED_UNKNOWN End Select MessageBox Show msg LED End If Note If you type this code manually you should see the IntelliSense offer you suitable options as appropriate If...

Страница 76: ...st program using one of the System functions The test program flashes the LED in red for 5 seconds 1 Create a new C Smart Device Application in Visual Studio NET 2 Click Add Reference from Project men...

Страница 77: ...break default msg LED_UNKNOWN break MessageBox Show msg LED 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 re...

Страница 78: ...vice Pack 1 from Microsoft Before following the steps below you will need to add the paths for the CASIO header and library files to Visual Studio 2008 or Visual Studio 2005 Choose Tools Options Proje...

Страница 79: ...ted SDKs field Figure 9 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 add the sou...

Страница 80: ...switch result 0x0000000F case LED_OFF wcscpy_s msg _countof msg TEXT LED_OFF break case LED_RED wcscpy_s msg _countof msg TEXT LED_RED break case LED_GREEN wcscpy_s msg _countof msg TEXT LED_GREEN br...

Страница 81: ...hoose DT X11 Device for the Target Device to establish connection with the PC 10 Choose Debug in Visual Studio 2008 or Visual Studio 2005 and then click either Start Debugging or Start Without Debuggi...

Страница 82: ...lity is an extremely comprehensive resource for programmers targeting Windows CE NET based devices It includes links to most other useful web based resources You will find detailed Software Library an...

Страница 83: ...nsport Note that once you have successfully connected you can use the Save as option to rename the connection type to DT X11 this makes it clearer which device you are deploying to in future Follow th...

Отзывы: