cancel
Showing results for 
Search instead for 
Did you mean: 

Did anyone managed to read CANBUS without canbus peripheral? (softcanbus)

Javier1
Principal

Is there any way for chips without the Canbus peripheral to read canbus?

No external chips allowed

Maybe uart or bitbanging gpios?

0693W00000HpX5xQAF.png

we dont need to firmware by ourselves, lets talk
3 REPLIES 3

No, better things to do...

If you're willing to grind through the data, you can basically create a logic-analyzer via TIM+DMA+GPIO, sampling fast enough so you can synchronize to the edges, and then step the buffer to extract the HI/LO pairs at the center/sample points, etc. It doesn't look to be overwhelming complex, although perhaps limited in upper bandwidth.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Or you can use timer input capture + DMA to take timestaps for rising and falling edges. That should be able "read" speeds over 1Mb/s.

Uwe Bonnes
Principal III

Canbus needs collision handling during the burst. So capture and evaluation afterwards is doomed for failure in the field. Bitbanging the protocoll with highest priority for a low bit rate should be doable, but will require a lot of work and understanding of the protocoll and its niches