I'm trying to get an Arduino Due to work with my car but init functions always returns 0 when the transcreceiver is connected to the cars bus system.
I'm using a transcreceiver board with the SN65HVD230 chip (http://www.wvshare.com/product/SN65HVD230-CAN-Board.htm
). As far as I understood this thread it should work with the library here.
I guess the main problem is that the cars bus is working at 100Kbit/s while this library doesn't seem to support it.
At least in the due_can.h there are only higher or lower values, so I added a line for 100Kbit/s.
#define CAN_BPS_100K 100000
I found out that the CANRaw::set_baudrate functions seems to work out and it does return 1. But I'm not realy sure if the can_bit_time array has the right values for the desired speed.
I understand some of the code but as a java and .net programmer c(++) code is pretty hard to understand for me (especialy the bit-shifting ...
So maybe someone here could help me out and tell me if the code should work with 100Kbit/s or if it needs some modification. If it does it would be great to get some hints for the right direction
Edit: I forgot to mention that I removed the 120 Ohm resistor on the board already since this is not the start/end point of the bus.