3 API Documentation

3.1 Watch Face Operation Interface

Interface Name

Parameters

Return Value

Description

registerOnWatchCallback

OnWatchCallback: 3.5   Watch Event Callback Listener

void

Register watch event callback

unregisterOnWatchCallback

OnWatchCallback: 3.5   Watch Event Callback Listener

Void

Unregister watch event callback

isOTAResource

Boolean: Result

Check if OTA resource

restoreWatchSystem

OnFatFileProgressListener: 3.8   Time-consuming Operation Progress Callback

Void

Restore watch system

updateWatchResource

resPath: Resource path
OnUpdateResourceCallback: 3.9   Update Resource Callback

Void

Update watch resource

getCurrentBrowsePath

String: Current browse path

Get current browse path

listWatchList

OnWatchOpCallback<ArrayList<FatFile>> : 3.7   Operation Result Callback

Void

Browse watch face files

getCurrentWatchInfo

OnWatchOpCallback<FatFile> : 3.7   Operation Result Callback

Void

Get current watch face info

setCurrentWatchInfo

filePath: File path
OnWatchOpCallback<FatFile>: 3.7   Operation Result Callback

Void

Set watch face

enableCustomWatchBg

filePath: File path
OnWatchOpCallback<FatFile>: 3.7   Operation Result Callback

Void

Enable custom watch face background

createWatchFile

filePath: File storage path
isNoNeedCheck: Whether to skip version verification

Void

Insert watch face

deleteWatchFile

filePath: Watch system path

Void

Delete watch face

openWatchFile

filePath: Watch system path
OnWatchOpCallback<byte[]>: 3.7   Operation Result Callback

Void

Open file

replaceWatchFile

filePath: File path

Void

Replace same-name file

getCustomWatchBgInfo

fatFilePath: Watch system path
OnWatchOpCallback<String>: 3.7   Operation Result Callback

Void

Get custom background info for corresponding watch face

getWatchMessage

fatFilePath: Watch system path
OnWatchOpCallback<String>: 3.7   Operation Result Callback

Void

Get watch face info

getWatchSysLeftSize

OnWatchOpCallback<Long>: 3.7   Operation Result Callback

Void

Get remaining watch system space size

getWatchFileSize

fatFilePath: Watch face path
OnWatchOpCallback<WatchFileContent> : 3.7   Operation Result Callback

Void

Get watch file size

requestDevicePower

OnWatchOpCallback<Boolean> : 3.7   Operation Result Callback

Void

Get device power

pushMessageInfo

NotificationMsg: Notification info
OnWatchOpCallback<Boolean>: 3.7   Operation Result Callback

Void

Push notification

removeMessageInfo

NotificationMsg: Notification info
OnWatchOpCallback<Boolean>: 3.7   Operation Result Callback

Void

Remove notification

syncWeatherInfo

weather: Weather info
OnWatchOpCallback<Boolean>: 3.7   Operation Result Callback

Void

Sync weather info

cancelTransfer

Boolean: Operation result

Cancel data transfer

getWatchConfigure

BluetoothDevice: Connected device object

WatchConfigure: Watch configuration info

Get cached watch configuration info

requestDeviceConfigure

OnWatchOpCallback<WatchConfigure> : 3.7   Operation Result Callback

Void

Get watch configuration info

syncIrkMessage

OnWatchOpCallback<IrkMessage> : 3.7   Operation Result Callback

Void

Synchronize IRK information

3.2 Clock Function Interface

Interface Name

Parameters

Return Value

Description

syncTime

device: Operation device
OnOperationCallback<Boolean>: 3.7   Operation Result Callback

Void

Synchronize time

readAlarmList

device: Operation device
OnOperationCallback<Boolean>: 3.7   Operation Result Callback

Void

Read alarm list

readAlarmDefaultBellList

device: Operation device
OnOperationCallback<Boolean>: 3.7   Operation Result Callback

Void

Read alarm ringtone list

deleteAlarm

device: Operation device
alarm: Alarm properties
OnOperationCallback<Boolean>: 3.7   Operation Result Callback

Void

Delete alarm

addOrModifyAlarm

device: Operation device
alarm: Alarm properties
OnOperationCallback<Boolean>: 3.7   Operation Result Callback

Void

