播放盒-EN
  1. System control-related
播放盒-EN
  • API access guide
  • Common Error Codes
  • FAQ
  • User-related
    • Log in to devices
      POST
    • Log out of the device
      DELETE
    • Change user information
      PUT
  • System control-related
    • Screenshot
      GET
    • Restart the device immediately
      POST
    • Obtain device restart schedules
      GET
    • Schedule device restarts
      POST
    • Set time
      POST
    • Install apps
      PUT
    • Obtain time
      GET
    • Factory reset
      PUT
    • Obtain terminal information
      GET
    • Obtain volume
      GET
    • Set volume
      POST
    • Upgrade the device
      PUT
    • Check local upgrade status
      GET
  • Screen control-related
    • Receiving card-related
      • Obtain receiving card connection information
      • Obtain receiving card monitoring information
      • Obtain basic information of the receiving card
      • Configure the screen via receiving card configuration (send .rcfgx file)
      • Configure the screen via receiving card configuration (send .scr file)
      • Upgrade the receiving card
      • Obtain the receiving card upgrade progress
    • Send Card-related
      • Obtain the basic Information of the sending card
    • Obtain screen brightness
      GET
    • Set screen brightness
      POST
    • Obtain screen status
      GET
    • Set screen status
      POST
    • Obtain screen-on/off schedules
      GET
    • Set screen-on/off schedules
      POST
    • Set brightness adjustment schedules
      POST
    • Obtain brightness adjustment schedules
      GET
  • General capabilities
    • Upload files
    • Download files
  • Serial port control
    • Activate RS-485 serial communication
    • Check RS-485 serial port status
  • Board relays
    • Obtain relay information
    • Set relay information
  1. System control-related

Upgrade the device

Developing
PUT
/terminal/emergency/v1/device/upgrade
Last modified:2024-12-13 09:35:45
This interface is used for upgrading the sending card.
Before calling this interface for upgrade, please upload the upgrade package to the following path: /sdcard/nova/viplex_terminal/cache/

Request

Header Params
Authorization
string 
optional
Default:
1724333189506EO5Zqpduu4+azwYYXMJJhg==
Body Params application/json
type
string 
required
UPDATE
source
object 
required
type
integer 
required
Source type
Defaults to 0
platform
integer 
required
Source platform
Defaults to 0
tasks
array [object {11}] 
required
packageType
string 
required
Upgrade package type
Defaults to UPDATE
version
string 
required
executionType
string 
required
Execution type
IMMEDIATELY: Execute immediately
updateType
string 
optional
Upgrade type
Default to Update
checkFeasibility
boolean 
optional
Whether to check the feasibility of the upgrade
Defaults to true
md5
string 
required
Indicates the md5 code of the file to be transferred
source
string 
required
Upgrade package storage path
size
string 
optional
Indicates the size (bytes) of the file to be downloaded
startupAfterInstalled
boolean 
optional
Whether to start immediately after installation
Defaults to true
startupAfterBoot
boolean 
optional
Whether to start after startup
Defaults to true
isReturnImmediately
boolean 
optional
Whether to return to the control computer before upgrade
Defaults to false
Example
{
  "type": "UPDATE",
  "source": {
    "type": 0,
    "platform": 0
  },
  "tasks": [
    {
      "packageType": "NUZIP",
      "version": "TAURUSV010001CN0103",
      "executionType": "IMMEDIATELY",
      "updateType": "UPDATE",
      "checkFeasibility": true,
      "md5": "3e99ab846d7bb571c8b287bb60285ac3",
      "source": "/sdcard/nova/viplex_terminal/cache/UPDATE_OS_T10Plus_T20_TAURUSV010001CN0103.nuzip",
      "size": "487979277",
      "startupAfterInstalled": true,
      "startupAfterBoot": true,
      "isReturnImmediately": true
    }
  ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://192.168.0.10:16674/terminal/emergency/v1/device/upgrade' \
--header 'Authorization: 1724333189506EO5Zqpduu4+azwYYXMJJhg==' \
--header 'Content-Type: application/json' \
--data-raw '{
  "type": "UPDATE",
  "source": {
    "type": 0,
    "platform": 0
  },
  "tasks": [
    {
      "packageType": "NUZIP",
      "version": "TAURUSV010001CN0103",
      "executionType": "IMMEDIATELY",
      "updateType": "UPDATE",
      "checkFeasibility": true,
      "md5": "3e99ab846d7bb571c8b287bb60285ac3",
      "source": "/sdcard/nova/viplex_terminal/cache/UPDATE_OS_T10Plus_T20_TAURUSV010001CN0103.nuzip",
      "size": "487979277",
      "startupAfterInstalled": true,
      "startupAfterBoot": true,
      "isReturnImmediately": true
    }
  ]
}'

Responses

🟢200成功
application/json
Body
code
integer 
required
message
string 
required
data
object 
required
Example
{
  "code": 0,
  "message": "",
  "data": {}
}
Previous
Set volume
Next
Check local upgrade status
Built with