E-Sharp Helpcenter
Breadcrumbs

Reset command

Reset Hardware

Description

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

Syntax

Bash
reset

Options

This command has no options.

Examples

Bash
reset

Output Format

Resetting..
Reset done, took 234.56 ms

Output Colors

  • Default: "Resetting.." message

  • Blue: Completion message with timing

Behavior

  1. Sends reset command to hardware

  2. Waits for reset to complete

  3. Refreshes channel list

  4. Reports completion time

What Gets Reset

  • All channels return to default states

  • Modules remain loaded

  • Connection remains active

  • Configuration files remain loaded

  • Custom channel configurations are cleared

Use Cases

Recovery from Error State

Bash
# Hardware in error state
reset
# System recovered

Start Fresh

Bash
# Clear all custom configurations
init --host 192.168.1.100
module --module "MyModule"
set --channel "CONFIG" --value "custom"
# ... testing ...
reset  # Return to defaults

Before Test Sequence

Bash
# Ensure clean state
reset
wait --channel "READY" --value "1" --timeout 5000
# Begin testing

Timing

Typical reset times:

  • Simple systems: 100-200 ms

  • Complex systems: 200-500 ms

  • Systems with many modules: 500-1000 ms

Notes

  • Requires an active connection (use init first)

  • Does NOT disconnect from hardware

  • Does NOT unload modules

  • Does NOT clear alias files

  • Blocking operation (waits for completion)

Warnings

⚠️ Important: Reset clears custom channel configurations but keeps:

  • Loaded modules

  • Active connection

  • Alias/configuration files

Error Handling

Common errors:

  • Not connected: Run init command first

  • Timeout: Hardware not responding (may need power cycle)

Best Practices

  1. Use before tests: Ensure clean starting state

  2. Document timing: Note if reset times are abnormal

  3. Wait after reset: Allow system to stabilize

  4. Verify state: Check critical channels after reset

Recovery Procedures

If reset fails:

Bash
# 1. Try disconnecting and reconnecting
exit
# Restart AccordionShell
init --host 192.168.1.100

# 2. If still failing, contact hardware support