Skip to content

Driver editor ​

HamBench can draft a radio's protocol from the desktop app. The form builds serial settings, memory segments, protocol steps, the channel schema, and the memory map, including settings groups. Byte tokens are chosen as hex, one ASCII character, or a placeholder, so the saved JSON stays syntactically valid while the protocol is still incomplete.

The live CAT command profile is still a JSON file. See Protocol DSL and Memory-map DSL.

Open it ​

Choose View → Developer Mode. The check is remembered. HamBench opens the Driver page and adds a Driver tab next to WaveBench. A warning at the top of the page explains that this edits the programming protocol. Close it to hide it until the next launch.

Turn Developer Mode off to hide that tab. A draft you already started stays on disk until you replace it.

What the form writes ​

SectionJSON
SetupIdentity (id, version, description, capabilities, optional channel-schema and memory-map paths), serial settings (serialConfig, including at least one supported baud rate, the default baud rate chosen from those speeds, and optional RTS/CTS or line levels), and memoryConfig segments. The protocol writes an open settings schema next to the channel schema path. Segment addresses are hex in the form, shown as 0x0000; the JSON stores them as numbers. endAddress is inclusive
ChannelThe channel JSON Schema: optional name, receive and transmit frequencies in hertz, and optional CTCSS or DCS tones. The JSON panel is that schema file. The protocol document keeps only its path
MemoryChannel bindings, the structs that hold the name, frequencies, and tones, and settings groups. The groups are a tab menu, and a settings field is edited inside the selected group, such as Basic or Advanced. Structs keep the radio address and the fields that are not on the Settings screen. Addresses are hex in the form, shown as 0x0000; the JSON stores a struct seek as 0x0000. The JSON panel is that memory-map file. The protocol document keeps only its path
ReadreadMemory exchanges, chunked reads, and CAT reads
WritewriteMemory exchanges, chunked writes, and CAT writes. Skip ranges are hex in the form, shown as 0x0000; the JSON stores those addresses as numbers
DebugTwo clones of the radio. Name the channel or setting you change between the reads, with the original value and the new value. A side-by-side hex dump highlights the bytes that differ, which is where that field is stored. This comparison is not written into the protocol JSON

Example loads a short clone-style driver you can walk through. Load installed copies a module that is already installed, including the channel schema and the memory map, so the Channel and Memory tabs show that radio's fields. The Settings screen is the memory map. Import and Export read and write a JSON file. The copy icon at the upper right of the JSON panel puts the same document on the clipboard.

Debug a step ​

On Read or Write, the step list, the form, and the guide start at an even split between the form and the guide. Drag the dividers to change those widths. Drag a step or a byte by its handle to change the order. Select a step or use Previous and Next. What the computer sends, and what the radio is expected to answer, sits in its own section, apart from the help text. The sequence diagram draws the whole protocol, the same way the radio Driver tab does, and highlights the step that is open in the form. Choose a step in the diagram to open it.

Errors name the field that is wrong. A step with an error is left out of the JSON preview so the preview still parses. Warnings, such as a chunked read with no $data, stay in the JSON and are called out in the guide.

Placeholders:

TokenMeaning
$addressCurrent chunk byte address
$blockCurrent chunk index
$chunkSizeChunk size as one byte
$lengthPayload length as one byte
$dataChunk payload

Publish ​

Export the protocol JSON into a module's configs/ directory. Copy the channel schema and the memory map from their tabs into the files beside it, and point the Setup paths at those files. Then follow Build a radio driver and Publish a module.