Add or modify alarm

stopAlarmBell

device: Operation device
OnOperationCallback<Boolean>: 3.7   Operation Result Callback

Void

Stop alarm bell

readAlarmBellArgs

device: Operation device
mask: Alarm index mask, see 3.2.1   Alarm Index Mask Composition

Void

Read alarm bell parameters

setAlarmBellArg

device: Operation device
arg: Alarm bell parameters
OnOperationCallback<Boolean>: 3.7   Operation Result Callback

Void

Set specified alarm bell parameters

auditionAlarmBell

device: Operation device
param: Audition bell parameters
OnOperationCallback<Boolean>: 3.7   Operation Result Callback

Void

Audition alarm bell

stopPlayAlarmBell

device: Operation device
OnOperationCallback<Boolean>: 3.7   Operation Result Callback

Void

Stop audition alarm bell

3.2.1 Alarm Index Mask Composition

Length of mask: 1 Byte
Binary: 0000 0000
Bit0 --> Alarm 1, Bit1 --> Alarm 2, ... etc.
Example:
Binary: 0000 0001 --> Query alarm 1 bell parameters
Hexadecimal: 0x01
Decimal: 1

3.3 Fitness & Health Function Interface

Interface Name

Parameters

Return Value

Description

readHealthData

device: Operation device
query: Query conditions
OnOperationCallback<Boolean>: 3.7   Operation Result Callback

Void

Read health data

readHealthSettings

device: Operation device
mask: Query mask
OnOperationCallback<Boolean>: 3.7   Operation Result Callback

Void

Read health settings data

configHealthSettings

device: Operation device
List<AttrBean>: Settings information list
OnOperationCallback<Boolean>: 3.7   Operation Result Callback

Void

Configure health settings function

configHealthSettings

device: Operation device
IHealthSettingToAttr: Settings information interface
OnOperationCallback<Boolean>: 3.7   Operation Result Callback

Void

Configure health settings function

readSportsInfo

device: Operation device
OnOperationCallback<SportsInfo>: 3.7   Operation Result Callback

Void

Read sports info

readRealTimeSportsData

device: Operation device
OnOperationCallback<RealTimeSportsData>: 3.7   Operation Result Callback

Void

Read real-time sports data

startSports

device: Operation device
mode: Sports mode
OnOperationCallback<Boolean>: 3.7   Operation Result Callback

Void

Start sports

stopSports

device: Operation device
OnOperationCallback<Boolean>: 3.7   Operation Result Callback

Void

Stop sports

pauseSports

device: Operation device
OnOperationCallback<Boolean>: 3.7   Operation Result Callback

Void

Pause sports

resumeSports

device: Operation device
OnOperationCallback<Boolean>: 3.7   Operation Result Callback

Void

Resume sports

3.4 RCSP Event Callback Listener

public abstract class OnRcspCallback {

    /**
     * Rcsp protocol initialization callback
     *
     * @param device Connected device
     * @param isInit Initialization result
     */
    public void onRcspInit(BluetoothDevice device, boolean isInit) {

    }

    /**
     * Device-sent rcsp command callback
     *
     * @param device  Connected device
     * @param command RCSP command
     */
    public void onRcspCommand(BluetoothDevice device, CommandBase command) {

    }

    /**
     * Device-sent data command callback
     *
     * @param device  Connected device
     * @param dataCmd Data command
     */
    public void onRcspDataCmd(BluetoothDevice device, CommandBase dataCmd) {

    }

    /**
     * RCSP error event callback
     *
     * @param device Device object
     * @param error  Error information
     */
    public void onRcspError(BluetoothDevice device, BaseError error) {

    }

    /**
     * Mandatory upgrade callback
     *
     * @param device Device requiring mandatory upgrade
     */
    public void onMandatoryUpgrade(BluetoothDevice device) {

    }

    /**
     * Device connection status
     *
     * @param device  Bluetooth device
     * @param status  Connection status
     */
    public void onConnectStateChange(BluetoothDevice device, int status) {

    }

    /**
     * Switch connected and currently used device callback
     *
     * @param device Connected device
     */
    public void onSwitchConnectedDevice(BluetoothDevice device) {

    }


