Skip to content
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

Expanded plugins #7

Open
Magister3k opened this issue Sep 24, 2023 · 5 comments
Open

Expanded plugins #7

Magister3k opened this issue Sep 24, 2023 · 5 comments

Comments

@Magister3k
Copy link

Hi!
I'm noob in Lua, but decided to practice with your very useful plugin. Thank you so much for it. I've slightly expanded plugin and would be proud if you posted my version. Work on it continues (ToDo: segmented packets, heuristic dissector).
nmea0183.zip

@kmpm
Copy link
Owner

kmpm commented Oct 3, 2023

Thanks, I'll gladly include it but first...

  1. Have you tried your code against the sample files included in this repository?
  2. Please clone the repository and create a Pull request with your changes.
  3. Please provide sample(s) that include at least some of the new functionality.

@Magister3k
Copy link
Author

Hello!
Thanks for the answer. Unfortunately, in your example there is no AIS message encapsulated in the NMEA 0183 protocol in principle. If all that remains of your source code is copyright, can I remove it and place the plugin in my repository so as not to bother you?

@kmpm
Copy link
Owner

kmpm commented Oct 4, 2023

Have a look at branch https://github.com/kmpm/wireshark-nmea/tree/fix/issue7 .
I made some stylistic changes to your (and my) code, added some subtrees and added a pcapng where some AIS messages are encapsulated sim2.pcapng.

I really like what you started at but my personal dislike with arr-prefixed variables (if using types in variable names then one should be consistent and use it everywhere, and that is really hard to do and in my opinion hard to read) was most of the 'obvious' changes.
Then I reordered segments of the code to at least start to get some structure of constants, lookup tables, helper functions etc.

I also added configurable preferences for which port should be regarded as NMEA.

If those changes is OK by you then I'll include it and give you credit in the copyright as well.

@Magister3k
Copy link
Author

Magister3k commented Oct 6, 2023 via email

@kmpm
Copy link
Owner

kmpm commented Oct 6, 2023

  1. Do you have a wireshark capture file of these AIS messages, with different protocols (TCP/UDP) and ports?
  2. Do you know any software that could simulate AIS packages being sent on these different protocols and ports?
  3. Are AIS messages always embedded in NMEA packets, otherwise it might be good to create another plugin just for AIS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants