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 10-08-2021, 23:10   #196
Registered User

Join Date: Mar 2016
Location: Bremen
Boat: Dehler Optima 106
Posts: 151
Re: Twocan - a new Plugin

Quote:
Originally Posted by stevead View Post
Announcing the production release of version 2.0

1. Updated logic for the reassembly of fast messages in the case of dropped/lost frames. Some users have reported errors on busy networks, and in particular with AIS traffic. The dropped frames were also detected using other utilities such as candump so it was not the plugin dropping frames, but a flaw in the reassembly of messages. BTW the major cause for this error is usually a network fault either a dodgy connection or terminator.
Dear Steve,

thanks for the new release. Works like a charm. No issues since the update.

Best,

Manfred
Aldebaran17 is offline   Reply With Quote
Old 28-08-2021, 13:13   #197
Registered User

Join Date: Aug 2021
Posts: 4
Re: Twocan - a new Plugin

Gediminas, I am having trouble getting OpenCPN to "see" my recently-purchased TouCAN Marine.

Windows 10 Device Manager shows it under Universal Serial Bus devices as "TouCAN converter" with what I assume is the correct serial number. Properties show it using the winusb.sys device driver, which I cannot change.

I have copied the RusokuToucanMarine_v_0_1.dll from the Github repository to the twocan_plugin_pi/data/drivers directory as instructed.

OpenCPN (v. 5.2.4+6b314e6) does NOT show TouCAN Marine as an option in the twocan interfaces list in the plugin Preferences/Settings tab, and if I go to the Device tab, no information about the TouCAN device is shown.

I feel like I am missing something but I cannot figure out what it is. Any recommendations?

Thanks,
Tony
amocjr is offline   Reply With Quote
Old 28-08-2021, 18:56   #198
Registered User

Join Date: Mar 2011
Posts: 651
Re: Twocan - a new Plugin

Can you please check the contents of the following directory, assuming the Windows installation and the users home directory location is drive c:

Code:
C:\Users\<your username>\AppData\Local\opencpn\plugins\twocan_plugin_pi\data\drivers
Also please check the contents of opencpn.log (normally found in c:\programdata\opencpn).

Whenever you open the twocan preferences dialog, the following is logged to the opencpn log file
Code:
11:47:49.550 MESSAGE twocansettings.cpp:361 TwoCan Settings, Driver Path: C:\Users\<username>\AppData\Local\opencpn\plugins\twocan_plugin_pi\data\drivers\
11:47:49.550 MESSAGE twocansettings.cpp:440 TwoCan Settings, Attempting to load driver: C:\Users\<username>\AppData\Local\opencpn\plugins\twocan_plugin_pi\data\drivers\axiomtek.dll
11:47:49.560 MESSAGE twocansettings.cpp:440 TwoCan Settings, Attempting to load driver: C:\Users\<username>\AppData\Local\opencpn\plugins\twocan_plugin_pi\data\drivers\candumplog.dll
11:47:49.576 MESSAGE twocansettings.cpp:440 TwoCan Settings, Attempting to load driver: C:\Users\<username>\AppData\Local\opencpn\plugins\twocan_plugin_pi\data\drivers\cantact.dll
11:47:49.591 MESSAGE twocansettings.cpp:440 TwoCan Settings, Attempting to load driver: C:\Users\<username>\AppData\Local\opencpn\plugins\twocan_plugin_pi\data\drivers\filedevice.dll
11:47:49.607 MESSAGE twocansettings.cpp:440 TwoCan Settings, Attempting to load driver: C:\Users\<username>\AppData\Local\opencpn\plugins\twocan_plugin_pi\data\drivers\keeslog.dll
11:47:49.623 MESSAGE twocansettings.cpp:440 TwoCan Settings, Attempting to load driver: C:\Users\<username>\AppData\Local\opencpn\plugins\twocan_plugin_pi\data\drivers\kvaser.dll
11:47:49.623 MESSAGE twocansettings.cpp:440 TwoCan Settings, Attempting to load driver: C:\Users\<username>\AppData\Local\opencpn\plugins\twocan_plugin_pi\data\drivers\pcap.dll
11:47:49.638 MESSAGE twocansettings.cpp:440 TwoCan Settings, Attempting to load driver: C:\Users\<username>\AppData\Local\opencpn\plugins\twocan_plugin_pi\data\drivers\RusokuToucanMarine_v_0_1.dll
11:47:49.654 MESSAGE twocansettings.cpp:440 TwoCan Settings, Attempting to load driver: C:\Users\<username>\AppData\Local\opencpn\plugins\twocan_plugin_pi\data\drivers\yachtdeviceslog.dll
Note that the current version of the plugin, version 2.0 installs that updated version of the Toucan Marine driver.

Thanks.
stevead is offline   Reply With Quote
Old 29-08-2021, 07:04   #199
Registered User

Join Date: Aug 2021
Posts: 4
Re: Twocan - a new Plugin

Thanks for your quick reply, stevead.

Here is the contents of the twocan_plugin_pi/data/drivers directory:
Code:
 Directory of C:\Users\<username>\AppData\Local\opencpn\plugins\twocan_plugin_pi\data\drivers

08/29/2021  09:52 AM    <DIR>          .
08/29/2021  09:52 AM    <DIR>          ..
07/26/2021  09:40 AM            17,920 axiomtek.dll
07/26/2021  09:40 AM            62,976 candumplog.dll
07/26/2021  09:40 AM            17,920 cantact.dll
08/29/2021  09:52 AM                 0 drivers.txt
07/26/2021  09:40 AM            11,776 filedevice.dll
07/26/2021  09:40 AM            65,536 keeslog.dll
07/26/2021  09:40 AM            11,776 kvaser.dll
07/26/2021  09:40 AM            13,824 pcap.dll
08/28/2021  02:53 PM           125,701 RusokuToucanMarine_v_0_1.dll
07/26/2021  09:40 AM            65,024 yachtdeviceslog.dll
              10 File(s)        392,453 bytes
The logfile seems to indicate an error loading the driver and an initialization error with the device. Here are what I believe are the relevant lines:
Code:
14:12:50.193 MESSAGE pluginmanager.cpp:1174 Checking plugin candidate: C:\Users\<username>\AppData\Local\opencpn\plugins\twocan_plugin_pi.dll
14:12:50.243 MESSAGE pluginmanager.cpp:2169 Plugin is compatible: true
14:12:50.243 MESSAGE pluginmanager.cpp:2232 PlugInManager: Loading PlugIn: C:\Users\<username>\AppData\Local\opencpn\plugins\twocan_plugin_pi.dll
14:12:50.247    INFO pluginmanager.cpp:2403 PlugInManager:  C:\Users\<username>\AppData\Local\opencpn\plugins\twocan_plugin_pi.dll
14:12:50.247    INFO pluginmanager.cpp:2404         Plugin common name: TwoCan Plugin
14:12:50.247    INFO pluginmanager.cpp:2406         API Version detected: 116
14:12:50.247    INFO pluginmanager.cpp:2407         PlugIn Version detected: 2.0
14:12:50.247 MESSAGE pluginmanager.cpp:558 PlugInManager: Using data dirs from: C:\Users\<username>\AppData\Local\opencpn\plugins;C:\Program Files (x86)\OpenCPN\plugins
14:12:50.247 MESSAGE pluginmanager.cpp:571 PlugInManager: using data dir: C:\Users\<username>\AppData\Local\opencpn\plugins\twocan_plugin_pi
14:12:50.248 MESSAGE twocandevice.cpp:474 TwoCan Device, Found driver C:\Users\<username>\AppData\Local\opencpn\plugins\twocan_plugin_pi\data\drivers\RusokuToucanMarine_v_0_1.dll
14:12:50.289 MESSAGE twocandevice.cpp:493 TwoCan Device, Driver Manufacturer: Rusoku
14:12:50.289 MESSAGE twocandevice.cpp:506 TwoCan Device, Driver Name: TouCAN Marine
14:12:50.289 MESSAGE twocandevice.cpp:519 TwoCan Device, Driver Version: 1.1
14:12:50.405   ERROR twocandevice.cpp:550 TwoCan Device, Error opening driver: 1680211968
14:12:50.405   ERROR twocandevice.cpp:246 TwoCan Device, Error loading driver C:\Users\<username>\AppData\Local\opencpn\plugins\twocan_plugin_pi\data\drivers\RusokuToucanMarine_v_0_1.dll: 1680211968
14:12:50.405   ERROR twocanplugin.cpp:566 TwoCan Plugin,  TwoCan Device Initialize Error: 1680211968
Thanks so much!

