FAQ


1. Frequently asked development questions

Q: Why did I fail to use hardware H.264 encoding when developing an app on the glasses?

A: The system hardware's MediaCodec encoding has restrictions on resolutions of the input stream. The resolution width and the resolution height of the input stream must be multiples of 16 and 2 respectively. Otherwise, the encoding will fail. If hardware H.264 encoding fails or causes a crash, please check whether resolution of the input stream meets the above requirement.

Q: Why can’t I set the brightness for automatic exposure compensation when developing an app on the glasses?

A: Currently, an extended camera exposure mode is provided. With the automatic exposure compensation interface, the app can reference the following interfaces.

    Solution 1: Camera API1
    int aeCompMode; //0 for global exposure and 1 for lower triangle exposure
    Camera.Parameters parameters = mCamera.getParameters();
    parameters.setExposureCompensation(aeCompMode);
    mCamera.setParameters(parameters);

    Solution 2: Camera API2
    int aeCompMode; //0 for global exposure and 1 for lower triangle exposure
    mPreviewBuilder.set(CaptureRequest.CONTROL_AE_EXPOSURE_COMPENSATION, aeCompMode);

Q: A question regarding an app obtaining data from sensors of the glasses

A: Due to system hardware restrictions, the sensors supported by default are as follows. Note that obtaining raw data is not supported.

sensor type status
android.sensor.accelerometer Fail
android.sensor.gyroscope Fail
android.sensor.magnetic_field Fail
android.sensor.game_rotation_vector OK
android.sensor.rotation_vector OK
android.sensor.light OK
android.sensor.proximity OK
Considering the fact that you need to obtain raw data in some application scenarios, we provide a flash tool to update firmware of the glasses to meet this requirement. You will be able to obtain raw data after the update, but there will not be quaternion data available. To obtain the flash tool, please consult our technical support engineers.

2. How to upgrade operating system of the glasses by OTA update

Step 1: Check the version information

Settings-->System-->About; If the OS version is too low, then you need to perform a manual OTA update.

Step 2: Perform an OTA update by following the steps below.

Settings-->Sys Update-->Check for updates

3. Connecting to the glasses from Windows

Overview

  • Because the built-in MTP device driver of Windows 7 systems cannot automatically adapt to the dock device of the 2nd-generation glasses, you need to manually install a compliant MTP driver, if you want to connect the dock to a Windows 7 system to perform file management.
  • Most Windows 8 and 10 systems can automatically install the MTP driver. So, after connecting the dock to such a system, you can find the Glass device in "This PC" once automatic installation of the driver is complete. In case the automatic installation fails, you can manually install the driver by following the steps below.

How to manually install the MTP driver

  1. Connect the dock of the 2nd-generation glasses to the computer via a USB cable, and then right click Computer, and click the device manager (for the Windows 7 system):

    Step 1

    Note: The screenshot is for the Windows 7 system. In Windows 8 and 10 systems, you need to right click This Computer, select Manage, and click and select System Tools -> Device Manager on the left side of the pop-up window to open the device manager. Then, Device Manager window is popped up on the right side, as shown in the following figure: (the subsequent Steps 2-13 are completely the same)

    Step 1

  2. Then, you can see in the pop-up window that there is an MTP device in Other Devices column, with a yellow exclamation mark indicating that the glasses device has been connected but not identified successfully:

    Step 2

  3. Right click on the MTP menu, and select to update the driver software:

    Step 3

  4. In the interface that appears, click to select Browse the computer to find the driver software, as shown in the red box in the following figure:

    Step 4

  5. In the interface that appears, select Choose from the list of device drivers on the computer, as shown in the red box in the following figure:

    Step 5

  6. Drag the navigation button on the right side, find portable devices, left click and select it, and click Next:

    Step 6

  7. In Manufacturer column on the left side of the pop-up window, left click and select Standard MTP Device, and then left click and select MTP USB Device in Model column on the right side, and click Next:

    Step 7

  8. Then, when a driver compatibility warning appears, click Yes button:

    Step 8

  9. Then, an installation progress bar interface pops up, and wait a short while:

    Step 9

  10. If the installation is successful, a success interface will appear

    Step 10

  11. Then, the exceptional MTP device in Device Manager disappears, while Portable Devices appears, and you can find Glasses under it:

    Step 11

  12. Close Device Manager, click to enter Computer, and you can find a portable device named Glasses:

    Step 12

  13. Double-click Glasses device to enter it to perform operations, such as read from a file and write to a file, as on the normal hard disk:

    Step 13 Step 13

  14. After you have waited for a period of time at Step 9, the following interface may appear if the installation of the driver has failed, indicating that the built-in driver of the system has an exception, and you need to remove and reconnect the dock and repeat Steps 1-9. If unsuccessful installation persists, we recommend that you use another computer, or contact technical support for assistance.

    Step 14

```

results matching ""

    No results matching ""