Unit Circle / DWS Apps / Sensor Board Tester

DWS Sensor Board Tester

Connect a DWS Sensor Board (OW-BRD001) through a USB-RS485 cable and check it from your browser. The tester shows the hydrophone spectrum, the pressure trace, the temperature and the firmware versions live. There's nothing to install.

Version 4 · Requires desktop Chrome or Edge

The tester connected to the simulator board. The top plot is a hydrophone spectrum from 0 to 1995 Hz with a strong peak at 752 Hz. The bottom plot is one second of pressure in kPa showing a press pulse up to about 1900 kPa. The header shows the poll rate, the error count, the temperature and the firmware versions.
Connected to the simulator board. With a real board, the header shows its bootloader and app firmware versions, and the plots show live sensor data.

What it checks

Hydrophone

A 1024-point FFT of the hydrophone signal (sampled at 3989 Hz, DC removed, Blackman window), plotted in dB re 1 Pa from 0 to 1995 Hz. The label shows the peak level and its frequency.

Pressure

The last second of pressure readings in kPa, scrolling, with the minimum and maximum in the window.

Temperature & status

The board temperature in °C and the status string the sensor firmware reports.

Firmware & link health

The bootloader and app versions, read at connect. Also the poll rate and the number of frames that failed to parse.

Wiring

The tester talks to the board over RS-485. You need an FTDI USB-RS485-WE-1800-BT cable (USB on one end, bare wires on the other) wired to the J7 connector on the DWS Sensor Board (OW-BRD001) as follows.

J7 pinBoard signalCable wire(s)Cable signal
1V+ (in)RedV+ (out), +5 V USB bus
2GNDBlackGND
3AOrange + GreenB (D+) + 120 Ω terminator
4BYellow + BrownA (D−) + 120 Ω terminator
5ShieldNot connectedThe cable has no shield wire
A and B are swapped on purpose. FTDI labels D− as A and D+ as B, the opposite way round from the board. Board A goes to the cable's B (orange) and board B goes to the cable's A (yellow). Wire by colour, not by letter.

How to use

  1. Open the tester in Chrome or Edge, with the source set to USB serial.
  2. Wire the RS-485 cable to the board's J7 connector (see Wiring).
  3. Plug the cable's USB end into the PC. This powers up the board.
  4. Click Connect, choose the cable's serial port in the browser's pop-up, and click Connect at the bottom of the pop-up.
  5. The tester talks to the bootloader, reads the firmware versions and starts the sensor app. When the status says Connected, the plots update live. Click Disconnect to release the port.
Connect within 10 seconds. Steps 3 and 4 must be done within about 10 seconds of plugging in the cable. If you miss it, unplug the cable's USB end, plug it back in and try again.

Requirements

A desktop browser with the Web Serial API: Chrome 89+ or Edge 89+ on Windows, macOS or Linux.

Not supported: Safari, Firefox and mobile browsers don't have Web Serial. You can still try the tester in them with the simulator board.

The tester connects at 1,000,000 baud, 8N1, with no flow control. All processing happens in your browser, and no data leaves your computer.

Simulator board

To try the tester without hardware, set the source to Simulator board and click Connect. The simulator answers the same serial protocol as a real board, so the tester goes through its normal connect sequence and then plots made-up data: a 750 Hz tone and a repeating press pulse.

While the simulator is connected, the header shows a SIMULATOR badge and the firmware versions read sim, so it can't be mistaken for a real board.

Running offline

The download is a single HTML file (under 100 KB) that contains the whole tester. It doesn't need an internet connection, a web server or an install.

  1. Download dws-sensor-board-tester.html and save it anywhere, such as the test bench's desktop.
  2. Open it in Chrome or Edge: double-click it, or drag it onto a browser window. If your default browser is something else, right-click the file and choose Open with.
  3. Use it as described above. To check which version you have, look at the top-right corner of the tester.

Troubleshooting

"USB serial" is greyed out, or there's a "Web Serial not supported" warning
The browser doesn't support Web Serial. Use desktop Chrome or Edge. Until then, only the simulator board is available.
The cable's port isn't in the list
Check that the USB-RS485 cable is plugged into the PC. On Windows, check that the port appears in Device Manager under Ports (COM & LPT).
"Connect failed: Failed to open serial port"
Another program, such as a terminal, or another browser tab has the port open. Close it and try again.
"Boot loader not responding."
Usually the 10-second window after plugging in the cable was missed. Unplug the cable's USB end, plug it back in, and connect within 10 seconds. If it still fails, check the wiring, especially A and B.
The error count keeps rising
Some frames from the board aren't decoding. A few errors at connect are normal. If the count keeps rising, check the cable and the board's firmware version.