-
-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent communications.callsignVhf handling #1842
Comments
When it comes to specification the schema says that communications.callsignVhf does not have the value/timestamp/source structure, just the simple property:
that means that NMEA0183 output and settings up to the latest published version with the empty path results in spec compliant full structure. |
My take out of this is that we should revert the server change and change n2k-signalk to be in line with the spec, settings and nmea0183. |
But wait, am I missing something? This change and n2k-signalk are inline with the spec. Current server and 0183 are not. |
I guess I am reading the spec wrong? |
My humblest apologies to everyone! When I did the server change, I misread the spec and thought the server had it wrong. I agree, the change should be reverted and n2k-signalk fixed. I can work on that. This also leaves the original issue be fixed. |
We are handling callsignVhf inconsistently across three sources
Settings saved from Admin UI
In basedeltas.json
Prior to 8fdca1a
After 8fdca1a
n2k-signalk
129794 AIS Class A static data and 129810 produce deltas like
nmea0183-signalk
VDM and VDO (that uses the same code as VDM) produce deltas like
Discussion
There are two Signal K mechanisms here:
Deltas are converted to full Signal K data model whose data is available in the HTTP api. Pathvalues with a non-empty path is converted to a leaf structure that has
value
,timestamp
and source (and possibly multiple values structure). Pathvalue with an empty string as path is converted by fusing the object valued property (value) with the full model - this process does not add the value/time/timestamp structure.So the situation now is that the latest published SK server has 0183 and settings working the same but N2K differently. The merged PR changes settings to work the same as N2K, leaving NME A0183 the odd one out.
The text was updated successfully, but these errors were encountered: