Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 16-07-2016, 04:55   #1
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: North Carolina
Boat: bristol 27
Posts: 2,718
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
__________________

__________________
boat_alexandra is online now   Reply With Quote
Old 16-07-2016, 05:38   #2
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
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
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: North Carolina
Boat: bristol 27
Posts: 2,718
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.
__________________
boat_alexandra is online now   Reply With Quote
Old 16-07-2016, 06:59   #4
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
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
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: North Carolina
Boat: bristol 27
Posts: 2,718
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.
__________________
boat_alexandra is online now   Reply With Quote
Old 16-07-2016, 07:23   #6
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: North Carolina
Boat: bristol 27
Posts: 2,718
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?
__________________
boat_alexandra is online now   Reply With Quote
Old 16-07-2016, 07:30   #7
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
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
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: North Carolina
Boat: bristol 27
Posts: 2,718
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?
__________________
boat_alexandra is online now   Reply With Quote
Old 17-07-2016, 12:52   #9
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
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

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
OpenCPN PlugIn Development bdbcat OpenCPN 70 14-03-2017 04:01
Plugin: DashBoard SethDart OpenCPN 470 24-08-2016 20:34
BSB 4 PlugIn bdbcat OpenCPN 93 20-02-2016 03:41
New History Plugin for OpenCPN boat_alexandra OpenCPN 11 04-10-2010 14:11
Writing Plugin for nv.digital Map Format ? Netsurfer OpenCPN 7 17-08-2010 16:09


Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 09:45.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.