I want to connect the PiCAN with my raspberry pi3 running windows IoT Core. I think I need a universal driver for the mcp2515 to work with the windows in Pi. I already tried using the instructions given in https://developer.microsoft.com/en-us/windows/iot/docs/driverdeployment to deploy the driver given in https://github.com/AustinWise/Mcp2515Can . But I got stuck in the instructions. I hope someone has already done this and maybe can help me with it? Did anyone successfully use this CAN board with Raspberry Pi (windows iot core)? Thank you :)
-
What problem are you facing exactly? – Jackie Oct 19 '16 at 06:42
-
Is a driver required in the first place? I tried enabling the SPI pin of the raspberry pi and tried to read something or send something to the PiCan - CAN Bus . For testing pupose, I used PeakCAN USB cable to generate CAN messages to be sent to the PiCAN2 board via a DB9 cable. But, even after enabling the SPI, I couldn't receive anything on the Raspberry Pi. I feel like I am missing something. I haven't used any driver. I have just connected the PiCAN2 board to Raspberry Pi. Did it work for you? – nj_bubbles Oct 20 '16 at 13:57
-
Hi @njoshy did you manage to get you win iot core to communicate with the Pican2 ? Just got a board and seeing if I can get one to work – True Solutions Oct 04 '19 at 21:15
-
@TrueSolutions Sorry No. I used a PEAK CAN interface system instead. Troubleshooting the mcp driver+ Raspberry Pi connection was quite time consuming so I did not pursue it after a while. – nj_bubbles Oct 28 '19 at 12:34
-
@njoshy is their a libary/nuget then that can use in a win IOT project ? – True Solutions Oct 29 '19 at 17:39
-
@TrueSolutions I did not understand your question. PEAK CAN has a straightforward interface that is easy to use. It is almost like plug and play. There was a git for the MCP driver(it was still in development that time) but i don't have it with me now. Sorry! – nj_bubbles Nov 06 '19 at 13:00
1 Answers
Is a driver required in the first place?
Short answer is No.
Although a device driver is preferred, such work is not officially or community done yet.
The benefit you get from developing a device driver might include:
- Native OS support for PiCAN board.
- Create your create the custom IoT image, and deploy it to Microsoft store.
- Possible performance improvements
- others…
However, in order to develop an device driver, you need to follow the WDK framework. If you are comfortable with picking up new stuff, go ahead and try it out. You might need to refer to the linux source driver code for WDK driver developing.
If your purpose is to get the board working, you don’t need to get yourself into all these troubles.
In fact, you only need to get the SPI controller and GPIO controller, open the SPI device and initialize GPIO interrupt pin like Mcp2515Can does.
But, even after enabling the SPI, I couldn't receive anything on the Raspberry Pi.
First, you can use Raspbian and turn on the CAN driver support to verify that you got all the wirings right. Here is the user guide you can reference.
If you can rule out the possibility of hardware failures, step into your C# code to troubleshoot the software.
Good luck.

- 9,574
- 1
- 11
- 24
-
Thank you. It is quite informaitve. I will try checking for any hardware failures with Raspbian. I can rule that part out then. I will get back to you once I do this. Thank you again! – nj_bubbles Nov 04 '16 at 11:32
-
Do you know if it is possible to simulate CAN messages from PC to Pican2 board connected to Raspberry Pi (PC - USB - VN1610 - PiCAN2 - raspberry Pi) using vector device VN1610 http://vector.com/vi_vn1600_en.html ? Maybe any of the applications like CANalyzer/CANape/CANoe ? Any idea? – nj_bubbles Nov 04 '16 at 11:57
-