This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PiCAN2 as CAN-Hardware for N2K
#1
Hello,

Did anybody try to get this working in OpenPlotter ? : 

http://skpang.co.uk/catalog/pican2-canbu...-1476.html

It provides CAN0 on the OS-Level AND powers the Pi over the N2K-Cable. 

I will keep you updated
  Reply
#2
(10-19-2017, 08:33 AM)divingfortools2 Wrote: Hello,

Did anybody try to get this working in OpenPlotter ? : 

http://skpang.co.uk/catalog/pican2-canbu...-1476.html

It provides CAN0 on the OS-Level AND powers the Pi over the N2K-Cable. 

I will keep you updated

Have you had any luck so far? I have the PICAN2 board and are trying to get it working with OP but I don't know where to start really. It does not show up as a selectable interface for N2K in setup. I can use the interface CAN0 with can-tools.
  Reply
#3
after a quick look the pican2 uses spi and openplotter uses usb serial..
man they kill you guys with that VAT..$$$
jim
mare liberum
  Reply
#4
(01-02-2018, 01:20 PM)jim321 Wrote: after a quick look the pican2 uses spi and openplotter uses usb serial..
man they kill you guys with that VAT..$$$
jim

So to get this working we would need to emulate a usb-serial device instead of using the actual canbus directly? Maybe something that can be one with slcand from can-utils.
Some google and it comes up with several ways of adding a serial-can interface or a usb-can interface. I have so far not found anyone trying to present the internal CAN-bus as a virtual USB och USB-serial device. Is that possible?
  Reply
#5
I am not a programmer but it looks like there is direct access to socketcan from python3. If we could get OP to use socketcan as an alternative to usb-serial I think it would be kind of straight forward?

I read some getting started here: http://www.bencz.com/hacks/2016/07/10/py...socketcan/ 

Just looking through the sourcecode of OP I found some modules where it might be possible to change. My Python knowledge is very limited so I have to leave it to the developers or start learning :-).
  Reply
#6
Only canboat has to work with PiCAN2. If you get canboat and signalk to work it's enough.
Look at this link. https://dayba.wordpress.com/category/canbus/pican2/
  Reply
#7
Success!
I found a recent guide on how to connect signalk etc through the Pican2 interface board.
Just follow the guide here: https://bastelbude.grade.de/mediawiki/in...tup_piCAN2

With that setup and adding some plug-ins in SignalK (send to canbus, signalk-to-nmea2000) I got my OP-RPi listening and sending on the N2K bus. 

One confusing thing is that OPConfused tab on N2K is not recognizing any of it working. Adding an option for using CAN0 instead of CAN-USB would get OP into the game as well, or? For now I'll just have to work through SignalK's interface.

My goal is to display polar performance data from Qtvlm on my Raymarine i70 display. For that I need to disguise the data as for example Waste water tank level and send it on the N2K bus. I have not figured out that part exactly yet. Any ideas are welcome.
  Reply
#8
I also got this working through the new canboatjs plugin and following the instructions in the readme on github. You have to set up the can0 interface as in the guide above and then 

Code:
sudo npm install -g canboatjs
  Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)