Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Atomic Aquatics Cobalt

The Atomic Aquatics Cobalt and Cobalt 2 connect over USB with a vendor-specific interface (not HID, not CDC, not mass storage). The host sends zero-length vendor control requests on endpoint 0, and the device answers each one with a block of data on a bulk IN endpoint. Dives are fetched one at a time, newest first. Each dive arrives as one self-contained blob protected by an additive 16-bit checksum.

There is no public vendor documentation. Everything below comes from libdivecomputer and from an independent second implementation, so the best confidence available is likely.

Devices

VendorModelModel codeTransportsNotes
Atomic AquaticsCobalt0USB vendor classmemory about 29 × 64 KiB
Atomic AquaticsCobalt 22USB vendor classmemory about 41 × 64 KiB

USB identity: VID:PID 0471:0888 for both models (VID 0x0471 is registered to Philips). The model is reported in the version block (see Session).

Confidence: likely.

Transport parameters

  • Configuration 1, interface 0. The interface has bulk IN and bulk OUT endpoints. The reference implementation uses the first bulk endpoint of each direction on the first interface. Another implementation uses the last ones. Bulk OUT is never used.
  • Control requests: bmRequestType 0x40 (vendor, host-to-device, recipient device), wValue 0, wIndex 0, wLength 0, no data stage.
  • Bulk reads: request 8192 bytes per transfer. A transfer that returns fewer bytes than requested (a short packet) ends the response.
  • Timeouts: libdivecomputer uses 2000 ms for both control and bulk transfers. The other implementation uses 500 ms for control and 3000 ms for bulk.

See ../transports/usb-raw.md for general USB handling.

Confidence: likely.

Session

There is no handshake or authentication. libdivecomputer reads the version block once after opening; the other implementation skips this step.

Version request:

control  bmRequestType=40 bRequest=01 wValue=0000 wIndex=0000 wLength=0
bulk IN  <14 bytes> <u16le sum16>

Version block (14 bytes):

OffsetTypeMeaning
0x008 × ASCII digitserial number (decimal digits)
0x08u16lefirmware version, major part
0x0Au16lefirmware version, minor part
0x0Cu16lemodel: 0 = Cobalt, 2 = Cobalt 2

The response MUST be exactly 16 bytes and its checksum MUST match.

Worked example (serial 12345678, firmware 4/1, Cobalt 2):

D→H  31 32 33 34 35 36 37 38 04 00 01 00 02 00 AB 01

The firmware split into major/minor is an inference. libdivecomputer combines the two words as (major << 16) + minor.

Confidence: likely.

Commands

All commands are zero-length vendor control requests with a single bRequest value.

bRequestMeaningResponse on bulk IN
0x01read version14 bytes + sum16
0x09first (newest) divedive blob + sum16, or FF FF
0x0Anext (older) divedive blob + sum16, or FF FF
0x02first dive, simulator logas 0x09
0x03next dive, simulator logas 0x0A

The 0x02/0x03 pair reads dives recorded in the computer’s simulation mode. Normal downloads use 0x09/0x0A.

Confidence: likely.

Framing and integrity

The response to a dive request is read with repeated 8192-byte bulk reads, appended together, until one read returns fewer than 8192 bytes. That read may return 0 bytes, and a timeout on it counts as zero bytes. Variant: the other implementation also keeps reading when a transfer returns exactly 64 bytes (one full-speed max packet). This suggests that on some host stacks a transfer completes at each 64-byte packet.

  • Exactly 2 bytes FF FF: no more dives.
  • Otherwise the last 2 bytes are a u16le sum16 of all bytes before them (byte sum, initial value 0, modulo 65536). Remove these 2 bytes before parsing.

Example: the bytes 31 32 … 38 (ASCII “12345678”) followed by 04 00 01 00 02 00 sum to 0x01AB, sent as AB 01.

Confidence: likely.

Memory layout

The device does not expose memory addresses. Total log capacity (for progress display only): Cobalt 1900544 bytes (29 × 65536); Cobalt 2 2686976 bytes (41 × 65536).

Download procedure

version = read_version()                       # optional
first = true
loop:
    send control bRequest = (first ? 0x09 : 0x0A); first = false
    blob = read bulk until a short transfer
    if blob == FF FF: done
    verify and strip sum16
    if len(blob) < 228: error
    if blob[0x14 .. 0x1A] == fingerprint: done  # incremental
    emit blob

Fingerprint: the 6 bytes at offset 0x14 (year, month, day, hour, minute).

Confidence: likely.

Dive data format

