Skip to content

About

CAN2USB converter/sniffer compatible with SavvyCAN (Lawicel SLCAN protocol) using STM32/HAL2.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

CAN2USB converter/sniffer compatible with SavvyCAN (Lawicel SLCAN protocol) featuring contactless probes [STM32C562RE]

STM32/MX2/HAL2 CAN bus sniffer project

Do you need a CAN bus sniffer? Do you need it badly? Is waiting two days to get e.g. CANable not an aption for you? No worries. Just grab a Nucleo borad and a CAN transceiver, or preferrably the NUCLEO-C562RE with the CAN transceiver already fitted on the board, and make your own sniffer compatible with SavvyCAN. Thank you Collin Kidder! My code is an extreme version of a minimum viable product (MVP) - it supports only one hard-coded CAN baud rate and provides only reading frames from the bus, i.e. the listen-only (LO) mode. The implementation of the complete protocol is on you 🙂 The sniffer was tested in the system shown here. Have fun with sniffing and reverse engineering!

STM32/MX2/HAL2 CAN bus sniffer in action STM32/MX2/HAL2 CAN bus sniffer and SavvyCAN

Missing files?

Don't worry. Just open the .ioc2 file in STM32CubeMX2 and hit the yellow button to generate the IDE project. Then open the project in STM32CubeIDE for Visual Studio Code and build it.

SLCAN protocol

Contactless CAN bus probe

Quasar contactless CAN bus probe

You can make your sniffer totally non-invasive by adding a contactless probe (starting from ca. 100 PLN / 25 USD). I've added to my collection:

and they work perfectly. If they are not available in your region, you may check similar probes that I haven't tested (yet?), e.g.:

What's inside?

Quasar contactless CAN bus probe inside Teltonika contactless CAN bus probe inside Albatross contactless CAN bus probe inside

Let's get familiar with inner workings by reverse engineering one of the probes

Capacitive coupling edge sensing Edge detection and Schmitt triggering using two opamps MCP6022 opamps (10 MHz, 7 V/us) in action OPA2197 opamps (10 MHz, 20 V/us) in action Reverse-engineered probe in action

Call to action

Create your own home laboratory/workshop/garage! Get inspired by ControllersTech, DroneBot Workshop, Andreas Spiess, GreatScott!, bitluni's lab, ElectroBOOM, Phil's Lab, atomic14, That Project, Paul McWhorter, Max Imagination, Nikodem Bartnik, Stuff Made Here, Mario's Ideas, Aaed Musa, Haase Industries, and many other professional hobbyists sharing their awesome projects and tutorials! Shout-out/kudos to all of them! Promote README-driven learning.

Warning

STM32C5 series and contactless sensing of differential signals - do try it at home ❕

220+ challenges to start from: Control Engineering for Hobbyists at the Warsaw University of Technology.

Stay tuned!

0xBU

About

CAN2USB converter/sniffer compatible with SavvyCAN (Lawicel SLCAN protocol) using STM32/HAL2.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Contributors

Languages