    /**
     * Send data callback
     *
     * @param device Connected device
     * @param data Send raw data
     */
    public void onPutDataToDataHandler(BluetoothDevice device, byte [] data){

    }

}

3.5 Watch Event Callback Listener

public abstract class OnWatchCallback extends OnRcspCallback {

    /**
     * Watch system initialization status callback
     *
     * @param code Initialization status
     *             <p>
     *             If 0, indicates initialization success; other values are error codes
     *             </p>
     */
    public void onWatchSystemInit(int code) {

    }

    /**
     * Watch system exception callback
     *
     * @param device    Device object
     * @param sysStatus Watch system status code
     */
    public void onWatchSystemException(BluetoothDevice device, int sysStatus) {

    }

    /**
     * External Flash write protection callback
     *
     * @param device    Device object
     * @param writeFlag Write protection status
     */
    public void onExternalFlashWriteFlag(BluetoothDevice device, boolean writeFlag) {

    }

    /**
     * Resource upgrade unfinished callback
     *
     * @param device Device object
     */
    public void onResourceUpdateUnfinished(BluetoothDevice device) {

    }

    /**
     * External Flash information callback
     *
     * @param device   Device object
     * @param flashMsg External Flash information
     */
    public void onExternalFlashMsg(BluetoothDevice device, ExternalFlashMsgResponse flashMsg) {

    }

    /**
     * Current watch face information callback
     *
     * @param device      Device object
     * @param fatFilePath File path
     */
    public void onCurrentWatchInfo(BluetoothDevice device, String fatFilePath) {

    }

    /**
     * Current power information callback
     *
     * @param device      Device object
     * @param batteryInfo Power information
     */
    public void onDevicePower(BluetoothDevice device, BatteryInfo batteryInfo) {

    }

    /**
     * Receive large data callback
     *
     * @param device Device object
     * @param type   Data type
     * @param data   Large data
     */
    public void onReceiveBigData(BluetoothDevice device, int type, byte[] data) {

    }

    /**
     * Large data processing error callback
     *
     * @param device Device object
     * @param error  Error event
     */
    public void onBigDataError(BluetoothDevice device, BaseError error) {

    }
}

3.6 Device Event Push Listener

public abstract class OnRcspEventListener {

    /**
     * Device mode change callback
     *
     * @param device Bluetooth device
     * @param mode   Device current mode
     */
    public void onDeviceModeChange(BluetoothDevice device, int mode) {

    }

    /**
     * Device system volume change callback
     *
     * @param device Bluetooth device
     * @param volume Device system volume
     */
    public void onVolumeChange(BluetoothDevice device, VolumeInfo volume) {

    }

    /**
     * Device external storage change callback
     *
     * @param device      Bluetooth device
     * @param storageInfo Device information
     */
    public void onDevStorageInfoChange(BluetoothDevice device, DevStorageInfo storageInfo) {

    }

    /**
     * Device supported file format callback
     *
     * @param device     Bluetooth device
     * @param fileFormat Device supported file format
     */
    public void onFileFormatChange(BluetoothDevice device, String fileFormat) {

    }

    /**
     * Music song change callback
     *
     * @param device   Bluetooth device
     * @param nameInfo Music information
     */
    public void onMusicNameChange(BluetoothDevice device, MusicNameInfo nameInfo) {

    }

    /**
     * Music playback status callback
     *
     * @param device     Bluetooth device
     * @param statusInfo Music status
     */
    public void onMusicStatusChange(BluetoothDevice device, MusicStatusInfo statusInfo) {

    }

    /**
     * Playback mode change callback
     *
     * @param device       Bluetooth device
     * @param playModeInfo Playback mode information
     */
    public void onPlayModeChange(BluetoothDevice device, PlayModeInfo playModeInfo) {

    }

    /**
     * Device power change callback
     *
     * @param device      Bluetooth device
     * @param batteryInfo Power information
     */
    public void onBatteryChange(BluetoothDevice device, BatteryInfo batteryInfo) {

    }

    /**
     * Alarm list update callback
     *
     * @param device        Bluetooth device
     * @param alarmListInfo Alarm list
     */
    public void onAlarmListChange(BluetoothDevice device, AlarmListInfo alarmListInfo) {

    }

