← index #5087Issue #5845
Related · high · value 0.266
QUERY · ISSUE

[ESP32] CAN bus and MOD bus master RTU.

openby beyonloopened 2019-09-09updated 2024-10-01
enhancementport-esp32

Hello.

  1. Are there support or plans to support CAN bus on ESP32? I see that there are a implementation for pyboard https://docs.micropython.org/en/latest/library/pyb.CAN.html - is that a similar implementation on the ESP32?

  2. And about the MOD bus master RTU on micropython?
    I think that, differently of CAN bus, MOD bus implementation is not a microcontroller dependent, just works over UART, is that correct?
    I not found a implementation for the modbus master RTU in micropython libs and so on, anyone know if are there a third lib for that?

Thank you so much.

CANDIDATE · ISSUE

How to enable CAN bus support on NUCLEO_F091RC

closedby CCHLENGopened 2020-03-30updated 2020-03-31

Hi!
I am using NUCLEO_F091RC, deu to its flash memory and SRAM, it may not perform some complex calculations. But it provide many interfaces at a low cost.
It has: I2C、USARTs、SPI、CAN bus. Now i can use these interfaces with micropython except CAN bus. I have tried to build the firmware by adding following codes in mpconfigboard.h :

#define MICROPY_HW_ENABLE_CAN      (1)

#define MICROPY_HW_CAN1_TX (pin_PA11)
#define MICROPY_HW_CAN1_RX (pin_PA12)

But I meet some error when I build the firmware : (
I think I can't simply add some #define to enable the CAN bus on NUCLEO_F091RC.
Is there a way to change some files to enable the CAN bus?

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied