Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.system > #815

Linux CAN modules

X-Received by 2002:a05:620a:7fb:b0:745:a55d:b5a6 with SMTP id k27-20020a05620a07fb00b00745a55db5a6mr174190qkk.7.1679424051870; Tue, 21 Mar 2023 11:40:51 -0700 (PDT)
X-Received by 2002:a05:6808:3a87:b0:37f:a3b7:c877 with SMTP id fb7-20020a0568083a8700b0037fa3b7c877mr36462oib.8.1679424050060; Tue, 21 Mar 2023 11:40:50 -0700 (PDT)
Path csiph.com!tncsrv06.tnetconsulting.net!news.endofthelinebbs.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups comp.os.linux.development.system
Date Tue, 21 Mar 2023 11:40:49 -0700 (PDT)
Injection-Info google-groups.googlegroups.com; posting-host=12.160.167.218; posting-account=gYsltQoAAACKCLcopxtnQD4DS0JFOoC3
NNTP-Posting-Host 12.160.167.218
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <39c8edda-738e-448a-9c5c-8a5cf264c902n@googlegroups.com> (permalink)
Subject Linux CAN modules
From Christopher Holland <chollandvoxx@gmail.com>
Injection-Date Tue, 21 Mar 2023 18:40:51 +0000
Content-Type text/plain; charset="UTF-8"
X-Received-Bytes 2495
Xref csiph.com comp.os.linux.development.system:815

Show key headers only | View raw


Hi,

I recently struggled setting up CAN to work with the Beagle-bone.
Part of my struggle involved figuring out CAN modules. 
Well, I finally figured out that can-raw was really the only loaded module and is the only one needed by SocketCAN. I was not sure because SocketCAN doesn't identify which module it needs in order to run.

Now, I am wondering why I don't need can, or can-dev modules. 
The modules will not load with "modprobe can" or "modprobe can-dev". 
I am unsure of their purpose, except some websites mention that they are needed in order to get CAN to run correctly.
 I did find out that can-j1939 needs to be included in the kernel compilation. https://github.com/linux-can/can-utils/blob/master/can-j1939-install-kernel-module.md

Where can I find out information about CAN modules can and can-dev?

can: CAN protocol module.
can-dev: Standard library for CAN drivers.
can-raw: Offers access to the CAN bus via the BSD socket API.
can-bcm: Broadcast Manager module, offers content filtering, timeout monitoring, sending of RTR frames, and cyclic CAN messages without permanent user interaction.
can-j1939: Available since our BSP 5, giving support for the CAN J1939 standard.
can-gw: CAN gateway module, used to route CAN frames.
vcan: Virtual Local CAN interface.

$ lsmod | grep can
can_gw                 20480  0
can_bcm                24576  0
slcan                  16384  0
vcan                   16384  0
can_raw                20480  1

Thanks,

Back to comp.os.linux.development.system | Previous | Next | Find similar


Thread

Linux CAN modules Christopher Holland <chollandvoxx@gmail.com> - 2023-03-21 11:40 -0700

csiph-web