Casio V-N500 Series Quick Start Manual

Hide thumbs Also See for V-N500 Series:

Advertisement

Quick Links

CASIO
V-T500/V-N500 Series
Quick Start Guide
(Version 1.07)
CASIO Computer Co., Ltd.
Copyright ©2013. All rights reserved.
June 2013

Advertisement

Table of Contents
loading

Summary of Contents for Casio V-N500 Series

  • Page 1 CASIO V-T500/V-N500 Series Quick Start Guide (Version 1.07) CASIO Computer Co., Ltd. Copyright ©2013. All rights reserved. June 2013...
  • Page 2: Table Of Contents

    Table of the Contents 1. Product Overview 1.1 Features at a Glance 1.2 Library Configuration 1.3 Development Manuals 2. Prerequisites 2.1 Skills Required 2.2 Hardware Required 2.3 Systems Required 2.4 Software Required 3. Setting up the Development Environment 3.1 Application Development 3.2 Installing JDK 3.3 Installing Android SDK 3.4 Installing Eclipse...
  • Page 3 No part of this reference manual 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 reference manual is subject to change without advance notice. CASIO Computer Co., Ltd.
  • Page 4: Product Overview

    1. Product Overview This guide clearly and concisely sets out the information developers need to know to get started with CASIO V-T500/V-N500 series terminals development. 1.1 Features at a Glance The following is a brief overview of the features available on V-T500/V-N500series terminals. For further details on the hardware specifications, refer to V-T500/V-N500Series Hardware Manual.
  • Page 5 802.11a/g: up to 54Mbps Transfer rate 802.11b:up to 11Mbps 802.11n:up to 72Mbps 802.11b/g/n: 50m (in-door), 150 m Communication range (out-door) (2.4GHz band for /n) 802.11a/n : 30m (in-door), 150 m (out-door) (5GHz band for /n) Output 802.11a:12.0dBm min. Typical 13.5dBm (at 54Mbps) 802.11b:17.0dBm mini.
  • Page 6: Library Configuration

    1.2 Library Configuration The V-T500/V-N500 Software Development Kit (“BDK”) provides various libraries including those listed in the table. Table 1.2 Library Description System Library Library that is used to control the system. SAM Library Library that is used to communicate with the SAM Card. Authentication library Library that is used to set the authentication function such as the password.
  • Page 7: Prerequisites

    2. Prerequisites 2.1 Skills Required V-T500/V-N500 application can be developed by the following languages: • Java The following skills or experience are also desirable: • Android OS • Development of Android applications • Eclipse integrated development environment • Some networking experience 2.2 Hardware Required The following models and dedicated options are available.
  • Page 8: Software Required

    2.4 Software Required The Android development environment is required for developing the V-T500/V-N500 application. Table 2.2 Development platform Programming Language Detail Java Java SE Development Kit (JDK compiler-compliant level 1.6) Android SDK (API level 15) Eclipse 3.7 (Indigo) ADT Plugin for Eclipse Table 2.3 The URL where each tool is supplied Tool Manual Version no.
  • Page 9: Setting Up The Development Environment

    For the connection method, refer to Chapter 4. Connecting V-T500/V-N500 to PC. (4) Preparing the Device Emulator Prepare to use the CASIO V-T500/V-N500 device emulator on the PC. For the operation method, refer to Chapter 6. Emulator. If no device emulator is required, proceed to (5).
  • Page 10: Installing Jdk

    3.2 Installing JDK Java SE JDK can be downloaded from the Java site. Access the Java site, and download the Java SE JDK package compatible with the Windows platform used. The URL and the details of the Java site may differ from those given in this document because the site has been updated.
  • Page 11 Figure 3.2 Start the downloaded file, and execute installation. For installation, execute the downloaded file by a user who has administrative authority. If you wish to execute it by a user who does not have administrative authority, right-click on the downloaded file on the explorer, select Execute as the administrator from the displayed menu, and execute it.
  • Page 12 Figure 3.4 Figure 3.5 When the installation is finished, set the folder where JAVA is installed in the environment variable JAVA_HOME, and log in again. Pay attention because if you forget this setting, an error occurs when installing Android SDK.
  • Page 13: Installing Android Sdk

    Figure 3.6 3.3 Installing Android SDK Android SDK is available from the Android of Google site. Please input the URL at browser, and download Android SDK and its installer. http://dl.google.com/android/installer_xxx-windows.exe At the “xxx” part of above URL, input the version of the object to download. In case of Android SDK r20, it is “http://dl.google.com/android/installer_r20-windows.exe”.
  • Page 14 Figure 3.7 Figure 3.8 Close the installer as is. Figure 3.9 Execute SDK Manager from the menu of Android SDK Tools by a user who has administrative authority.
  • Page 15 If you wish to execute it by a user who does not have administrative authority, right-click on SDK Manager in the menu of Android SDK Tools, and select Execute as the administrator from the displayed menu, and execute it. Select Reload from the Package menu. Figure 3.10 The list of packages is updated to the latest version.
  • Page 16 Figure 3.12 Add the paths related to Android SDK to PATH of the system environment variable. Add paths to tools under the The folder Android SDK is installed, and platform-tools under the The folder Android SDK is installed. Figure 3.13...
  • Page 17: Installing Eclipse

    3.4 Installing Eclipse Install the integrated development environment Eclipse. The flow of installation of Eclipse IDE for Java Developers of Eclipse 3.7 Indigo is explained in this section. Eclipse IDE for Java Developers can be downloaded from the Eclipse site. Access the Eclipse site, and download the package of Eclipse IDE for Java Developers compatible with the Windows platform used.
  • Page 18 Figure 3.15 Extract the downloaded file, extract the package of Eclipse IDE for Java Developers, and extract the route directory of Eclipse, and all directories and files under the route directory in the configuration as is. Execute Eclipse.exe under the route directory of Eclipse, and confirm that it can be started.
  • Page 19: Installing Adt

    3.5 Installing ADT When Eclipse is installed, install ADT next. ADT incorporates various tools to simplify the development of Android applications on Eclipse. Input the following URL at browser, then download an archive file of ADT. http://dl.google.com/android/ADT-xx.x.x.zip At the “xx.x.x” part of above URL, input the version of ADT to download. In case of ADT 20.0.0, it is “http://dl.google.com/android/ADT-20.0.0.zip”.
  • Page 20 Figure 3.17...
  • Page 21 Input “ADT Plugin” at Name. Press Archive button, then select a path of downloaded ADT file. Press OK button if Name and Location is specified correctly. Figure 3.18 Select ADT Plugin at Work with. A list of the packages that can be installed is displayed. Check Developer Tools and press Next > button. Figure 3.19...
  • Page 22 The details of installation are displayed. Press Next > button. Figure 3.20 The license is displayed. Check the details, select I accept the terms of the license agreements, and press finish button. Figure 3.21 Installation starts.
  • Page 23 If a dialog is displayed in the middle of the operation that prompts to restart as shown below, press Restart Now button.. Figure 3.22 After Eclipse restarts, select Preferences of Window menu to set the Android SDK folder, which was installed previously Preferences dialog as shown below is displayed.
  • Page 24: Installing Software Development Kit ("Sdk")

    3.6 Installing Software Development Kit (“SDK”) This chapter explains about installing SDK and construct Android SDK. 1. Install SDK as add-on for Android SDK. 2. Navigate to “package” directory of SDK. 3. Copy “V-T500” directory under “package” directory of SDK. 4.
  • Page 25: Connecting V-T500/V-N500 To Pc

    4. Connecting V-T500/V-N500 to PC 4.1 Installing USB Driver Install the USB driver to connect the PC and the V-T500/V-N500. Only the configuration file of the USB driver is included in the V-T500/V-N500 development kit. The USB driver is included in the Android SDK, which was installed in Chapter 3.3 Installing Android SDK. First, create a folder for the driver (e.g.
  • Page 26 Figure 4.2 Select Install from a list or specific location [Advanced] and press Next > button. Figure 4.3 Check Include this location in the search:, and specify the folder for the driver that you created previously.
  • Page 27 Figure 4.4 Installation is started. When the dialog below is displayed, installation is finished. Press Finish button, and close the dialog. Figure 4.5 For confirmation, open the command prompt, and enter the following command: adb devices Figure 4.6 If the message above is displayed, the installation of the driver has succeeded.
  • Page 28: Setting Up The Development Environment

    5. Setting Up the Development Environment 5.1 Setting JDK Set the JDK installation version. Start up Eclipse, and select Preferences of the Window menu. Figure 5.1 Select Java → Compiler, and set the level to 1.6. Figure 5.2...
  • Page 29: Setting Avd

    5.2 Setting AVD Set the AVD (Android Virtual Device). Start up Eclipse, and select AVD Manager. Figure 5.3 Press the New… button, and create a new AVD. Figure 5.4...
  • Page 30 Enter “CASIO_V_T500” in Name, and select “CASIO V-T500/V-N500(CASIO COMPUTER CO., LTD.) - API Level 15” at Target, and press the Create AVD button. Figure 5.5 Return to the Android Virtual Device Manager screen, confirm that “CASIO_V_T500” is added, and close the dialog to finish.
  • Page 31: Setting Android Project

    5.3 Setting Android Project Set the Android Project of the application created by Eclipse. Select and right-click Android Project, and select Properties. Select Android in the displayed Properties dialog, and select CASIO V-T500/V-N500 at Target Name. Figure 5.7 Next, select Java Build Path.
  • Page 32 Figure 5.8 Open the libs folder under the SDK, and select all files. Figure 5.9 Next, open the Order and Export tab, check all the added files, and press OK button to finish.
  • Page 33: Setting Up The Debugging Environment

    Figure 5.10 5.4 Setting Up the Debugging Environment Set the debugging environment of the application. Note: For the procedure to create the application, refer to Chapter 7. Eclipse. Use the actual terminal of V-T500/V-N500 or the emulator for debugging. 5.4.1 Setting the Debug Configuration with Terminal Select Debug Configurations…...
  • Page 34: Setting The Debug Configuration With The Emulator

    Select the Android tab, and enter the debugging project name in Project. Figure 5.12 Switch to the Target tab, select Always prompt to pick device, and close the dialog with the Close button. Figure 5.13 Set the USB drier as described in the Chapter 4. Connecting V-T500/V-N500 to PC before connecting the actual terminal of V-T500/V-N500 and the PC.
  • Page 35: Debugging Applications

    Next, select the Target tab. Select Automatically pick compatible device:~, and check CASIO_V_T500 in the check box below. Figure 5.15 Press Close button, and close the dialog. 5.4.3 Debugging Applications Basic operation of debugging The debugging method is the same as the normal debugging operation of Eclipse. Select Debug from the Run menu of Eclipse, or press F11 to start debugging.
  • Page 36 Figure 5.16 Debugging by the actual terminal (V-T500/V-N500) Before debugging, connect the actual terminal to the PC with a USB cable. Set the USB drier as described in the Chapter 4. Connecting V-T500/V-N500 to PC before connecting the actual terminal and the PC. When Debug is selected from the Run menu, the screen for selecting the device as shown below is displayed.
  • Page 37 Select the target device, and press the OK button to start debugging. It is possible to execute debugging by stepping, etc. on the actual terminal by setting breakpoints in the source code. Precautions for debugging • It is not possible to execute debugging when the debugging application is installed on the actual terminal of V-T500/V-N500.
  • Page 38: Emulator

    6. Emulator The emulator provides an “environment where basic operation check of the application and source level debugging are possible without the actual terminal of V-N500” to the application developer. 6.1 Software Required It is possible to use the emulator if you have built the development environment explained above. 6.2 Starting Up the Emulator 6.2.1 How to Start Up the Emulator Start AVD Manager from the Windows menu of Eclipse.
  • Page 39 Figure 6.2 The dialog below is displayed. Press Launch as is. Figure 6.3 The dialog below is displayed, and the process of start up is displayed.
  • Page 40 Figure 6.4 The emulator starts. Figure 6.5...
  • Page 41: Using The Emulator

    6.3 Using the Emulator 6.3.1 V- T500/V-N500 Emulator Key input function The key input function equivalent of the actual terminal (V-T500/V-N500) is incorporated. It is possible to use key input by clicking the keys on the screen with a mouse. Function to save the state The V-T500/V-N500 emulator does not have a function to save the state when it finishes.
  • Page 42: Eclipse

    7. Eclipse The application development procedure using Eclipse as the development environment is explained in this chapter. The example is an application that beeps a large-sound buzzer once for a second using the system library. Create this application in a Java programming language. For the list of libraries provided with the V-T500/V-N500 basic development kit, refer to the Chapter 1.2 Library Configuration.
  • Page 43 Note that the hierarchy of the package becomes lower in the order of left → right with Java, which is opposite the domain description by URL. It is named jp.casio.vx.framwork.sdksample1 in this example. All the other settings are default in this example.
  • Page 44 Figure 7.3 Next, set the launcher icon. Select the typical Android icon in this example. Figure 7.4 Next, set the activity. Activity is one of the Java classes in specific. It works as units of the user interface of the Android application,...
  • Page 45 and display, response to events, etc. are included. The title is changed to V-T500 System Lib sample in this example. The title is displayed as the screen title when executing an application or the menu title. Figure 7.5...
  • Page 46 2. Set the Android project. When a new project is created, follow the procedure described in Chapter 5.3 Product Overview first. If this process is omitted, an error occurs in a subsequent process. For the operations after this, refer to the Chapter 5.3 Setting Android Project Figure 7.6...
  • Page 47 3. Create a screen. When a project is created, the edit display as shown below is displayed at first. It becomes the screen of the application. First, delete the text “Hello world!” displayed at the center. Next, drag & drop the grey icon which indicates Button from Form Widgets in Palette on the left into the screen.
  • Page 48 Adjust the size and the position with the mouse. Figure 7.8 Next, create a resource of the character strings. Open the project of SDKSample1 from Package Explorer on the left side of the Eclipse screen. When you point res → values, the file “strings.xml” appears as shown in the figure below, then double-click on it.
  • Page 49 Figure 7.9 The resource editing dialog as shown in the figure below is displayed. First, select unnecessary hello_world, and press the Remove button. Select and remove. Figure 7.10 Next, press the Add button. The dialog below is displayed. Select String.
  • Page 50 Figure 7.11 Set the name and the value in the new string resource. The name “button_title” and the value “Get model name!” are set in this example. Figure 7.12 When editing is finished, select Save from the File menu, and save the change. Change the details of the text displayed on the button in the Text in Properties at the lower right while selecting the button.
  • Page 51 Figure 7.13 Next, enter “onClick” in On Click in Properties in the same way. It is the name of the method in the activity that is executed when the button is pressed. (It is created later.) Figure 7.14...
  • Page 52 4. Create a program. Next, open the source of the activity. Open in the order of SDKSample1 → src → jp.casio.vx.framework.sdksample1 from Package Explorer, and double-click MainActivity.java. Figure 7.15 Correct MainActivity.java as shown below. (For the specifications of the System library currently used, refer to the manual of the library.) package jp.casio.vx.framework.sdksample1;...
  • Page 53 = new jp.casio.vx.framework.system.Api(this); //Get model name of terminal String modelName = sysapi.getModelNameString(); if(modelName.length() > 0) { showDialog(this,"SDK Sample", "The model name of this terminal is "+ modelName); }else { showDialog(this,"SDK Sample","Can't get model name.");...
  • Page 54 Figure 7.17 After the build, debug as necessary. For the details of debugging, refer to Chapter 5.4 Product Overview. And since the beep of the buzzer is the main function in this sample, it is recommended to debug on the actual terminal of V-T500/V-N500.
  • Page 55 5. Incorporate the application into the terminal. Fight-click SDKSample1 on the Package Explorer, and select Android Tools → Export Signed Application Package. Figure 7.18 The dialog below is displayed. Press Next >, and proceed to the next step.
  • Page 56 Figure 7.19 The dialog below is displayed. This is setting of the certificate file to add a signature to Android applications. The certificate file can be created here or select an existing one. When you create a new one, set a password of at least 6 letters. Figure 7.20 When you create a new key, the screen below is displayed.
  • Page 57 Figure 7.21 Table 7.1 Item Description Alias Alias of the signature. Password Password. Confirm Enter the password for confirmation. Validity(years) Specify the expiration in years. Specify 25 or more. First and Last Name The name of the creator. Organization Unit The name of the organization unit.
  • Page 58 The package file (apk file) of the application is created. Figure 7.23 There are two methods of installing this file on the actual terminal of V-T500/V-N500. (1) Copy in the SD card, and install on the actual terminal of V-T500/V-N500. Copy the created apk file from the PC to the SC card.
  • Page 59 The dialog below is displayed. Select Install button. Figure 7.27 Installation of the application is finished. Figure 7.28 After this, the application can be executed on the actual terminal of V-T500/V-N500. Execute the application from the menu, and check the operation. (2) Install from the PC side using the ADB command.
  • Page 60 For details of connection, refer to Chapter 4. Product Overview. Open the command prompt, and move the current folder to the location where the apk file exist. The installation command is as shown below. adb install -r SDKSample1.apk The result of execution becomes as follows: Figure 7.29 After this, the application can be executed on the terminal.
  • Page 61: Kitting

    8. Kitting Installation of the application on the terminal, initial settings and update of the OS are described in this section. 8.1 New Configuration of System The methods of making new settings and installing the application on the terminal are described. 8.1.1 Flow of New Configuration (1) Design the System (2) Set Environment...
  • Page 62: Install Application Software

    The settings above are all arbitrary settings. Make setting as necessary. 1) Environment setting by the Settings tool Basically, they can be used with the preset values. For the setting of some items such as wireless setting, set according to the usage. The preset values of the terminal are described in Appendix.
  • Page 63: Replicate Environment To Other Terminals

    (4) Install the application (apk file). Tap the application (apk file) on the file manager, and install according to the displayed messages. (5) Install the configuration file. Press and hold the configuration file on the File Manager. When it is held long, the Edit menu is displayed. Select Copy from the Edit menu.
  • Page 64 (3) Select the external storage medium to save the backup data in Option setting. (4) Check All items in Backup. (5) Tap Backup the selected items in Backup. The backup data is stored in the “/Backup” folder in the external storage medium. It is not necessary to create “/Backup”...
  • Page 65 If the external storage medium is removed from the terminal without performing unmount, the external storage medium may be damaged. Make sure to implement unmount. Remove the external storage medium from the slave unit (replication destination). (16) Restart the slave unit (replication destination). Press and hold the power supply button long, and shut down the slave unit (replication destination).
  • Page 66: Set Specific Environment Of Each Terminal

    (7) Start up the Copy Devices tool on the master units (replication source). (8) Select 2. Sender mode of the Copy Devices tool on the master units (replication source). (9) Start up the Settings tool on the slave unit (replication destination), and enable WiFi-Direct in the More…...
  • Page 67 The environments that may be set separately on each terminal are as follows: There are some environments that have to be set additionally according to the operation and the usage other than the following: ■ Mail setting ■ WAN setting ■...
  • Page 68: Appendix Default Values Of The Setting

    9. Appendix Default Values of the Setting The initial values of the setting are described below. ■ WIRELESS & NETWORKS The connection to the network and the devices using Wi-Fi, Bluetooth, mobile, network and USB connection is set and managed. It is also possible to set the connection between the tablet and a virtual private network (VPN), connect to the Internet with another device via the data communication of the tablet, and turn off all wireless communication by switching to in airplane mode.
  • Page 69 ■ PERSONAL The settings related to usage of users and how to use such as various security settings are performed. The grayed-out items are used for confirmation of the state, and they are not the setting items. Table 9.3 Item Default Value Accounts &...
  • Page 70 ■ SYSTEM The settings of date and time and the settings for developers are performed. The grayed-out items are used for confirmation of the state, and they are not the setting items. Table 9.4 Item Default Value Date & time Automatic date &...

This manual is also suitable for:

V-t500 series

Table of Contents