From: "ediboscio@domain.hid" <ediboscio@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] I: Interrupt issue on a PC/104 can interface?
Date: Sat, 10 Dec 2011 11:27:46 +0100 (CET) [thread overview]
Message-ID: <25596872.1648691323512866036.JavaMail.defaultUser@domain.hid> (raw)
[-- Attachment #1: Type: text/plain, Size: 1741 bytes --]
Dear Sirs,I'm new to rt-socket-can and xenomai. I had a better look at the code of rtcan_rtt and found my mistake:What I really wanted to do was:
first terminal:
./rtcan_rtt rtcan0 rtcan0 -c 250000
second terminal
./rtcan_rtt rtcan1 rtcan1 -r -c 250000
and now it works.
Sorry and Best regardsEttore
----Messaggio originale----
Da: ediboscio@domain.hid
Data: 09/12/2011 14.52
A: <xenomai@xenomai.org>
Ogg: [Xenomai-help] Interrupt issue on a PC/104 can interface?
Dear Sirs,I'm working with an Ubuntu (10.04) system with Xenomai (2.5.6), with kernel 2.6.37.6 and with a Peak-System PC/104 can interface (isa), with two channels.
I connected the two channels of the can interface with a cable (with the two 120Ohms resistor connected at each side) and did the following two tests:
1)
...
rtcanconfig rtcan0 --baudrate=1000000 start
rtcanconfig rtcan1 --baudrate=1000000 start
then, in one terminal:
rtcanrecv rtcan0
in another one:
rtcansend rtcan1 0xA 0xB 0xC 0xD 0xE 0xF 0x01 0x02
Everything seems to work: I can see the message on the receiving terminal. I
also tried changing rtcansend options, and it works as well.
2)
Then I used the rtcan_rtt xenomai example program.In one terminal:./rtcan_rtt rtcan0 rtcan1 -r -c 250000
And in another one:./rtcan_rtt rtcan1 rtcan0 -c 250000
I also modified the rtcan_rtt to print some additional debug messages, and I found that for each can message sent
from the transmitter channel I receive ~356
messages on the other channel, with lot of overruns and huge times. Maybee I have some problems with the
interrupts?Note that with the rtcanrecv/rtcansend test, for each message sent with rtcansend, rtcanrecv receives one message.
Thanks in advanceEttore
[-- Attachment #2: Type: text/html, Size: 4337 bytes --]
reply other threads:[~2011-12-10 10:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=25596872.1648691323512866036.JavaMail.defaultUser@domain.hid \
--to=ediboscio@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.