geesamba wrote:Ok, so if I use the "loopback" mode when modprobing the mcp251x, I can cansend and candump back and forth over can0 in two ssh sessions. That should indicate the PICAN board is working, correct? So then it must be wiring, right?
this indicates that the chip is correctly detected (assuming you use the stock mcp251x driver.
This does not necessarily mean that the clock speed that you have configured (via /sbin/ip) is the correct one for the car.
there are a few typical choices for the can speed: 125kHz, 250kHz, 500kHz and 1000kHz. You have to figure out which one it is for your car.
Also you need to make sure that polarity is "correct"!
If you have got a Voltmeter you can check the voltage vs. ground of each one of those.
CanHigh may be between 2-5V and should vary in that range.
CanLow is below CanHigh and typicaly will vary in the range of 0-2.5V.
If you use PiCan then you can also check on Resistor R7 (on the side of the 8 pin chip - pin 4 actually) and see if it stays at constant 5V or if the voltage level varies (which would indicate traffic is detected) - if have reverse polarity the pin should stay constant 5V.
If you see it is varying then the only thing left is figuring out the right baud-rate to configure and then the counters for the can0 interface should start showing packets!
Note that you have to solder 2 bridges in the correct positions (SJ1, SJ2, SJ3) if you want to use the 9-pin connector (I do not know how well the documentation is in this respect, as I am just inferring this from the diagrams/photos of the webpage) - no soldering is needed when using the screw terminal!
Martin