Skip to content

CAN-over-Serial-Line interfaces based on Lawicel SLCAN protocol for ESP32

Notifications You must be signed in to change notification settings

raibisch/ESP32-SLCAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP32-SCLAN

This repo contains the source code for CAN-over-Serial-Line interfaces based on Lawicel SLCAN protocol. This work is mostly based on the work from:

it was tested and developed on PlatformIO, but could easy adpated to ARDUINO-IDE.

Hardware-Adaption

For propper CAN-Signals we need a hardware CAN controller TJA1050:

Datasheet

https://www.mikrocontroller.net/part/TJA1050

Board-Example

https://www.komputer.de/zen/index.php?main_page=product_info&products_id=437

Standard Settings

  • NEW: Serial-Baudrate could be (persistent) switched from 115200Bd to 460800Bd for better performance at high CAN busload. Command 'b0=115200Bd' b1=460800Bd'
  • NEW: Command 'x' for ESP32 restart (Softare-Reset)
  • CAN-Bus Baudrate : 250kBd ...could be chanced with 's5' command
  • CAN-Pins: CAN_TX_PIN GPIO_NUM_5, CAN_RX_PIN GPIO_NUM_4 (conntect TJA1050 to this pins)
  • Serial-Bluetooth: disabled (could be enabled with '#define BT_SERIAL'

CAN-Applications supporting SLCAN

the CANable-Projekt getting started

Howto...

...get SLCAN-Adapter working on Linux

Download and Installation

Arduino IDE

To download click the DOWNLOAD ZIP button, rename the uncompressed folder. rename 'main.cpp' to 'ESP32-SCLAN.ino' and remove '#include <Ardunio.h>'. All required libs are local in the 'lib' folder, so there is no need for external libraries.

Platform IO

To download click the DOWNLOAD ZIP button form Github. All required libs are local in the 'lib' folder) so there is no need for external libraries. the hardware platform is defined for minumum 'DEV-KIT V1' and should match for most ESP32 hardware.

About

CAN-over-Serial-Line interfaces based on Lawicel SLCAN protocol for ESP32

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published