Debug shell: a local shell on the device with every debug command #67
Open
opened 2026-10-06 19:30:11 +00:00 by twisla
·
0 comments
No Branch/Tag Specified
main
badges
ci-speed
keys-tables
help-key
devlog-console
console-setting
site-dev
site-howto
site-devlog
site-guide
site-security-txt
site
fix-release-polish
gitea-updates
coverage
ci
notes
f1
s1
m3
g1
m2
ota
v0.13.0
v0.12.0
v0.11.0
v0.10.0
v0.9.0
v0.8.1
v0.8.0
v0.7.0
v0.6.1
v0.6.0
v0.5.0
v0.4.0
v0.3.0
v0.2.1
v0.2.0
v0.1.0
Labels
Clear labels
area/apps
area/audio
area/build
area/cluster
area/gemini
area/gitea
area/gnss
area/ir
area/irc
area/lora
area/ota-debug
area/power
area/scripting
area/ssh
area/storage
area/ui
area/vpn
area/website
area/wifi
concern/memory
concern/security
Launcher and the apps in src/apps
Microphone, speaker, the codec, recording and playback
PlatformIO, Docker, scripts, partitions, sdkconfig
AtomS3 co-processors on Grove and the link protocol
GeminiService, the Gemini App, Saved Pages
The Gitea client: issues, releases, its TLS and its token
GnssService, the GNSS App, Tracks
The infrared LED and the IR Remote
IrcService and the IRC App
The Cap LoRa-1262 radio and the mesh
Updates, Probation, Safe Mode, Debug Console, crash reports
Battery, PowerService, sleep
Lua Apps from the SD card and their API
The SSH client and its terminal
StorageService, the SD card, Storage page
Canvas, widgets, dialogs, Toasts, fonts, keyboard
The WireGuard tunnel
The project website and its docs
WifiService, Wi-Fi Settings, Wi-Fi Tools
May push the heap towards its floors; measure on the device
TLS, signing, the debug token, trust on first use
kind
bug
Something that doesn't work as it should
kind
chore
Refactors, tooling, CI, scripts
kind
docs
README, CONTEXT, milestones, ADRs
kind
feature
Something new the device can do
priority
high
Next up
priority
low
Some day
priority
medium
Soon
status
blocked
Waiting on something else
status
needs-design
Needs a question round (Qnn) before code
status
ready
Designed; can be started
Milestone
No items
No Milestone
S1 System basics
Assignees
twisla (Clément Martin)
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: twisla/roro9stack#67
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The serial and Debug Console commands (
info,tasks,ls,key,update …,lora …,crash, …) can only be typed on a PC. Idea: an App with a shell on the Cardputer's own screen and keyboard, running the same commands, so the device can be inspected and driven with no PC and no Wi-Fi: in the field, on a dead network, or with a Debug Build in a bag.Why it fits: the commands already run through one dispatcher (
runCommandinsrc/main.cpp), the same for USB serial and the Debug Console. A shell is a third place to type into it, and the IRC App already has the pieces: a line editor with history, a scrolling buffer, and Alt+;/.to scroll.Questions for a design round (Qnn):
key,rm,installandreset-like commands on the device's own screen are easy to hit by accident. A shell only in Debug Builds, behind an explicit Settings switch, or in all builds with a smaller command set?concern/memory)? A fixed 2 to 4 KB scrollback?taskstakes a second,lora sweep,update install): run on the main loop as now, and show a spinner? Cancel with Back?get,put,screenshot,coredump get,reset) have no meaning on the device itself and stay Debug Console only.consoledirectly.Done when (to be refined): an App listed in the Launcher where
helpworks and a handful of read-only commands (info,ls /,net,tasks) show their output; destructive commands ask first; documented in the developer docs.