pierremolinaro / acan-esp32

An ESP32 CAN 2.0B library
MIT License
45 stars 16 forks source link

Create multi CAN BUS with the library! #17

Open hoanglongrs opened 2 days ago

hoanglongrs commented 2 days ago

Hello! The library worked perfectly with my ESP32 S3.

Can you share with me how to create the second CAN BUS on an ESP32 S3? Example: I created the first CAN BUS 1 at pin 4, 5, data rate 500 kps with the guide included in the library. Now I want to create another CAN BUS 2 at pin 6, 7, data rate 250 kps.

Thank!

pierremolinaro commented 2 days ago

Hello,

It is not possible. Pins actually inteface an embedded CAN controller, and there is only one CAN controller in the ESP32. The only way for getting a second CAN controller is to connect via SPI an external CAN controller, as MCP2515.

Pierre

Le 24 oct. 2024 à 09:57, hoanglongrs @.***> a écrit :

Hello! The library worked perfectly with my ESP32 S3.

Can you share with me how to create the second CAN BUS on an ESP32 S3? Example: I created the first CAN BUS 1 at pin 4, 5, data rate 500 kps with the guide included in the library. Now I want to create another CAN BUS 2 at pin 6, 7, data rate 250 kps.

Thank!

— Reply to this email directly, view it on GitHub https://github.com/pierremolinaro/acan-esp32/issues/17, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWKZVAETVMJVO36SFFHTPLZ5CR63AVCNFSM6AAAAABQQO6FFSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYYTANZYGM2DMMA. You are receiving this because you are subscribed to this thread.

hoanglongrs commented 2 days ago

Thank you!