CAN BUS analyzer, simple and effective
TL;DR
- A CAN BUS analyzer, recorder/player, and bomber toolkit pairs STM32F103 or STM32F042 firmware with PC software in C#.
- It uses STM32F103 with a USB bridge or STM32F042 with native USB, and supports MCU-controlled frame filtering.
- It already supports CAN speeds of 1000, 500, 250, 125, and 100 kbps, with both 11-bit and 29-bit frames.
- Double buffering removed the flashing seen in the video, and the F042 native USB prototype is shown working.
- Hardware filtering on the processor CAN controller and extra features for custom frame broadcasting are still planned.
Effects of recent works and activities with CAN buses. I sat down and wrote soft to work with CAN BUS, it is supposed to work as an analyzer, recorder / player, bomber etc.
The assumption to achieve maximum functionality with relatively cheap hardware.
As STM32F103 hardware with any USB-Bridge (it is suitable for non-clogged buses), or STM32F042 with native USB, I wrote the firmware for both of these devices.
PC software written in C # still under development. Support for CAN1000, 500, 250, 125, 100 kbps bus speeds so far. Frames 11 and 29 bit, hardware control from MCU.
Coloring of changing CAN data seen in PassThru Scope. Monitor and tracer seen from the Peak analyzer software (it's a Mercedes in ? analyzers), other ideas and functionalities seen in others, including hobbyists from the east. The photos show prototypes from BluePill and with a purchased module for F042. In the video, a preview of how it works on F042 with native STM USB.
Software frame filtration.
I added the double buffering extension and now it no longer flashes like it does in the video.
To do: hardware filtration on the CAN controller of the processor. Adding goodies to broadcasting custom frames and a bomber.
[movie: c8118cf661] https://filmy.elektroda.pl/78_1637505465.mp4 [/ movie: c8118cf661]
Comments
Sometimes DIY under construction is not about sharing your work progress (something more than screenshots) about an electrode is not about sharing your work? In general, when it comes to such things, understand... [Read more]
rediscovered wheel ........, hardware from ELTA, and it will go on any software [Read more]
Everything's fine by the time ;) in general, most of the simple things are going to be socket can from linux, it works on probably all possible CAN interfaces. But the strength of every analyzer is... [Read more]
I made a dongle for the CarBusAnalyzer. I use it on a daily basis, it has 2xCAN and 1xLIN [Read more]
This module on F042 is just the finished one you bought. But, personally, I would prefer to run the processor with quartz for these tasks rather than ext. generator. And slowly you can lean over... [Read more]
If anyone has time and wants to test the software to play with the CAN bus, which I dared to write, then I invite you. Unfortunately, I don't have time for that. Link to the entire playlist initially... [Read more]