Page 2 of 2

Re: MicroPython CAN bus for ESP32

Posted: Fri Mar 05, 2021 10:29 am
by dnhkng
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

Posted: Sat Mar 06, 2021 8:41 pm
by wthie
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
  • GENERIC
  • GENERIC_D2WD
  • GENERIC_OTA
  • GENERIC_SPIRAM
  • TINY_PICO

Re: MicroPython CAN bus for ESP32

Posted: Tue Jun 22, 2021 6:12 am
by ihornehrutsa

Re: MicroPython CAN bus for ESP32

Posted: Tue Jun 22, 2021 6:45 pm
by Shayan

Re: MicroPython CAN bus for ESP32

Posted: Thu Jun 24, 2021 4:11 am
by gregger2k
ihornehrutsa wrote:
Tue Jun 22, 2021 6:12 am
WIP: esp32 CAN(TWAI) driver
https://github.com/micropython/micropython/pull/7381
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.

Do you have some simple examples using the new patch syntax I could try?

Thanks again,
Greg

Re: MicroPython CAN bus for ESP32

Posted: Mon Nov 29, 2021 8:18 pm
by thalesmaoa
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?