Android OTA APP

The Android OTA APP User Guide provides comprehensive guidance on using the application to update Realtek devices, utilizing Bluetooth Low Energy and Classic Bluetooth to deliver software updates, configuration settings, and patches. Prior to deploying the application, it is crucial to have a phone running Android 5.0 or above, along with the latest upgrade files, to guarantee a smooth and successful update process.

To help users fully grasp the application’s functionalities, this manual includes annotated figures for clarity, ensuring users can follow visual aids to complete each step effectively.

  • The Getting Started section provides an effective step-by-step guide, directing users on how to use this tool.

  • The FAQ section is a valuable resource for addressing common questions and troubleshooting potential issues.

OTA APP is designed to provide the function of updating the firmware version for Realtek RTL87xx SoC series products.

Getting Started

After connecting with an RTL87xx product, it can support HID, LE, headset device, BR/EDR, dongle device to do OTA update. Among them:

  • HID function test is mainly for the OTA upgrade of the remote control.

  • LE function test is to do OTA upgrade for low energy bluetooth devices.

  • Headset function test is to do OTA upgrade for headset equipment.

  • BR/EDR function test is to do OTA upgrade for classic bluetooth devices.

  • Dongle function test is to do OTA upgrade for dongle equipment.

../../../_images/app_ui_select_functions.png

Function Test

Since the upgrade process of different types of devices is roughly the same, this article will take SPP function test as an example to briefly introduce the operation process of OTA upgrade.

Connect Target Device

Select headset (SPP Function Test) on the solution OTA test page.

Update the application or firmware of RTL87xx series IC through bluetooth SPP channel according to the specified process.

../../../_images/app_ui_headset_ota.png

Headset Function Test

Select Target Device

When clicking the device item, the scan device page will be entered, the page will automatically scan and a device list will appear on the page, a device can be selected to connect via SPP. If the list does not appear automatically, then click the SCAN button.

  1. Click the SCAN button to discover devices nearby.

  2. Select the device that needs to be connected via SPP.

../../../_images/app_ui_headset_scan_device.png

Scan Target Device

Establish Connection

After the connection is established, UI will show the device info including device name and bluetooth address, as shown below:

../../../_images/app_ui_headset_connect_device.png

Establish Connection

View Device Information

Click the device name whose color is green, and the dialog will be shown from the bottom, the device info can be checked as shown below:

../../../_images/app_ui_headset_device_info.png

Device Information

  • General: General information of the device, including version numbers, etc.

  • Active: The currently running bank, including version number information, etc.

  • Inactive: The bank pending upgrade, including version number information, etc.

Load File

  1. Click File Path item to open file explorer.

  2. Select the image file to upload.

Note

The bin file needs to be searched for starting from the root directory of the storage device.

../../../_images/app_ui_select_file.png

Select Bin File

  1. After the file load success, the file name’s color will change to green.

../../../_images/app_ui_load_file_complete.png

Load File Complete

  1. Click the file name item, a new dialog will be shown from the bottom.

../../../_images/app_ui_file_detail_info.png

File Detail Information

Update

  1. After connecting the device, click the Upload button to start the upgrade.

  2. During the upgrade process, the current upgrade progress will be displayed on the UI.

  3. After the upgrade is completed, there will be a result prompt.

../../../_images/app_ui_update_process_update.png

Upload Processing

Settings

Bin Parameters

../../../_images/app_ui_settings_bin_filter_sub_images.png

Bin Parameters Images

Filter Sub Images
  1. Turn on the Filter Sub Image switch.

  2. Click the Filter button.

  3. Select the image to be upgraded and click the Submit button.

Note

If the user does not select any sub-files, all sub-files of the Image file will be upgraded by default.

Sort Sub Images
  1. Turn on the Sort Sub Image switch.

  2. Click the Sort button.

  3. Drag and drop image to sort and click the Submit button.

DFU Configure

Battery Check

The purpose of the battery power check is to ensure that the current phone has enough power to complete the OTA upgrade. The threshold is set to 30% by default.

../../../_images/app_ui_settings_battery_check.png

Battery Check

Battery Check State

State

Description

ON

When the switch is turned on, the threshold can be selected.

OFF

No battery check, can update anyway.

During the upgrade process, the phone may automatically shut down due to insufficient power, which will cause the OTA upgrade to fail.

Image Version Check

Users can turn on or off version checking as needed.

../../../_images/app_ui_settings_image_version_check.png

Image Version Check

Image Version Check State

State

Description

ON

Have version check, can only update high version image files.

If the selected image file is a low version, the low image version will be prompted after the file is loaded.

You can choose a version checking strategy, strict checking or loose checking.

  • Strict: All files to be upgraded must be of a higher version before they can be upgraded, otherwise low image version will be prompted.

  • Loose: As long as there is a higher version in the file to be upgraded, it can be upgraded, and low image version will not be prompted.

OFF

No version check, can update all image files.

But it does not mean that you can upgrade the version at will, it mainly depends on whether the SoC has the version checking function.

The current SoC version generally opens the version check, so if you upgrade to a lower version, only the phone APP can send the upgrade command normally, but the SoC will check the lower version and refuse to upgrade, and the phone APP will also show that the upgrade is successful, but in fact it cannot really upgrade the lower version.

Chip Type Check

Users can turn on or off chip type checking as needed.

../../../_images/app_ui_settings_dfu_chip_type_check.png

Chip Type Check

Chip Type Check State

State

Description

ON

The chip type check switch is on by default.

When loading an image file, if the bin file does not match the IC type of the device, it will prompt IC type conflict, and cannot be upgraded.

OFF

Turn off the chip type check switch.

When loading an image file, if the bin file does not match the IC type of the device, it will not prompt IC type conflict and can be upgraded.

Automatic Active Image

After the upgrade is complete, the user can choose whether to automatically activate the firmware.

../../../_images/app_ui_settings_dfu_automatic_active.png

Automatic Active Image

Automatic Active Image State

State

Description

ON

Automatically active image after the upgrade is successful.

OFF

Prompt to active image after the upgrade is successful.

When the file transmission has been done, you may choose whether to validate the OTA Update.

If you choose yes, activate the firmware and the OTA upgrade is complete.

If you choose no, the device will be reset, the OTA upgrade process will be terminated, and the upgrade will fail.

SPP

Customize SPP UUID
../../../_images/app_ui_settings_spp.png

Customize SPP UUID

The table for custom SPP UUID parameters is as follows:

Customize SPP UUID Parameters

Fields

Description

SPP UUID

Customized Vendor SPP UUID.

SPP UUID Transport

AUTO: If no UUID is matched, it will automatically connect to the well-known SPP UUID (00001101-0000-1000-8000-00805F9B34FB).

VENDOR: Only use the specified UUID to connect.

FAQ

Export Logcat

Connect your phone to the computer, then find this directory (sdcard\Android\data\com.realsil.ota\files\saveLog\) on the phone and export the log at the corresponding time point.

../../../_images/ui_export_log_pc.png

Export Logcat

Error Code

Error Code

Error Code

Description

0x0100

Can Not Connect Device

0x0105

Send Command Without Callback

0x0108

Establish Connection Failed

0x0109

Can Not Scan Target Device

0x010B

Send Data Failed

0x011B

Role Swap Failed

0x011F

Already Latest Version

0x0205

  • CRC Check Failed

  • Please the firmware colleague to analyze the reason for this error code.

0x0208

Flash Erase Error

0x02FE

Command Not Support

0x0800

Connection Disconnected