Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 16-07-2016, 04:55   #1
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
MessageScope plugin

I created a very simple plugin for viewing and inspecting internal json messages passed within opencpn. It can be useful for debugging, and I am finding already some problems with wasted messages.

http://github.com/seandepagnier/messagescope_pi
seandepagnier is offline   Reply With Quote
Old 16-07-2016, 05:38   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: MessageScope plugin

Sean...
Without looking at the code, does it do anything that https://github.com/nohal/ocpndebugger_pi/ doesn't?

Pavel
nohal is offline   Reply With Quote
Old 16-07-2016, 06:56   #3
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: MessageScope plugin

I didn't realize this plugin was still developed, anyway it is using API 1.14 which doesn't exist in the master branch. The master branch of opencpn on github also didn't get the commit to VERSION.cmake to make it 4.4.0 etc: https://github.com/OpenCPN/OpenCPN/b.../VERSION.cmake

I don't know how to try this plugin.

Anyway, the message scope appears to give more useful information if there is a lot of message traffic. Perhaps this can be merged into the debugger plugin.
seandepagnier is offline   Reply With Quote
Old 16-07-2016, 06:59   #4
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: MessageScope plugin

Sean...
Simply use the v1.2 tag with the current OpenCPN codebase - the v1.14 stuff is a WIP towards SignalK support not yet merged to the master.
And yes, I accept patches into the debugger plugin, of course.

Pavel
nohal is offline   Reply With Quote
Old 16-07-2016, 07:20   #5
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: MessageScope plugin

the description has such a long line I cannot enable the plugin from opencpn. I am editing the config file to enable it.
seandepagnier is offline   Reply With Quote
Old 16-07-2016, 07:23   #6
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: MessageScope plugin

after trying the debugger, I think my message scope is much better but it only supports messages.

Maybe the message scope plugin as it is can replace the messages tab? What do you think?
seandepagnier is offline   Reply With Quote
Old 16-07-2016, 07:30   #7
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: MessageScope plugin

Sean...
If it is much better, it sure could As I said - I haven't even looked at your code yet.

Pavel
nohal is offline   Reply With Quote
Old 17-07-2016, 09:31   #8
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: MessageScope plugin

Pavel,

I made a pull request based off v1.2 to make the debugger a bit better in several ways. It could be improved substantially if it could recognize and parse nmea messages as well.


As for signalk, can we stick opencpn messages inside this? Could we then have opencpn emit messages:

1. creating deleting routes waypoints tracks etc..
2. when connecting to another opencpn instance, then syncronize waypoints routes and tracks

Opencpn could simply discover other instances on the local network perhaps allowing mesh networks, but we would then need to prevent messages from "looping" by checking the source field.

Plugins could also set a "retransmit" field or similar to indicate that the message is meant to be sent to external instances.

What do you think?
seandepagnier is offline   Reply With Quote
Old 17-07-2016, 12:52   #9
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: MessageScope plugin

Sean...
Everything is possible... For now I have an implementation of mDNS service discovery for the SignalK reference server implementation and consumer code based on libwebsockets working on all our supported platforms. Emitting stuff is just natural next step, but my current focus is clearly on ironing out the consumer part. I'm not sure we want to implement (and maintain) our own SK server code, would certainly prefer to leave all this work to the SK server devs if for nothing else but interoperability reasons.

Will merge your stuff with my WIP shortly.

Pavel
nohal is offline   Reply With Quote
Reply

Tags
plug, scope


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin: DashBoard SethDart OpenCPN 644 02-04-2024 16:55
OpenCPN PlugIn Development bdbcat OpenCPN 161 04-09-2019 12:50
BSB 4 PlugIn bdbcat OpenCPN 98 25-04-2018 18:46
New History Plugin for OpenCPN seandepagnier OpenCPN 11 04-10-2010 14:11
Writing Plugin for nv.digital Map Format ? Netsurfer OpenCPN 7 17-08-2010 16:09

Advertise Here


All times are GMT -7. The time now is 21:01.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.