Go to advanced search

by mikexu
Wed Jun 18, 2014 1:42 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 338936

Re: CAN controller

From the PiCAN schematics, I guess the DB9 connector would work if the jumpers are soldered correctly. 2. Use the 3-pin terminal for CAN, and DB9 for OBDII only (check the schematic for jumper selection). Why is this? Aren't the CAN High and CAN Low pins also present on the DB9 connector? With an Ar...
by mikexu
Tue May 27, 2014 9:07 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 338936

Re: CAN controller

Update: The PiCAN board works now on my rpi under mcp2515, although the details of "can0" are still showing "can state STOPPED"... But I can send and receive CAN messages. Seems just fine!! Special Thanks to Martin!! For those who might be looking for help, try my settings posted on page 21 (Tue May...
by mikexu
Fri May 16, 2014 1:30 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 338936

Re: CAN controller

okay, I managed to get the mcp251x module compiled. Now, the situation is: 1. when I load mcp251x, and set loopback on, the can0 works fine. send and dump are both okay. 2. when I set loopback off, the can state is: can state ERROR-ACTIVE restart-ms 100 and if I try to send a can message, it becomes...
by mikexu
Fri May 16, 2014 10:15 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 338936

Re: CAN controller

So... I have recompiled kernel, but

Code: Select all

can state STOPPED
is still the same....

I wanted to test the mcp2515x module for loopback, but I forgot to enable mcp2515x module before recompile. Do you know how to install this module alone really quick? Thanks a lot!
msperl wrote:Cable polarity?
by mikexu
Wed May 14, 2014 2:30 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 338936

Re: CAN controller

the cable works fine, when I connect channel 1 to ch. 2 on cancase itself...
msperl wrote:Cable polarity?
by mikexu
Wed May 14, 2014 1:16 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 338936

Re: CAN controller

Hi martin, I'm hoping you could further help me with the PICAN board on rpi. Now I've connected a CANCasexl to the PiCAN, but still, nothing happens. I don't have any CAN traffic anywhere. As I showed before, the command to show detials of can0 is: $ ip -details link show can0 3: can0: <NOARP,UP,LOW...
by mikexu
Wed May 07, 2014 9:26 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 338936

Re: CAN controller

Actually, I don't have this mcp251x driver anywhere on the rpi, since I used compiled mcp2515 drivers from tz1's post for 3.10.36+. Anywhere I can find mcp251x.ko for 3.10.36+, maybe? Another thing is, I think mcp2515 also doesn't support lookback, triple-timing options, right? It's saying "Operatio...
by mikexu
Wed May 07, 2014 8:43 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 338936

Re: CAN controller

Thanks Martin! You're right about me not having another device on the CAN bus. I'll have access to a CANCase in a few days. I'll post an update afterwards. It's really great to know everything else is working correctly. The lsmod shows: $ lsmod | grep 'mcp\|can\|spi\|i2c' mcp2515 6494 0 spi_config 9...
by mikexu
Tue May 06, 2014 10:04 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 338936

Re: CAN controller

Hi, I'm trying to get the SKPANG PiCAN http://skpang.co.uk/catalog/pican-canbus-board-for-raspberry-pi-p-1196.html board working on the rpi. After checking through all the posts here, I'm still stuck at some point. The current problem is, can0 state is STOPPED when I show: $ ip -details link show ca...
by mikexu
Wed Apr 09, 2014 8:11 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 338936

Re: CAN controller

Thanks a lot! I'll try it out!!

regarding the 1st question, any idea?
msperl wrote:ad 2): Sending receiving messages:
http://en.wikipedia.org/wiki/SocketCAN
and also the definite documentation directly from the kernel:
http://lxr.free-electrons.com/source/Do ... ng/can.txt
by mikexu
Tue Apr 08, 2014 1:28 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 338936

Re: 3.10.36+

Hi, thanks for updating the moduels! I have two basic questions though, regarding how to use the CAN module: 1. is it enough to load all the attached can-specific modules to get the sparfun PICAN board working? 2. is there a reference to how i can use a simple c program for sending/receiving CAN mes...

Go to advanced search