# reset – reset hardware

> Resets the station to its initial state — clears channels and loads default values. Modules and the connection are kept.

_Source: E-Sharp (esharp.se) · Accordion Shell (CLI)_


## Description

The `reset` command resets the Accordion hardware system, returning it to its initial state. This includes resetting channels, clearing custom channel configurations, and reloading defaults.

## Syntax

```bash
reset
```

This command has no options.

## Output Format

```
Resetting..
Reset done, took 234.56 ms
```

## What Gets Reset

- All channels return to default states
- Custom channel configurations are cleared

What is kept:

- Loaded modules remain loaded
- The connection remains active
- Alias/configuration files remain loaded

## Timing

- Simple systems: 100–200 ms
- Complex systems: 200–500 ms
- Systems with many modules: 500–1000 ms

## Use Cases

```bash
# Ensure a clean starting state before a test sequence
reset
wait --channel "READY" --value "1" --timeout 5000
```

## Notes

- Requires an active connection (use `init` first)
- Does NOT disconnect from hardware, unload modules or clear alias files
- Blocking operation (waits for completion)

## Error Handling

- **Not connected**: run `init` first
- **Timeout**: hardware not responding (may need a power cycle)