Cheers,
Tony
amocjr is offline   Reply With Quote
Old 29-08-2021, 07:22   #200
Registered User

Join Date: Mar 2011
Posts: 651
Re: Twocan - a new Plugin

Something doesn't seem right.
Code:
08/28/2021  02:53 PM 125,701 RusokuToucanMarine_v_0_1.dll
file size is much too large.

The file size on my install and on the twocan git repository is only around 15k.

Either reinstall the plugin, or download the rusoku driver directly from https://github.com/TwoCanPlugIn/TwoCanPlugIn under the data/drivers directory or from the Rusoku git repository at https://github.com/rusoku/TwoCanRusokuDriver/ from the Prebuilt directory.
stevead is offline   Reply With Quote
Old 29-08-2021, 09:16   #201
Registered User

Join Date: Aug 2021
Posts: 4
Re: Twocan - a new Plugin

Success!

I reinstalled the dll from github. The previous download must have gotten corrupted or something.

OpenCPN is now seeing the device on my little test NMEA 2K network at home and accepting input from it!

Thanks!

Cheers,
Tony
amocjr is offline   Reply With Quote
Old 29-08-2021, 09:17   #202
Registered User

Join Date: Oct 2019
Location: Vilnius, Lithuania
Posts: 7
Send a message via Skype™ to gedass2000
Re: Twocan - a new Plugin

Hi,

Toucan Marine driver file size is too large.
Where did you get this file ?
Driver size should be ~15kB


Gediminas
gedass2000 is offline   Reply With Quote
Old 29-08-2021, 09:55   #203
Registered User

Join Date: Aug 2021
Posts: 4
Re: Twocan - a new Plugin

Thank you, Gediminas. Stevead pointed that out as well, so I redownloaded it from the github repository and all is working as expected.

I had previously downloaded the dll from the github repository, but I suspect I made a mistake (something like save link instead of save file).

The only odd thing is that the dll comes with the installation of TwoCAN v. 2.0, but it did not work right after I installed the plugin, either.

No matter, it is working now. The TouCAN Marine is a nice device, I am quite happy with it.

Thanks!
Tony
amocjr is offline   Reply With Quote
Old 29-08-2021, 11:08   #204
Registered User

Join Date: Oct 2019
Location: Vilnius, Lithuania
Posts: 7
Send a message via Skype™ to gedass2000
Re: Twocan - a new Plugin

Hi,
I checked latest version of the OpenCPN 5.2.4+6b3124e6 and TwoCan Plugin 2.0.0.0.
TouCAN Marine works for me with preinstaled driver from TwoCan Plugin package.
Just after selection "TouCAN Marine" item need to reload OpenCPN sofware.


Bad thing that I didn't installed any indicators outside enclosure.Only inside.
Next version will has a lots of light and much more profesional looking milled IP68 enclosure.And 2x CAN FD interfaces and High Speed USB 480Mbit of course.



Gediminas
gedass2000 is offline   Reply With Quote
Old 07-09-2021, 06:34   #205
Registered User

Join Date: Aug 2019
Posts: 201
Re: Twocan - a new Plugin

Does each multiplexer have a differen format? is that why there is a list of hardware to choose from?

