GithubHelp home page GithubHelp logo

Comments (6)

TwoCanPlugIn avatar TwoCanPlugIn commented on June 28, 2024

Some further observations.

BTW, Not sure what happened with the formatting of the NMEA 183 sentences above. Have now learnt to enclose as code.

The DSC Distress alert sentences were
$CDDSC,12,5031105200,,05,00,2380814428,1800,,,R,E*6C
$CDDSE,1,1,A,5031105200,04,19252411*18

When sent over TCP or UDP no other nodes/contexts (or whatever you call them) are generated.

Similarly for a DSC Position Report, using the following sentence, nothing is generated.
$CDDSC,20,5031105200,08,21,26,2380814428,1800,,,B,E*77
$CDDSE,1,1,A,5031105200,04,19252411*18

Instead if a DSC Distress Alert Relay is sent, using the following sentence:
$CDDSC,16,2350763930,12,12,00,2380814428,1800,5031105200,05,S,E*65
$CDDSE,1,1,A,5031105200,04,19252411*18

the following context is created with the following values:

`vessels.urn:mrn:imo:mmsi:235076393

navigation.position
{
"latitude": -38.13333333333333,
"longitude": 144.46666666666667
}

notifications.epirb
{"message":"DSC Distress Recieved! Nature of distress: epirb"}`

The values in this Distress Relay sentence should be interpreted as:
Format Specifier 16 - All Ships
MMSI Address - 235076393 (This is the MMSI Address of the relay vessel)
DSC Category 12 - Distress
First Telecommand 12 - Distress Relay
Type of Communications 00 - F3E/G3E, All modes TP
Vessel In Distress 503110520 (this is the actual vessel in distress)
Nature of Distress 05 - Sinking

Obviously this is being parsed incorrectly, using the wrong MMSI address for the vessel in distress, and the wrong value for nature of distress (12 being interpreted as MOB).

This is just totally broken.

No need to describe its impact on OpenCPN.

from nmea0183-signalk.

tkurki avatar tkurki commented on June 28, 2024

This is just totally broken.

🤦

Yes it is. I'll see about fixing it in a few days.

from nmea0183-signalk.

tkurki avatar tkurki commented on June 28, 2024

Oh, DSC & DSE are not very well documented in the open and many parsers don't support them at all.

@TwoCanPlugIn can you point to any additional resources in addition to https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:opencpn_user_manual:advanced_features:nmea_sentences and the linked https://continuouswave.com/whaler/reference/DSC_Datagrams.html ? And what about sources for real world data captures?

Inspired by canboat/canboat#265 I figured I could take Kaitai for a spin by creating an initial Kaitai description of DSVC & DSE. Could be a start to a language agnostic NMEA0183 definition, instead of everybody and their cousin writing their own parser, each differently buggy or incomplete...

from nmea0183-signalk.

tkurki avatar tkurki commented on June 28, 2024

$CDDSC,12,5031105200,,05,00,2380814428,1800,,,R,E*6C

Why is the DSC category field empty or what am I missing?

from nmea0183-signalk.

TwoCanPlugIn avatar TwoCanPlugIn commented on June 28, 2024

from nmea0183-signalk.

TwoCanPlugIn avatar TwoCanPlugIn commented on June 28, 2024

Why is the DSC category field empty or what am I missing?

If the Format Specifier is Distress, the DSC Category field is set to null, as per the standard. It is just assumed.

from nmea0183-signalk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.