Comments (6)
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.
This is just totally broken.
🤦
Yes it is. I'll see about fixing it in a few days.
from nmea0183-signalk.
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.
$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.
from nmea0183-signalk.
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)
- Broken link in README.md HOT 1
- Tiny typo errors HOT 1
- Empty in certain nmea0183 strings prevents parsing HOT 3
- Datagram 25 trip calculation: factor for W should probably be 4096 HOT 1
- VDM, callsign and imo data are not pushed to SK HOT 4
- BWC not recognized HOT 5
- callsignVhf not according to the spec HOT 8
- timestamp handling: use only data from NMEA sentences HOT 4
- COG value differently parsed from RMC and VTG sentences
- Depth sentences don't generate output with empty incoming data fields
- HDG sentence incorrectly parsed HOT 1
- APB and BOD sentences not decoded according to SignalK spec HOT 8
- RMB parser stores next waypoint position to incorrect SignalK field HOT 1
- Is error detection too aggressive? HOT 2
- AIS VDM to support meteorological data
- Propulsion HOT 3
- Seatalk 0x25 total log incorrect
- Сalculating velocity vectors by NMEA protocol HOT 1
- Relative humidity value is % rather than ratio.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nmea0183-signalk.