background image

 

5. Add a button to your form, rename it LED and double click it and then add the following code: 

Int32 result = new Int32(); 
string msg; 

result = SystemLibNet.Api.SysSetLED(SystemLibNet.Def.LED_RED, 5, 
8, 8); 

// .Net values “true” and “false” are “-1” and “0” respectively. 
if(result == -1) 
{

    result = SystemLibNet.Api.SysGetLED(); 
    switch(result & 0x0000000F)  
    { 

        case SystemLibNet.Def.LED_OFF: 
            msg = "LED_OFF"; 
            break; 

        case SystemLibNet.Def.LED_RED: 
            msg = "LED_RED"; 
            break; 

        case SystemLibNet.Def.LED_GREEN: 
            msg = "LED_GREEN"; 
            break; 

        case SystemLibNet.Def.LED_ORANGE: 
            msg = "LED_ORANGE"; 
            break; 

        case SystemLibNet.Def.LED_BLUE: 
            msg = "LED_BLUE"; 
            break; 

        case SystemLibNet.Def.LED_CYAN: 
            msg = "LED_CYAN"; 
            break; 

        case SystemLibNet.Def.LED_MAGENTA: 
            msg = "LED_MAGENTA"; 
            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 review steps 2 to 4 in the previous page to make sure you 
have not made a mistake. 

67

Содержание DT-X30 R-50

Страница 1: ...CASIO DT X8 Series Quick Start Guide Version 1 04 CASIO Computer Co Ltd Copyright 2011 All rights reserved September 2011...

Страница 2: ...First Time 22 5 1 2 If ActiveSync Is Already Installed 29 5 2 USB Connection via Windows Mobile Device Center 31 5 3 Connection via WLAN 33 5 4 Connection via Ethernet Cradle 38 5 5 Accessing Shared N...

Страница 3: ...uter Co Ltd in Tokyo Japan Information in this document is subject to change without advance notice CASIO Computer Co Ltd makes no representations or warranties with respect to the contents or use of...

Страница 4: ...is deleted 66 In Chapter 8 3 description about sample is deleted 1 01 February 2011 10 In Chapter 2 2 HA F21LBAT A option is deleted 1 02 March 2011 6 OS description name is updated 1 03 July 2011 13...

Страница 5: ...ated Windows Embedded CE OS development The best methods of connecting to your development system are covered and step by step instructions for installing and testing the CASIO BDKs are included The p...

Страница 6: ...x Serial interface with USB version 1 1 Host Client Small size light weight x Dimensions Approx 65 75 W x 187 44 D x 41 19 H mm x Weight Approx 265 g Improved durability x Impact resistance 3 0 m in...

Страница 7: ...Library that is used to control and carry out transmission reception of files between PC and other device Yes Yes NFC Library Library that is used to control to communicate with IC card Yes Yes Note...

Страница 8: ...al Reference manual that describes individual functions in detail for System Library Laser Scanner Library Manual Reference manual that describes individual functions in detail for Laser Scanner Libra...

Страница 9: ...software for the DT X8 terminal x Windows programming x 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...

Страница 10: ...65US Cradle USB and Charging Unit HA K65US CN HA F32DCHG Battery charger Dual Battery Charger HA F32DCHG CN AD S15050B N AD S15050BE CN For HA K60IO HA K65US AD S42120B N AC adaptor AD S42120BE CN For...

Страница 11: ...External views of the DT X8 and the dedicated options Figure 2 1 11...

Страница 12: ...Figure 2 2 12...

Страница 13: ...software tools and libraries are required in order to develop software for the DT X8 Please ensure that you download or purchase the correct Microsoft tools as appropriate x Microsoft Visual Studio 20...

Страница 14: ...XP or via Windows Mobile Device Center for Windows Vista or later For connection method refer to Chapter 5 Connecting the DT X8 to PC 4 Setting up the Development Environment Transmit the Casio s lib...

Страница 15: ...alling delete it manually C Program Files CASIO MBSYS C Program Files Windows CE Tools wce500 x If your PC runs in the Windows Vista or later OS first you must disable the User Account Control UAC by...

Страница 16: ...ted in the drive of PC the following menu screen appears automatically Figure 3 1 2 Click Installation List in Figure 3 1 The installation screen appears Figure 3 2 3 Click DT X8 ExportSDK to display...

Страница 17: ...IO Basic Development Kit o Help Installing 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 i...

Страница 18: ...back of the DT X8 with the mount hooks on the cradle after aligning the contacts on the bottom of the DT X8 with the power contacts of the cradle The power LED on the front of the cradle will light g...

Страница 19: ...e power supply contacts on the Ethernet Cradle and then set the DT X8 into the cradle so that mount holes in the back of the DT X8 are aligned with the mount hooks on the cradle Once the DT X8 is prop...

Страница 20: ...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 x Windows Mobile Device Center for Win...

Страница 21: ...he PC via direct USB You may skip Chapter 5 1 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 download the USB driv...

Страница 22: ...5 1 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 2 22...

Страница 23: ...X8 on the cradle and confirm that the green LED on the front of the cradle is lit If not be sure the DT X8 is positioned firmly on the cradle 6 When the DT X8 is mounted on the USB Cradle a dialog is...

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

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

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

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

Страница 28: ...shed You can choose either partnership option according to your needs Then click Next button Figure 5 14 19 Now the connection is completed You can start up Visual Studio and create a program and depl...

Страница 29: ...he PC You just need to let the PC recognize the DT X8 and install the cradle driver as in steps 6 to 16 in Chapter 5 1 1 1 Navigate to File Connection Settings from the menu in ActiveSync See Figure 5...

Страница 30: ...ion Confirm that PC Connection is set to USB Default If not choose USB Default and tap OK button Figure 5 18 4 When the DT X8 is mounted on the USB Cradle a menu to prompt to install the driver is dis...

Страница 31: ...the setting on the DT X8 Procedure 1 Close all applications running on the DT X8 2 Navigate to Settings o Control Panel o USB Connection 3 Click Connect Utility tab Figure 5 20 4 Choose Windows Mobil...

Страница 32: ...in Step 3 on the previous page see Figure 5 20 and start up the DT X8 again x The WMDC version 6 1 or later will support the connection establishment via USB interface Any other versions of the WMDC...

Страница 33: ...Determines secondary DNS address WINS1 Determines primary WINS address WINS2 Determines secondary WINS address If any of the settings in Figure 5 23 is omitted the process described in the following...

Страница 34: ...been deemed to be set Or if it has never been edited the key extracted fromthe ini file becomes effective asis If EAP PEAP radio button in Authentication field is selected click the EAP Properties but...

Страница 35: ...mark certificate is required Without check mark certificate isnot required Certificate is required 3 Click WLAN tab Figure 5 25 Table 5 6 Field Radio Buttons Description Default On Enable power to the...

Страница 36: ...ol NetUI NetUI Use only the MS tool Configure WLAN setting not with settings extracted fromthe ini file Initiate NetUI when tapping theicon in the task tray If this radio button is selected and the OK...

Страница 37: ...pears Click OK button to perform a reset on the terminal so that the setting takes effect Figure 5 27 6 Check to make sure that the connection has been established using the NetSearch utility and then...

Страница 38: ...er 4 2 2 Connect one end of the network cable to the Ethernet cradle and the other end to the network hub 3 Make sure the selector switch on the back of the HA K62IO Ethernet cradle is set to the posi...

Страница 39: ...ng TCP IP screen appears Set up all the parameters in IP Address and Name Servers tabs as required and click OK button Figure 5 29 7 If the connection is established correctly the icon in the Taskbar...

Страница 40: ...wing shows the steps to initiate this 1 Configure a network connection on the DT X8 2 Double click My Computer 3 Type xxxx where xxxx is the network name of the PC 4 A network logon dialog box will ap...

Страница 41: ...n the PC C Program Files Common Files Microsoft Shared CoreCon 1 0 Target wce400 armv4i The destination folder in the DT X8 Windows 2 Run ConmanClient2 exe on the DT X8 3 Set the device IP address in...

Страница 42: ...9 Choose DT X8 Device in the list of Devices and click Connect button The screen in Figure 5 31 if appear indicates the success of connection establishment Figure 5 31 42...

Страница 43: ...B Yes JPEG library enJPEG ARMV4I CAB Yes FLINK library en_Flink ARMV4I CAB Yes note 2 NFC Library en_NFCLib ARMV4I CAB Yes Notes 1 The library with Yes in Preinstalled column is preinstalled in the DT...

Страница 44: ...r C in Visual Studio 2005 3 Click the button shown in the red box below see Figure 6 1 to make sure that Visual Studio 2005 has recognized the connection established with the DT X8 via ActiveSync If i...

Страница 45: ...2 http www microsoft com downloads details aspx displaylang en FamilyID a6f6adaf 12e3 4 b2f a394 356e2c2fb114 Notes 1 To use Microsoft Device Emulator 3 0 follow the steps below x Install DT X8 Expor...

Страница 46: ...dfolder C Documents and Settings All Users Application Data CASIO Emulator Ctrl vmname DT X8 Emulator defaultsave Case of using after Windows Vista OS If you use OS after Windows Vista Windows 7 or Wi...

Страница 47: ...S after Windows Vista please execute DevEmuLoader exe as administrator by referring Case of using after Windows Vista OS section C Program Files Common Files CASIO Emulator DevEmuLoader exe Figure 7 2...

Страница 48: ...environment or pseudo environment However actions carried out by the Simulator are not as alike to those performed by actual components but merely mimic them very closely 48...

Страница 49: ...ability similar to that of the actual DT X8 device For instance a key on the emulated keyboard of DT X8 on the screen see Figure 7 4 can be clicked with the PC mouse as well as key input made directly...

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

Страница 51: ...button to complete the bar code registration Figure 7 7 4 Completion of registration After completion of the bar codes registration the screen in Figure 7 8 shows a list of bar codes that have been r...

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

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

Страница 54: ...DT X8 Device Emulator x LED When the DT X8 Device Emulator turns on the LED the LED icon LED2 in the I O Simulator also turnson See Figure 7 11 x Vibration When the DT X8 Device Emulator vibrates the...

Страница 55: ...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 o Connection Settings Figure 7 13 2 In Connectio...

Страница 56: ...Visual Studio 2005 and then navigate to Tools o Device Emulator Manager Right click DT X8 Emulator in Available Emulators list and then choose Cradle in the popup menu See Figure 7 15 Figure 7 15 3 M...

Страница 57: ...tions pull down menu in Visual Studio 2008 or Visual Studio 2005 and DT X8 Emulator in the target device pull down menu See Figure 7 18 Figure 7 18 Debugging Applications x Basic Debug Operation The d...

Страница 58: ...2 Similar to ordinary debugging operations with an actual DT X8 the Device Emulator allows break point setting circled in red in Figure 7 20 in the source code and step by step debugging Figure 7 20 5...

Страница 59: ...vice Control Library and Common Device Control Class Library refer to Common Device Control Library Manual The example program in this chapter runs also in the Device Emulator To use the emulator rena...

Страница 60: ...or 5 If the installation folder has not been registered append the following C Program Files CASIO MBSYS include 6 Choose Library files in Show directories for 7 If the files have not been registered...

Страница 61: ...DKs SDKs in the screen field Figure 8 3 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 th...

Страница 62: ...D wcscpy_s msg _countof msg TEXT LED_RED break case LED_GREEN wcscpy_s msg _countof msg TEXT LED_GREEN break case LED_ORANGE wcscpy_s msg _countof msg TEXT LED_ORANGE break case LED_BLUE wcscpy_s msg...

Страница 63: ...circle in Figure 8 4 Figure 8 4 9 Choose DT X8 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...

Страница 64: ...le program using one of the system functions When running the program the LED will blink in red for 5 seconds 1 Create a new VB Smart Device Application in Visual Studio 2 In Solution Explorer right c...

Страница 65: ...LED_BLUE msg LED_BLUE Case Calib SystemLibNet Def LED_CYAN msg LED_CYAN Case Calib SystemLibNet Def LED_MAGENTA msg LED_MAGENTA Case Else msg LED_UNKNOWN End Select MessageBox Show msg LED End If Not...

Страница 66: ...program using one of the system functions When running the program the LED will blink in red for 5 seconds 1 Create a new C Smart Device Application in Visual Studio NET 2 In Solution Explorer right c...

Страница 67: ...LibNet Def LED_RED msg LED_RED break case SystemLibNet Def LED_GREEN msg LED_GREEN break case SystemLibNet Def LED_ORANGE msg LED_ORANGE break case SystemLibNet Def LED_BLUE msg LED_BLUE break case Sy...

Страница 68: ...elect Deploy name of project on Build menu 8 The project will be built and copied to the DT X8 By default it will be copied to Program Files name of project folder SystemLibNet dll will be deployed to...

Страница 69: ...m 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 and L...

Отзывы: