Complete command reference for RBox. Send Help to your RBox device and it will reply with the full list of available commands. For background on RBox, see the introductory post.
Commands are not case-sensitive — they are converted to lowercase internally before processing.
System commands
Version — returns the RBox version in the format MJ.Mn.BUILD (major, minor, 5-digit SVN revision). Run this before and after Sysupdate to confirm the upgrade.
Sysupdate — downloads and installs the latest RBox release from GitHub onto the non-active boot partition. A reboot is required for changes to take effect. Tip: send Sysupdate;reboot to update and reboot in one step.
Reboot — gracefully shuts down all services and restarts the device.
Poweroff — gracefully shuts down and halts the system. Always use this before cutting power — a hard power-off leaves the XMPP session stale (the server shows the device as online but it is unresponsive).
Uptime — returns the device uptime in hours.
Network commands
Publicip — returns the public IP address assigned to the router. Useful when dynamic DNS is unavailable or not updating correctly.
Localip — returns the local LAN IP address of the RBox device. Useful for SSH access on the same network.
Hostname commands
Hostname [name] — with an argument, sets a new persistent hostname (takes effect after reboot). Without an argument, prints the current hostname. Useful when SSH-ing into RBox on the local network.
Resethostname — resets the hostname to the default format brbox-1A2B3C4D5E6F (where the last 12 characters are the MAC address). Requires a reboot.
GPIO commands
Gpio <address> [value] — reads or writes a GPIO pin. Examples:
Gpio 2 1 # set GPIO2 high Gpio 2 0 # set GPIO2 low Gpio 2 # read current state of GPIO2
GPIO pin values are not retained across reboots — they revert to defaults.
SOURCE CODE
github.com/hackboxguy/brbox — RBox sources and build instructions
1 comment:
Nice blog post brings the reader with really a good amount of information and provide some basic ideas of the situations as well.. i liked your website as well. keep growing
Post a Comment