OEM approved firmware NEW!

Allows the OEM integrator to pin the firmware version installed by the update mode. The commands require an OEM code linked to the device and the matching license key, provided by Control iD.

When the device has an OEM code and an approved version set, an update performed from the update mode installs the approved version instead of the latest published one. If the approved version is older than the current version, the update is a downgrade, which is accepted only for the versions returned by get_oem_downgrade_approved_versions.

Available only on version V7.

Get versions approved for downgrade

POST /get_oem_downgrade_approved_versions.fcgi

Returns the list of firmware versions accepted as an OEM downgrade target. It is a list, not a floor: a version not in the list is not accepted, even if an older version is in the list.

The list comes from the firmware itself. After a downgrade, the list written by the newest version ever installed on the device remains in effect.

Parameters

  • This call has no parameters.

Response

  • versions (array of strings): Versions accepted as a downgrade target, in the major.minor.patch format.

Request example

$.ajax({
    url: "/get_oem_downgrade_approved_versions.fcgi?session=" + session,
    type: 'POST',
    contentType: 'application/json'
});

Response example

{
    "versions": ["7.12.0", "7.13.2"]
}

Set the approved firmware version

POST /set_oem_approved_fw.fcgi

Sets the OEM approved firmware version, or removes the restriction.

Parameters

  • oem_code (string): Required. OEM code. Must be the same OEM code already linked to the device.
  • license (string): Required. License key of the OEM code for this device, provided by Control iD.
  • approved_fw (string): Required. Approved version, in the major.minor.patch format (for example, "7.14.0"). Must have the same major version as the current firmware. If it is older than the current version, it must be in the list returned by get_oem_downgrade_approved_versions. An empty string ("") removes the restriction.

Response

  • On success, returns an empty JSON object.

Possible errors:

  • "Cannot set an approved firmware version: invalid OEM code/license": the license is not valid for the OEM code on this device.
  • "Cannot set an approved firmware version: OEM code does not match the equipment's linked OEM code": the OEM code differs from the one linked to the device.
  • "Invalid firmware version: ...": approved_fw is not in the major.minor.patch format.
  • "Approved firmware version ... must have the same major version as the equipment's current firmware ...": the major version differs from the current one.
  • "Approved firmware version ... is not an approved OEM downgrade target": the version is older than the current one and is not in the list of versions approved for downgrade.

Request example

$.ajax({
    url: "/set_oem_approved_fw.fcgi?session=" + session,
    type: 'POST',
    contentType: 'application/json',
    data: JSON.stringify({
        oem_code: "MYOEM",
        license: "ABCDE12345",
        approved_fw: "7.14.0"
    })
});

Response example

{}