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

Passthrough (binary) data #247

Open tkurki opened 8 years ago

tkurki commented 8 years ago

There are valid cases where we would want to be able to transmit data from a source connected to a Signal K gateway/server to the clients in uninterpreted format.

These include

tkurki commented 8 years ago

Something like this for n2k?

{
    "context": "...",
    "updates": [{
        "source": {
            "type": "NMEA2000",
            "pgn": "130919",
            "src": 
            "label": "n2k-1",
        },
        "timestamp": "2016-09-06T19:52:44.000Z",
        "data": {
          "encoding" : "hex",
          "value" :   "3b,9f,03,02,04,5a,a1,12,19,09,09"
        }
    }]
}
jboynes commented 8 years ago

Base64 is a very common encoding used for binary data in JSON and more efficient than the simple hex format above.

Do we need to allow options for how binary is encoded?

tkurki commented 8 years ago

+1 on Base64. I thought that the encoding would be simple way to stay future proof, even with one specified encoding.