Commit 3f56fef6 authored by Frantisek Mikulu's avatar Frantisek Mikulu

Merge branch 'master' into feature/issue215

parents e3233211 f69369c6
......@@ -33,7 +33,11 @@
"deviceAddr": {
"type": "integer",
"description": "Device address to enumerate."
}
},
"morePeripheralsInfo": {
"type": "boolean",
"description": "If to get more peripherals information."
}
},
"required": [
"deviceAddr"
......
......@@ -187,8 +187,16 @@
"description": "Hardware profile version."
},
"flags": {
"type": "integer",
"description": "Various flags."
"type": "object",
"description": "Various flags.",
"properties": {
"value": {
"type": "integer"
},
"rfMode": {
"type": "string"
}
}
},
"userPers": {
"type": "array",
......@@ -208,13 +216,79 @@
"type": "object",
"description": "Reduced or full eperOsReadCfg.",
"properties": {
"embPerBits": {
"type": "array",
"description": "An array of 32 bits. Each bit enables/disables one of the embedded 32 predefined peripherals.",
"items": {
"type": "integer"
},
"maxItems": 4
"embPeripherals": {
"type": "object",
"description": "Embedded peripherals enabled on the node.",
"properties": {
"values": {
"type": "array",
"description": "An array of 32 bits. Each bit enables/disables one of the embedded 32 predefined peripherals.",
"items": {
"type": "integer"
},
"maxItems": 4
},
"coordinator": {
"type": "boolean",
"description": "If coordinator is enabled."
},
"node": {
"type": "boolean",
"description": "If node is enabled."
},
"os": {
"type": "boolean",
"description": "If OS is enabled."
},
"eeprom": {
"type": "boolean",
"description": "If EEPROM is enabled."
},
"eeeprom": {
"type": "boolean",
"description": "If EEEPROM is enabled."
},
"ram": {
"type": "boolean",
"description": "If RAM is enabled."
},
"ledr": {
"type": "boolean",
"description": "If LEDR is enabled."
},
"ledg": {
"type": "boolean",
"description": "If LEDG is enabled."
},
"ledg": {
"type": "boolean",
"description": "If LEDG is enabled."
},
"spi": {
"type": "boolean",
"description": "If SPI is enabled."
},
"io": {
"type": "boolean",
"description": "If IO is enabled."
},
"thermometer": {
"type": "boolean",
"description": "If thermometer is enabled."
},
"pwm": {
"type": "boolean",
"description": "If PWM is enabled."
},
"uart": {
"type": "boolean",
"description": "If UART is enabled."
},
"frc": {
"type": "boolean",
"description": "If FRC is enabled."
}
}
},
"rfBand": {
"type": "string",
......@@ -338,66 +412,6 @@
]
},
"maxItems": 14
},
"validationAndUpdates": {
"type": "object",
"description": "Validation and updates.",
"properties": {
"validation": {
"type": "object",
"description": "IQRF OS version + build, DPA version, TX power, RX filter same as Coordinator.",
"properties": {
"valid": {
"type": "boolean",
"description": "All is fine."
},
"osVer": {
"type": "string",
"description": "IQRF OS version."
},
"osBuild": {
"type": "string",
"description": "IQRF OS build."
},
"dpaVer": {
"type": "string",
"description": "IQRF DPA version."
},
"txPower": {
"type": "integer",
"description": "TX power."
},
"rxFilter": {
"type": "integer",
"description": "RX filter."
}
},
"required": [
"valid"
]
},
"updates": {
"type": "object",
"description": "Available updates from IQRF repository.",
"properties": {
"dpaHandlerPath": {
"type": "string",
"description": "Path to the up to date DPA handler."
},
"dpaPluginPath": {
"type": "string",
"description": "Path to the up to date DPA plugin."
},
"osDpaPluginPath": {
"type": "string",
"description": "Path to the up to date OS+DPA plugin."
}
}
}
},
"required": [
"validation"
]
}
},
"required": [
......
......@@ -30,13 +30,79 @@
"type": "integer",
"description": "Device address to read the configuration from."
},
"embPerBits": {
"type": "array",
"description": "An array of 32 bits. Each bit enables/disables one of the embedded 32 predefined peripherals.",
"items": {
"type": "integer"
},
"maxItems": 4
"embPers": {
"type": "object",
"description": "Embedded peripherals enabled on the node.",
"properties": {
"values": {
"type": "array",
"description": "An array of 32 bits. Each bit enables/disables one of the embedded 32 predefined peripherals.",
"items": {
"type": "integer"
},
"maxItems": 4
},
"coordinator": {
"type": "boolean",
"description": "If coordinator is enabled."
},
"node": {
"type": "boolean",
"description": "If node is enabled."
},
"os": {
"type": "boolean",
"description": "If OS is enabled."
},
"eeprom": {
"type": "boolean",
"description": "If EEPROM is enabled."
},
"eeeprom": {
"type": "boolean",
"description": "If EEEPROM is enabled."
},
"ram": {
"type": "boolean",
"description": "If RAM is enabled."
},
"ledr": {
"type": "boolean",
"description": "If LEDR is enabled."
},
"ledg": {
"type": "boolean",
"description": "If LEDG is enabled."
},
"ledg": {
"type": "boolean",
"description": "If LEDG is enabled."
},
"spi": {
"type": "boolean",
"description": "If SPI is enabled."
},
"io": {
"type": "boolean",
"description": "If IO is enabled."
},
"thermometer": {
"type": "boolean",
"description": "If thermometer is enabled."
},
"pwm": {
"type": "boolean",
"description": "If PWM is enabled."
},
"uart": {
"type": "boolean",
"description": "If UART is enabled."
},
"frc": {
"type": "boolean",
"description": "If FRC is enabled."
}
}
},
"rfBand": {
"type": "string",
......
......@@ -39,6 +39,81 @@
"type": "integer",
"description": "Device address to write the configuration to. Broadcast address is also allowed."
},
"embPers": {
"type": "object",
"description": "Embedded peripherals enabled on the node.",
"properties": {
"values": {
"type": "array",
"description": "An array of 32 bits. Each bit enables/disables one of the embedded 32 predefined peripherals.",
"items": {
"type": "integer"
},
"maxItems": 4
},
"coordinator": {
"type": "boolean",
"description": "If coordinator is enabled."
},
"node": {
"type": "boolean",
"description": "If node is enabled."
},
"os": {
"type": "boolean",
"description": "If OS is enabled."
},
"eeprom": {
"type": "boolean",
"description": "If EEPROM is enabled."
},
"eeeprom": {
"type": "boolean",
"description": "If EEEPROM is enabled."
},
"ram": {
"type": "boolean",
"description": "If RAM is enabled."
},
"ledr": {
"type": "boolean",
"description": "If LEDR is enabled."
},
"ledg": {
"type": "boolean",
"description": "If LEDG is enabled."
},
"ledg": {
"type": "boolean",
"description": "If LEDG is enabled."
},
"spi": {
"type": "boolean",
"description": "If SPI is enabled."
},
"io": {
"type": "boolean",
"description": "If IO is enabled."
},
"thermometer": {
"type": "boolean",
"description": "If thermometer is enabled."
},
"pwm": {
"type": "boolean",
"description": "If PWM is enabled."
},
"uart": {
"type": "boolean",
"description": "If UART is enabled."
},
"frc": {
"type": "boolean",
"description": "If FRC is enabled."
}
},
"additionalProperties": false
},
"rfBand": {
"type": "string",
"description": "Used RF band."
......@@ -136,6 +211,7 @@
"description": "It sets security user key. Enter a value up to 16 characters."
}
},
"additionalProperties": false,
"required": [
"deviceAddr"
]
......@@ -145,12 +221,14 @@
"description": "Flag that includes additional parameters in the response."
}
},
"additionalProperties": false,
"required": [
"msgId",
"req"
]
}
},
"additionalProperties": false,
"required": [
"mType",
"data"
......
{
"$schema": "http://apidocs.iqrfsdk.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
"self": {
"vendor": "com.iqrftech.self-desc",
"name": "iqrfEmbedCoordinator_SetMid-request",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Embedded peripheral Coordinator - Set Mid value request.",
"enum": [
"iqrfEmbedCoordinator_SetMid"
]
},
"data": {
"type": "object",
"properties": {
"msgId": {
"type": "string",
"description": "Message identification for binding request with response."
},
"timeout": {
"type": "integer",
"description": "Timeout to wait for IQRF DPA response."
},
"req": {
"type": "object",
"properties": {
"nAdr": {
"type": "integer",
"description": "Network device address."
},
"hwpId": {
"type": "integer",
"description": "Hardware profile identification."
},
"param": {
"type": "object",
"properties": {
"mid": {
"type": "integer",
"description": "The MID is written to the Coordinator’s database in the external EEPROM."
},
"bondAddr": {
"type": "integer",
"description": "Address of the node to set the MID to."
}
}
}
},
"required": [
"nAdr",
"param"
]
},
"returnVerbose": {
"type": "boolean",
"description": "Flag that includes additional parameters in the response."
}
},
"required": [
"msgId",
"req"
]
}
},
"required": [
"mType",
"data"
]
}
{
"$schema": "http://apidocs.iqrfsdk.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
"self": {
"vendor": "com.iqrftech.self-desc",
"name": "iqrfEmbedCoordinator_SetMid-response",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Embedded peripheral Coordinator - Set Mid value response.",
"enum": [
"iqrfEmbedCoordinator_SetMid"
]
},
"data": {
"type": "object",
"properties": {
"msgId": {
"type": "string",
"description": "Message identification for binding request with response."
},
"timeout": {
"type": "integer",
"description": "Timeout to wait for IQRF DPA response."
},
"rsp": {
"type": "object",
"properties": {
"nAdr": {
"type": "integer",
"description": "Network device address."
},
"hwpId": {
"type": "integer",
"description": "Hardware profile identification."
},
"rCode": {
"type": "integer",
"description": "DPA error code."
},
"dpaVal": {
"type": "integer",
"description": "DPA value."
},
"result": {
"type": "object",
"properties": {}
},
"errorStr": {
"type": "string",
"description": "Error description from JS drivers."
}
},
"required": [
"nAdr",
"hwpId",
"rCode",
"dpaVal"
]
},
"raw": {
"type": "object",
"properties": {
"request": {
"type": "string",
"description": "Binary buffer with DPA request."
},
"requestTs": {
"type": "string",
"description": "YYYY-MM-DDTHH:MM:SS.MS"
},
"confirmation": {
"type": "string",
"description": "Binary buffer with DPA confirmation."
},
"confirmationTs": {
"type": "string",
"description": "YYYY-MM-DDTHH:MM:SS.MS"
},
"response": {
"type": "string",
"description": "Binary buffer with DPA response."
},
"responseTs": {
"type": "string",
"description": "YYYY-MM-DDTHH:MM:SS.MS"
}
},
"required": [
"request",
"requestTs",
"confirmation",
"confirmationTs",
"response",
"responseTs"
]
},
"insId": {
"type": "string",
"description": "IQRF GW daemon instance identification."
},
"status": {
"type": "integer",
"description": "IQRF GW daemon API (general or mType) status."
},
"statusStr": {
"type": "string",
"description": "IQRF GW daemon API (general or mType) status in string form."
}
},
"required": [
"msgId",
"rsp",
"status"
]
}
},
"required": [
"mType",
"data"
]
}
{
"$schema": "http://apidocs.iqrfsdk.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
"self": {
"vendor": "com.iqrftech.self-desc",
"name": "iqrfEmbedLedr_Flashing-request",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Embedded peripheral Ledg - Flashing request.",
"enum": [
"iqrfEmbedLedg_Flashing"
]
},
"data": {
"type": "object",
"properties": {
"msgId": {
"type": "string",
"description": "Message identification for binding request with response."
},
"timeout": {
"type": "integer",
"description": "Timeout to wait for IQRF DPA response."
},
"req": {
"type": "object",
"properties": {
"nAdr": {
"type": "integer",
"description": "Network device address."
},
"hwpId": {
"type": "integer",
"description": "Hardware profile identification."
},
"param": {
"type": "object",
"properties": {}
}
},
"required": [
"nAdr",
"param"
]
},
"returnVerbose": {
"type": "boolean",
"description": "Flag that includes additional parameters in the response."
}
},
"required": [
"msgId",
"req"
]
}
},
"required": [
"mType",
"data"
]
}
{
"$schema": "http://apidocs.iqrfsdk.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
"self"