Sensors, subscriptions and metadata

Open
#587 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale

Research direction

The issue names no files or tests; first read the existing subscription mechanism and metadata model it refers to. The work is done when the protocol and behavior for sensor advertisements, subscription changes, relaying downstream subscriptions, and metadata contributions are specified clearly enough to implement.

Written by the indexing model from the issue text.

Description

Most if not all sensors currently work in passive mode: they connect to the server over ws and push data as delta messages. The server is totally passive and just accepts the data. Working like this any tweaks to the sensors update rate are done out of band: recompiling, altering settings or in the most flexible case using a web UI.

Motivation for altering a sensor's data production data includes at least

  • bandwidth and storage savings: high rate when something interesting like testing or racing is happening
  • power saving: with low data rate a sensor can sleep between measurements

We do have the subscription mechanism that we could leverage:

  • upon connection a sensor/data source could send an advertisement: metadata about what it can produce, rates and metadata (name, unit, description) for non standard paths and it's default behavior
  • the sensor could start with default settings
  • the server could alter the data production by issuing regular subscriptions
  • relayed subscriptions: if a UI, db or an analysis engine client subscribes to the data on the server the server could relay those subscription on to all the sensors that are producing the relevant paths

This would result in a flexible mechanism to alter the data production at the source from downstream. Metadata (meta deltas) would allow sensors to contribute to the server's metadata model and allow ad hoc extensions.

Dominant language
JavaScript
Stars
105
Forks
72
Avg merge
11h 49m
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SignalK/specification

All issues in SignalK/specification

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.