Skip to content

get-changeset-id

Read the changeset ID of the controller on connection 0.

Description

The changeset ID is a firmware and version specific identifier that can be used to:

  • detect a change in firmware in the controller
  • lookup and store cached information about the controller's value with.

See the section "The changeset ID and value ID hashes" from the VBus Parameterization guide for details.

This script waits for the bus offer datagram from the main controller on connection 0, reads the changeset ID from value index 0 and releases bus control back to the main controller. During this process it will print information about the controller and the changeset ID itself.

Service

None

Example

Config:

typescript
export default defineConfig({
  connections: [{
    kind: 'serialPort',
    path: '/dev/tty.usbmodem',
  }],
  scripts: [
    import('../scripts/get-changeset-id'),
  ],
});

Running it in the toolbox:

❯ bin/resol-vbus-core-toolbox.ts --config configs/above-config-saved-to-file.ts
Bus offer received from 0x1911 (DeltaSol MX Plus [Regler])
Changeset is 0xC79BFD1C