An ESP32-based project for interfacing with the automotive CAN bus protocol.
Why use this library?
- ESP-IDF based, built for speed and extensibility - uses the built-in CAN conntroller of the ESP32
- Arduino Core and Library support
- Compatibility: v3.3.2 of the ESP-IDF is used to ensure compatibility between all major ESP32 frameworks (IDF, ADF, MDF, DSP, Arduino)
- Make sure you are using a Python2 environment in your terminal. See Python Installation section for details on how to do this.
- Install ESP-IDF at the v3.3.2 release (if you have not already)
- Check you current version
git describe --always --tags --dirty
- If in doubt, delete your ESP-IDF folder and fresh install
git clone -b v3.3.2 --recursive https://github.com/espressif/esp-idf.git
- Check you current version
- Download this repository
git clone --recursive https://github.com/oliverjc/CANopener.git
make menuconfig
to configure the projectmake -j17
to build (change the number to however many cores your computer has +1)
- Install home-brew
- Install Anaconda
brew cask install anaconda
- Add Anaconda path to your bash profile. Just insert this line anywhere in your .zshrc or .bashprofile file within your user directory
export PATH=“/usr/local/anaconda3/bin:$PATH”
- Initialise Anaconda for whatever shell you are using.
conda init <SHELL_NAME>
You're probably using eitherbash
orzsh
e.g.conda init zsh
- Install CCACHE
brew install cache
- Create a Python 2 Environment
conda create -—name py2 python=2.7
- Activate that environment
conda activate py2
- Add Alias to make activating our environment a lot easier. Add this line to your .zshrc or .bashprofile file.
alias pyinit="conda deactivate && conda activate py2”
Now whenever we want to activate our python2 environment we simply have to callpyinit
To revert to our default environment, just useconda deactivate