Go to advanced search

by bertr2d2
Mon Apr 15, 2019 5:24 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: MCP2517 CANFD an CM3
Replies: 4
Views: 963

Re: MCP2517 CANFD an CM3

Hi,

official patches are found on M.Sperls git. For precompiled images have a look at https://github.com/msperl/linux-rpi/releases .

Please give feedback. The developer needs it for integration into the Kernel.

Regrads

Gerd.
by bertr2d2
Fri Mar 29, 2019 2:02 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI CAN frames
Replies: 2
Views: 161

Re: SPI CAN frames

Please have a look at:
https://en.wikipedia.org/wiki/SocketCAN

It's simply network programming like UDP.

Regards

Gerd
by bertr2d2
Fri Mar 15, 2019 1:58 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN-Bus Interface with galvanic isolation
Replies: 1
Views: 1171

Re: CAN-Bus Interface with galvanic isolation

Hi,

the board was updated - no need to install the optional uA7805 mirrored anymore.

Regards

Gerd
by bertr2d2
Wed Mar 06, 2019 4:20 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Self made canbus board only working at 500kbs but not 1 Mbs
Replies: 4
Views: 534

Re: Self made canbus board only working at 500kbs but not 1 Mbs

Hi Markus,

please consider using a MCP2562 instead of MCP2551 (deprecated): http://lnxpps.de/rpie/

Regards

Gerd
by bertr2d2
Fri Sep 14, 2018 2:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPi galvanic isolated CAN-Bus Interface
Replies: 0
Views: 441

RPi galvanic isolated CAN-Bus Interface

Hi, if you are looking for a cheap, easy to build and galvanic isolated RPi CAN-Bus interface please have a look at: https://github.com/GBert/misc/raw/master/RPi-MCP2515/pictures/rpi-mcp2515_01_s.jpg https://github.com/GBert/misc/tree/master/RPi-MCP2515 PCB files are part of the git. If you prefer r...
by bertr2d2
Sat Dec 16, 2017 9:50 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Raspberry Pi PIC Programmer using GPIO
Replies: 102
Views: 40077

Re: Raspberry Pi PIC Programmer using GPIO

Do you know 'pickle' ?:
https://wiki.kewl.org/dokuwiki/projects ... interfaces

It's a programmer also for RPi which should burn nearly any Microchip PIC ;-)
by bertr2d2
Thu May 04, 2017 12:46 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN-Bus Interface with galvanic isolation
Replies: 1
Views: 1171

CAN-Bus Interface with galvanic isolation

Hi, if you need a galvanic isolated, easy to build CAN Board, here it is: https://raw.githubusercontent.com/GBert/misc/master/RPi-MCP2515/pictures/rpi-mcp2515_01_s.jpg https://github.com/GBert/misc/tree/master/RPi-MCP2515 Either use DCDC converter to generate isolated 5V or 7805 with external supply...
by bertr2d2
Sun Jan 29, 2017 5:20 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPI3 mcp2515 issues
Replies: 2
Views: 1066

Re: RPI3 mcp2515 issues

Hi, the 8 MHz is fine because http://lxr.free-electrons.com/source/drivers/net/can/spi/mcp251x.c?v=4.4 1036 clk = devm_clk_get(&spi->dev, NULL); 1037 if (IS_ERR(clk)) { 1038 if (pdata) 1039 freq = pdata->oscillator_frequency; 1040 else 1041 return PTR_ERR(clk); 1042 } else { 1043 freq = clk_get_rate...
by bertr2d2
Sat Nov 08, 2014 2:22 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 325487

Re: CAN controller

pauldcox wrote: <snip>
Not sure why ip link shows 8Mhz clock when I thought I specified 16Mhz to spi-config
8MHz is ok because the TQ calculation is based on FOSC/2.

Regards

Gerd
by bertr2d2
Tue Sep 16, 2014 3:53 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 325487

Re: CAN controller

Hi Andreas, Hi Gerd, [ 17.822227] spi_config_register: device description: bus=0:cs=0:modalias=mcp2515:speed=10000:gpioirq=25:pd=20:pds32-0=20000000:pdu32-4=0x2002:force_release [ 17.846650] spi_config_match_cs: SPI0: check CS=0 to be 0 [ 17.857859] spi_config_match_cs: SPI0.0: Found a device with m...
by bertr2d2
Tue Sep 16, 2014 1:44 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 325487

Re: CAN controller

Hi Andreas,

how did you setup the CAN Interface ("ip link set can0 ...") ? Do you use the loopback mode or do you have
a second CAN node on the CAN bus ? What does "ip -s -d link show can0" say ?

Regards

Gerd
by bertr2d2
Mon Sep 15, 2014 1:42 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 325487

Re: CAN controller

Hi Andreas Hi, I just have tried the new modules for 3.12.28+, but I have the same problem I had with the old ones. I have a problem with spi-config, because in the initialization it gaves me an error "mcp251x spi0.0: probe failed". The problem is that when the module reset the mcp2515, after that i...
by bertr2d2
Sat Sep 13, 2014 11:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 325487

Re: CAN controller

Hi Moritz,
moritzmhmk wrote:Hi

did someone already compile the modules for 3.12.28+ and could upload them ;)

Moritz
new modules can be found here: http://lnxpps.de/rpie/rpi-can-3.12.28+.tar.bz2. Please give feedback.

Regards

Gerd
by bertr2d2
Sat Aug 30, 2014 11:22 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 325487

Re: CAN controller

Hi all, Like a lot of us I'm following this topic for the last few months. I bought this SKPang board and still trying to get it to work the way I'd prefer. At this point the two terminal test is working (terminal1 cangen can0, terminal2 candump any, with loopback on). My main goal is to connect my...
by bertr2d2
Tue Aug 05, 2014 7:00 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 325487

Re: CAN controller

Updated Linux Kernel modules can be found here: http://lnxpps.de/rpie
Tested on SKpang PICAN
by bertr2d2
Thu Mar 20, 2014 12:37 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 325487

Re: CAN controller

Hey, Hi Joker_90, just clearifying your setup: You want to use MCP2515DM-BM board with the RPi, right ? The mcp251x drivers won't work with the MCP2515DM-BM, because they rely on a MCP2515 connected via SPI not USB. Here is somebody, who used this board with Linux: http://www.harshbutfair.org/softw...
by bertr2d2
Mon Feb 17, 2014 9:27 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 325487

Re: CAN controller

moritzmhmk wrote: PPPS I am using 2014-01-07-wheezy-raspbian
Which kernel do you run ('uname -a') now ?
by bertr2d2
Thu Feb 13, 2014 9:20 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 325487

Re: CAN controller

deleted
by bertr2d2
Fri Jan 24, 2014 7:56 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 325487

Re: CAN controller

First off the command "ip -s -d link show can0" is telling me the clock is 8,000,000 but the MCP2515 is connected to a 16MHz crystal and is configured in the board file as 16M wondered why the "ip" command is giving me 8? 8Mhz is correct - Fosc/2 (16MHz/2) is the base for the CAN bit timing calcula...
by bertr2d2
Mon Jan 20, 2014 12:06 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 325487

Re: CAN controller

Hi radman, Hi Gerd, After some more testing I have to say that for my testing methodology, I haven't found a stable enough SPI driver (regardless of distro version). It is probably related to the way how the driver has been tested. My current test which I perform goes as follows: Bus analizer/exerci...
by bertr2d2
Sun Jan 19, 2014 9:43 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 325487

Re: CAN controller

Hi radman, Hi Gerd, thank you for the pointer. I found this SPI driver but when I tried it with 3.12.y it turned out to be even less stable than the default driver from the rpi branch. I used following driver for the test: https://github.com/notro/spi-bcm2708 As next steps I tried 3.9.y kernel versi...
by bertr2d2
Sat Jan 18, 2014 9:29 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 325487

Re: CAN controller

Hi, I just tested the update posted on http://lnxpps.de/rpie/ (Update: Just use Raspbian 2013-12-20 with this update). I see the same issue with candump hanging upon heavy traffic. Has anybody noticed it or there is something wrong with my hardware? I also have performed following test. Terminal #1:...
by bertr2d2
Mon Jan 13, 2014 6:22 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 325487

Re: CAN controller

[ 117.903868] bcm2708_spi bcm2708_spi.0: master is unqueued, this is deprecated [ 117.904799] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80) [ 117.965216] can: controller area network core (rev 20120528 abi 9) [ 117.965383] NET: Registered protocol family 29 [ 118.033730] CAN devi...
by bertr2d2
Mon Jan 13, 2014 7:11 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 325487

Re: CAN controller

Hi Marco, Gerd, My Kernel is currently 3.10.25+ So, you already upgraded the kernel. I used the rpi_can_310x_spi_dma.tar.xz from your site and as far as I can see it includes the modules for this kernel too. Did I missunderstand that? Yes, it should have both versions - the original 3.10.24+ and 310...

Go to advanced search