All multi-byte fields are little-endian. A blob is laid out as follows: header (228 bytes), then N_gas gas/tank records of 18 bytes, then N_sw records of 6 bytes, then N_samples samples of 16 bytes. A valid blob is at least 228 + 18·N_gas + 6·N_sw + 16·N_samples bytes long.

OffsetTypeRaw unitMeaning
0x048 × ASCII–serial number, usually shown as XXXX-XXXX
0x14u16leyeardive start year
0x16u8–month 1..12
0x17u8–day
0x18u8–hour
0x19u8–minute
0x1Au8ssample interval
0x1Bu8°Fsurface temperature; °C = (raw − 32) × 5/9
0x1Eu16le0.01firmware (“program”) version, e.g. 401 = 4.01
0x22u16le–dive number
0x24u8–mode: 0 = open circuit trimix, 1 = closed circuit, 2 = open circuit nitrox
0x26u16lembarsurface (atmospheric) pressure
0x28u8hsurface interval, hours
0x29u8minsurface interval, minutes
0x2Au8–N_gas: number of gas/tank records
0x2Bu8–N_sw: number of 6-byte records (gas switches)
0x50u16le–N_samples
0x56u16lembar abspressure at maximum depth
0x58u16lemindive time; seconds = raw × 60

Depth from pressure: depth m = (p_mbar − p_surface_mbar) × 100 / (ρ·g), using the surface pressure from 0x26. The reference implementation uses ρ = 1025 kg/m³, g = 9.80665 m/s² by default (10051.8 Pa per metre).

Gas / tank record (18 bytes, at 228 + 18·i)

OffsetTypeMeaning
+0u8mix identifier, referenced by samples
+2u8tank size type (see below)
+4u8O₂ %, fraction = raw/100
+5u8He %, fraction = raw/100
+6u16lestart pressure, psi; bar = raw × 0.0689476
+8u16letank size value
+10u16leworking pressure, psi
+12u16le1 = this tank carries the pressure transmitter whose readings appear in the samples
+14u16leend pressure, psi

Tank size type, per libdivecomputer:

  • 1 = cubic feet at a working pressure in psi; 2 = cubic feet at a working pressure in bar. In both cases the value at +8 is in ft³ of free gas and the working pressure at +10 is read as psi. Water volume L = ft³ × 28.3168 / (wp_psi / 14.696).
  • 3 = water volume in 0.1 L. The working pressure is not used.

The other implementation reads the record differently: for type 3 with a working pressure of 0, size = value/10 L; otherwise size = value × 410.706 / wp_psi. That divisor uses bar (14.5038 psi) where libdivecomputer uses atm (14.696 psi). Recorded as an open question.

Switch records (6 bytes each)

Present after the gas records. Their contents are not decoded by either source. Gas switches are recovered from the samples instead.

Samples (16 bytes each)

OffsetTypeMeaning
+0u16leambient pressure, mbar abs; depth as above
+2u16letank pressure, psi (the tank marked at gas record +12)
+4u8active mix identifier (matches gas record +0); a change means a gas switch
+5u8no-deco limit, minutes
+8u8water temperature, °F
+11u8warning flags
+6, +7, +9, +10, +12..+15–not decoded

Warning flags at +11:

BitMeaning
0ascent rate too fast
1in decompression
2ceiling violated
3ppO₂ out of range

Deco state: a non-zero NDL means not in deco. NDL = 0 with flag bit 1 set means a deco stop is required. NDL = 0 without bit 1 leaves the previous state in place.

Time of sample k (counting from 1) = k × interval.

Date and time

Local wall-clock time as broken-down fields (offsets 0x14–0x19). Seconds are not stored. There is no time zone.

Confidence: header offsets 0x14–0x2B, 0x50–0x58, gas O₂/He/pressures and sample fields +0/+2/+4/+5/+8/+11: likely (two implementations agree). Offsets 0x04, 0x1E, 0x22, 0x28/0x29: likely (one source each). Tank volume encoding: uncertain.

Model-specific variations

The Cobalt and the Cobalt 2 use the same protocol and blob format. They differ only in memory size and in the model word of the version block.

Open questions

  1. Tank volume: which type codes mean imperial vs metric, and is the working pressure divided by 1 atm or 1 bar?
  2. The meaning of the 6-byte records counted at 0x2B, and of the undecoded sample bytes.
  3. Do some host USB stacks complete bulk reads at 64 bytes? If so, a reader must not treat a 64-byte read as the end of a response.
  4. The firmware fields in the version block (0x08/0x0A) versus the program version at dive offset 0x1E.

References

  • libdivecomputer (LGPL-2.1), https://www.libdivecomputer.org/, used as a factual reference; no code copied.
  • USB 2.0 specification, chapter 9 (standard and vendor control requests), https://www.usb.org/