* Re: [Socketcan-users] real-time transmission?
[not found] <11071630B606A2488DE633430B530FDE57F06BEE@ELS-EX01-PV.KSTG.corp>
@ 2013-09-03 14:56 ` Marc Kleine-Budde
2013-09-03 14:59 ` Marc Kleine-Budde
0 siblings, 1 reply; 2+ messages in thread
From: Marc Kleine-Budde @ 2013-09-03 14:56 UTC (permalink / raw)
To: Aiken, Scott; +Cc: linux-can@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 1128 bytes --]
Hello,
please come to the linux-can mailinglist.
On 09/03/2013 04:31 PM, Aiken, Scott wrote:
> Hi all,
>
>
>
> I’m porting an old implementation of CAL/CiA to Linux. The device
> connection protocol has some pretty tight timing. I’ve observed that
> some CAN packets are buffered for 500 ms between the socket write() call
> and the actual transmission of the packet. This is enough to sabotage
> the connection process, and possibly take out other devices as well.
> Are there any socket options to disable buffering of write packets, and
> send them when write() is called?
>
>
>
> Thanks,
>
> Scott
>
>
>
>
>
> _______________________________________________
> Socketcan-users mailing list
> Socketcan-users@lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/socketcan-users
>
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: real-time transmission?
2013-09-03 14:56 ` [Socketcan-users] real-time transmission? Marc Kleine-Budde
@ 2013-09-03 14:59 ` Marc Kleine-Budde
0 siblings, 0 replies; 2+ messages in thread
From: Marc Kleine-Budde @ 2013-09-03 14:59 UTC (permalink / raw)
To: Aiken, Scott; +Cc: linux-can@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 1224 bytes --]
On 09/03/2013 04:56 PM, Marc Kleine-Budde wrote:
>> I’m porting an old implementation of CAL/CiA to Linux. The device
>> connection protocol has some pretty tight timing. I’ve observed that
>> some CAN packets are buffered for 500 ms between the socket write() call
>> and the actual transmission of the packet. This is enough to sabotage
>> the connection process, and possibly take out other devices as well.
>> Are there any socket options to disable buffering of write packets, and
>> send them when write() is called?
Depends who introduces that big delay. If you're sending too much CAN
traffic on your system you can use traffic shaping to prioritize your
communication. It there are other interrupts in the system you may want
to use PREEMPT_RT and play with the interrupt and net-rx/tx softirq
priorities.
I think the first step should be measurements to figure out who
introduces the delay.
Regards,
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-03 14:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <11071630B606A2488DE633430B530FDE57F06BEE@ELS-EX01-PV.KSTG.corp>
2013-09-03 14:56 ` [Socketcan-users] real-time transmission? Marc Kleine-Budde
2013-09-03 14:59 ` Marc Kleine-Budde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).