    /**
     * Default alarm ringtone list
     *
     * @param device Bluetooth device
     * @param bells  Default alarm ringtone list
     */
    public void onAlarmDefaultBellListChange(BluetoothDevice device, List<DefaultAlarmBell> bells) {

    }

    /**
     * Alarm reminder callback
     *
     * @param device    Bluetooth device
     * @param alarmBean Alarm information
     */
    public void onAlarmNotify(BluetoothDevice device, AlarmBean alarmBean) {

    }

    /**
     * Alarm stop callback
     *
     * @param device    Bluetooth device
     * @param alarmBean Alarm information
     */
    public void onAlarmStop(BluetoothDevice device, AlarmBean alarmBean) {

    }

   /**
     * Health data change callback
     *
     * @param device Device object
     * @param data   Real-time health data
     */
    public void onHealthDataChange(BluetoothDevice device, HealthData data) {

    }

    /**
     * Sensor data callback
     *
     * @param device Device object
     * @param type   Sensor type
     * @param data   Sensor data
     */
    public void onSensorLogDataChange(BluetoothDevice device, int type, byte[] data) {

    }


        /**
     * Health setting information callback
     *
     * @param device Device object
     * @param healthSettingInfo Health setting information
     */
    public void onHealthSettingChange(BluetoothDevice device, HealthSettingInfo healthSettingInfo) {

    }

    /**
     * Sports status callback
     *
     * @param device Device object
     * @param state  Sports status
     */
    public void onSportsState(BluetoothDevice device, int state) {

    }


    /**
     * Sports information change callback
     *
     * @param device     Device object
     * @param sportsInfo Sports information
     */
    public void onSportInfoChange(BluetoothDevice device, SportsInfo sportsInfo) {

    }
}

3.7 Operation Result Callback

public interface OnOperationCallback<T> {
    /**
     * Success callback
     *
     * @param result Result
     */
    void onSuccess(T result);

     /**
     * Failure callback
     *
     * @param error Failure information
     */
    void onFailed(BaseError error);
}

Important

  1. Result codes refer to 3.13   Error Code Definition

3.8 Time-consuming Operation Progress Callback

public interface OnFatFileProgressListener {
    /**
     * Start
     *
     * @param filePath File path
     */
    void onStart(String filePath);

    /**
     * Progress callback
     *
     * @param progress Progress
     */
    void onProgress(float progress);

    /**
     * End
     *
     * @param result Result code
     */
    void onStop(int result);
}

Important

  1. Result codes refer to 3.13   Error Code Definition

3.9 Update Resource Callback

public interface OnUpdateResourceCallback {
    /**
     * Update start callback
     *
     * @param filePath File path
     * @param total    Total number of resources to update
     */
    void onStart(String filePath, int total);

    /**
     * Update progress callback
     *
     * @param index    Update resource sequence number
     * @param filePath Update resource path
     * @param progress Update progress
     */
    void onProgress(int index, String filePath, float progress);

    /**
     * Update completion callback
     *
     * @param otaFilePath Firmware update file path
     *                    <p>Note: If empty, no need to enter update process, otherwise OTA update is required</p>
     */
    void onStop(String otaFilePath);

    /**
     * Update exception callback
     *
     * @param code    Error code
     * @param message Error information
     */
    void onError(int code, String message);
}

Important

  1. Result codes refer to 3.13   Error Code Definition

3.10 Recording Function Interface

RecordOpImpl.class

Interface Name

Parameters

Return Value

Description

getRcspOp

None

RcspOpImpl

Get current RCSP operation implementation class

getConnectedDevice

None

BluetoothDevice

Get current connected device

getRecordState

None

RecordState

Get recording state

addOnRecordStateCallback

Void

Add recording state callback

removeOnRecordStateCallback

Void

Remove recording state callback

setSupportSyncIatText

boolean: Whether to support synchronous speech recognition text

Void

(Currently ineffective)

setSupportSyncNlpText

boolean: Whether to support synchronous semantic recognition text

Void

(Currently ineffective)

setSupportPlayTTS

boolean: Whether to play TTS

Void

(Currently ineffective)

startRecord

device: Operation device
RecordParam: Recording parameters
OnOperationCallback<Boolean>: 3.7   Operation Result Callback

Void

App side initiates start recording

stopRecord

