-
Notifications
You must be signed in to change notification settings - Fork 0
Carvera SimpleShell
-
ls [-s] [-e] [folder]
Lists the contents of a directory. The-soption adds file size and date information, while-esends an EOT (End of Transmission) after listing files. -
cd folder
Changes the current working directory tofolder. -
pwd
Prints the current working directory. -
cat file [limit] [-e] [-d 10]
Displays the contents of a file.-
limit: Limits the number of lines displayed. -
-e: Ends the output with EOT. -
-d: Delays the display for a number of seconds (useful before uploads).
-
-
echo text
Displays a line of text. Sends the text to all streams (for debugging/logging). -
rm file [-e]
Deletes a file. If-eis provided, it sends an EOT when the file is successfully deleted. -
mv file newfile [-e]
Renames or moves a file fromfiletonewfile. The-eoption sends an EOT upon success. -
mkdir directory [-e]
Creates a new directory. The-eoption sends an EOT upon success. -
reset
Reboots the system. -
dfu
Enters DFU (Device Firmware Update) bootloader mode for firmware flashing. -
break
Enters MRI debug mode. -
helpor?
Displays available commands and brief descriptions. -
version
Displays the firmware version (in this case,0.9.8). -
mem [-v]
Displays memory usage statistics. With the-voption, it performs a detailed heap walk. -
task
Displays task information, including state, priority, stack usage, and runtime stats (if FreeRTOS runtime stats are enabled). -
set_temp bed|hotend temp
Sets the temperature for the bed or hotend to the specified value. -
switch name [value]
Controls a switch by name. If no value is provided, it retrieves the current state of the switch. Value should be eitheronoroff. -
md5sum file
Computes and displays the MD5 checksum of a file. -
time [timestamp]
Displays the current system time or sets a new system time if a UNIX timestamp is provided.
-
upload filename
Saves incoming text to the specified file via the XModem protocol. -
download filename
Downloads a file using the XModem protocol.
-
config-get
Retrieves a specific configuration setting. -
config-set
Sets a specific configuration setting. -
config-load
Loads the configuration from the storage. -
config-get-all [-e] [filename]
Outputs all configuration settings. Can specify a filename (default/sd/config.txt), and-ewill terminate with EOT. -
config-restore
Restores the configuration to the default settings. -
config-default
Saves the current configuration as the default.
-
net
Displays the network status (currently commented out but would retrieve IP configuration). -
ap [channel|ssid|password|enable|disable]
Configures an access point. Options:-
channel: Sets the AP WiFi channel (1-14). -
ssid: Sets the AP SSID (up to 27 characters). -
password: Sets the AP password (min 8 characters). -
enableordisable: Turns the AP on or off.
-
-
wlan [ssid] [password] [-d] [-e]
Configures a WLAN connection. If no SSID is provided, it scans for networks. The-doption disconnects from the WLAN, and-esends an EOT after processing.
-
sleep
Puts the system into sleep mode (turns off 12V/24V power). -
power on|off 12|24
Controls the 12V or 24V power supply. Usepower on 12to turn on the 12V supply, and so on.
-
ftype file
Displays the supported file type for uploads (in this case,lz, compressed by quicklz). -
remount
Remounts the filesystem. -
thermistors
Lists predefined thermistors.
-
jog
(Not yet implemented in the code) Would likely issue jogging commands for motion control, possibly through GRBL.