All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] rtcanconfig rtcansend rtcanrecv
@ 2009-01-07 16:17 Charlton, John
  2009-01-07 17:28 ` Sebastian Smolorz
  2009-01-07 18:19 ` Wolfgang Grandegger
  0 siblings, 2 replies; 21+ messages in thread
From: Charlton, John @ 2009-01-07 16:17 UTC (permalink / raw)
  To: xenomai@xenomai.org, socketcan-users@domain.hid

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.

I am new to CAN interfaces so I don't know if the Bit-time and Clock-Hz parameters are correct.  I appreciate any advice.  I am proceeding to get more output from the xeno_can_tscan1 kernel module.  I have the two TS_CAN1 interfaces output/input connected directly together with a short (3 inch) straight 10 conductor ribbon cable.  Both boards have the 120 ohm termination.

--John


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2009-02-03 14:19 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2009-01-07 20:16   ` Charlton, John
2009-01-07 20:31     ` Wolfgang Grandegger

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.