All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Grandegger <wg@domain.hid>
To: roland Tollenaar <rolandtollenaar@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] some problems using RTCAN on PEAK dongle
Date: Fri, 02 Mar 2007 20:52:23 +0100	[thread overview]
Message-ID: <45E88077.5020407@domain.hid> (raw)
In-Reply-To: <bc4264770703021005g52d0e416i359e9de91bcd38c9@domain.hid>

roland Tollenaar wrote:
> Hi,
> 
> Ok rtcan2 and the peak dongle seem to be working. I am now running
> into new problems with my application.
> 
> The first question is how do I reset the ctrl_mode to nothing.
> Listen-only and loopback are both debugging/testing states but how do
> I reset them to ....what is the normal state called? At the moment I
> am in loop_back mode all the time.

# rtcanconfig -c none rtcan0

Wiil be documented a.s.a.p.

> I am writing to rtcan2 from my application and subsequently reading
> from it. Works by the look of things BUT my CPU is working overtime.
> syslogd and klogd are consuming 50-60% plus 30-40% of the processor

O, ah, what gets logged that often?

> time. Obviously everything gets sticky but I can still see that the
> task times are being maintained and the actual applicaiton is using
> less than 3% of the processor time.

Polling too often is a typical problem of the polling method.

> Besides this simple can functionality there is nothing happening in
> the tasks and this does not happen if I write and read on rtcan0.
> 
> Finally after a long while of running and stopping the application I
> get the message
> 
> rt_dev_bind: -no space left on device.
> 
> This bind is called before the read-call.
> 
> Can anyone please shed some light on these issues. Much appreciated as 
> usual.

Grrr, I already told you that it does not make sense to use bind and 
ioctl SSIOCGIFINDEX for every read here: 
https://mail.gna.org/public/xenomai-help/2007-02/msg00354.html. Please 
(re-)read 
http://www.xenomai.org/documentation/trunk/html/api/group__rtcan.html#Bind
and
http://www.xenomai.org/documentation/trunk/html/api/group__rtcan.html#gee74ae50c8ea0a6aee277c6f124a3866
to understand why.

Nevertheless, there seem to be a memory leak when re-binding the device. 
I will have a look a.s.a.p. (but it should not be a problem for your app 
when you just do it once per socket).

Wolfgang.

> 
> Kind regards,
> 
> 
> Roland
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
> 
> 



  reply	other threads:[~2007-03-02 19:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-02 18:05 [Xenomai-help] some problems using RTCAN on PEAK dongle roland Tollenaar
2007-03-02 19:52 ` Wolfgang Grandegger [this message]
2007-03-03 11:23   ` roland Tollenaar

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=45E88077.5020407@domain.hid \
    --to=wg@domain.hid \
    --cc=rolandtollenaar@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.