# Web UI – Bus Transactions

> Send raw bus transactions from the browser — I²C, SPI, UART and socket — with hex/text input, hexdump and history.

_Source: E-Sharp (esharp.se) · Accordion Web UI_


The Bus page lets you send raw transactions on the station's I²C, SPI, UART and socket channels. You can type the bytes to send in hex or as text, view what comes back in a hex dump, read it as numbers, and keep a history of what you ran.

## Accessing

In the side menu select **Bus** (always present; a bus type you have no channel for is disabled). Firmware 6.0 or later is needed.

> Transactions go straight to the bus — nothing checks what a device does with the bytes. A wrong write can reconfigure or damage connected hardware, and a long receive holds the bus for every other client. The first time in a browser session you are asked to confirm.

## Choose the bus, channel and action

Select the bus type (**I²C**, **SPI**, **UART**, **Socket**), the **Channel** (its own settings — clock speed, SPI mode, baud rate, bus type, termination byte — are filled in for you, and can be changed for this transaction), and the **Action**:

- **I²C** — Scan, Send, Receive, Send and receive.
- **SPI** — Send and receive, Send, Receive.
- **UART** — Send and receive, Send, Receive, Break, Clear buffers.
- **Socket** — Send and receive, Send, Receive.

## Bus settings

- **I²C** — 7-bit **Address** (01–7F); **Scan** lists the addresses that answer and offers a **Found** list to pick from.
- **SPI** — Mode0–Mode3, clock speed, chip-enable-active-high.
- **UART** — baud rate (9,600–921,600), parity, flow control, bus type (RS232/RS422/RS485).
- **Socket** — host and port.
- **Timeout / termination** (UART and Socket) — receive timeout (max 15,000 ms) and a termination byte (default `0A`).
- **Bytes to receive** (1–65,536) for Receive and Send-and-receive; with a termination byte this is the maximum.

## Send and view data

Type the bytes in the **Send** box, choosing **Hex** (`AA BB 01`) or **Text** (`*IDN?\n`, with `\r \n \t \0 \\ \xNN`). The page shows the byte count and the same bytes in the other form. **Load** fills the box from a file (up to 64 kB). Click the run button to execute.

The **Received** panel shows the byte count and a hex view (offset, up to 16 bytes, and the characters). Click a byte to select it as the start for the number readouts, which show it as 8/16/32/64-bit signed and unsigned integers and 32/64-bit floats, in little- or big-endian. **Hex** copies the received bytes; **Save** writes them as `.bin`, `.txt` or a `.csv` table.

## History and saved transactions

The **History** tab lists this session's transactions (newest first) with time, bus, channel, action, bytes and duration; you can **Run again**, **Load into the form**, export **CSV** or **Clear** it (history is not kept across reloads). Save a transaction with **Save…**; the **Saved** tab lets you run, load or delete saved transactions.

## See also

- [Web UI – översikt](/accordion/support/docs/webui-oversikt)
- [Web UI – Channel Management](/accordion/support/docs/webui-channel-management)
- [Web UI – Chart Viewer](/accordion/support/docs/webui-chart-viewer)
