can_interfaces
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
can_interfaces [2024/03/09 20:32] – [CANable] river | can_interfaces [2025/02/02 15:30] (current) – river | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== CAN Interfaces ====== | ====== CAN Interfaces ====== | ||
- | USB CAN adapters can show as follows on Linux. | + | USB CAN adapters can appear |
+ | |||
+ | ===== SocketCAN ===== | ||
+ | |||
+ | A can network device appears. e.g. can0, shown by ifconfig. | ||
+ | |||
+ | Set bitrate for NMEA2000 and bring up CAN interface: | ||
+ | |||
+ | '' | ||
+ | |||
+ | It seems SignalK doesn' | ||
+ | |||
+ | [[https:// | ||
===== Serial Line CAN ===== | ===== Serial Line CAN ===== | ||
- | A serial port appears. slcand can talk to it. | + | Some USB to CAN adapters may run a firmware that presents as a CDC-ACM |
- | ===== SocketCAN ===== | + | '' |
- | A can network device appears. e.g. can0, shown by ifconfig. | + | The -s arguments sets the CAN bus speed: |
+ | < | ||
+ | -s0 = 10k | ||
+ | -s1 = 20k | ||
+ | -s2 = 50k | ||
+ | -s3 = 100k | ||
+ | -s4 = 125k | ||
+ | -s5 = 250k | ||
+ | -s6 = 500k | ||
+ | -s7 = 750k | ||
+ | -s8 = 1M | ||
+ | </ | ||
- | Manually set bitrate for NMEA2000 (prob not normally needed): | + | ===== Analysers ===== |
+ | ==== Canboat ==== | ||
+ | |||
+ | Install Linux SocketCAN tools: | ||
+ | '' | ||
+ | |||
+ | Configure SocketCAN interface: | ||
'' | '' | ||
- | Might be useful for running wireshark though if not otherwise configured by something. | + | Use canboat analyzer tool: |
+ | '' | ||
- | ===== Wireshark | + | ==== Wireshark ==== |
Can open SocketCAN interfaces, like '' | Can open SocketCAN interfaces, like '' | ||
- | |||
- | [[https:// | ||
===== Hardware ===== | ===== Hardware ===== | ||
Line 30: | Line 58: | ||
[[https:// | [[https:// | ||
+ | |||
==== Waveshare Pico CAN ==== | ==== Waveshare Pico CAN ==== | ||
[[waveshare_pico_can|Waveshare Pico CAN]] | [[waveshare_pico_can|Waveshare Pico CAN]] | ||
+ | ==== NMEA2000 - USB Interface ==== | ||
+ | |||
+ | [[ngt-1|Actisense NGT-1]] | ||
can_interfaces.1710016356.txt.gz · Last modified: 2024/03/09 20:32 by river