device: Operation device
reason: Stop reason, 0: Normal, 1: Cancel
isIatText: Whether to synchronize speech recognition text
isNlpText: Whether to synchronize semantic recognition text
isTTS: Whether to synthesize and play tts
OnOperationCallback<Boolean>: 3.7   Operation Result Callback

Void

App side initiates stop recording

release

None

Void

Release

3.10.1 Recording Parameters

public class RecordParam {
    //Audio data encoding format type: pcm, speex, opus
    public static final int VOICE_TYPE_PCM = 0;
    public static final int VOICE_TYPE_SPEEX = 1;
    public static final int VOICE_TYPE_OPUS = 2;
    //Audio data sampling rate type: 8k, 16k
    public static final int SAMPLE_RATE_8K = 8;
    public static final int SAMPLE_RATE_16K = 16;
    //VAD method: dev, app
    public static final int VAD_WAY_DEVICE = 0;
    public static final int VAD_WAY_SDK = 1;
    private final int voiceType;
    private final int sampleRate;
    private final int vadWay;

    public RecordParam(int var1, int var2, int var3) {
        this.voiceType = var1;
        this.sampleRate = var2;
        this.vadWay = var3;
    }
    //Audio data encoding format type: pcm, speex, opus
    public int getVoiceType() {
        return this.voiceType;
    }
    //Audio data sampling rate type: 8k, 16k
    public int getSampleRate() {
        return this.sampleRate;
    }
    //VAD method: dev, app
    public int getVadWay() {
        return this.vadWay;
    }

    public String toString() {
        return "RecordParam{voiceType=" + this.voiceType + ", sampleRate=" + this.sampleRate + ", vadWay=" + this.vadWay + '}';
    }
}

3.10.2 Recording State Callback

public interface OnRecordStateCallback {

    /**
     * Recording state change callback
     * @param state  Recording state
     */
    void onStateChange(BluetoothDevice device, RecordState state);
}

3.10.3 Recording State

public class RecordState {
    //Recording state - default
    public static final int RECORD_STATE_IDLE = 0;
    //Recording state - start recording
    public static final int RECORD_STATE_START = 1;
    //Recording state - recording
    public static final int RECORD_STATE_WORKING = 2;
    //Recording end - normal
    public static final int REASON_NORMAL = 0;
    //Recording end - cancel
    public static final int REASON_STOP = 1;
    //Current recording state
    private int state = 0;
    //Current recording parameters
    private RecordParam recordParam;
    //Current recording data block
    private byte[] voiceDataBlock;
    //Recording end - end reason
    private int reason = 0;
    private byte[] voiceData;
    //Recording exception message
    private String message;
    //Whether to synchronize speech recognition text
    private boolean isSyncIatText = false;
    //Whether to synchronize semantic recognition text
    private boolean isSyncNlpText = false;
    //Whether to synthesize and play tts
    private boolean isPlayTTS = false;

}

3.11 Large Data Transfer Interface

Interface Name

Parameters

Return Value

Description

sendLargeData

SendParams: Send parameters, 3.11.1   SendParams
OnDataEventCallback: Data event callback, 3.11.2   OnDataEventCallback

Void

Send large data

readLargeData

DataParams: Read data parameters
OnDataEventCallback: Data event callback, 3.11.2   OnDataEventCallback

Void

Read large data

Not supported yet

3.11.1 SendParams

public class SendParams {

    //Data type
    private final int dataType;
    //Protocol version
    private final int version;
    //Data size limit per send (request value)
    private int sendLimit;
    //Data size limit per receive (request value)
    private int receiveLimit;
    //Send data
    private final byte[] data;
}

3.11.2 OnDataEventCallback

public interface OnDataEventCallback {
 /**
  * Callback transmission start
  *
  * @param way Transmission method
  */
 void onBegin(int way);

 /**
  * Callback transmission progress
  *
  * @param progress Progress
  */
 void onProgress(float progress);

 /**
  * Callback transmission completion
  *
  * @param type Data type
  * @param data Data
  */
 void onStop(int type, byte[] data);

 /**
  * Callback transmission error
  *
  * @param error Error information
  */
 void onError(BaseError error);
 }

3.12 Response Status Code

Code

Description

0

Success status

1

Failure status

2

Unknown command

3

Busy status

4

