Skip to content

About

Serial (RS232C) command and data interface of WHILL products

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

WHILL

WHILL Serial API

The serial (RS232C) command and data interface of WHILL products, provided by WHILL, Inc.
Part of the WHILL Mobile Robot Platform (MRP).

whill.github.io/whill-serial-api · Technical Support


Products

Covers Model CR2, Wheeled Robot Base and Electrical System Kit. Two-wheel drive with a single RS232C interface and the full command set.

Specification Frame format, control commands, state data, timing and connector pinout. Markdown source: docs/cr2/spec/
Tester Send commands to a real WHILL and watch the returned state data live.
Emulator Emulates a WHILL device — parses host commands and serves Dataset0 / Dataset1, so you can develop without hardware.

Two Model CR2 drive units mounted at 90° to each other, making the platform holonomic — it moves in any direction without changing the direction the wheels point. Controlled through two RS232C interfaces driven in sync, with a reduced command set.

Specification Companion document to the Model CR2 specification — the two interfaces, the motion model, the command set and the extended SetVelocity range. Markdown source: docs/omni/spec/
Tester Drives both RS232C interfaces from one browser window — virtual joystick for translation, hold-to-rotate buttons, per-unit status and an interleaved two-unit log.

Requirements

Browser Chrome or Edge (Web Serial API — Safari and Firefox are not supported)
Transport RS232C, 38400 bps, 8-N-2
Connector D-sub 9-pin

The tester and emulator run entirely in the browser. No installation, no driver, no account.

Wheeled Robot Base and Electrical System Kit share the software specification of Model CR2 — every "Model CR2" description applies to them.

Offline use

Each tool is a single self-contained HTML file with no external dependency. Use the Download link on the site to save it with a version-stamped filename (e.g. WHILL_Serial_API_Tester_CR2_v1.01.html), then open it from a local disk — it works on an isolated network with no internet access.

Your data never leaves your machine: the tools communicate only between the browser and the WHILL over the serial port.

The Model CR2 tester has one optional add-on, inspection.js, which is not part of the published tool and is loaded only when the page is opened with ?addon=inspection. To use it offline, keep that file next to index.html.

Repository layout

docs/                       GitHub Pages root (Settings → Pages → main / docs)
├── index.html              Product selector
├── images/                 Shared assets (the WHILL logo)
├── cr2/
│   ├── index.html          Model CR2 landing page
│   ├── spec/               Markdown source + exported index.html
│   ├── tester/
│   │   ├── index.html      Single self-contained file
│   │   └── inspection.js   Internal add-on, loaded only with ?addon=inspection
│   └── emulator/index.html Single self-contained file
└── omni/
    ├── index.html          Omni Platform landing page
    ├── spec/               Markdown source + exported index.html
    └── tester/index.html   Single self-contained file

tools/ holds development material that is committed but not served by GitHub Pages. See tools/cr2-inspection/ for the documentation and the regression tests of the Model CR2 tester's inspection add-on.

Each product gets its own directory under docs/. A new product is added as a sibling of cr2/ — never as a branch, because GitHub Pages publishes only one branch and a second branch would not be served at all.

docs/cr2/spec/index.html is exported from WHILL_Serial_API_Specification.md. When updating the specification, edit the Markdown, re-export, and commit both.

Local preview

python -m http.server 8000 --directory docs

Then open http://localhost:8000/. localhost counts as a secure origin, so the Web Serial API works and the tools can be tested against real hardware before merging.

Support

Technical questions about the WHILL Serial API and the tools are handled by WHILL MRP Technical Support — please open an issue there. This repository does not accept issues.

Repairs and parts purchases are outside the scope of technical support. Contact mrp.contact@whill.inc.

License

Released under the MIT License. See LICENSE.

About

Serial (RS232C) command and data interface of WHILL products

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages