Difference between revisions of "Recans A0"

From iagent
Jump to: navigation, search
Line 27: Line 27:
 
<pre>
 
<pre>
 
sudo apt install net-tools can-utils
 
sudo apt install net-tools can-utils
 +
</pre>
  
 +
<pre>
 +
cansend can1 5A1#11.2233.44556677.88
 
</pre>
 
</pre>
  

Revision as of 14:16, 22 February 2024

Recans A0 has two controllers, one is based on RP2040, the other on MCP2515.

To bring up the RP2040 CAN controller:

sudo ip link set can0 type can bitrate 1000000
sudo ip link set up can0
sudo ifconfig can0 txqueuelen 128


The MCP2515 CAN controller

sudo mount -o remount,rw /boot
sudo armbian-add-overlay /boot/overlay-user/sun50i-a64-mcp251x.dts
sudo mount -o remount,ro /boot
sudo ip link set can1 type can bitrate 1000000
sudo ip link set up can1
sudo ifconfig can1 txqueuelen 128

Interrupt: STEP7 = PL11

sudo apt install net-tools can-utils
cansend can1 5A1#11.2233.44556677.88

Errata

  • SPI_CLK and SPI_MOSI are interchanged and need to be fixed.
  • /RESET is floating.