No resource

5

CRC check failed

6

All data CRC check failed

7

Parameter error

8

Response data exceeds limit

3.13 Error Code Definition

Unified error is WatchError class

3.13.1 General Error Codes

Range: 0x1000-0x1FFF (4096-8191)

Name

Code

Description

WatchError#ERR_NONE

0x0(0)

Operation success(Success)


WatchError#ERR_INVALID_PARAMETER

0x1001(4097)

Invalid parameter(Invalid Parameter)

WatchError#ERR_CANCEL_OP

0x1002(4098)

Cancel operation(Cancel Operation)

WatchError#ERR_OPERATION_TIMEOUT

0x1003(4099)

Operation timeout(Operation timeout.)


WatchError#ERR_IN_PROGRESS

0x1100(4352)

Task in progress(Task is in progress.)

WatchError#ERR_FUNC_NOT_SUPPORT

0x1101(4353)

Feature not supported(Feature not supported.)

3.13.2 Connection Error Codes

Range: 0x2000-0x2FFF (8192-12287)

Name

Code

Description

WatchError#ERR_REMOTE_NOT_CONNECT

0x2000(8192)

Remote device not connected(The remote device is not connected.)

WatchError#ERR_DEVICE_NOT_MATCH

0x2001(8193)

Operation device mismatch(The device is not the same as the device in use.)

WatchError#ERR_USE_SYSTEM_API

0x2002(8194)

System interface call failed(Failed to use system reflection function.)

WatchError#ERR_AUTH_DEVICE

0x2003(8195)

Device authentication failed(Failed to auth device.)

3.13.3 Communication Error Codes

Range: 0x3000-0x3FFF (12288-16383)

Name

Code

Description

WatchError#ERR_CMD_SEND

0x3000(12288)

Command send failed(Command sending failed.)

WatchError#ERR_PARSE_DATA

0x3001(12289)

Parse data exception(Failed to parse RCSP data.)

WatchError#ERR_RESPONSE_TIMEOUT

0x3002(12290)

Wait for device response timeout(Waiting for a reply packet timed out.)

WatchError#ERR_SYSTEM_BUSY

0x3003(12291)

System busy(System is busy.)

WatchError#ERR_RESPONSE_BAD_STATUS

0x3004(12292)

Device returns failed status(Device returns a failed state.)

WatchError#ERR_RESPONSE_BAD_RESULT

0x3005(12293)

Device returns failed result(Device returns a failure result.)


WatchError#ERR_CRC_CHECK

0x3100(12544)

CRC check failed(CRC is error.)

WatchError#ERR_DEVICE_IN_CALLING

0x3101(12545)

Device in call status(The device is in calling.)

WatchError#ERR_OP_NOT_ALLOW

0x3102(12546)

Operation not allowed(The operation is not allowed.)

3.13.4 File Operation Error Codes

Range: 0x4000-0x4FFF (16384-20479)

Name

Code

Description

WatchError#ERR_STORAGE_OFFLINE

0x4000(16384)

Storage offline(Storage offline.)

WatchError#ERR_FILE_BROWSING

0x4001(16385)

File browsing(File browsing.)

WatchError#ERR_DATA_LOAD_COMPLETE

0x4002(16386)

Data loading complete(File data is loaded.)

WatchError#ERR_MISSING_FILE_DATA

0x4003(16387)

Missing file data(Missing file data.)

WatchError#ERR_DIR_TOO_DEEP

0x4004(16388)

Directory hierarchy too deep(Directory hierarchy is too deep.)

WatchError#ERR_IO_EXCEPTION

0x4005(16389)

IO Exception(IO Exception.)

WatchError#ERR_FILE_NOT_IN_STORAGE

0x4006(16390)

File does not match storage(File does not match storage.)


WatchError#ERR_FAT_DISK

0x4101(16641)

Low level disk I/O layer error(A hard error occurred in the low level disk I/O layer.)

WatchError#ERR_FAT_INIT

0x4102(16642)

Assertion failed(Assertion failed.)

WatchError#ERR_FAT_NOT_READY

0x4103(16643)

Physical drive cannot work(The physical drive cannot work.)

WatchError#ERR_FAT_NO_FILE

0x4104(16644)

File not found(Could not find the file.)

