Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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-04-2024, 13:50   #1
Registered User

Join Date: Jul 2018
Posts: 18
Building TwoCanPlugin for non-raspberry arm64 Linux

I'm trying to bring up OpenCPN on small IMX8PLUS based industrial PC. So far I managed to run OpenCPN, build dshboards, show maps, but now I want to connect to NMEA2K instruments.

This box has embedded CAN interface and I'm able to see N2K messages in Wireshark and candump using native CAN interface ("ip link canE up")
As I understand OpenCPN requires TwoCan to use such interface and receive/send messages there.

TwoCanPlugin doesn't have pre-built version in Debian 12 for arm64 repo, also my attempts to make locally not yet successful (I opened GitHub issue with my progress). Is there easier way to install TwoCanPlugin or use native can interface in OpenCPN on arm64?
navado is offline   Reply With Quote
Old 10-04-2024, 15:29   #2
Registered User

Join Date: Mar 2011
Posts: 651
Re: Building TwoCanPlugin for non-raspberry arm64 Linux

If the candump utility works, then OpenCPN's built-in NMEA 2000 support should also work.

Re TwoCan, builds are done using the Circle CI platform. There are a whole lot of Circle CI build environment settings and shell scripts that configure everything. That may explain why performing a local build without having set up the environment fails. If you want to do local builds makes sure you have set up your build environment according to the plugin developer guidelines.

'll readily admit I have failed to keep the plugin up to date since the release of OpenCPN 5.8.x with the change to a new version of wxWidgets and changes in the build environment. I think there may be some unreleased/unannounced versions in the Cloudsmith repository, but I'm not sure if any are built for your platform, nor have they been tested.
stevead is online now   Reply With Quote
Old 11-04-2024, 03:29   #3
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: Building TwoCanPlugin for non-raspberry arm64 Linux

Quote:
Originally Posted by navado View Post
I'm trying to bring up OpenCPN on small IMX8PLUS based industrial PC. So far I managed to run OpenCPN, build dshboards, show maps, but now I want to connect to NMEA2K instruments.

This box has embedded CAN interface and I'm able to see N2K messages in Wireshark and candump using native CAN interface ("ip link canE up")
As I understand OpenCPN requires TwoCan to use such interface and receive/send messages there.
You do not need the plugin in your setup, just configure the SocketCAN connection and you are done.
nohal is online now   Reply With Quote
Old 11-04-2024, 22:54   #4
Registered User

Join Date: Jul 2018
Posts: 18
Re: Building TwoCanPlugin for non-raspberry arm64 Linux

Thanks.
Somehow my can interfaces not shown in OpenCPN, but it's definitely another issue
navado is offline   Reply With Quote
Old 12-04-2024, 18:21   #5
Registered User

Join Date: Mar 2011
Posts: 651
Re: Building TwoCanPlugin for non-raspberry arm64 Linux

Quote:
Somehow my can interfaces not shown in OpenCPN, but it's definitely another issue
I think it may be a bug in OpenCPN.

I believe it uses a hard coded list for the available can interfaces, so it doesn't recognize your interface canE

Is there any way you can change the name ? Perhaps a udev rule ?

Alternatively, there is an unreleased/unannounced version 2.2 of TwoCan available on the Cloudsmith Repository although I'm not sure which one would be suitable for your hardware platform.

Assuming there is a version for your platform, it should work as it does not use a hardcoded list for the names of CAN bus adapters.
stevead is online now   Reply With Quote
Reply

Tags
linux, plug, plugin


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
beta7 of arm64 marine OS featuring 64-bit OpenCPN for raspberry PI 4 by BBN is availa mgrouch OpenCPN 9 11-02-2021 05:59
Third beta of arm64 marine OS for raspberry PI 4 by BBN is available for download. Op mgrouch OpenCPN 4 28-01-2021 10:33
Installing OpenCPN on Ubuntu 20.04 ARM64 (beta) hreuver OpenCPN 1 27-05-2020 14:48
OpenCPN on Windows 10 ARM64 Seltrecht OpenCPN 0 07-12-2019 01:57
Failure to generate fingerprint with arm64 build of oesenc_pi 1.7 sailorF54 OpenCPN 31 16-02-2018 09:44

Advertise Here


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


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.