1{ 2 "$schema": "http://json-schema.org/draft-07/schema#", 3 "$defs": { 4 "USBPort": { 5 "description": "The definition of the USB TTY port.", 6 "type": "object", 7 "additionalProperties": false, 8 "properties": { 9 "Type": { 10 "description": "The type of configuration object.", 11 "const": "USBPort" 12 }, 13 "Name": { 14 "description": "The name of the USB port.", 15 "type": "string" 16 }, 17 "DeviceAddress": { 18 "description": "The address of the USB device.", 19 "type": "string" 20 }, 21 "DeviceInterface": { 22 "description": "This indicates the interface number of the device.", 23 "type": "number" 24 }, 25 "Port": { 26 "description": "This indicates the physical port of the serial device within that interface.", 27 "type": "number" 28 }, 29 "Mode": { 30 "enum": ["RS232", "RS485"] 31 }, 32 "BaudRate": { 33 "description": "The baudrate of the communication channel.", 34 "enum": [9600, 19200, 57600, 115200] 35 }, 36 "RTSDelay": { 37 "description": "The request to send delay in milli-seconds.", 38 "type": "number" 39 } 40 }, 41 "required": [ 42 "Name", 43 "Type", 44 "DeviceAddress", 45 "DeviceInterface", 46 "Port", 47 "Mode", 48 "BaudRate", 49 "RTSDelay" 50 ] 51 } 52 } 53} 54