How do I reset the BB-400?
-
This command resets the BB-400 to default/factory settings.
-
The
bb reset
command requires root access. The user needs to be signed in as root user or use thesudo
keyword to run this command. - This command takes about 2 minutes to run. If the command executed successfully then the following message will be returned.
[email protected]:~ $ sudo bb reset
{
'message': 'Finished reset',
'success': true
}
These are the factory defaults the device will be set to.
################################################################################
# Brainboxes Configuration File
################################################################################
# This file is generated after a successful image flash
# It contains information about the version and unit configuration
# This file is read on device boot up, the settings are then applied to the various device interfaces (if configurable)
# The brainboxes web admin interfaces reads and writes data to this file
# The file can also be edited manually, the file is watched during the running of the device, if a change is detected the new settings will take effect
# Please note some settings may take a minute to take effect,
# Also note some settings may not be possible
# If any setting errors occur they are written the to log file located: \var\log\brainboxes\bb_cli.log
# This file can also be interacted with through the BB-CLI on the command line just type:
# bb config
# the whole file will be returned on the command line to view a portion of the file simply navigate to the path you are interested in e.g:
# bb config.network.eth0.connection.type
# > dhcp
# to edit a value simply write it after the path e.g to edit eth0 type from dhcp to static:
# bb config.network.eth0.connection.type static
# {
# "message": "1. config.network.eth0 - Value updated",
# "success": true
#}
# command line will respond with the output of the command
version:
product: BB-400 # the part number of the product
hardware: r3 # Hardware revision/version
software: 1.0.963 # Version of brainboxes software
io: # These are settings which apply to the 8 IO lines and the BB-IO-Server which interfaces with the IO lines
fw_version: 1.0.10 # The Arduino or DIO firmware version number
global: # IO lines configuration settings apply to all IO lines
counter_update_direction: falling_edge # Counter update - falling_edge or rising_edge in the input signal
counter_mode: 16_bit_counter # Input Counter Mode can be 16 bit or 32 bit, this is the size of the register
# to store the count value 16 bit = 0 -> 65,536 , 32 bit = 0 -> 4,294,967,296
lines:
dio0:
label: dio0 # User defined label for the DIO line
mode: not_set # Input or Output or Not_set or Unused
# whether the line is used as an input or an output or ?
debounce: 0 # Debounce time in milliseconds, valid input should be between 0-4000
dio1:
label: dio1
mode: not_set
debounce: 0
dio2:
label: dio2
mode: not_set
debounce: 0
dio3:
label: dio3
mode: not_set
debounce: 0
dio4:
label: dio4
mode: not_set
debounce: 0
dio5:
label: dio5
mode: not_set
debounce: 0
dio6:
label: dio6
mode: not_set
debounce: 0
dio7:
label: dio7
mode: not_set
debounce: 0
protocols: # This section covers the different protocols which is used by the BB-IO-Server
polling_interval: 1 # Set the polling interval in seconds to get the DIO line states
virtual_serial_port: # Virtual com port accessible by a program running on the BB-400
enabled: true # Enable status - true or false
path: /usr/share/brainboxes/virtual_serial_port # symlink to the generated virtual serial port
ascii_tcp: # ASCII TCP server conforms to the ASCII TCP protocol as on brainboxes digital remote IO modules ED-008 or ED-588, for more info see: http://www.brainboxes.com/faq/items/ascii-protocol-and-commands
enabled: true # Enable status - whether to enable the server - true or false
port: 9500 # Port number the server runs on
modbus_tcp: # the Modbus TCP server conforms to the Modbus TCP protocol as on brainboxes digital IO modules ED-588 or ED-008
enabled: true # Enable status - whether to enable the server - true or false
port: 502 # Port number the server runs on
respond_to_slave_ids: 0 to 255
accept_all_addresses: false
maximum_connections: 8
idle_timeout: 0
rest_server: # REST server allows GET and POST requests to view and modify IO state
enabled: true
port: 9000
ws_server: # WebSocket server pushes new IO state to the clients and recieves requests to change state, uses a JSON payload
enabled: true
port: 8989
network:
eth0: # Interface name
interface:
mac: 00:0a:4f:xx:xx:xx # MAC address of ethernet (eth0), xx - will be replaced by the device MAC address
status: active # Ethernet status - active or inactive
connection:
name: BB-WAN # Name of the connection
type: dhcp # IP address assignment type - static or dhcp
eth1: # Interface name
interface:
mac: 00:0a:4f:xx:xx:xx # MAC address of ethernet (eth1), xx - will be replaced by the device MAC address
status: active # Ethernet status - active or inactive
connection:
name: BB-LAN # Name of the connection
type: static # IP address assignment type - static or dhcp
ip: 192.168.127.1/24 # IP address, if type is static
gateway: 0.0.0.0 # Gateway IP address, if type is static
radio:
base_mac_address: 00:0a:4f:xx:xx:xx # xx - will be replaced by the device MAC address
wlan0: # wireless lan client, only available in radio.co_exist 3 or 14
interface:
status: inactive
connections: []
wifiap: # wireless lan hotspot, only available in radio.coexist_mode 3 or 13
interface:
status: active
connection:
ssid: bb-400-xxxx # xxxx will be replaced by the last 4 characters of the MAC address
ip: 192.168.63.1/24
bluetooth: # bt, only available in radio.coexist_mode 13 or 14
interface:
status: inactive
upnp: # upnp is used to discover device on a windows network
enabled: true # Enable status - whether UPnP is enabled or disabled, vlid inputs are true and false
port: 5001 # Port number the UPnP server will run on
serial: # this section covers the serial port settings on the BB-400
enabled: true # If serial port is enabled or disabled
type: rs232 # this port is available on the device as /dev/ttySC0
default: # serial port settings
ignore_application: false # whether these settings should override application settings
baud_rate: 115200
data_bits: 8
stop_bits: 1
parity: none
flow_control: none
protocol:
type: telnet
port: 9001
timeout: 0
tunneling:
enabled: false
remote_ip: 192.168.0.0
remote_port: 9001
docker:
enabled: true
containers: []
system:
rtc: false # the last datetime that the rtc was set in format ISO 8601
hostname: bb400-xxxx # host name of the device, will be replaced by last 4 characters of the MAC address
timezone: UTC # timezone of device
username: bb
password: '****' # passwords are never stored in the config file once they are set, instead '****' is used as a placeholder to show the user that this property is set