Re: [beagleboard] Re: CAN bus recovery

2014-09-16 Thread Adrian Remonda
Witch kernel are you using? Using the can cape that uses the can1 interface, I'm having some troubles with the 3.8 of Robert. After I send some packages it just silently stop sending and I have to do a ifdown ifup in order to make it run again. This didn't happen with the Kernel version of the

Re: [beagleboard] Re: CAN bus recovery

2014-09-11 Thread Brent Sink
Adding restart-ms did the trick! Thanks so much, I never knew that was even there. On Wed, Sep 10, 2014 at 8:37 PM, Devan Lai devan@gmail.com wrote: You can configure the controller to automatically recover from bus-off conditions by setting the restart-ms option. The python-can

Re: [beagleboard] Re: CAN bus recovery

2014-09-11 Thread William Hermans
Brent, what guide are you reading for CAN ? I've never used CAN personally, and am curious . . . On Thu, Sep 11, 2014 at 2:25 PM, Brent Sink brent.s...@gmail.com wrote: Adding restart-ms did the trick! Thanks so much, I never knew that was even there. On Wed, Sep 10, 2014 at 8:37 PM, Devan

Re: [beagleboard] Re: CAN bus recovery

2014-09-11 Thread Brent
Well, I'm not reading a guide, but I'll share a few links that helped me get started. I have a Qt application and I use the SocketCAN to read/write CAN messages. This will work with J1939 as well. https://www.kernel.org/doc/Documentation/networking/can.txt

Re: [beagleboard] Re: CAN bus recovery

2014-09-11 Thread William Hermans
Thank Brent, However I was more curious about the bring up of the hardware on the BBB. IS there cape file I have not noticed yet ? If so I can probably figure it out on my own. On Thu, Sep 11, 2014 at 4:52 PM, Brent brent...@hotmail.com wrote: Well, I'm not reading a guide, but I'll share a

Re: [beagleboard] Re: CAN bus recovery

2014-09-11 Thread Brent Sink
Ah, yes. The TT3201 cape has three CAN channels, but two of them are over SPI. This should help you out... https://github.com/beagleboard/devicetree-source/blob/master/arch/arm/boot/dts/TT3201-001-01.dts On Thu, Sep 11, 2014 at 8:00 PM, William Hermans yyrk...@gmail.com wrote: Thank Brent,