Skip to main content
Version: 8.0.3

firmware

The sos.management.firmware API groups together methods for working with the firmware of the device.

Methods

getType()

The getType() method returns the type of the firmware currently installed on the device.

This information, when combined with firmware version, can be used to identify a correct firmware image to install on the current device.

getType(): Promise<string>;

Example

const type = await sos.management.firmware.getType();
console.log(type); // e.g. rpi4

getVersion()

The getVersion() method returns the version of the firmware currently installed on the device.

getVersion(): Promise<string>;

Example

const version = await sos.management.firmware.getVersion();
console.log(version); // Returns String e.g. T-HKMLAKUC-2020.5

upgrade(baseUrl, version)

The upgrade(baseUrl, version) does the same as upgrade(version, baseUrl).

upgrade(baseUrl: string, version: string): Promise<void>;

Params

NameTypeDescription
baseUrlstringThe server URL where firmware files are located.
versionstringThe version of the firmware being installed.

Example

await sos.management.firmware.upgrade('https://cdn.your-cms.com/tizen/pmf/fw/2080_4.bem', 'T-HKMLAKUC-2080.4');

upgrade(fwUri)

The upgrade(fwUri) method initializes a firmware upgrade. Open users can upgrade fw passing FQN uri where the firmware main file is located.

This file type/extension differs for every platform. E.g.:

upgrade(fwUri: string): Promise<void>;

Params

NameTypeDescription
fwUristringFQN uri where the firmware main file is located.

Example

await sos.management.firmware.upgrade('https://cdn.your-cms.com/tizen/pmf/fw/2080_4.bem');

upgrade(version, baseUrl)

The upgrade(version, baseUrl?) method initializes a firmware upgrade using version and baseUrl. Platform users can install general firmware version directly with passing just version number. Optionally, the baseUrl can be passed as argument to specify server where the firmware files are accessible.

upgrade(version: string, baseUrl?: string): Promise<void>;

Params

NameTypeDescription
versionstringThe version of the firmware being installed.
baseUrl (optional)stringOptional server URL where firmware files are located.
(Default value: "https://2.signageos.io")