I bough this Waveshare CAN hat with both RS485 and CAN.
https://www.waveshare.com/wiki/RS485_CAN_HAT_(B)
i got the CAN working with
dtparam=spi=on
dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25,,spimaxfrequency=1000000 dtoverlay=sc16is752-spi1,int_pin=24
But not the RS485 which i need for my EM540. Any Suggestion?
root@raspberrypi2:~# dmesg | grep -i '\(can\|spi\)'
[ 7.034005] CAN device driver interface
[ 7.144451] mcp251x spi0.0 can0: MCP2515 successfully initialized.
[ 7.593323] F2FS-fs (sda): Can't find valid F2FS filesystem in 1th superblock
[ 7.608627] F2FS-fs (sda): Can't find valid F2FS filesystem in 2th superblock
[ 21.665582] can: controller area network core
[ 21.745287] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[ 22.513880] can: raw protocol
root@raspberrypi2:~#
I testet it with latest stable and Beta, but i don't know what to do. Thanks for your help!
Best Regards,
Xell1984