SignalK / specification

Signal K is a JSON-based format for storing and sharing marine data from different sources (e.g. nmea 0183, 2000, seatalk, etc)
Other
93 stars 69 forks source link

feat: add new schema group "winches" #601

Open preeve9534 opened 3 years ago

preeve9534 commented 3 years ago

Motivation

  1. The next release of the N2K specification will include three new Windlass Network Messages PGNs (see this Technical Bulletin.
  2. The Signal K specification has no framework for windlass data.

Proposal

  1. Accept that a windlass is a type of winch (as is a capstan and maybe even hoist) and focus this discussion on supporting winches as a top-level group in Signal K.
  2. Accept that we model the winches group structure simply as winches.id, where id is an arbitrary identifier (in the case of an N2K connected winch this would be the installation's N2K instance number).
  3. Take this draft pull request as an RFC which will allow refinement of the detail of how we represent winch data in Signal K.

Straw man

Windlass identity

Common to all winches and just like some other installation identities in Signal K.

identity {
  name:
  location:
  dateInstalled:
  manufacturer {
    name:
    model:
    URL:
  }
}

Winch properties

Common to all winches.

type: [ "capstan" | "generic" | "hoist" | "windlass" ]
state: [ "deploying" | "retrieving" | "stopped" ] // what the winch is currently doing
speed: n, n>=1 // logical speed - a meta object may map this into the physical values
inService: [ "no" | "yes" ] // whether or not the winch is available for use
lastOperation: { // changes when state and or speed change
  direction: [ "deploy" | "retrieve" ]
  speed: n, n>=1
  duration: s
}
meta: { // static winch data
  availableSpeeds: [
    {
      id: n,n>=1,
      rate: m/s
    }
  ]
  powerType: [ "electrical" | "hydraulic" | "manual" ]
  spoolDimensions: {
    diameter: m
    length: m
  }
}

Windlass and capstan properties

Additional properties for windlasses and capstans.

deploymentState: [ "docked" | "nearlyDocked" | "deployed" | "fullyDeployed" ]
rodeType: [ "rope" | "chain" ]
rodeCounter: m
lineSpeed: m/s

This draft pull request includes a very draft winches.json that reflects the straw man for those who like that sort of thing.