How can I use CAN-Bus?

lujunn723
New Member Posts: 4
Hi,everyone
I got UP-Board for a few days and I run ROS on it.
I need CAN-Bus supply to connect to my own boards, but I didn't find CAN device when I type "ls /dev".
Then, I used a MCP2515 module via SPI and I can TX right, but RX is not 8 bytes but 30 bytes...
I also tried to do some "make menuconfig" jobs, but I didn't find any way to do this.
Please help me with these CAN-Bus things, Thank you very much!
I got UP-Board for a few days and I run ROS on it.
I need CAN-Bus supply to connect to my own boards, but I didn't find CAN device when I type "ls /dev".
Then, I used a MCP2515 module via SPI and I can TX right, but RX is not 8 bytes but 30 bytes...
I also tried to do some "make menuconfig" jobs, but I didn't find any way to do this.
Please help me with these CAN-Bus things, Thank you very much!
Comments
-
Are you asking about a native CAN-Bus interface on the UP board? Unfortunately the UP Board does not provide a native CAN-Bus interface.
Adding an external CAN adapter, via SPI/UART/USB (as you are doing with the MCP2515), would be the best solution. I haven't tested any CAN adapters with the UP board myself, however, so I cannot give any specific advice on those. But it should certainly be possible to find some CAN adapters that would work with the UP board.
Categories
- All Categories
- 105 Announcements & News
- 54 Product News - New Product/Product Change Notice/ End-of-life
- 185 Welcome Developers!
- 55 Unboxing & Project Sharing
- 48 Tech Updates
- 693 UP Products
- 11 UP 7000
- 1 UP Squared i12
- 10 UP Xtreme i12
- 11 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 19 UP Squared V2
- 59 UP 4000
- 24 UP Xtreme i11
- 35 UP Squared 6000
- 60 UP Squared Pro
- 143 UP Xtreme
- 837 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 222 UP Core
- 3 UP Xtreme Lite
- 44 UP AI Edge
- 216 Starter Kits & Peripheral