Opencpn receives nema2k data from my multiplexer ok but its not in the list so I assume it will not work with the pulgin?
I cant get twocan to show anyguages, let alone data..
GreenHeaven is offline   Reply With Quote
Old 07-09-2021, 10:01   #206
Registered User

Join Date: Mar 2011
Posts: 651
Re: Twocan - a new Plugin

Quote:
Does each multiplexer have a different format?
There is no such thing as a multiplexer on NMEA 2000 networks. NMEA 183 is based on serial ASCII communications with a single talker and multiple listener architecture. Multiplexers are used to combine multiple talkers for NMEA 183 devices, so for example you can connect your depth sounder, speed log and wind sensor to your PC.
NMEA 2000 is very different. It is based on the Controller Area Network (CAN) and it inherently supports multiple talkers & listeners.
Quote:
Opencpn receives nema2k data from my multiplexer
I' think you are confusing a multiplexer and a gateway. I'm guessing you have a Gateway installed as OpenCPN only natively supports NMEA 183 and SignalK. A Gateway converts NMEA 2000 to NMEA 183.
Quote:
I cant get twocan to show any guages, let alone data
TwoCan does not display any gauges.
Quote:
is that why there is a list of hardware to choose from
No the list of interfaces is simply the list of CAN bus adapters and log file formats that the plugin supports. Refer to the wiki for further details on the supported adapters & log file formats. https://opencpn.org/OpenCPN/plugins/twocan.html
stevead is offline   Reply With Quote
Old 07-09-2021, 12:00   #207
Registered User

Join Date: Aug 2019
Posts: 201
Re: Twocan - a new Plugin

Quote:
Originally Posted by stevead View Post
There is no such thing as a multiplexer on NMEA 2000 networks. NMEA 183 is based on serial ASCII communications...
I have a multiplexer. It multiplexs nmea 2k in and out, nmea 0183 in and out, seatalk in and out and gps and ais data.

After mulitplexing all that into a nmea data stream of configurable flavor, it creates an ad hoc wifi hot spot - i guess you would call it - which you log into with any device.

all inputs are available at all outputs and over wifi and usb.

Quote:
OpenCPN only natively supports NMEA 183 and SignalK.
ah ha. news flaash. So I guess the default output is nmea 0183 then. It is soft configurable to nmea 2k and baud rates are also soft configurable.

I am guessing the manfr are fans, cos it comes ready to play with opencpn.

Quote:
TwoCan does not display any gauges.
No the list of interfaces is simply the list of CAN bus adapters
Ah. ok. There was a time when I knew what CAn bus was but then I went sailing...

Can twocan display data in Opencpn?
GreenHeaven is offline   Reply With Quote
Old 11-09-2021, 04:34   #208
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,631
Images: 2
Re: Twocan - a new Plugin

https://m.facebook.com/groups/166636...group_activity

I hope this is a good link from rpi facebook group. A new can board.
rgleason is offline   Reply With Quote
Old 24-10-2021, 15:47   #209
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,631
Images: 2
Re: Twocan - a new Plugin

Al Thomason (Smart Alternator Regulator Group) (and Wakespeed) suggested that he uses this one, but thought there might be better ones, however he found this robust and somewhat expensive.

https://copperhilltech.com/pican-2-c...-raspberry-pi/
He expressed some concern about USB due to grounding and feels Canbus is more stable and prefers that.
rgleason is offline   Reply With Quote
Old 08-11-2021, 16:41   #210
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,631
Images: 2
Re: Twocan - a new Plugin

I think that DashT and Twocan are made for each other
https://dashboard-tactics-pi.readthe...0183-data-type
rgleason is offline   Reply With Quote
Reply

Tags
plug


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
New IAC Fleetcode Plugin for OpenCPN CBorchardt OpenCPN 77 23-04-2019 05:40
Plugin development... How to receive chart objects in my plugin? dmartinez OpenCPN 6 04-08-2017 00:56
New History Plugin for OpenCPN seandepagnier OpenCPN 11 04-10-2010 14:11

Advertise Here


All times are GMT -7. The time now is 03:20.


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.