Docs
USB devices
Plug a device into your laptop, share it from Mob Desktop, and the office computer uses it as if it were plugged in there.
What it does
The office computer's operating system sees the device itself, so its drivers and tools work unchanged: flash a board with its usual tool, talk to a debug probe, update firmware. The agent can use it too, like any device on that computer.
Mob carries the device over USB/IP, through the same connection as the rest of Mob, encrypted where that connection is (HTTPS, Tailscale). Nothing listens for USB on the office network.
To copy a file onto a drive, File transfers is simpler: sharing gives the office computer the whole device, not a file.
Set up the office computer
The office computer runs Linux or macOS. mobd usb status there says ready, or why not.
macOS
Nothing to set up: the installer and mobd upgrade put mobd's USB receiver (MobUSB.app) next to mobd, in ~/.local/lib/mobd. mobd starts it when a device is shared and stops it a minute after the last one. No sudo, and macOS asks nothing. If mobd usb status says the receiver is missing, install it once:
mobd usb setup mobd usb status
The device then appears in System Information → USB like one plugged in, and its drivers and tools use it.
Linux
Once, as the user that runs mobd:
sudo mobd usb setup mobd usb status
Setup loads the kernel's USB/IP importer (vhci-hcd, at every boot too) and installs a small root helper that only attaches and detaches shared devices for that user; mobd itself keeps running as you. mobd usb status says ready or why not. sudo mobd usb remove undoes it.
A tool on the office computer that opens the device directly (through /dev/bus/usb) needs permission for it, as with a device plugged in there: usually the udev rule its install instructions give.
Stop sharing
Choose Stop sharing. The office computer unplugs the device first, then the connection closes, and the device is yours again.
If a drive from it is still mounted on the office computer, Mob says so and keeps it shared: unmount it there first. Detach anyway unplugs it regardless, and writes not yet saved there can be lost.
Quitting Mob, unplugging the device, losing the connection or revoking the laptop's pairing also unplug it on the office computer, at once. A write or firmware flash in progress is then cut off, as when you pull a cable; Mob does not resume it.
Which devices
On a Mac, Mob can share devices that macOS does not drive itself: many debug probes, development boards and DFU bootloaders. Drives, keyboards and mice, audio devices, cameras and many serial adapters are held by macOS's own drivers; the dialog lists them folded, each with why, and they can't be shared from a Mac.
Audio and video devices, which stream isochronously, are not supported from any computer, and neither are hubs.
Limits
- The office computer runs Linux or macOS (Apple Silicon, macOS 13 or later). Windows office computers can't receive devices yet.
- Sharing is from Mob Desktop on macOS. Phones and tablets neither share devices nor control shares.
- While shared, only the office computer can use the device. One computer at a time.
- Speed depends on the connection: fine for flashing and debugging on the office network, slower through a relay.
- A device that restarts into another mode (a bootloader) appears as a new device: share it again.
- Agents and programs on the office computer run as its user and can use the device while it is shared there.