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
MCP2515 transceiver
#1
I was going to experiment with MCP2515 transceivers with an SPI interface. Anyone have experience with this setup?
  Reply
#2
Dirk experimented with it. Google for raspberry MCP2515 or look at (https://bastelbude.grade.de/mediawiki/in...as_root.29).
  Reply
#3
I think this is to power the chip with 3.3v (for raspberry’s gpio compatibility)

https://m.youtube.com/watch?v=_v3GumyXbhw&t=427s


Inviato dal mio iPad utilizzando Tapatalk
  Reply
#4
following Dirk's instructions when I

Code:
sudo nano  /etc/network/interfaces/interfaces.d/can0


to add:

Code:
#physical can interfaces
allow-hotplug can0
iface can0 can static
bitrate 250000
down /sbin/ip link set $IFACE down
up /sbin/ifconfig $IFACE txqueuelen 10000

cntr x to exit
y to save 
enter to write the file 

nano said:

Code:
[ Error writing /etc/network/interfaces/interfaces.d/can0: Not a directory]


whats wrong ?
  Reply
#5
correct filename is /etc/network/interfaces.d/can0

Quote:I was going to experiment with MCP2515 transceivers with an SPI interface. Anyone have experience with this setup?

I am currently experimenting with WaveShare RS485 CAN HAT (https://www.waveshare.com/rs485-can-hat.htm). This works fine. But for real world out there I'll get CanBerry Isolated (http://www.industrialberry.com/canberrydual-iso-v2-1/).
  Reply
#6
(11-26-2018, 09:45 AM)cepicscepics Wrote: following Dirk's instructions when I

Code:
sudo nano  /etc/network/interfaces/interfaces.d/can0
whats wrong ?
sudo nano  /etc/network/interfaces.d/can0
  Reply
#7
(11-26-2018, 12:35 PM)e-sailing Wrote:
(11-26-2018, 09:45 AM)cepicscepics Wrote: following Dirk's instructions when I

Code:
sudo nano  /etc/network/interfaces/interfaces.d/can0
whats wrong ?
sudo nano  /etc/network/interfaces.d/can0

thanks e-sailing but I stop on the step after:

Code:
sudo nano /etc/network/interfaces/interfaces.d/vcan0

or

Code:
sudo nano /etc/network/interfaces/interfaces.d/vcanO

cntr x to exit
y to save 
enter to write the file 

gave me the same error:

Code:
[ Error writing /etc/network/interfaces/interfaces.d/vcan0: Not a directory]

or

Code:
[ Error writing /etc/network/interfaces/interfaces.d/vcanO: Not a directory]

Huh Huh Huh
  Reply
#8
Directory /etc/network/interfaces/interfaces.d doesn't exist
Correct is

Code:
sudo nano /etc/network/interfaces.d/vcan0
  Reply
#9
thanks a lot finally I've  installed canboat!!
whats the step after?
on openplotter's CAN tab I can't do nothing.... 

CAN-USB device none

Heart Heart
  Reply
#10
i don't use can at the moment but was under the impression that canboat was allready installed for op and canboatjs was installed for signalk.
mare liberum
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)