The information contained in this document is subject to change. This document contains proprietary information, which is protected by copyright
laws. All rights are reserved. No part of this document may be photocopied, reproduced or translated to another language or program language
without prior written consent of RFI Engineering B.V.
RefGuide_U-routerNGW_v1.01.docx
Page: 53(
57)
Possible values are:
•
/dev/ttyS2
•
/dev/ttyCisco
•
/dev/ttyJuniper
/dev/ttyS2 is the default value and is mapped to the RS232
serial port on the front of the unit.
The API allows for any /dev/ttyXXXX to be sent, just in
case you want to connect to another serial interface, for
example: /dev/ttyUSB2
term_speed
The baud rate at which the terminal interface operates. It
will take any decimal value between 300 and 256000.
For example: term_speed=9600
reboot
When reboot=1 the U-router NGW will reboot immediately.
flush_consolelog
When flush_consolelog=1 the Serial Console log will be
deleted and a new (empty) log file will be started.
restore_default
When restore_default=1 all settings on the U-router NGW
will be set to factory default. This includes all users,
password, IP settings and mobile connection settings.
As an example, to set the terminal speed to 9600 baud:
curl -X POST https://192.168.168.1/api/settings -u rfi:rfi123 -d "term_speed=9600"
Returns:
{
"status": "OK"
}
As an example, to set 5V USB power to on:
curl -X POST https://192.168.168.1/api/settings -u rfi:rfi123 -d "usb_power=1"
Returns:
{
"status": "OK"
}
As an example, to reboot the U-router NGW:
curl -X POST https://192.168.168.1/api/settings -u rfi:rfi123 -d "reboot=1"
Returns:
{
"status": "OK"
}
The U-router NGW will reboot immediately.