Manual UART configuration
Instead of using Octave Services to enable ORP, USP, CanOpen or Modbus on UART you can manually configure them in the Octave resources.
You can also use manual configuration for using AT commands, which might be necessary for certification tests.
The list of supported services are the folowing:
Name | Status |
---|---|
"" | 00 UART Disabled |
"at" | AT command service |
"nmea" | 04 NMEA service |
"console" | 16 Linux Console |
"usp", "modbus","orp" | 17 Linux Console |
And the global structure for /io/config is the following
{
"devs" : [
{
// Common fields
"type" : "UART1" | "UART2", // String, Mandatory: Device name, UARTx | SPI | I2C
"own" : <application name>, // String, Mandatory: Application using this device
"wire" : "2 " | "4 ",
// UART Specific
"std" : "232" | "485", // String, Optional: TIA Standard. Default RS-232
"flow" : "N" | "S" | "H", // String, Optional: Flow Control, None | Software | Hardware. Default none
"baud" : "1200" | "2400" | "4800" | "9600" | // String, Optional: Baud rate. Default 9600
"19200" | "38400" | "57600" | "115200" |
"230400" | "460800" | "921600",
"bits" : < data bits >, // Integer, Optional: Data bits, Valid values [5:9]. Default 8
"pair" : "E" | "O" | "N", // String, Optional: Parity, Even | Odd | None. Default None
"stop" : 1 | 2, // Integer, Optional: Stop bits. Default 1
"term" : "ON" | "OFF", // String, Optional: RS485 Terminating resistor On | Off. Default Off
}
]
}
Updated over 3 years ago