User Guide to rubikpi_config
rubikpi_config is a configuration tool that runs on RUBIK Pi 3.
The rubikpi_config command allows for easy configuration of the 40-pin, LED, fan, and other interfaces.
rubikpi_config has two modes:
-
Command-line mode
Use commands like
rubikpi_config pin i2c1 enableto configure interfaces. -
Menu mode
Run the
rubikpi_configcommand to enter menu mode and follow the prompts to configure interfaces.
In the official released image, the rubikpi_config tool may not be the latest version. If you encounter any issues during use, visit (https://github.com/rubikpi-ai/tools/tree/rubikpi_config) and follow the instructions in README to update the tool.
Command-line mode
Run the rubikpi_config -h command to check how to use the tool. The output is as follows:
This is the config tool for RUBIK Pi.
Select working mode:
rubikpi_config ---> When executed without arguments, enter the menu mode
rubikpi_config [function] [args...] ---> When executed with arguments, enter cmdline mode
CMDLINE MODE:
rubikpi_config [function] -h View Help Information
function:
pin 40 pin header function control(e.g. i2c1, spi2)
fan Fan status control
temp Temperature information view
res Resource information view(e.g. CPU usage, memory usage)
led LED parameter settings
thermal Thermal switch settings
debug Debugging information printing
display Display parameter settings(e.g. resolut)
audio audio information view and parameter settings
wifi WiFi quick connection
bt Switching protocol stack
OTHER
-h, --help Print help information
-v Print version information
40-pin
- Check how to use rubikpi_config:
rubikpi_config pin -h
Sample output:
This is the config tool for RUBIK Pi.
PIN
Use examples
rubikpi_config pin [operation port] [enable/disable]
operation port:
i2c1, i2c3, spi2, uart2_2w, uart2_4w, i2c2, spi6, uart6_2w, uart6_4w, i2c6, spi8, uart8_2w, uart8_4w, i2c8, spi12, uart12_2w, uart12_4w, i2c12, i2s2
-
Examples of some commands:
-
Enable UART6 in two-wire mode:
rubikpi_config pin uart6_2w enableSample output:
Note: The update is complete and will take effect after restart.After restarting the system, the
/dev/ttyHS6node will appear. Use the method described in UART to test UART6. -
Get the enable status of UART6 in two-wire mode:
rubikpi_config pin uart6_2wSample output:
uart6_2w current status:enable
-