Skip to content

Instantly share code, notes, and snippets.

@maxiwoj
Last active November 11, 2018 17:56
Show Gist options
  • Save maxiwoj/a60b566fd7fa6aec3a6e28f50640e631 to your computer and use it in GitHub Desktop.
Save maxiwoj/a60b566fd7fa6aec3a6e28f50640e631 to your computer and use it in GitHub Desktop.
This is a definition for 31025 programmable target object for Remote Programmer
<?xml version="1.0" encoding="utf-8"?>
<LWM2M xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://openmobilealliance.org/tech/profiles/LWM2M.xsd">
<Object ObjectType="MODefinition">
<Name>Programmable Target</Name>
<Description1>This Object is used for configuring and running various tests, later getting their results.
</Description1>
<ObjectID>31025</ObjectID>
<ObjectURN>urn:oma:lwm2m:x:31025</ObjectURN>
<MultipleInstances>Multiple</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Resources>
<Item ID="1">
<Name>Target Type</Name>
<Operations>R</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Mandatory</Mandatory>
<Type>String</Type>
<Description>Detected target device found</Description>
</Item>
<Item ID="2">
<Name>Firmware URL</Name>
<Operations>RW</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Mandatory</Mandatory>
<Type>String</Type>
<Description>URL for the binary to upload to the device</Description>
</Item>
<Item ID="3">
<Name>Download State</Name>
<Operations>R</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Mandatory</Mandatory>
<Type>Integer</Type>
<Description>The state of the download. The device receiving the request will return state of the binary download, i.e. Idle, Running, Completed, Error.</Description>
</Item>
<Item ID="4">
<Name>Firmware Version</Name>
<Operations>R</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Mandatory</Mandatory>
<Type>Integer</Type>
<Description>Stands for the version of the current firmware (sec. from the Programmer Start)</Description>
</Item>
<Item ID="5">
<Name>Flash Target</Name>
<Operations>E</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Mandatory</Mandatory>
<Type>String</Type>
<Description>Starts the Flashing of the target device with the provided binary.</Description>
</Item>
<Item ID="6">
<Name>Flash State</Name>
<Operations>R</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Mandatory</Mandatory>
<Type>Integer</Type>
<Description>The state of the flash. The device receiving the request will return state of the target flashing, i.e. Idle, Running, Completed, Error.</Description>
</Item>
<Item ID="7">
<Name>Reset Target</Name>
<Operations>E</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Mandatory</Mandatory>
<Type>String</Type>
<Description>Resets the target device.</Description>
</Item>
<Item ID="8">
<Name>Download Error</Name>
<Operations>R</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Mandatory</Mandatory>
<Type>Integer</Type>
<Description>Error status of the firmware download</Description>
</Item>
<Item ID="9">
<Name>Download Progress</Name>
<Operations>R</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Mandatory</Mandatory>
<Type>Integer</Type>
<Unit>%</Unit>
<RangeEnumeration>0-100</RangeEnumeration>
<Description>Stands for current progres of downloading the binary.</Description>
</Item>
<Item ID="10">
<Name>Flash Error</Name>
<Operations>R</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Mandatory</Mandatory>
<Type>Integer</Type>
<Description>Error status of flashing the target</Description>
</Item>
<Item ID="11">
<Name>Flash Progress</Name>
<Operations>R</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Mandatory</Mandatory>
<Type>Integer</Type>
<Unit>%</Unit>
<RangeEnumeration>0-100</RangeEnumeration>
<Description>Stands for current progres of flashing.</Description>
</Item>
</Resources>
<Description2></Description2>
</Object>
</LWM2M>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment