• 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
  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


Forum Jump:


Users browsing this thread: 1 Guest(s)