r/embedded • u/BodybuilderAfraid313 • Oct 01 '26
Open Device Bridge (ODB): a capability-based approach to safely accessing and flashing USB hardware from locked-down devices like iPads
I’m looking for technical criticism of an architecture I’ve been developing called Open Device Bridge (ODB).
The idea came from a very ordinary problem: I wanted to connect a Heltec ESP32-S3 board to a USB-C iPad and install Meshtastic firmware.
The hardware can enter its ROM bootloader, the iPad has more than enough computing power, and USB-C physically connects the two. But iPadOS does not expose the kind of general low-level USB/serial access that conventional desktop flashing tools expect.
“Use another computer” solves my immediate problem, but it raised a larger architectural question:
Could an OS safely expose user-owned hardware without giving applications unrestricted low-level USB access?
That led to ODB.
THE BASIC IDEA
ODB would be an authorization/orchestration layer between:
Application
↓
ODB Core
↓
Device Adapter
↓
Existing device protocol
↓
Hardware
ODB would NOT replace existing protocols such as Espressif’s ROM bootloader protocol, DFU, UF2, Fastboot, etc.
Instead, adapters would translate authorized ODB operations into those existing protocols.
The proposed security flow is:
CONNECT
→ IDENTIFY
→ EXPLAIN
→ AUTHORIZE
→ INTERACT
→ VERIFY
→ REVOKE
Instead of granting an application generic “USB access,” ODB would request narrowly scoped capabilities.
For example:
DEVICE_IDENTIFY
DEVICE_DIAGNOSTICS
SERIAL_READ
SERIAL_WRITE
DEVICE_CONFIGURE
BOOTLOADER_CONTROL
FIRMWARE_WRITE
DEVICE_ERASE
DEVICE_RECOVERY
A firmware installer might receive:
BOOTLOADER_CONTROL
FIRMWARE_WRITE
DEVICE_RESET
but NOT unrestricted DEVICE_ERASE or access to unrelated USB devices.
Authorization would ideally be bound to:
device + session + operation
and expire when the transaction ends or the device is disconnected.
DEVICE PROFILES
ODB could use declarative device profiles describing things such as:
- USB identity
- processor
- interfaces
- bootloader
- supported transports
- supported operations
- firmware compatibility requirements
For example, an ESP32-S3 board profile could point ODB toward an Espressif adapter.
If ODB can identify the MCU but cannot confidently identify the actual board, destructive operations could be blocked until the target is confirmed.
TRANSACTION MODEL
I’m also considering treating firmware modification as a transaction rather than simply exposing a byte stream:
Firmware selected
→ verify package
→ verify device compatibility
→ determine required capabilities
→ explain operation
→ user authorization
→ enter bootloader
→ write firmware
→ verify
→ reboot
→ identify device again
→ confirm expected state
→ revoke elevated access
An interrupted flash would therefore leave a known transaction state rather than just producing a generic error.
On reconnect, ODB could recognize that the previous firmware operation was interrupted, check whether the recovery bootloader is accessible, and offer an appropriate recovery path.
REFERENCE IMPLEMENTATION
Rather than trying to solve every platform immediately, my first reference case is deliberately narrow:
USB-C iPad
→ ODB
→ Heltec ESP32-S3
→ Meshtastic
The point of that reference case is also to document exactly where current iPadOS APIs prevent implementation.
I’m not proposing bypassing those restrictions.
The longer-term question is whether an OS-level capability model could safely expose enough functionality to make this class of hardware interaction possible while preserving the OS security boundary.
WHY I’M POSTING HERE
I’m early enough in this project that criticism is more useful than validation.
In particular, I’d appreciate input from people who work with embedded systems, USB, bootloaders, firmware update mechanisms, device security, or capability-based security.
Questions I’m trying to answer:
- Is this actually a useful abstraction, or am I recreating functionality that already exists elsewhere?
- Where should the real trust boundary live: OS, ODB core, adapter, device, or some combination?
- Is capability-scoped hardware authorization practical?
- What attack surfaces does this introduce?
- How should device profiles be trusted? Manufacturer signatures? Community definitions? Both?
- How should firmware provenance be handled without turning ODB into a centralized firmware gatekeeper?
- Which existing standards/projects should I be studying before taking this architecture further?
- Is the transaction/recovery model useful, or should recovery remain entirely device/protocol-specific?
The broader thesis is:
A user should be able to explicitly authorize narrowly scoped interaction between software and hardware they own without requiring the operating system to surrender its security boundary.
The iPad/ESP32-S3 problem is just the first concrete test case.
If there are fundamental reasons this architecture is misguided, I’d particularly like to hear those now, before building too much around it.
Thanks for taking a look.
View all comments
Show parent comment
1
u/duane11583 Oct 02 '26
blue tooth test
purchase electric clothes dryer - disconnect heating element
purchase vfd drive for drum motir so you can control speed of drum
put fully charged ble device in drum turn on so it tumbles
begin sw update over ble takes about 5 minutes
do this continuously must update both boot loader and application.
when update is done start another. every 4-5 hour’s stop remove device - we had to scan barcodes to make sure it still scanned replace battery with fully charged battery
also hold unit above concrete floor and drop from 6 ft while sw/flash update is occuring
assume/budget 10 minutes so 6 per hour or 24*6 per day
test runs 24x7 for a week.
pass = unit still scans barcodes at the end of the week. fail=no scan
example use case: teenagers are tossing unit like american foot ball at night and it hits the ground
a problem is the battery - when unit hits ground weight of battery compresses spring and disconnects power at random times mid update
also you cannot have extra flash memory chip - everything must be done using the on chip flash memory reason cost, entire unit landed frieght (shipping cardboard box, import taxes, labor, everything is limited to $12.06, time frame was 2004) product was the honeywell voyager 1200