Firmware update

Update stm32 firmware / Bluetooth firmware version. Firmware upgrades are supported in two ways:

  • Use the firmware upgrade resource on the OneKey server and simply pass in the version number.

  • Use the user-specified binary data to upgrade the firmware. Use this method with caution; incorrect data can result in hardware data loss.

const response = await HardwareSDK.firmwareUpdate(connectId, params);


Optional common params

  • updateType — required 'firmware' | 'ble' firmware upgrade type

  • binary — optional ArrayBuffer firmware binary data when you upgrade with a custom file

  • version — optional Array specifying the firmware version number will match the version information in the resource list provided by OneKey


const response = await HardwareSDK.firmwareUpdate(connectId, {
    updateType: 'firmware',
    version: [2, 10, 0]


  success: true,
  payload: {
      message: string


    success: false,
    payload: {
        error: string, // error message
        code: number // error code

Last updated