Skip to content

1.22.0

Latest

Choose a tag to compare

@latishab latishab released this 17 Nov 01:52
· 3 commits to main since this release
19d0e0e

Cable downloads on macOS: dive computers on a USB-serial cable, over USB HID, on raw USB (Atomic Aquatics Cobalt, Beta) and over a paired classic-Bluetooth port (Shearwater, Beta), all through the 1.21.0 session core with its commit-acknowledge fingerprint. iOS is unchanged. Full details in CHANGELOG.md.

Added

  • macOS: serial cable downloads. IOKitCableDiscovery lists USB-serial ports from the IORegistry and follows hot-plug without opening any port; a known cable with no driver is listed as driverMissing with a message saying what to install. CableHints maps a cable's VID:PID to the families it can reach (#89)
  • macOS: DiveComputerSession.open(_:model:discovery:recorder:deviceStorage:lease:) opens cable endpoints through a TapStream; cancelling throws at once, even while open(2) is stuck. DiveComputerSession.close(completion:) on all platforms (#89)
  • macOS: CableError (permissionDenied, busy, notFound, driverMissing, unplugged, noResponse, cancelled, unsupportedTransport and more), with English messages and per-family connect instructions (#89)
  • macOS: USB HID downloads for the EON Steel, EON Core, D5, EON Steel Black, G2 family and Aladin Square, via HIDStream on IOHIDDevice. Discovery never opens the HID manager, so listing never raises the Input Monitoring prompt (#91)
  • macOS (Beta): raw USB downloads for the Atomic Aquatics Cobalt and Cobalt 2, via USBStream on IOUSBLib (#92)
  • macOS (Beta): classic-Bluetooth downloads for the Shearwater Predator, Petrel, Petrel 2, Nerd and Perdix over the paired Serial Port Profile port, with CableError.bluetoothNotConnected and .bluetoothLinkLost (#93)
  • macOS: Beta labels via DeviceCatalog.betaFamilies, DCModel.isBeta(on:) and CableEndpoint.isBeta. No cable path has run on a real computer yet (#92)
  • Tests: pseudo-terminal serial sessions, emulated EON Steel, Uwatec Smart and Cobalt drivers, recorded .dcrec replays, and opt-in hardware harnesses for each transport (#89, #91, #92, #93)

Changed

  • macOS: CableSupport.transports is [.serial, .classicBTSerial, .usbHID, .usb], only the transports with a cable opener (#93)
  • DeviceCatalog: the OSTC 4 and OSTC 5 no longer offer .serial, since they have no data cable (#89)
  • macOS: a session download keeps a Cobalt's reported model 0 as its identity (#92)

libdivecomputer is unchanged (still 1b201bb).