OpenMarine

Full Version: MCP2515 transceiver
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I was going to experiment with MCP2515 transceivers with an SPI interface. Anyone have experience with this setup?
Dirk experimented with it. Google for raspberry MCP2515 or look at (https://bastelbude.grade.de/mediawiki/in...as_root.29).
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
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 ?
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/).
(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
(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
Directory /etc/network/interfaces/interfaces.d doesn't exist
Correct is

Code:
sudo nano /etc/network/interfaces.d/vcan0
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
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.
Pages: 1 2