From: Wolfgang Grandegger <wg@domain.hid>
To: "Charlton, John" <john.charlton@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>,
"socketcan-users@domain.hid" <socketcan-users@domain.hid>
Subject: Re: [Xenomai-help] rtcanconfig rtcansend rtcanrecv
Date: Wed, 07 Jan 2009 19:19:46 +0100 [thread overview]
Message-ID: <4964F242.3020908@domain.hid> (raw)
In-Reply-To: <CF7FB0793253794F9F45991443E5FE2003E4BABF18@domain.hid>
Charlton, John wrote:
> I added a kernel module to the xenomai ksrc/drivers/xenomai/can/sja1000. It builds and installs with make modules_install for linux-2.6.27.7 and xenomai-2.4.6.1. I am using OpenEmbedded on an i686 NANO-7240 single board computer. I load the kernal modules and start for two TS_CAN1 CAN boards with the following commands:
>
> insmod xeno_can_sja1000.ko
> insmod xeno_can_tscan1.ko io=0x100,0x120 irq=5,7
> rtcanconfig rtcan0 --baudrate=125000 start
> rtcanconfig rtcan1 --baudrate=125000 start
>
> /proc/rtcan/rtcan0/info:
> Device rtcan0
> Controller SJA1000
> Board TSCAN1-Board
> Clock-Hz 8000000
> Baudrate 125000
> Bit-time brp=4 prop_seg=0 phase_seg1=13 phase_seg2=2 sjw=1 sam=0
> Ctrl-Mode
> State active
> TX-Counter 0
> RX-Counter 0
> Errors 0
> Refcount 0
>
> /proc/rtcan/rtcan1/info:
> Device rtcan1
> Controller SJA1000
> Board TSCAN1-Board
> Clock-Hz 8000000
> Baudrate 125000
> Bit-time brp=4 prop_seg=0 phase_seg1=13 phase_seg2=2 sjw=1 sam=0
> Ctrl-Mode
> State active
> TX-Counter 0
> RX-Counter 0
> Errors 0
> Refcount 0
>
> In one terminal I receive from rtcan0 as follows:
> rtcanrecv rtcan0 --verbose
> interface rtcan0
> s=0, ifr_name=rtcan0
>
> In a second terminal I send to rtcan1 as follows:
> rtcansend rtcan1 --verbose --identifier=0x123 0xde 0xad
> interface rtcan1
> s=1, ifr_name=rtcan1
> <0x123> [2] de ad
> Cleaning up...
>
> Nothing happens on the rtcanrecv side--it remains blocked. If I send a second time the rtcansend side blocks after the s=1, ifr_name=rtcan1 is displayed.
This is a clear indication that the message did not get out to the wire.
What does "/proc/rtcan/rtcan[01}/info" display after you sent the
message? Also check "/proc/xenomai/irq" and use "rtcanrecv -e 0xffff" to
receive error messages as well.
Wolfgang.
next prev parent reply other threads:[~2009-01-07 18:19 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-07 16:17 [Xenomai-help] rtcanconfig rtcansend rtcanrecv Charlton, John
2009-01-07 17:28 ` Sebastian Smolorz
2009-01-07 19:56 ` Charlton, John
2009-01-08 10:32 ` Sebastian Smolorz
2009-01-08 13:21 ` Charlton, John
2009-01-12 15:33 ` Charlton, John
2009-01-12 16:10 ` [Xenomai-help] [Socketcan-users] " Wolfgang Grandegger
2009-01-12 16:30 ` Charlton, John
2009-01-12 17:10 ` Sebastian Smolorz
2009-01-12 18:47 ` Charlton, John
2009-01-12 20:30 ` Wolfgang Grandegger
2009-01-13 14:32 ` Charlton, John
2009-01-13 15:04 ` Wolfgang Grandegger
2009-01-14 20:50 ` Charlton, John
2009-01-12 17:17 ` Wolfgang Grandegger
[not found] ` <496605F2.1080306@domain.hid>
2009-02-02 21:54 ` Charlton, John
2009-02-03 14:19 ` Sebastian Smolorz
2009-01-07 20:08 ` [Xenomai-help] " Charlton, John
2009-01-07 18:19 ` Wolfgang Grandegger [this message]
2009-01-07 20:16 ` Charlton, John
2009-01-07 20:31 ` 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=4964F242.3020908@domain.hid \
--to=wg@domain.hid \
--cc=john.charlton@domain.hid \
--cc=socketcan-users@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.