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.

Thread Rating:
  • 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
(2017-10-19, 01:33 PM)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
Reply
#4
(2018-01-02, 06: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
#9
(2018-02-05, 12:24 PM)JohanH Wrote: 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. 
hi JohanH,
great to have confirmation that PiCan2 can send NMEA2000 data to the network. I've been able to receive N2K data with it (for example from my AIS transponder; using the same installation as you found at bastelbude...), but not been able to send it (I would like to send wind data to my Raymarine AutoPilot).
Would you mind posting screenshots of settings in OpenPlotter, SignalK? Did you do any additional things in the Terminal to be able to send data?
(oh, and I can't find the 'send to canbus' plug-in, so that maybe the root cause of my issue?)

Thanks,
Bram
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)