MicroPython CAN bus for ESP32
Re: MicroPython CAN bus for ESP32
Great work! I'm really looking forward to using CAN is some ESP32-Wrover projects. Could you upload the binaries?
Re: MicroPython CAN bus for ESP32
Just confirmed loopback testing ok (rx/tx IO4, IO0) with the file esp32_can.py present in the example folder of fork
https://github.com/nos86/micropython
Make sure to select branch 'esp32-can-driver-harmonization' in the fork mentioned above to get the proper versions of the relevant files.
The binaries I compile are for the LilyGo board family, I'm not sure what's wanted concerning what gets compiled and linked in?
The board configs currently present in MP V1.13 (with uasyncio present) are
https://github.com/nos86/micropython
Make sure to select branch 'esp32-can-driver-harmonization' in the fork mentioned above to get the proper versions of the relevant files.
The binaries I compile are for the LilyGo board family, I'm not sure what's wanted concerning what gets compiled and linked in?
The board configs currently present in MP V1.13 (with uasyncio present) are
- GENERIC
- GENERIC_D2WD
- GENERIC_OTA
- GENERIC_SPIRAM
- TINY_PICO
-
- Posts: 35
- Joined: Sat Oct 26, 2019 8:38 pm
Re: MicroPython CAN bus for ESP32
WIP: esp32 CAN(TWAI) driver
https://github.com/micropython/micropython/pull/7381
https://github.com/micropython/micropython/pull/7381
Re: MicroPython CAN bus for ESP32
I think this might be useful
https://gitlab.com/librecube/lib/micropython-spacecan
https://gitlab.com/librecube/lib/micropython-spacecan
Re: MicroPython CAN bus for ESP32
ihornehrutsa I appreciate your working on the patch. I have built the firmware using your fork and have the machine CAN module loaded but I am having trouble to get anything to work. I have explored your updated documentation but I can't get the loopback to work, I just get timeouts on receive.ihornehrutsa wrote: ↑Tue Jun 22, 2021 6:12 amWIP: esp32 CAN(TWAI) driver
https://github.com/micropython/micropython/pull/7381
Do you have some simple examples using the new patch syntax I could try?
Thanks again,
Greg
-
- Posts: 35
- Joined: Thu Feb 13, 2020 10:10 pm
Re: MicroPython CAN bus for ESP32
I've read the topic, but I'm confused.
https://github.com/micropython/micropython/pull/7381
Pull request is open. That means that CAN is not officially supported yet, correct?
https://github.com/micropython/micropython/pull/7381
Pull request is open. That means that CAN is not officially supported yet, correct?