SolarOS

SolarOS 4.13.4 manual · command

expansion

Open the expansion device manager. Browse attached devices and driver categories, inspect details, attach supported drivers, save runtime attachments to the selected startup script, and detach runtime devices. Bus lifecycle remains in the io app.

Usage

UsageDescription
expansionOpen the expansion device manager. Browse attached devices and driver categories, inspect details, attach supported drivers, save runtime attachments to the selected startup script, and detach runtime devices. Bus lifecycle remains in the io app.
expansion statusShow expansion capabilities, named buses and leases, connector resources, active devices, and resource claims.
expansion layout [connector]Draw the board's physical connector map with live free, releasable, claimed, fixed, power, ground, and NC markers.
expansion scanList expansion resources and probe-capable drivers.
expansion driversList compiled expansion drivers.
expansion devicesList fixed board and runtime-attached expansion devices with origin, readiness, startup mode, policy, and bindings.
`expansion bus create i2c <name> port=<i2c0\i2c1> sda=<gpio> scl=<gpio> [speed=<hz>]`Define a runtime I2C bus on an unused controller and approved expansion pins.
expansion bus create onewire <name> pin=<gpio>Define a runtime named 1-Wire bus on an approved expansion pin.
expansion bus create ps2 <name> clock=<gpio> data=<gpio>Define an exclusive PS/2 bus on two approved expansion pins.
expansion bus create midi <name> tx=<gpio> rx=<gpio> [baud=<rate>]Define an exclusive MIDI bus; SolarOS selects the UART backend and defaults to 31250 baud.
`expansion bus create spi <name> host=<spi2\spi3> sclk=<gpio> mosi=<gpio> [miso=<gpio\none>] cs=<gpio> [cs=<gpio> ...] [max=<bytes>]`Define a runtime-routed SPI bus on a board-approved host and expansion pins.
`expansion bus create uart <name> port=<uart1\uart2> tx=<gpio> rx=<gpio> [baud=<rate>]`Define a lazy runtime UART on an unused controller and approved expansion pins.
expansion bus attach <name>Attach a named detachable bus and reserve its endpoint and signal pins.
expansion bus detach <name>Detach an idle named bus, preserving its descriptor while releasing its endpoint and signal pins.
expansion bus remove <name>Remove an idle runtime bus and release its signal pins.
expansion attach <driver> <name> <resource...>Attach a compiled expansion driver or manual resource profile.
expansion detach <name>Detach an active expansion device and release its resource claims.
expansion export <path>Atomically export runtime buses and catalog-backed device attachments as a portable expansion manifest for custom-board generation.

Join us on: