This has been tested on node 18.3.0, versions above this should also work.
> yarn
yarn build
First bring vcan0
up:
sudo modprobe vcan
sudo ip link add dev vcan0 type vcan
sudo ip link set up vcan0
Then run our candump
:
yarn start
In another terminal, run the link native candump
:
cansend vcan0 123#DEADBEEF
You should see:
$ yarn start
(1676216302.180777) 00000123#DEADBEEF