• Stars
    star
    197
  • Rank 197,722 (Top 4 %)
  • Language
    C++
  • License
    MIT License
  • Created over 6 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CAN Reverse engineering tool for ESP32 based boards (specifically EVTV ESP32Due)

ESP32RET

Reverse Engineering Tool running on ESP32 based hardware. Supports both EVTV ESP32 and Macchina A0

Requirements:

You will need the following to be able to compile the run this project:

  • Arduino IDE Tested on 1.8.13
  • Arduino-ESP32 - Allows for programming the ESP32 with the Arduino IDE
  • esp32_can - A unified CAN library that supports the built-in CAN plus MCP2515 and MCP2517FD
  • can_common - Common structures and functionality for CAN libraries

PLEASE NOTE: The Macchina A0 uses a WRover ESP32 module which includes PSRAM. But, do NOT use the WRover board in the Arduino IDE nor try to enable PSRAM. Doing so causes a fatal crash bug.

The EVTV board has no PSRAM anyway.

This program is larger than the default partitioning scheme. You will need to use a larger scheme. The recommended way to do this: Tools -> Partition Scheme -> Minimal SPIFFS

All libraries belong in %USERPROFILE%\Documents\Arduino\hardware\esp32\libraries (Windows) or ~/Arduino/hardware/esp32/libraries (Linux/Mac).

The canbus is supposed to be terminated on both ends of the bus. This should not be a problem as this firmware will be used to reverse engineer existing buses. However, do note that CAN buses should have a resistance from CAN_H to CAN_L of 60 ohms. This is affected by placing a 120 ohm resistor on both sides of the bus. If the bus resistance is not fairly close to 60 ohms then you may run into trouble.

The firmware is a work in progress. What works:

  • CAN0 / CAN1 reading and writing
  • Preferences are saved and loaded
  • Text console is active (configuration and CAN capture display)
  • Can connect as a GVRET device with SavvyCAN
  • LAWICEL support (somewhat tested. Still experimental)
  • Bluetooth works to create an ELM327 compatible interface (tested with Torque app)

What does not work:

  • Digital and Analog I/O

License:

This software is MIT licensed:

Copyright (c) 2014-2020 Collin Kidder, Michael Neuweiler

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

SavvyCAN

QT based cross platform canbus tool
C++
1,018
star
2

esp32_can

Arduino ESP32 library supporting the on-chip CAN module
C++
260
star
3

due_can

Object oriented canbus library for Arduino Due compatible boards
C++
252
star
4

TeslaBMS

C++
160
star
5

GEVCU

Generalized Electric Vehicle Control Unit
Eagle
114
star
6

can_common

Common structures and functionality for CAN libraries
C++
107
star
7

GVRET

Generalized Vehicle Reverse Engineering Tool - firmware for Arduino Due based boards
C++
99
star
8

M2RET

GVRET fork to Macchina M2 board
C++
71
star
9

GEVCU6

Generalized Vehicle Control Unit for version 6 boards
C++
25
star
10

JLD505

Arduino
24
star
11

GEVCU7

7th generation GEVCU source code
C++
21
star
12

A0RET

CANBus reverse engineering firmware for the Macchina A0
C++
16
star
13

due_wire

An alternative I2C library for Due with DMA support
C++
15
star
14

FirmwareReceiver

C++
14
star
15

OBD2Scan

Sketch to scan OBDII with an M2
C
12
star
16

due_canopen

CANOpen library for due_can
C++
11
star
17

CRC_Nissan

C# app that shows a simple way to calculate the CRC byte used by some canbus frames in Nissan Leafs
C#
11
star
18

DueMotorCtrl

An Arduino Due (SAM3X) based motor controller. Somewhat generic in terms of hardware but really meant primarily to replace the main board in a DMOC645
C++
10
star
19

8051Disassembler

Open source disassembler custom built to disassemble SiLabs C8051F530 code from Tesla BMS
C
9
star
20

OscilloscopeViewer

Visualizer of oscilloscope captures
C++
9
star
21

pymqtt2can

Python based CAN to MQTT tunnel
Python
8
star
22

DS2480B

OneWire library custom engineered for JLD505 boards with DS2480B chips
C++
8
star
23

TeensyRET

CANBus reverse engineering firmware for Teensy 3.x boards
C++
7
star
24

TeslaBMS-ESP32

ESP32 port of the existing TeslaBMS program
C++
7
star
25

Envoy

Enphase Envoy Interface Library
C++
7
star
26

Open-SAE-J1939

C
6
star
27

bms

EVTV BMS
C++
6
star
28

EEPROMAnything

C++
5
star
29

ade9000

C
5
star
30

Wire_EEPROM

I2C based routines to support EEPROM on the Due. Requires the due_wire library from my repo
C++
5
star
31

PhoneCANLogger

Grabs traffic from ESP32RET devices and stores the CAN frames to your phone/tablet
C++
5
star
32

pwm01

Enhanced PWM library for Arduino Due
C++
4
star
33

GEVCU_MobileApp

Cross platform configuration and status tool for GEVCU
QML
3
star
34

Arduino_Due_SD_HSCMI

Fork of HSCMI library for sdcard reading/writing
C++
3
star
35

AWS_IOT

Arduino library to use Amazon IOT (MQTT)
C
3
star
36

mcp_can

C++
2
star
37

GVRET-PC

C# Application for PC that interfaces with the GVRET firmware to provide reverse engineering help.
C#
2
star
38

SerialViewer

A very simplistic program meant for viewing serial traffic from embedded controllers
C++
1
star
39

SamNonDuePin

Fork of a library that allows use of pins not normally mapped on Arduino Due
C++
1
star
40

SD_HSCMI

Fork of library that support SD card access over HSCMI on SAM3X boards
C
1
star
41

powerkey-j1939

Library to support PowerKeyPro keypads that use J1939 signalling
C++
1
star
42

GattServer_GEVCU

A GATT Server running on ESP32 for use with GEVCU (or other boards)
C
1
star