Comments (3)
It should gracefully handle not having a channel code, as long as the checksum matches it should parse it.
Maybe use 'U' for unknown channel?
from aisparser.
Given the following two sentences, it looks like sentence 1 and 2 of a 2 part message with sequential ID of 4. But should they be combined if the channel doesn't match?? Does the channel have to match if it is given?
!BSVDM,2,1,4,A,53@oJeH00001Q2oCC30pK7KV0`4ppF220000000N0P82240Ht520C4p8,0*5D
!BSVDM,2,2,4,B,00000000000,2*3A
from aisparser.
No, they should not be combined. AIS doesn't split messages between channels.
When feeding messages to the parser they need to be from the same channel and sequence, and in order. I just looked at the C and Java code (for the first time in a long while) and it looks like there is a bug in the Java code. It doesn't check the channel to make sure it matches the existing sequence. I've opened issue #37 for this.
from aisparser.
Related Issues (20)
- [C++] C project fail to compile on C++ compiler HOT 1
- Userid should be returned as string, not long HOT 1
- NMEA Data Parsing with ais_text.exe HOT 1
- Build error on OSX 10.9.x HOT 1
- Testing Message2 HOT 2
- error parsing ais message type 5 HOT 2
- Setup Continuous Integration (CI) HOT 1
- Flush out test coverage for Message 1
- Setup a fuzzer HOT 2
- Setup better code coverage and static analsis
- Java: Test Message 17 - GNSS broadcast
- Java: Test Message 16 - assigned mode command
- Java: Implement message 27 HOT 1
- Type 5 message parsing HOT 4
- AIS TYPE 5 Error HOT 1
- Java parser doesn't check for matching channel when parsing multi-part message
- Add github actions for testing
- Bad variable name
- Any interest in updated Visual Studio project files?
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 aisparser.