Go to advanced search

by bertr2d2
Wed Aug 29, 2012 4:01 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390673

Re: CAN controller

Hi Benoit, thx sharing your results - they aren't that bad: Your did the test with more than 3000 packets a second. I've used extended frames with 8 data bytes - the longest frame size possible. So my error rate is lower. In normal situation you would apply a filter which will decrease the data and ...
by bertr2d2
Tue Aug 28, 2012 9:15 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390673

Re: CAN controller

Hi, I have tied a LPC1768 board to my RPi + MCP2515 and did some tests. I've skipped 3.1.9 and using the 3.2.27 kernel now. AT 33% busload at 1000kb: canbusload 2012-08-28 22:39:42 can0@1000000 2179 335566 139456 33% |XXXXXX..............| I observe errors due to overruns: root@raspberrypi ~/spi/mod...
by bertr2d2
Mon Aug 27, 2012 8:37 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390673

Re: CAN controller

Hi Benoit,
Benoit wrote: Maybe it's time to have it integrated into the kernel: would you know who to contact for this?
IMHO the best place is the SocketCAN mailing list:
http://dir.gmane.org/gmane.linux.can

Regards

bertr2d2
by bertr2d2
Mon Aug 27, 2012 7:49 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390673

Re: CAN controller

Salut Benoit,

a good catch ! There was a patch on the SocketCAN mailing a year ago:
http://old.nabble.com/-PATCH--mcp251x%3 ... 31106.html
but the patch didn't get into the mainline kernel yet - strange.

Regards

bertr2d2
by bertr2d2
Fri Aug 24, 2012 1:06 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390673

Re: CAN controller

Hi maddin1234
maddin1234 wrote:Hi,

For example 110 for GPIO25 and 109 for GPIO24
did you tried to link a second MCP2515 to the RPi ? Any results ?
by bertr2d2
Fri Aug 24, 2012 1:04 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390673

Re: CAN controller

Hi, Hi Guys, Does anyone know if this will be submitted to the Rasbian kernel maintainers so it gets included in the released download ? The board specific part differ from the MCP2515 linkage to the RPi - the CAN modules are independent. I'm working on a solution to avoid recompiling the kernel. If...
by bertr2d2
Sat Aug 18, 2012 3:04 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390673

Re: CAN controller

Hi maddin1234, I think the second interrupt is the problem. I read in the BCM hardware manual, that GPIO has only one interrupt per bank. Otherwise I won't have come to the idea to use the same interrupt. Hmm, tested it with the gpio-test code: ... irq_number = gpio_to_irq(24) .... [809314.117129] G...
by bertr2d2
Sat Aug 18, 2012 7:07 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390673

Re: CAN controller

Hi maddin1234, Are the modules able to work both on the same interrupt? two CAN controller on the same interrupt won't work without modifying the module code. IMHO you need another GPIO for the second interrupt. BTW: The setup won't be very efficient: Both CAN must be asked for new data if they shar...
by bertr2d2
Thu Aug 16, 2012 10:06 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390673

Re: CAN controller

Hi, As far as I know, insmod means "add the modules to the kernel on runtime". When doing "make menuconfig" I found that all these modules seem to be allready in the kernel sources and can be compiled to the kernel when selected. So why do we have to "insmod" the modules, when they are allready in t...
by bertr2d2
Thu Aug 16, 2012 1:22 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390673

Re: CAN controller

A simple 'ifconfig can0 up' will stop the nasty dmesg entries and your CAN is ready to use. But ... The MPC2515 clockrate is a serious problem with the precompiled kernel - I used 16Mhz. This will not work because the CAN bus speed is calculated in regards of the clockrate set in the board definitio...
by bertr2d2
Tue Aug 14, 2012 11:03 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390673

Re: CAN controller

maddin1234, would you be so kind to write down the steps to get CAN working and report them here in the forum afterwards ? Maybe some of us have more experience with Linux but forget things which seems to be negligible. For starters this may be an important hint (such as installing ncurses-dev). Reg...
by bertr2d2
Tue Aug 14, 2012 9:28 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390673

Re: CAN controller

Hi maddin1234, AlexB seems to be buys or away. Alex already referenced a link for Kernel compilation, which is good source of information. You can find the board definition file in linux the source here : ./arch/arm/mach-bcm2708/bcm2708.c Just patch this file (look above in this thread) and do 'make...
by bertr2d2
Mon Aug 13, 2012 4:31 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390673

Re: CAN controller

@AlexB

that looks much better now :mrgreen:
Could you repeat your test with 1Mbit until you get lost frames to see what the limit is ?
by bertr2d2
Mon Aug 13, 2012 2:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390673

Re: CAN controller

@AxelB,

Thanks for the test - it's far from what I have expected. What does

Code: Select all

ip -s -d link show can0
say ?

Regards

Gerd
by bertr2d2
Sat Aug 11, 2012 7:22 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390673

Re: CAN controller

Hi Olli,

just use the kernel version you have already installed. The version doesn't matter - all of the actual RPi
are fresh enough. But you have to copy the new compiled kernel to your boot dir.

Regards
bertr2d2
by bertr2d2
Sat Aug 11, 2012 4:31 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390673

Re: CAN controller

Hi Olli, you have to compile and install the new Kernel: install the source and apply the board definition patch. The board definition is under this directory: /usr/src/linux-3.1.9+/arch/arm/mach-bcm2708 I would suggest AxelB's patch because it has some debug code getting the right IRQ and compile t...
by bertr2d2
Sat Aug 11, 2012 11:33 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390673

Re: CAN controller

Great ! If you have enough time could you also test:
http://clientes.netvisao.pt/anbadeol/mcp2515.html
please ?
Responding to myself:

This driver should be more up to date:
http://git.pengutronix.de/?p=mkl/linux- ... 2515-async
by bertr2d2
Sat Aug 11, 2012 11:28 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390673

Re: CAN controller

I have CANalyzer available,
Great ! If you have enough time could you also test:
http://clientes.netvisao.pt/anbadeol/mcp2515.html
please ?
by bertr2d2
Fri Aug 10, 2012 2:48 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390673

Re: CAN controller

@AxelB,

do you have other CAN controller/tools to do a busload test ? Would be very interesting to see,
which load could be achieved without lost frames with the combination MCP2515 and RaspberryPi ...
by bertr2d2
Thu Aug 09, 2012 3:40 pm
Forum: Other projects
Topic: CAN Interface
Replies: 103
Views: 112829

Re: CAN Interface

Ups - sorry. There are more standards than CAN in a car ...
by bertr2d2
Thu Aug 09, 2012 1:49 pm
Forum: Other projects
Topic: CAN Interface
Replies: 103
Views: 112829

Re: CAN Interface

stn1110 seem to be interesting - but less than 5 bucks you could get a "real" CAN interface:

http://lnxpps.de/rpie
by bertr2d2
Thu Aug 09, 2012 1:34 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Interrupt handling
Replies: 20
Views: 103342

Re: Interrupt handling

my this help you getting forward:

http://lnxpps.de/rpie/#gpio_test
by bertr2d2
Thu Aug 09, 2012 6:42 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390673

Re: CAN controller

This might be of your interest http://lnxpps.de/rpie MCP2515 + MCP2551 with GPIO25 (IRQ110) interrupt - working [ 394.151290] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80) [ 465.325599] can: controller area network core (rev 20090105 abi 8) [ 465.325968] NET: Registered protocol f...

Go to advanced search