Hardware Instruments
Neural Inverse integrates with external hardware instruments for signal capture, power measurement, and protocol analysis.
Logic Analyzer
Supported Hardware
| Device | Connection | Protocol Decoders |
|---|---|---|
| Saleae Logic 2 | TCP port 10430 | 23 protocols |
| Digilent WaveForms | Python dwfpy | 11 protocols |
Protocol Decoders
Saleae (23 protocols): uart, spi, i2c, can, lin, i2s, jtag, swd, manchester, modbus, 1-wire, parallel, async-serial, biss-c, hdlc, hdmi-cec, i2s-pcm, jtag-raw, mdio, midi, ps2, smbus, usb-ll
Digilent (11 protocols): uart, spi, i2c, can, lin, i2s, manchester, modbus, 1-wire, parallel, async-serial
Usage
> fw_la_capture channels=0,1,2,3 duration=1s sampleRate=24MHzCaptures digital signals on specified channels.
> fw_la_decode spi captureId=abc123Decodes a captured signal using the specified protocol.
> fw_la_trigger channel=0 edge=risingArms a trigger condition for the next capture.
> fw_la_export captureId=abc123 format=csvExports captured data.
Storage
Captures are stored in .inverse/captures/<captureId>/.
Power Analyzer
Capabilities
- Voltage rail measurement
- Current measurement (shunt-based)
- Power calculation (RMS, peak, average)
- Boot profiling (power consumption during startup)
- Per-function power attribution (with correlated debug trace)
Usage
> fw_pa_measure duration=5sMeasures power consumption for a duration.
> fw_pa_set_voltage 3.3Sets the voltage rail for measurement reference.
> fw_pa_record duration=10s label="deep_sleep_test"Records a power profile with a label.
> fw_pa_profile_bootProfiles power consumption during MCU boot sequence.
> fw_pa_trigger event=gpio_high channel=PA5Triggers power measurement on a GPIO event.
Oscilloscope
Protocol
Uses SCPI (Standard Commands for Programmable Instruments) for universal oscilloscope compatibility.
Usage
> fw_scope_discoverDiscovers connected oscilloscopes on the network/USB.
> fw_scope_capture channel=1 duration=10msCaptures an analog waveform.
> fw_scope_measure channel=1 type=frequencyMeasures signal properties (frequency, amplitude, rise time, etc.).
> fw_scope_rail_check voltage=3.3 tolerance=5%Checks if a power rail is within tolerance.
> fw_scope_scpi "*IDN?"Sends raw SCPI commands for advanced control.
> fw_scope_screenshotCaptures the oscilloscope display.
Coordinated Capture
Synchronize multiple instruments for correlated measurement:
> fw_capture_all logic=0,1,2,3 power=true serial=true duration=2sCaptures simultaneously from logic analyzer, power analyzer, and serial monitor. All data is time-correlated for analysis.
> fw_correlate_power_logic captureId=abc123Correlates power consumption with digital signal activity.
Agent Tools
| Tool | Description |
|---|---|
fw_la_capture | Capture digital signals |
fw_la_status | Logic analyzer connection status |
fw_la_trigger | Arm trigger condition |
fw_la_decode | Decode captured protocol |
fw_la_export | Export capture data |
fw_pa_measure | Measure power consumption |
fw_pa_status | Power analyzer status |
fw_pa_record | Record power profile |
fw_pa_trigger | Arm power measurement trigger |
fw_pa_set_voltage | Set voltage rail reference |
fw_pa_profile_boot | Profile boot power |
fw_scope_discover | Find oscilloscopes |
fw_scope_capture | Capture waveform |
fw_scope_scpi | Send raw SCPI command |
fw_scope_measure | Measure signal property |
fw_scope_screenshot | Capture display |
fw_scope_rail_check | Check voltage rail |
fw_capture_all | Coordinated multi-instrument capture |
fw_correlate_power_logic | Correlate power with logic |
Last edited