Hi,

I try to receive data from CAN network. I got a PCI card with a FPGA which
emulates the SJA1000.
So I load the following modules :
insmod ./xeno_can.ko
insmod ./xeno_can_sja1000.ko
insmod ./xeno_can_mem.ko mem=0xe0000800 irq=5 can_clock=80000000 cdr=0x8F

then I configure with :
./rtcanconfig rtcan0 -v --baudrate=125000 start

and launch the receive test application :
./rtcanrecv rtcan0 -v

The task is running but nothing happen in reception.
I could just say that the transmitter was blocked before I load the driver.
After all the upon configuration, I can check that the connection with
transmitter is now enabled and the data are sent.

First, my question is this procedure have any chance to work ? or I missed
something in the configuration ?
I haven't set any filter, so I guess that I will receive all the data
incoming, right ?

thanks for your help,
Marcel


here I joined all the info concerning the driver setting:

INFO:
Device     rtcan0
Controller SJA1000
Board      mem mapped
Clock-Hz   40000000
Baudrate   125000
Bit-time   brp=16 prop_seg=0 phase_seg1=16 phase_seg2=3 sjw=1 sam=0
Ctrl-Mode
State      active
TX-Counter 0
RX-Counter 0
Errors     0
Refcount   0

REGISTERS :
SJA1000 registers
00: 00 00 0d 01 ff 00 0f 2f 00 00 00 00 00 60 00 00
10: 08 a1 80 80 00 00 00 00 00 00 00 08 a2 40 00 8f

FILTERS:
fd __CAN_ID__ _CAN_Mask_ Inv MatchCount
 0 0x00000000 0x00000000  no          0
_______________________________________________
Xenomai-help mailing list
Xenomai-help@gna.org
https://mail.gna.org/listinfo/xenomai-help

Reply via email to