From: Wolfgang Grandegger <wg@domain.hid>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] [PATCH] RT-Socket-CAN, TX loopback and further improvements
Date: Tue, 14 Nov 2006 15:32:44 +0100 [thread overview]
Message-ID: <4559D38C.2080001@domain.hid> (raw)
Hi Jan,
attached is a patch implementing the TX loopback, apart from some other
fixes and improvements. The TX loopback to foreign local sockets allows
to have a net-alike behavior of the CAN bus. Local sockets listening to
a device can receive TX messages as well. As discussed, the TX lookback
is performed when TX is done (TX done interrupt). As I still think that
it will not be used very often, I made it a configurable kernel option.
When it's selected, it's _on_ by default and it can be switched off or
on again with setsockopt() (to make the Linux Socket-CAN people happy).
As long as it's not enabled, it adds little overhead to the driver. If
you have no objections I will check it in.
Here is the ChangeLog entry:
2006-11-14 Wolfgang Grandegger <wg@domain.hid>
* ksrc/drivers/can/rtcan_dev.h,
ksrc/drivers/can/rtcan_socket.h,
ksrc/drivers/can/rtcan_socket.c,
ksrc/drivers/can/rtcan_raw.c,
ksrc/drivers/can/rtcan_modules.c,
ksrc/drivers/can/sja1000/rtcan_sja1000.c,
ksrc/drivers/can/mscan/rtcan_mscan.c,
ksrc/drivers/can/Kconfig,
ksrc/drivers/can/Config.in,
src/utils/can/rtcansend.c,
include/rtdm/rtcan.h,: Add feature TX loopback to local sockets.
* ksrc/drivers/can/rtcan_raw.c, include/rtdm/rtcan.h:
Remove locks for the setting and reading of the RX and TX
timeout values and add a warning to the documentation.
* src/utils/rtcansend.c: use sendto() by default to avoid
binding a default filter and add option "-s" for using bind()
and send().
* src/utils/rtcanrecv.c: add option "-R" for relative
timestamps.
* ksrc/drivers/can/rtcan_internal.h: use now RTCAN_ASSERT macros
when CONFIG_XENO_DRIVERS_RTCAN_DEBUG is set.
* ksrc/drivers/can/mscan/Kconfig,
ksrc/drivers/can/sja1000/Kconfig,
ksrc/drivers/can/Kconfig: add more help for kernel parameters.
Thanks.
Wolfgang.
next reply other threads:[~2006-11-14 14:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-14 14:32 Wolfgang Grandegger [this message]
2006-11-14 15:00 ` [Xenomai-core] [PATCH] RT-Socket-CAN, TX loopback and further improvements Wolfgang Grandegger
2006-11-14 17:53 ` Jan Kiszka
2006-11-14 19:10 ` Wolfgang Grandegger
2006-11-14 19:54 ` Jan Kiszka
2006-11-15 7:29 ` Wolfgang Grandegger
2006-11-15 8:00 ` Jan Kiszka
2006-11-15 9:11 ` Wolfgang Grandegger
2006-11-15 7:25 ` Wolfgang Grandegger
2006-11-15 7:56 ` Jan Kiszka
2006-11-15 9:05 ` Wolfgang Grandegger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4559D38C.2080001@domain.hid \
--to=wg@domain.hid \
--cc=jan.kiszka@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.