Hi,
today I have had a little time.
I have make some tests:
the shutdown function works. but a little to fast. If you shut off the 12V enable, the powersupply shuts down after 5s. I think thats to fast. I fix that to 10s i think... The Pi must shut down savely before the power cuts. In the same moment you shut off 12V enable gpio4 switch to low. that works fine.
The CAN MCP2515 is reachable:
I have done like this:
in config.txt;
Code:
dtoverlay=mcp2515-can1,oscillator=16000000,interrupt=25
dtoverlay=spi-bcm2835-overlay
(the mcp is connected to CE1, so you must use can1)
in "sudo vcdbg log msg" you find:
Code:
002046.685: brfs: File read: /mfs/sd/overlays/mcp2515-can1.dtbo
002065.384: Loaded overlay 'mcp2515-can1'
002065.441: dtparam: oscillator=16000000
002066.265: dtparam: interrupt=25
002155.228: brfs: File read: 1797 bytes
After sudo ip link set can0 up type can bitrate 250000
you find Can0 in "ifconfig"
Code:
pi@raspberrypi:~ $ ifconfig
can0: flags=193<UP,RUNNING,NOARP> mtu 16
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 10000 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Next step is to test with hardware on NMEA2000. But at the moment all NMEA devices on board...
I test next time.
The NMEA0183:
I think there is a mistake anywere.

2 of the three devices are reachable.... I must search.
But to works fine. I have done like this:
in config.txt:
Code:
dtoverlay=sc16is752-i2c,int_pin=6,addr=0x48
dtoverlay=sc16is752-i2c,int_pin=12,addr=0x49
# dtoverlay=sc16is752-i2c,int_pin=33,addr=0x4A
after this you find the new uarts in /dev/
there you now find ttySC0-ttySC3 (4,5 is missing becouse device is not reachable??
This you can found directly in opencpn.
Next step is to test with hardware.
If I have some time, i start with...
Also I must check the 1wire i2c server and the i2c line for I/O devices...
The 1-wire server is reachable...
Code:
pi@raspberrypi:~ $ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- 18 -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- UU UU -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --