OpenMarine
MCP2515 transceiver - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: CAN-USB Stick (https://forum.openmarine.net/forumdisplay.php?fid=11)
+--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=12)
+--- Thread: MCP2515 transceiver (/showthread.php?tid=1582)

Pages: 1 2


MCP2515 transceiver - capnkeith - 2018-11-22

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


RE: MCP2515 transceiver - e-sailing - 2018-11-22

Dirk experimented with it. Google for raspberry MCP2515 or look at (https://bastelbude.grade.de/mediawiki/index.php?title=OpenPlotter#setup_piCAN2_.28as_root.29).


MCP2515 transceiver - callmecalanca - 2018-11-23

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


RE: MCP2515 transceiver - cepicscepics - 2018-11-26

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 ?


RE: MCP2515 transceiver - BlackSea - 2018-11-26

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/).


RE: MCP2515 transceiver - e-sailing - 2018-11-26

(2018-11-26, 02:45 PM)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


RE: MCP2515 transceiver - cepicscepics - 2018-11-27

(2018-11-26, 05:35 PM)e-sailing Wrote:
(2018-11-26, 02:45 PM)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


RE: MCP2515 transceiver - BlackSea - 2018-11-27

Directory /etc/network/interfaces/interfaces.d doesn't exist
Correct is

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



RE: MCP2515 transceiver - cepicscepics - 2018-11-27

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


RE: MCP2515 transceiver - jim321 - 2018-11-27

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.