WatchError#ERR_FAT_NO_PATH

0x4105(16645)

Path not found(Could not find the path.)

WatchError#ERR_FAT_INVALID_NAME

0x4106(16646)

Invalid path name(The path name format is invalid.)

WatchError#ERR_FAT_DENIED

0x4107(16647)

Access denied due to prohibited access or directory full(Access denied due to prohibited access or directory full.)

WatchError#ERR_FAT_EXIST

0x4108(16648)

Access denied due to prohibited access(Access denied due to prohibited access.)

WatchError#ERR_FAT_INVALID_OBJECT

0x4109(16649)

Invalid file/directory object(The file/directory object is invalid.)

WatchError#ERR_FAT_WRITE_PROTECTED

0x410A(16650)

Physical drive write protected(The physical drive is write protected.)

WatchError#ERR_FAT_INVALID_DRIVE

0x410B(16651)

Invalid logical drive number(The logical drive number is invalid.)

WatchError#ERR_FAT_NOT_ENABLED

0x410C(16652)

Volume has no work area(The volume has no work area.)

WatchError#ERR_FAT_NO_FILESYSTEM

0x410D(16653)

No valid FAT volume(There is no valid FAT volume.)

WatchError#ERR_FAT_MKFS_ABORTED

0x410E(16654)

f_mkfs() aborted due to problem(The f_mkfs() aborted due to any problem.)

WatchError#ERR_FAT_TIMEOUT

0x410F(16655)

Could not access volume within defined period(Could not get a grant to access the volume within defined period.)

WatchError#ERR_FAT_LOCKED

0x4110(16656)

Operation rejected according to file sharing policy(The operation is rejected according to the file sharing policy.)

WatchError#ERR_FAT_NOT_ENOUGH_CORE

0x4111(16657)

LFN working buffer allocation failed(LFN working buffer could not be allocated.)

WatchError#ERR_FAT_TOO_MANY_OPEN_FILES

0x4112(16658)

Number of open files exceeds FF_FS_LOCK(Number of open files > FF_FS_LOCK.)

WatchError#ERR_FAT_INVALID_PARAMETER

0x4113(16659)

Invalid input parameter(Given parameter is invalid.)

WatchError#ERR_FAT_TOO_BIG

0x4114(16660)

Image too big, insufficient space to add(Image size to big, do not to support big size image.)

WatchError#ERR_FAT_JNI_INIT

0x4116(16662)

Watch system not initialized(Watch system has not been initialized.)

WatchError#ERR_FAT_WRITE

0x4117(16663)

Write data failed(Write data failed.)

WatchError#ERR_FAT_READ

0x4118(16664)

Read data failed(Read data failed.)

WatchError#ERR_FAT_SYNC

0x4119(16665)

Sync data error(Sync data error.)

WatchError#ERR_FAT_BEGIN

0x411B(16667)

Process start error(Process start error.)

WatchError#ERR_FAT_END

0x411C(16668)

Process end error(Process end error.)


WatchError#ERR_VERSION_NOT_MATCH

0x4200(16896)

File information does not match(File information does not match.)

WatchError#ERR_SPACE_TO_UPDATE

0x4201(16897)

Insufficient space to update multiple files(Insufficient space to update multiple files.)

WatchError#ERR_RENAME_FILE

0x4202(16898)

Rename file failed(Failed to rename the file.)

WatchError#ERR_DATA_OVER_LIMIT

0x4203(16899)

Sent data exceeds limit(The data sent exceeds the limit.)

3.13.5 Network Module Error Codes

Range: 0x5000-0x5FFF (20480-24575)

Name

Code

Description

WatchError#ERR_NETWORK_OTA_UNKNOWN

0x5000(20480)

Undefined upgrade error code(Undefined upgrade error code.)

WatchError#ERR_NETWORK_OTA_FAILED

0x5001(20481)

Network module upgrade failed(Network module upgrade failed.)

WatchError#ERR_NETWORK_OTA_TIMEOUT

0x5002(20482)

Network module upgrade timeout(Network module upgrade timeout.)

WatchError#ERR_NETWORK_OTA_WAITING_COMMAND_TIMEOUT

0x5003(20483)

Network module timeout waiting for upgrade command(Network module timeout waiting for upgrade command.)