Epson BT-2000 Developers Guide

Epson BT-2000 Manual

Epson BT-2000 manual content summary:

  • Epson BT-2000 | Developers Guide - Page 1
    Developer's Guide SEKIO EPSON CORPORATION MOVERIO Pro Developer's Guide (Rev.1.0)
  • Epson BT-2000 | Developers Guide - Page 2
    Seiko Epson. 3. This document does not relate to products that require a high level of reliability, such as life support equipment. Epson accepts no responsibility if this product is used for such circumstances. ©SEIKO EPSON CORAPORATION 2015, All right reserved. MOVERIO Pro Developer's Guide (Rev
  • Epson BT-2000 | Developers Guide - Page 3
    Specifications 3 1.3. Basic Information for App Development 4 1.4. Other Main Functions 5 2. Developing Apps 6 2.1. Summary of Developing Apps 7 2.2. Introduction to the Android SDK 8 2.3. ADB driver settings 11 2.4. Connecting the BT-2000 parameters 47 MOVERIO Pro Developer's Guide (Rev.1.0)
  • Epson BT-2000 | Developers Guide - Page 4
    Bluetooth Supported GATT procedure table 112 8.7. Application interface details 113 8.8. BLE Processing Sample Code 147 9. Power control 157 9.1. Power control summary 158 9.2. Acquiring Battery Information 159 10. Appendix 160 10.1. Self-diagnostic function 161 MOVERIO Pro Developer's Guide
  • Epson BT-2000 | Developers Guide - Page 5
    1. Introduction MOVERIO Pro Developer's Guide (Rev.1.0) 1
  • Epson BT-2000 | Developers Guide - Page 6
    1.1. Product Summary and Functions The BT-2000 is a smart headset for business use. The same optical see-through technology as the consumer orientated MOVERIO BT-200 has been adopted. This allows information to be displayed across a wide viewing area while keeping eye movement to a minimum, thereby
  • Epson BT-2000 | Developers Guide - Page 7
    Specifications Item Specifications Model number Main processor System clock System software Internal storage (emmc) Main memory Power External memory No. of pixels in LCD panel Virtual screen size Color reproduction 3D display User interface Camera Sensor Wi-Fi Bluetooth GPS MOVERIO Pro BT-2000
  • Epson BT-2000 | Developers Guide - Page 8
    3G, is not supported ■ This is not a Google Certified device, meaning the following services which require Google Certification are not available: - Google Play - Google location information service - Additional services only available on Google Certified devices. MOVERIO Pro Developer's Guide (Rev
  • Epson BT-2000 | Developers Guide - Page 9
    , the BT-2000, includes an EPSON original API, which includes the following functions. ■ Display control ■ Physical UI control ■ Audio commands ■ Camera control ■ Sensor control ■ Bluetooth/BLE ■ Power control The following chapters explain how to use these from an app. MOVERIO Pro Developer's Guide
  • Epson BT-2000 | Developers Guide - Page 10
    2. Developing Apps MOVERIO Pro Developer's Guide (Rev.1.0) 6
  • Epson BT-2000 | Developers Guide - Page 11
    to provide BT-2000 compatibility. This chapter explains the following procedures necessary to develop apps for the BT-2000. ■ Introduction to the Android SDK ■ ADB driver settings ■ Connecting the BT-2000 to a computer ■ Including the SDK provided by EPSON MOVERIO Pro Developer's Guide (Rev.1.0) 7
  • Epson BT-2000 | Developers Guide - Page 12
    Android Studio from the following Website. https://developer.android.com/sdk/index.html 2.2.1.2. Acquiring and installing JDK Download the JDK Users\User name\AppData\Local\Android\sdk * From here on, instructions assume Android Studio is installed in the folder above. MOVERIO Pro Developer's Guide
  • Epson BT-2000 | Developers Guide - Page 13
    you start SDK Manager, the dialog "No packages found" may be displayed. This occurs when the proxy is not set correctly, and information cannot be updated. Close all dialogs except for "Android SDK Manager", and then set the proxy in [Tools] - [Options]. MOVERIO Pro Developer's Guide (Rev.1.0) 9
  • Epson BT-2000 | Developers Guide - Page 14
    ] - [Google USB Driver」 Select the above, click [Install], and then select 'Accept' all. This completes the introduction to the Android SDK. Next, we will explain how to connect the BT-2000 to the app development computer, and setting up the ADB driver. MOVERIO Pro Developer's Guide (Rev.1.0) 10
  • Epson BT-2000 | Developers Guide - Page 15
    BT-2000 are added to the Google USB Driver installed in the previous item. Open [C:\Users\User name\AppData\Local\Android\sdk\extras\google\usb_driver\android_winusb.inf] in a text editor, and then add the following 6 lines to 2 points in the [Google.NTx86] and the [Google.NTamd64]. ;EPSON MOVERIO
  • Epson BT-2000 | Developers Guide - Page 16
    C:\Users\User name\AppData\Local\Android\sdk\tools " and change the work folder. Execute the android.bat, and handle the "update adb" argument as shown below. The file is created in [C:\Users\User section explains how to connect the BT-2000 to a computer. MOVERIO Pro Developer's Guide (Rev.1.0) 12
  • Epson BT-2000 | Developers Guide - Page 17
    , restart the BT-2000, and then reconnect the USB cable. When "New device detected" is displayed on the computer, select [Control Panel] - [Hardware and Sound] - [Device Manager]. Right-click [embt2] from [Other devices], and then select Update Driver Software. MOVERIO Pro Developer's Guide (Rev
  • Epson BT-2000 | Developers Guide - Page 18
    and the BT-2000 are connected by using the ADB check command. Start the command prompt, run "cd C:\Users\ User name \AppData\Local\Android\sdk\tools ", and If this is not displayed, reconnect the BT-2000 to the USB port, and rerun the "adb devices" command. MOVERIO Pro Developer's Guide (Rev.1.0) 14
  • Epson BT-2000 | Developers Guide - Page 19
    2.5. Including the SDK provided by EPSON The following procedures assume app development in Android Studio. - Create a Project from [File] - [New Project] package name, permissions etc indicate the necessary items for each of the following function sections. MOVERIO Pro Developer's Guide (Rev.1.0) 15
  • Epson BT-2000 | Developers Guide - Page 20
    3. Display control MOVERIO Pro Developer's Guide (Rev.1.0) 16
  • Epson BT-2000 | Developers Guide - Page 21
    explains the display control function for the BT-2000. The BT-2000 is a smart headset with an optical see-through function. You can overlay information on the display using an optical technique that provides clear images, without disturbing the view of the user's surroundings. It is also possible to
  • Epson BT-2000 | Developers Guide - Page 22
    3.2. Full screen display function The MOVERIO Pro BT-2000 is based on Android 4.0 Tablet UI. This specification does not normally allow full display in applications in Android 4.0 Tablet UI; however, you can follow the steps below to enable full display by specifying a
  • Epson BT-2000 | Developers Guide - Page 23
    Disable full screen display (show status bar) Enable full screen display (hide status bar) MOVERIO Pro Developer's Guide (Rev.1.0) 19
  • Epson BT-2000 | Developers Guide - Page 24
    3.3. Switch between 2D/3D display function The BT-2000 allows you to display 3D content using Side by side. The side by side method each display. ■ Interface int set2d3d(int dimension) ■ Parameter dimension: 2D/3D mode status DIMENSION_2D/DIMENSION_3D MOVERIO Pro Developer's Guide (Rev.1.0) 20
  • Epson BT-2000 | Developers Guide - Page 25
    3.4.1. Adjust backlight brightness When changing the backlight display built-into the headset, you can change the transparency of the displayed image. When the backlight: Brightness level 0 (dark) to 20 (bright) 3.4.2. Backlight auto dimmer [TBD] MOVERIO Pro Developer's Guide (Rev.1.0) 21
  • Epson BT-2000 | Developers Guide - Page 26
    (Jar file) provided ■ Interface int setMute(boolean mute) ■ Parameter mute: Mute ON (TRUE)/OFF (FALSE) ■ Return value Execution result 0 (normal value), any other value (error) MOVERIO Pro Developer's Guide (Rev.1.0) 22
  • Epson BT-2000 | Developers Guide - Page 27
    MOVERIO Pro is a device that uses projection technology. Projection is displayed by reflecting light through an Active Matrix LCD panel into a light-guided this AR effect using the see-through function. 1) Execute full screen support. To reduce the feeling of being in a screen, remove everything
  • Epson BT-2000 | Developers Guide - Page 28
    4. UI control MOVERIO Pro Developer's Guide (Rev.1.0) 24
  • Epson BT-2000 | Developers Guide - Page 29
    Turn the device ON/OFF Enable/disable button input Back Home Menu MultiFunctionOSD display*1 (See table 2) Upper input Lower input Left input Right input Confirm MOVERIO Pro Developer's Guide (Rev.1.0) 25
  • Epson BT-2000 | Developers Guide - Page 30
    /left: Volume Down D-pad up/right: Increase screen brightness D-pad down/left: Decrease screen brightness D-pad up/right: Set 2D D-pad down/left: Set 3D MOVERIO Pro Developer's Guide (Rev.1.0) 26
  • Epson BT-2000 | Developers Guide - Page 31
    KeyEvent.KEYCODE_HOME KeyEvent.KEYCODE_MENU ( Reserved in the system ) KeyEvent.KEYCODE_DPAD_UP KeyEvent.KEYCODE_DPAD_DOWN KeyEvent.KEYCODE_DPAD_LEFT KeyEvent.KEYCODE_DPAD_RIGHT KeyEvent.KEYCODE_DPAD_CENTER The following events are generated in user mode. MOVERIO Pro Developer's Guide (Rev.1.0) 27
  • Epson BT-2000 | Developers Guide - Page 32
    Y buttons as with the application's original function. ■ Specifications for status transitions in key assignment mode Status transitions (where mode for application B is also set to User mode. The BT-2000 is equipped with a standard iWnnIME text input MOVERIO Pro Developer's Guide (Rev.1.0) 28
  • Epson BT-2000 | Developers Guide - Page 33
    application interface list NO. Function name Function summary 1 getKeyAssignMode Acquires the mode for the current key assignment. 2 setKeyAssignMode Set and apply a key assignment mode. Notes MOVERIO Pro Developer's Guide (Rev.1.0) 29
  • Epson BT-2000 | Developers Guide - Page 34
    : Default mode - KEYASSIGN_MODE_USER: User mode  Usage procedure int mode; /*Acquire the current mode*/ mode = KeyAssign.getKeyAssignMode (); /*Acquire provided camera mode*/ if (mode == KeyAssign.KEYASSIGN_MODE_USER) { /*Process*/ } MOVERIO Pro Developer's Guide (Rev.1.0) 30
  • Epson BT-2000 | Developers Guide - Page 35
    classes. - KEYASSIGN_MODE_DEFAULT (or 0) - KEYASSIGN_MODE_USER (or 1)  Return value false: setting failed true: setting succeeded Use procedure 1 (when side by side is set) /*Set user mode*/ KeyAssign.setKeyAssignMode (KeyAssign.KEYASSIGN_MODE_USER); MOVERIO Pro Developer's Guide (Rev.1.0) 31
  • Epson BT-2000 | Developers Guide - Page 36
    5. Audio commands MOVERIO Pro Developer's Guide (Rev.1.0) 32
  • Epson BT-2000 | Developers Guide - Page 37
    5.1. Audio commands summary The BT-2000 allows you to select*1 an information file containing vocabulary that you want to use for audio can be recognized, this differs from the standard sound recognition software that uses network access to confirm words. MOVERIO Pro Developer's Guide (Rev.1.0) 33
  • Epson BT-2000 | Developers Guide - Page 38
    , execute VoiceCommandClient.registerCallback() to register a callback to receive recognition results. When connection to the service is complete, execute getVoiceCommandSystemInterface() to acquire the interface for controlling the audio command function. MOVERIO Pro Developer's Guide (Rev.1.0) 34
  • Epson BT-2000 | Developers Guide - Page 39
    6 stop Disable audio input. Table 5-2 android.media.epson. VoiceCommandClient for application interface list NO. Function name Function a service class of audio commands. 5 unBindFromRemoteRunningService Disconnect from a service class of audio commands. MOVERIO Pro Developer's Guide (Rev
  • Epson BT-2000 | Developers Guide - Page 40
    the value is too large, the app should not be influenced by surrounding noise, however the user will need to talk loudly to trigger a response.  Return value Model boolean Explanation Set current S/N ratio value used as the recognition start condition. MOVERIO Pro Developer's Guide (Rev.1.0) 36
  • Epson BT-2000 | Developers Guide - Page 41
    be set. Minimum: 0, Maximum: 32767 If the value is too large, the app should not be influenced by surrounding noise, however the user will need to talk loudly to trigger a response.  Return value Model boolean Explanation Success: true, Failure: false MOVERIO Pro Developer's Guide (Rev.1.0) 37
  • Epson BT-2000 | Developers Guide - Page 42
    file stored in the system is automatically selected and set (the default lms file) based on the region information for the operating system of the BT-2000.  Return value Model boolean Explanation Success: true, Failure: false MOVERIO Pro Developer's Guide (Rev.1.0) 38
  • Epson BT-2000 | Developers Guide - Page 43
    5.4.7. registerCallback  Function Register a callback to acquire the recognition results for an audio command.  Format void registerCallback(VoiceCommandClientCallbacks cb)  Parameter VoiceCommandClientCallbacks class object  Return value None MOVERIO Pro Developer's Guide (Rev.1.0) 39
  • Epson BT-2000 | Developers Guide - Page 44
     Function Acquire a class as the interface to control audio commands.  Format IVoiceCommandInterface getVoiceCommandSystemInterface()  Parameter None.  Return value Model Explanation IVoiceCommandInterface Interface for audio command control MOVERIO Pro Developer's Guide (Rev.1.0) 40
  • Epson BT-2000 | Developers Guide - Page 45
    None. 5.4.11. unBindFromRemoteRunningService  Function Disconnect from an audio command service.  Format void unBindFromRemoteRunningService(Activity activity)  Parameter An Activity object connected to the audio command service.  Return value None. MOVERIO Pro Developer's Guide (Rev.1.0) 41
  • Epson BT-2000 | Developers Guide - Page 46
    2 Action 3 - epe_au01_E2.lms ID number 1 2 8 9 10 11 12 13 Audio input Home Menu Try Again Finish Connect Shoot Rotate Setting ID number 14 15 16 17 21 22 23 24 Audio input Go Right Go Left Go up Go Down Blue Red Green Yellow MOVERIO Pro Developer's Guide (Rev.1.0) 42 ID number 34 35 36
  • Epson BT-2000 | Developers Guide - Page 47
    - epe_au01_j2.lms ID number 1 2 8 9 10 11 12 13 Audio input Home Menu Try Again Finish Connect Shoot Rotate Setting ID number 21 22 23 24 31 32 33 Audio input Blue Red Green Yellow Select 1 Audio input Item 1 Item 2 Item 3 Item 4 Item 5 Item 6 Version MOVERIO Pro Developer's Guide (Rev.1.0) 43
  • Epson BT-2000 | Developers Guide - Page 48
    String arg1 the recognized word text string is stored. 5.5.4. Audio command API usage flow example See the sample source for audio commands for more details. MOVERIO Pro Developer's Guide (Rev.1.0) 44
  • Epson BT-2000 | Developers Guide - Page 49
    6. Camera control MOVERIO Pro Developer's Guide (Rev.1.0) 45
  • Epson BT-2000 | Developers Guide - Page 50
    BT-2000. The headset section of the BT-2000 is equipped with a stereo camera which offers a wide variety of uses including the following three types of camera image. 1) Standard camera images 2) Stereo ○ ○ ○ ― ― ― ― ― ― ― ○ ○ ○ Depth 640x480 MOVERIO Pro Developer's Guide (Rev.1.0) 46
  • Epson BT-2000 | Developers Guide - Page 51
    white balance are set manually. Make settings according single-through-720p 5 single-through-1080p 6 single-through-5m 7 depth-only 1280x720 1920x1080 2596x1948 - 640x480 1280x720 640x480 1280x720 1920x1080 640x480 1280x720 1920x1080 - 1280x720 1920x1080 2596x1948 - MOVERIO Pro Developer's Guide
  • Epson BT-2000 | Developers Guide - Page 52
    of data using API in the BT-2000. ・ Standard images (NV21) ・ Side by Side images (NV21) ・ Depth (distance) data (8bit Gray Scale) Figure 6-1 Example of standard images Figure 6-2 Example of side by side images Depth data is explained in the next section. MOVERIO Pro Developer's Guide (Rev.1.0) 48
  • Epson BT-2000 | Developers Guide - Page 53
    , use data inferred in this way as the correct value is not provided in the product specifications for depth data with a 50 pixel edge. 50pixel 50pixel Except for surrounding 50 pixels the area is available Figure 6-4 Available range for depth data MOVERIO Pro Developer's Guide (Rev.1.0) 49
  • Epson BT-2000 | Developers Guide - Page 54
    12.9 54 47.2 102 25.0 150 17.0 198 12.9 55 46.4 103 24.8 151 16.9 199 12.8 56 45.5 104 24.5 152 16.8 200 12.8 57 44.7 105 24.3 153 16.7 201 12.7 58 44.0 106 24.1 154 16.6 202 12 10.3 10.2 10.2 10.2 10.1 10.1 10.0 10.0 MOVERIO Pro Developer's Guide (Rev.1.0) 50
  • Epson BT-2000 | Developers Guide - Page 55
    BT-2000, and display a preview. 2) Process the image data in the app. 3) Acquire depth information with the application. Note that the API specification 1-11 getSupportedContrastMax 1-12 getContrast 1-13 startDepthStreaming 3-4 stopDepthStreaming MOVERIO Pro Developer's Guide (Rev.1.0) 51
  • Epson BT-2000 | Developers Guide - Page 56
    the camera mode, frame rate, and preview resolution for the BT-2000, and display a preview. 2) Acquire preview data with the 2 3 4 5 6 7 8 9 10 11 12 13 Table 6-6 Camera.Parameters application interface list Function name list of modes supported by the MOVERIO Pro Developer's Guide (Rev.1.0) 52
  • Epson BT-2000 | Developers Guide - Page 57
    using the API provided by the BT-2000, you can display a preview and in the app. * Because the API in this guide does not comply with the android.hardware.Camera specifications and thread safe are not available, do not handle 6-5 Example of API usage flow MOVERIO Pro Developer's Guide (Rev.1.0) 53
  • Epson BT-2000 | Developers Guide - Page 58
    Standard, still image mode. The camera resolution and shooting resolution is 1920 x 1080. single-through-5m Standard, still image mode. The camera resolution and shooting resolution is 2596 x 1948. depth-only Mode to acquire only depth information. MOVERIO Pro Developer's Guide (Rev.1.0) 54
  • Epson BT-2000 | Developers Guide - Page 59
    (camera is a Camera class object) /*Start camera*/ camera = Camera.open(); /*Acquire current parameters*/ Camera.Parameters params = camera.getParameters(); /*Acquire provided camera mode*/ List Supported = params.getSupportedEpsonCameraMode(); MOVERIO Pro Developer's Guide (Rev.1.0) 55
  • Epson BT-2000 | Developers Guide - Page 60
    6.7.2. setEpsonCameraMode  Function Set the BT-2000 camera mode.  Format void setEpsonCameraMode ( String mode );  Parameter Model name in/out String mode -by-side single-through-vga single-through-720p single-through-1080p single-through-5m depth-only MOVERIO Pro Developer's Guide (Rev.1.0)
  • Epson BT-2000 | Developers Guide - Page 61
    mode in setEpsonCameraMode. Application developers should set these parameters using appropriate combinations before executing setParameters. Table 6-8 lists the available combination of parameters from the API. MOVERIO Pro Developer's Guide (Rev.1.0) 57
  • Epson BT-2000 | Developers Guide - Page 62
    supported. Frame rate 7.5fps 7.5fps 7.5fps 15fps 30fps 60fps 7.5fps 15fps 30fps 7.5fps 15fps 7.5fps 7.5fps 15fps The shooting resolution is determined for each mode individually. Note that you cannot change the settings using the standard Android API setPictureSize. MOVERIO Pro Developer's Guide
  • Epson BT-2000 | Developers Guide - Page 63
    -1080p" "single-through-5m" "depth-only"  Usage procedure /*Start camera*/ camera = Camera.open(); /*Acquire current parameters*/ Camera.Parameters params = camera.getParameters(); /*Acquire the current camera mode*/ String mode = params.getEpsonCameraMode(); MOVERIO Pro Developer's Guide (Rev
  • Epson BT-2000 | Developers Guide - Page 64
    .getParameters(); /*Set camera mode to side by side*/ params.setPreviewFpsRange(7500, 7500); /*Reflect camera setting in camera device*/ camera.setParameters(params); /*Start preview*/ camera.startPreview(); MOVERIO Pro Developer's Guide (Rev.1.0) 60
  • Epson BT-2000 | Developers Guide - Page 65
    rate has a limited combination of preview resolutions and camera modes. Note that a run-time exception will occur in setParameters for combinations that exceed the limit. MOVERIO Pro Developer's Guide (Rev.1.0) 61
  • Epson BT-2000 | Developers Guide - Page 66
    to single-through-5m*/ params.setEpsonCameraMode(EPSON_CAMERA_MODE_SINGLE_THROUGH-5M); /*Set preview resolution to VGA*/ params.setPreviewSize(640, 480); /*Reflect camera setting in camera device*/ camera.setParameters(params); /*Start preview*/ camera.startPreview(); MOVERIO Pro Developer's Guide
  • Epson BT-2000 | Developers Guide - Page 67
    want to acquire images in 5M or 8M, perform shooting by using takePicture.  The resolution set for preview resolution uses image data acquired in PreviewCallback. MOVERIO Pro Developer's Guide (Rev.1.0) 63
  • Epson BT-2000 | Developers Guide - Page 68
    available sharpness value.  Format int getSupportedSharpnessMin (); int getSupportedSharpnessMax ();  Parameter None.  Return value Model int Explanation Return the minimum/maximum available sharpness value. For the BT-2000, these are -3 and +3. MOVERIO Pro Developer's Guide (Rev.1.0) 64
  • Epson BT-2000 | Developers Guide - Page 69
    6.7.7. getSharpness  Function Acquire the current sharpness value.  Format int getSharpness ();  Parameter None.  Return value Model int Explanation Return the current sharpness value. For the BT-2000, this is -3 to +3. MOVERIO Pro Developer's Guide (Rev.1.0) 65
  • Epson BT-2000 | Developers Guide - Page 70
     Parameter None.  Return value Model int Explanation Set the sharpness value. For the BT-2000, you can set -3 to +3. Usage procedure /*Start camera*/ camera = Camera.open setParameters. Changed content is not reflected until setParameters is executed. MOVERIO Pro Developer's Guide (Rev.1.0) 66
  • Epson BT-2000 | Developers Guide - Page 71
    maximum available contrast value.  Format int getSupportedContrastMin (); int getSupportedContrastMax ();  Parameter None.  Return value Model int Explanation Return the minimum/maximum available contrast value. For the BT-2000, these are -3 and +3. MOVERIO Pro Developer's Guide (Rev.1.0) 67
  • Epson BT-2000 | Developers Guide - Page 72
    6.7.10. getContrast  Function Acquire the current contrast value.  Format int getContrast ();  Parameter None.  Return value Model int Explanation Return the current contrast value. For the BT-2000, this is -3 to +3. MOVERIO Pro Developer's Guide (Rev.1.0) 68
  • Epson BT-2000 | Developers Guide - Page 73
     Parameter None.  Return value Model int Explanation Set the contrast value. For the BT-2000, you can set -3 to +3.  Usage procedure /*Start camera*/ camera = Camera. setParameters. Changed content is not reflected until setParameters is executed. MOVERIO Pro Developer's Guide (Rev.1.0) 69
  • Epson BT-2000 | Developers Guide - Page 74
    6.7.12. onPreviewFrame  Function Use the standard Android from a camera. The default is NV21 format. in Camera service object.  Return value None.  Usage procedure // App the callback method at the optimal time camera.setPreviewCallback(mPreviewCB); MOVERIO Pro Developer's Guide (Rev.1.0) 70
  • Epson BT-2000 | Developers Guide - Page 75
    be corrupted. We recommend acquiring image data through a sub-thread. You can use the following three APIs as the API that registers the callback method. MOVERIO Pro Developer's Guide (Rev.1.0) 71
  • Epson BT-2000 | Developers Guide - Page 76
    13. setPreviewCallback  Function When the callback method described in 6.6.12 is registered, it is called each time image data is .setPreviewCallback(mPreviewCB); // When you remove the callback method, register null camera.setPreviewCallback(null); MOVERIO Pro Developer's Guide (Rev.1.0) 72
  • Epson BT-2000 | Developers Guide - Page 77
     Important points To cancel image data acquisition, register null as the callback method. MOVERIO Pro Developer's Guide (Rev.1.0) 73
  • Epson BT-2000 | Developers Guide - Page 78
    6.7.14. setOneShotPreviewCallback  Function When the callback method described in 6.6.12 is registered, it is called when image data is acquired. This previous section. However, setOneShotPreviewCallback is used as the registered callback method. MOVERIO Pro Developer's Guide (Rev.1.0) 74
  • Epson BT-2000 | Developers Guide - Page 79
    6.7.15. setPreviewCallbackWithBuffer  Function When the callback method described in 6.7.12 is registered, it is called when image data is acquired. Explanation Camera.PreviewCallback in Callback object that receives image data. cb  Return value None. MOVERIO Pro Developer's Guide (Rev.1.0) 75
  • Epson BT-2000 | Developers Guide - Page 80
    the memory.  The application developer needs to describe the buffer management process. Specifically, the following processes are necessary.  Register the buffer to be used in and is not called by the callback method.  You can register multiple buffers. MOVERIO Pro Developer's Guide (Rev.1.0) 76
  • Epson BT-2000 | Developers Guide - Page 81
    be used camera.addCallbackBuffer(mPreviewData); } }; // Register the buffer to be used camera.addCallbackBuffer(mPreviewData); //Register the callback method at the optimal time camera.setPreviewCallbackWithBuffer(mPreviewCB); MOVERIO Pro Developer's Guide (Rev.1.0) 77
  • Epson BT-2000 | Developers Guide - Page 82
    .  If a registered buffer region is not secured in the application, an error log is output when addCallbackBuffer is executed. Errors and exceptions do not occur. MOVERIO Pro Developer's Guide (Rev.1.0) 78
  • Epson BT-2000 | Developers Guide - Page 83
    is in a mode that does not output depth information (side by side or single through).  Usage procedure /*Start camera*/ camera = Camera.open(); /*Acquire current camera.startPreview(); /*Start depth information acquisition*/ camera.startDepthStreaming(); MOVERIO Pro Developer's Guide (Rev.1.0) 79
  • Epson BT-2000 | Developers Guide - Page 84
    executing takePicture, make sure you execute this method to resume depth information acquisition.  You need to restart the application if the application closes in a RuntimeException. MOVERIO Pro Developer's Guide (Rev.1.0) 80
  • Epson BT-2000 | Developers Guide - Page 85
    preview*/ camera.stopPreview();  Important points  If depth information acquisition has not stopped when stopPreview is executed, stopDepthStreaming is executed as part of the stopPreview process. MOVERIO Pro Developer's Guide (Rev.1.0) 81
  • Epson BT-2000 | Developers Guide - Page 86
    VGA size, RAW 8 format, 300 K byte data. Camera in Camera service object camera  Return value None.  Usage procedure // App developer applies processing } } }; //Register the callback method at the optimal time camera.setDepthCallback(mDepthCB); MOVERIO Pro Developer's Guide (Rev.1.0) 82
  • Epson BT-2000 | Developers Guide - Page 87
    .  For depth-only mode, preview display is unavailable. To display depth data, you need to convert the data format to image format to display images. MOVERIO Pro Developer's Guide (Rev.1.0) 83
  • Epson BT-2000 | Developers Guide - Page 88
    (lockObject) { saveDepthMap(data); } } }; //Register the callback method at the optimal time camera.setDepthCallback(mDepthCB); // When you remove the callback method, register null camera.setDepthCallback(null); MOVERIO Pro Developer's Guide (Rev.1.0) 84
  • Epson BT-2000 | Developers Guide - Page 89
    as the callback method, or the object is removed. Note that the callback method is not canceled by canceling the preview or depth information acquisition. MOVERIO Pro Developer's Guide (Rev.1.0) 85
  • Epson BT-2000 | Developers Guide - Page 90
    . If the camera is in a mode that cannot acquire depth information (side by side or single-through), an exception is generated. If depth callback has already been registered during depth information acquisition, data is used in edof mode, perform depth-only. MOVERIO Pro Developer's Guide (Rev.1.0) 86
  • Epson BT-2000 | Developers Guide - Page 91
    single-720 single-1080 single-5M depth-only ○ × × Depth information only △: Indicates that preview display may not be available depending on the resolution. *: When using depth data in edof mode, make sure you set depth-only in advance, and enable depth data. MOVERIO Pro Developer's Guide
  • Epson BT-2000 | Developers Guide - Page 92
    for preview data acquisition while displaying a preview at 1080p in Single 5 M mode. package jp.epson.moverio.bt2pro.test.cameratest; import java.io.File; import java.io. [] mPreviewBuf = new byte [1920*1080*3/2]; private Object lockObject = new Object(); MOVERIO Pro Developer's Guide (Rev.1.0) 88
  • Epson BT-2000 | Developers Guide - Page 93
    Log.e(TAG,"onDestroy"); } private SurfaceHolder.Callback previewCallback = new SurfaceHolder.Callback() { @Override public void surfaceDestroyed(SurfaceHolder holder) { Log.d(TAG,"surfaceDestroyed"); camera.stopPreview(); camera.release(); camera = null; } MOVERIO Pro Developer's Guide (Rev.1.0) 89
  • Epson BT-2000 | Developers Guide - Page 94
    Parameters params = camera.getParameters(); /*Set camera mode to Single 5 M mode*/ params.setEpsonCameraMode(EPSON_CAMERA_MODE_ SINGLE_THROUGH-5M); /* (mPreviewCB); try{ camera.startPreview(); }catch(RuntimeException e){ e.printStackTrace(); } } }; MOVERIO Pro Developer's Guide (Rev.1.0) 90
  • Epson BT-2000 | Developers Guide - Page 95
    if it is present. getMenuInflater().inflate(R.menu.camera_test, menu); return true; } boolean ret = true; @Override public boolean onOptionsItemSelected(MenuItem item) { Log.e(TAG, "onOptionsItemSelected"); return ret; } } MOVERIO Pro Developer's Guide (Rev.1.0) 91
  • Epson BT-2000 | Developers Guide - Page 96
    seconds of camera deallocation. 2) The main use for the BT-2000 camera is for monitoring. It is possible to shoot images, but make sure continuous executed. 4) Exposure and white balance are set manually. As this cannot be set automatically, make settings MOVERIO Pro Developer's Guide (Rev.1.0) 92
  • Epson BT-2000 | Developers Guide - Page 97
    7. Sensor control MOVERIO Pro Developer's Guide (Rev.1.0) 93
  • Epson BT-2000 | Developers Guide - Page 98
    also available. 7.1.1. IMU and the geomagnetic sensor The BT-2000 is equipped with an IMU and a geomagnetic sensor. The for azimuth calculations. +Y +X +Z The following shows the specifications for the IMU and the geomagnetic sensor. Sampling rate* MOVERIO Pro Developer's Guide (Rev.1.0) 94
  • Epson BT-2000 | Developers Guide - Page 99
    brightness according to the user's surroundings. The following shows the specifications for the ALS. Sampling rate* Range ALS Approx. 1[Hz] 0 to 65528 lx * When the load on the system is high, the sampling rate may not reach the specified maximum. MOVERIO Pro Developer's Guide (Rev.1.0) 95
  • Epson BT-2000 | Developers Guide - Page 100
    7.1.3. Headset tap detection The headset for the BT-2000 is equipped with a tap detection function. The headset's tap detection function acts as an input device for the user. For example, this can be used to change screen information. MOVERIO Pro Developer's Guide (Rev.1.0) 96
  • Epson BT-2000 | Developers Guide - Page 101
    . The following lists the available sensor types and usage examples. 7.2.1. Sensor type The BT-2000 can use the following sensors. The following sesnor types are also defined in the Android You can acquire the above from the Android Sensor class. MOVERIO Pro Developer's Guide (Rev.1.0) 97
  • Epson BT-2000 | Developers Guide - Page 102
    sensor listener. Example) Registering an accelerometer //System sensor service acquisition SensorManager sm = (SensorManager)getSystemService(SENSOR_SERVICE); //Registering Sample","ax="+event.values[0]+",ay="+event.values[1]+",az="+event.values[2]); } } MOVERIO Pro Developer's Guide (Rev.1.0) 98
  • Epson BT-2000 | Developers Guide - Page 103
    8. Bluetooth/BLE MOVERIO Pro Developer's Guide (Rev.1.0) 99
  • Epson BT-2000 | Developers Guide - Page 104
    built into the MOVERIO Pro BT-2000. The BT-2000 supports Bluetooth 4.0 LE, and in addition to the conventional Bluetooth 3.0+HS function, it also supports LowEnergy. For convenience, this section describes the Bluetooth 3.0+HS Bluetooth Legacy and the LowEnergy BLE. 8.1.1. Supported specifications
  • Epson BT-2000 | Developers Guide - Page 105
    BLE specifications for the BT-2000. Table 8-3 BLE protocol stack specifications Item Protocol stack specifications Specifications Based on Core Spec Version 4.1 (Low Energy Host) Table 8-4 BLE protocol support Profile Find Me Profile(FMP) Proximity Profile(PXP) Role Locator Monitor Version
  • Epson BT-2000 | Developers Guide - Page 106
    using Bluetooth Legacy You can select the device you want to connect to in [Available Devices], and then perform pairing. 8.2.1.4. Disconnecting using Bluetooth Legacy You can select the device you want to disconnect from in [Paired Devices], and then disconnect. MOVERIO Pro Developer's Guide (Rev
  • Epson BT-2000 | Developers Guide - Page 107
    Beacon. Stops scanning for the BLE Beacon. Displays the Bluetooth Device Address. Displays the Device Name and the Major/Minor numbers. * Depends on the Advertise data configuration from the Beacon. Displays the determined distance and RSSI value Note 2) MOVERIO Pro Developer's Guide (Rev.1.0) 103
  • Epson BT-2000 | Developers Guide - Page 108
    BT-2000 and the Beacon in the app. Distance determination is calculated based on the Measured Power included in the Advertise data by the BLEBeacon app. Since Measured Power support Or the company identifier was not Apple (0x004C) or Nordic (0x0059). MOVERIO Pro Developer's Guide (Rev.1.0) 104
  • Epson BT-2000 | Developers Guide - Page 109
    ON. Bluetooth Low Energy is unenabled. Do you want to enable Bluetooth Low Energy? Figure 8-6 BLE confirmation dialog Please push "Scan Start" botton. Target service selection Target conection device Authentication method Figure 8-7 FMP_PXP app Scan screen composition MOVERIO Pro Developer's Guide
  • Epson BT-2000 | Developers Guide - Page 110
    services included with the connected device. - Immediate Alert Service - Tx Power Service - Link Loss Service From the list of services on the connected device, select the Service you want from [Select search service]. Displays all services to the device. MOVERIO Pro Developer's Guide (Rev.1.0) 106
  • Epson BT-2000 | Developers Guide - Page 111
    /Mid Alert/High Alert You can read the value for the selected sub-procedure. You can read the value set for the current Alert Level. MOVERIO Pro Developer's Guide (Rev.1.0) 107
  • Epson BT-2000 | Developers Guide - Page 112
    BT-2000 uses an original API that does not support the standard Android API. Therefore, when developing an application that uses BLE, use the SDK provided by Epson. ■ BLE ON/OFF BLE differs from Bluetooth function provided in the BLE SDK (onScanResult). MOVERIO Pro Developer's Guide (Rev.1.0) 108
  • Epson BT-2000 | Developers Guide - Page 113
    import android.bluetooth.BluetoothLeGapEvtConnected; import android.bluetooth.BluetoothLeGattCallback; import android.bluetooth.BluetoothLeGattService; import android.bluetooth.BluetoothLeAdapterManager; import android.bluetooth.BluetoothLeGapCallback.PassKeyType; MOVERIO Pro Developer's Guide (Rev
  • Epson BT-2000 | Developers Guide - Page 114
    interfaces. Table 8-9 android.bluetooth.BluetoothLeAdapterManager for application interface connectCancel 11 disconnect 12 setAuthType 13 notifyInputPasskey the GAP function. Searches for the Priary Service for the BLE device. Searches for the MOVERIO Pro Developer's Guide (Rev.1.0) 110
  • Epson BT-2000 | Developers Guide - Page 115
    android.bluetooth.BluetoothLeGapCallback for application interface list NO. Callback function name. 24 onScanResult for search results reception for Primary Service. 30 onDiscCharResult Callback function for search of Indication/Notification MOVERIO Pro Developer's Guide (Rev.1.0) 111
  • Epson BT-2000 | Developers Guide - Page 116
    readGatt(char) readUuidGatt readGatt(char, char) Not supported writeWithoutRspGat t Not supported writeGatt Not supported Not supported BluetoothLeGattCall back.hvxEvt BluetoothLeGattCall back.hvxEvt, confirmation writeGatt Not supported MOVERIO Pro Developer's Guide (Rev.1.0) 112
  • Epson BT-2000 | Developers Guide - Page 117
    . 8.7.2. isEnable  Function Acquire BLE status (enabled or disabled).  Format boolean isEnable(void);  Parameters None  Return value Model boolean Explanation true: BLE enable false: BLE disable MOVERIO Pro Developer's Guide (Rev.1.0) 113
  • Epson BT-2000 | Developers Guide - Page 118
    boolean Explanation true: success false: fail 8.7.4. disable  Function Disable BLE.  Format boolean disable(void);  Parameters None  Return value Model boolean Explanation true: success false: fail MOVERIO Pro Developer's Guide (Rev.1.0) 114
  • Epson BT-2000 | Developers Guide - Page 119
    (Advertise data), you need to register the callback function in setGapCallback in advance. The following callback function sends a notification for received Advertise data. BluetoothLeGapCallback.onScanResult MOVERIO Pro Developer's Guide (Rev.1.0) 115
  • Epson BT-2000 | Developers Guide - Page 120
     Function Acquire the local device name.  Format String getDeviceName(void);  Parameters None  Return value Model String Explanation Except for NULL: local device name. NULL: Fail MOVERIO Pro Developer's Guide (Rev.1.0) 116
  • Epson BT-2000 | Developers Guide - Page 121
    Model String Explanation Except for NULL: local BD device. (Text strings that include colons in the format: "11:22:33:44:55:66") NULL: Fail MOVERIO Pro Developer's Guide (Rev.1.0) 117
  • Epson BT-2000 | Developers Guide - Page 122
    processing results, you need to register the callback function in setGapCallback in advance. The following callback function sends a notification for connection processing results. BluetoothLeGapCallback.onConnectResult MOVERIO Pro Developer's Guide (Rev.1.0) 118
  • Epson BT-2000 | Developers Guide - Page 123
    classification Value BluetoothLeGapCallback.AddrType.PUBLIC BluetoothLeGapCallback.AddrType.RANDOM_STATIC BluetoothLeGapCallback.AddrType.RANDOM_PRIVATE_RESOLVABLE BluetoothLeGapCallback.AddrType.RANDOM_PRIVATE_NON_RESOLVABLE Explanation Public Random MOVERIO Pro Developer's Guide (Rev.1.0) 119
  • Epson BT-2000 | Developers Guide - Page 124
    the BLE device.  Format int connectCancel(void);  Parameter Model name None Explanation ―  Return value Model Explanation Int BluetoothLeChipCode.SUCCESS: success BluetoothLeChipCode.BaseError.INVALID_STATE: invalid status MOVERIO Pro Developer's Guide (Rev.1.0) 120
  • Epson BT-2000 | Developers Guide - Page 125
    processing results, you need to register the callback function in setGapCallback in advance. The following callback function sends a notification for disconnection processing results. BluetoothLeGapCallback.onDisconnectResult MOVERIO Pro Developer's Guide (Rev.1.0) 121
  • Epson BT-2000 | Developers Guide - Page 126
    8.7.12. setAuthType  Function Set authentication classification.  Format boolean setAuthType(AuthType authType);  Parameter Model name AuthType .JUSTWORKS BluetoothLeGapCallback.AuthType.PASSKEYENTRY Explanation Omit pin code PIN code authention MOVERIO Pro Developer's Guide (Rev.1.0) 122
  • Epson BT-2000 | Developers Guide - Page 127
    .BaseError.INVALID_PARAM: invalid parameter BluetoothLeChipCode.BaseError.INVALID_STATE: invalid status BluetoothLeChipCode.BaseError.INVALID_ADDR: invalid memory address BluetoothLeChipCode.STKError.INVALID_CONN_HANDLE: invalid connection handle MOVERIO Pro Developer's Guide (Rev.1.0) 123
  • Epson BT-2000 | Developers Guide - Page 128
    None Explanation Callback class  Callback function used for GAP functions See the callback function descriptions in 8.7.24 to 8.7.28 for information on the callback function for GAP functions that can be registered to the BluetoothLeGapCallback class. MOVERIO Pro Developer's Guide (Rev.1.0) 124
  • Epson BT-2000 | Developers Guide - Page 129
    the connected BLE device for a Primary Service. Use format -2 when specifying a UUID and searching for the Primary Service.  Format -1 int discPriSrv(char sends a notification for search results. BluetoothLeGattCallback.onDiscPriSrvResult MOVERIO Pro Developer's Guide (Rev.1.0) 125
  • Epson BT-2000 | Developers Guide - Page 130
    receive search results, you need to register the callback function in setGattCallback in advance. The following callback function sends a notification for search results. BluetoothLeGattCallback.onDiscCharResult MOVERIO Pro Developer's Guide (Rev.1.0) 126
  • Epson BT-2000 | Developers Guide - Page 131
    receive search results, you need to register the callback function in setGattCallback in advance. The following callback function sends a notification for search results. BluetoothLeGattCallback.onDiscCharDescResult MOVERIO Pro Developer's Guide (Rev.1.0) 127
  • Epson BT-2000 | Developers Guide - Page 132
    receive search results, you need to register the callback function in setGattCallback in advance. The following callback function sends a notification for search results. BluetoothLeGattCallback.onReadGattResult MOVERIO Pro Developer's Guide (Rev.1.0) 128
  • Epson BT-2000 | Developers Guide - Page 133
    receive search results, you need to register the callback function in setGattCallback in advance. The following callback function sends a notification for search results. BluetoothLeGattCallback.onReadUuidGattResult MOVERIO Pro Developer's Guide (Rev.1.0) 129
  • Epson BT-2000 | Developers Guide - Page 134
    .BaseError.INVALID_PARAM: invalid parameter BluetoothLeChipCode.BaseError.DATA_SIZE: exceeded data size BluetoothLeChipCode.BaseError.NO_TX_BUFFERS: exceeded buffer capacity BluetoothLeChipCode.STKError.INVALID_CONN_HANDLE: invalid connection handle MOVERIO Pro Developer's Guide (Rev.1.0) 130
  • Epson BT-2000 | Developers Guide - Page 135
    receive search results, you need to register the callback function in setGattCallback in advance. The following callback function sends a notification for search results. BluetoothLeGattCallback.onWriteGattResult MOVERIO Pro Developer's Guide (Rev.1.0) 131
  • Epson BT-2000 | Developers Guide - Page 136
    int BluetoothLeChipCode.SUCCESS: success BluetoothLeChipCode.BaseError.INVALID_STATE: invalid status BluetoothLeChipCode.STKError.INVALID_CONN_HANDLE: invalid connection handle BluetoothLeChipCode.STKError.INVALID_ATTR_HANDLE: invalid attribute handle MOVERIO Pro Developer's Guide (Rev.1.0) 132
  • Epson BT-2000 | Developers Guide - Page 137
    See the callback function descriptions in 8.7.29 to 8.7.35 for information on the callback function for GATT functions that can be registered to the BluetoothLeGattCallback. MOVERIO Pro Developer's Guide (Rev.1.0) 133
  • Epson BT-2000 | Developers Guide - Page 138
    8.7.24. BluetoothLeGapCallback.onScanResult  Function Provide an interface for the callback function to receive scan results ( AdvType.ADV_DIRECT_IND AdvType.ADV_SCAN_IND AdvType.ADV_NONCONN_IND AdvType.SCAN_RSP AdvType.UNKNOWN Advertise data (31octet) MOVERIO Pro Developer's Guide (Rev.1.0) 134
  • Epson BT-2000 | Developers Guide - Page 139
    connStatus BluetoothLeGapEvtAuthStatus authStatus Explanation Connection information Connection complete status Since connection fails if a CONNECTION_TIMEOUT occurs, the value is undefined. ※ Not supported. Do not use as value is undefined. MOVERIO Pro Developer's Guide (Rev.1.0) 135
  • Epson BT-2000 | Developers Guide - Page 140
     Connection complete status (class BluetoothLeGapEvtConnected) Member's name char connectedHandle byte addrType byte[] addr BleConnectParams params Explanation Connection handle BD address classification BD address Connection parameter MOVERIO Pro Developer's Guide (Rev.1.0) 136
  • Epson BT-2000 | Developers Guide - Page 141
    .CONNECTION_TERMINATED_BY_LOCAL_HOST BluetoothLeErrorCodeDescription.SigDefinition.LMP_LL_RESPONSE_TIMEOUT are the main values. For details on other values, see "Specification of the Bluetooth System v4.1, Vol 2, Part D : Error Code Descriptions" MOVERIO Pro Developer's Guide (Rev.1.0) 137
  • Epson BT-2000 | Developers Guide - Page 142
    Provide an interface for the callback function to display pass key reception.  Format void onPasskeyDisplay(String passKey);  Parameter Model name String passKey Explanation Key string MOVERIO Pro Developer's Guide (Rev.1.0) 138
  • Epson BT-2000 | Developers Guide - Page 143
    to receive search results for the Primary Service.  Related API: discPriSrv  Format ATT Error: Used in ATT as Request Not Supported. */ public static final int BLE_GATT_STATUS_ATTERR_REQUEST_NOT_SUPPORTED = Error: Used in ATT as Prepare Queue Full. */ MOVERIO Pro Developer's Guide (Rev.1.0) 139
  • Epson BT-2000 | Developers Guide - Page 144
    Error: Attribute type is not a supported grouping attribute. */ public static final Service information (class BluetoothLeGattService) Member's name byte[] uuid char startHandle char endHandle Explanation UUID (16bit only) Start handle location End handle location MOVERIO Pro Developer's Guide
  • Epson BT-2000 | Developers Guide - Page 145
    IsBrodcast() boolean IsRead() IsWriteWoResp() IsWrite() IsNofify() IsIndicate() Explanation Determine if anything is broadcast Determine readGatt/readUuidGatt Determine writeWithoutRspGatt Determine writeGatt Determine Notification Determine Indication MOVERIO Pro Developer's Guide (Rev.1.0) 141
  • Epson BT-2000 | Developers Guide - Page 146
    .GattStatus Characteristic Descriptor information  Characteristic Descriptor information (class BluetoothLeGattDesc) Member's name byte[] uuid char handle Explanation Characteristic Descriptor UUID Handle for Characteristic Descriptor MOVERIO Pro Developer's Guide (Rev.1.0) 142
  • Epson BT-2000 | Developers Guide - Page 147
    BluetoothLeChipCode.GattStatus Read Response data  Read Response data (class BluetoothLeGattEvtReadRsp) Member's name byte[] data char handle char offset Explanation Read Response data Handle Data offset MOVERIO Pro Developer's Guide (Rev.1.0) 143
  • Epson BT-2000 | Developers Guide - Page 148
    [] data);  Parameter Model name char connectedHandle int status byte[] data Explanation Connection handle Search results * Returns the value defined in BluetoothLeChipCode.GattStatus Characteristic Value data MOVERIO Pro Developer's Guide (Rev.1.0) 144
  • Epson BT-2000 | Developers Guide - Page 149
    data  Write Response data (class BluetoothLeGattEvtWriteRsp) Member's name byte[] data char handle char offset byte writeOp Explanation Write data Handle Data offset Write operation code MOVERIO Pro Developer's Guide (Rev.1.0) 145
  • Epson BT-2000 | Developers Guide - Page 150
    connectedHandle int status hvxEvtType type byte[] data Explanation Connection handle Search results * Returns the value defined in BluetoothLeChipCode.GattStatus Indication/Notification classification Characteristic handle value MOVERIO Pro Developer's Guide (Rev.1.0) 146
  • Epson BT-2000 | Developers Guide - Page 151
    disable BLE. private BluetoothLeAdapterManager mManager; if ( mManager.isEnable() ) { // BLE On if ( ! mManager.disable() ) { //Error processing: display error message for BLE-Off failure } } else { // BLE Off } MOVERIO Pro Developer's Guide (Rev.1.0) 147
  • Epson BT-2000 | Developers Guide - Page 152
    signal strength to a log. private BluetoothLeGapCallback mLeGapCallback = new BluetoothLeGapCallback(){ @Override public void onScanResult(AddrType addrType, String addr, int rssi , byte[] adv_data) { Log.i("DEBUG", "rssi=" + rssi); } }; } MOVERIO Pro Developer's Guide (Rev.1.0) 148
  • Epson BT-2000 | Developers Guide - Page 153
    .bluetooth.BluetoothLeAdapterManager; import android.bluetooth.BluetoothLeGapEvtConnected; import android.bluetooth in connected event status connStatus acquired in onConnectResult mManager.disconnect(ConnectedHandle, REMOTE_USER_TERMINATED_CONNECTION); } } MOVERIO Pro Developer's Guide (Rev.1.0) 149
  • Epson BT-2000 | Developers Guide - Page 154
    , BluetoothLeGapEvtAuthStatus authStatus) { Log.i("DEBUG", "connectedHandle=" + connStatus.connectedHandle); }; @Override public void onDisconnectResult(char connectedHandle, byte response, boolean reconnecting) { Log.i("DEBUG", "Disconnect"); }; }; MOVERIO Pro Developer's Guide (Rev.1.0) 150
  • Epson BT-2000 | Developers Guide - Page 155
    Service search using discPriSrv(). import android.bluetooth.BluetoothLeAdapterManager; import android.bluetooth.BluetoothLeGapEvtConnected; import android.bluetooth ", "startHandle=" + data[cnt].startHandle + " endHandle=" + data[cnt].endHandle); } }; }; } MOVERIO Pro Developer's Guide (Rev.1.0) 151
  • Epson BT-2000 | Developers Guide - Page 156
    bluetooth.BluetoothLeAdapterManager; import android.bluetooth.BluetoothLeGapEvtConnected; import android.bluetooth and EndHandle from the Service information acquired in onDiscPriSrvResult mManager [cnt].handleValue+ " uuid=" + data[cnt].uuid); } }; }; } MOVERIO Pro Developer's Guide (Rev.1.0) 152
  • Epson BT-2000 | Developers Guide - Page 157
    .bluetooth.BluetoothLeAdapterManager; import android.bluetooth.BluetoothLeGapEvtConnected; import android.bluetooth. .length; cnt++) { Log.i("DEBUG", "HandleValue=" + data[cnt].handleValue + " CharacteristicUuid=" + data[cnt].uuid); } }; MOVERIO Pro Developer's Guide (Rev.1.0) 153
  • Epson BT-2000 | Developers Guide - Page 158
    .bluetooth.BluetoothLeAdapterManager; import android.bluetooth.BluetoothLeGapEvtConnected; import android.bluetooth.BluetoothLeGattCallback ( char status, BluetoothLeGattEvtReadRsp data) { Log.i("DEBUG", "Characteristic Value=" + data.data); } MOVERIO Pro Developer's Guide (Rev.1.0) 154
  • Epson BT-2000 | Developers Guide - Page 159
    android.bluetooth.BluetoothLeAdapterManager; import android.bluetooth.BluetoothLeGapEvtConnected; import android.bluetooth.BluetoothLeGattCallback; int status, BluetoothLeGattEvtReadUuidRsp[] data) { Log.i("DEBUG", "Characteristic Value=" + data.data); } MOVERIO Pro Developer's Guide (Rev.1.0) 155
  • Epson BT-2000 | Developers Guide - Page 160
    import android.bluetooth.BluetoothLeAdapterManager; import android.bluetooth.BluetoothLeGapEvtConnected; import android.bluetooth.BluetoothLeGattCallback; writeGatt is returned for confirmation, // no processing is performed Log.i("DEBUG", "write ok"); } MOVERIO Pro Developer's Guide (Rev.1.0) 156
  • Epson BT-2000 | Developers Guide - Page 161
    9. Power control MOVERIO Pro Developer's Guide (Rev.1.0) 157
  • Epson BT-2000 | Developers Guide - Page 162
    batteries in the BT-2000 and acquire power supply information. ■ Power supply information The following power supply information types are defined in the Android BatteryManager class. Power supply type Power status Overall status of batteries A/B Battery MOVERIO Pro Developer's Guide
  • Epson BT-2000 | Developers Guide - Page 163
    , and acquire the battery information. Usage examples are displayed below. ■ Register the receiver of the battery information broadcast by the BatteryManager.EXTRA_STATUS_A); boolean present_a = intent.getBooleanExtra(BatteryManager.EXTRA_PRESENT_A, false); MOVERIO Pro Developer's Guide (Rev.1.0) 159
  • Epson BT-2000 | Developers Guide - Page 164
    10. Appendix MOVERIO Pro Developer's Guide (Rev.1.0) 160
  • Epson BT-2000 | Developers Guide - Page 165
    10.1.1.Self-diagnostic function summary The BT-2000 is equipped with a self-diagnostic Battery A Battery B CPU PMIC DDR eMMC WLAN Bluetooth BLE Audio IC Voice Command Sensor MCU IMU Sensor Illumination Charger IC A Charger IC B Battery A Battery available. MOVERIO Pro Developer's Guide (Rev.1.0) 161
  • Epson BT-2000 | Developers Guide - Page 166
    the app starts, click the "Start Diag" button at the top of the screen to start the diagnostic procedure. Figure 10-2 Start SelfDiagnosis app screen MOVERIO Pro Developer's Guide (Rev.1.0) 162
  • Epson BT-2000 | Developers Guide - Page 167
    When the diagnosis has been performed, the results for each device are displayed. See table 10-1 above for details about the target items and the checking method. Figure 10-3 SelfDiagnosis check results MOVERIO Pro Developer's Guide (Rev.1.0) 163
  • Epson BT-2000 | Developers Guide - Page 168
    ― Memo ― MOVERIO Pro Developer's Guide (Rev.1.0) 164
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168

MOVERIO Pro Developer's Guide (Rev.1.0)
Developer's Guide
SEKIO EPSON CORPORATION