Comments (6)
As my post generated a rather moderate interest, I tried hard to do my homework. I'm very grateful as I could learn a lot. :) However, this is a bad news for all of us. Since the BTR0 register only allows 6 bits for setting up BRP, it is impossible to set up frequencies below 50kbps because the ESP32 CAN bus controller (SJA1000 compatible) clock frequency is bound to the ESP32's APB clock frequency that is 80MHz. As the biggest BRP value could be only 0x3f, this renders any baudrates below "50E3" impossible.
This is a limitation of the hardware, not the library, but there's no point for 40E3, 20E3 and 10E3, in fact this is misleading as it looks like it supports CANopen however it isn't. I propose to remove those branches in the switch baudrate section in ESP32SJA1000.cpp and mention this somewhere in the code.
Pls also see https://esp32.com/viewtopic.php?t=2142
Cheers!
from arduino-can.
I propose to remove those branches in the switch baudrate section in ESP32SJA1000.cpp and mention this somewhere in the code.
@mister0wl would you like to make a pull request for this suggestion?
from arduino-can.
Well... I'm still learning Github but I'll try. Thanks!
from arduino-can.
Closed via #17.
from arduino-can.
Hi, I'm trying to do an obd reader with your same hardware (esp+sn65vh230) but I'm finding some difficulties to write right code. Im trying the examples but no one works. Could you please share yours? thanks in advance
from arduino-can.
@mister0wl
I'm trying to use your forked version.
I also need to use the baudrate at 33.3kbps with a newer ESP32 devkitc V4
What are the modifyRegister correct values?
Thanks!
from arduino-can.
Related Issues (20)
- Is this lib dead? HOT 6
- How can i use this library with a raspberry pi pico?
- Not getting messages
- ESP32 - only 1 extended filter working, is it possible to specify multiple filters? HOT 13
- Esp32 s3 support HOT 2
- Not working with Espressif 3.0 HOT 1
- 怎么知道数据有没有发送成功
- Esp32 multiple ID filter HOT 1
- CPU restart in callback HOT 1
- Working with MCP2515 on Arduino Nano, but fails on ESP32 HOT 2
- ESP32SJA1000Class::filterExtended mask calculation incorrect
- setup() and loop() functions are missing
- can i work with the MCP2515 SPI MODULE instead of the MKR can shield
- #warning esp_intr.h is deprecated HOT 1
- setPins() for rx/tx and cs/irq?
- ARDUINO_ARCH_ESP32 forcing ESP32 internal CAN controller - Need MC2515
- Custom MCP2515+TJA1042T board stuck on sending
- Error compiling with Adafruit Feather v2: `esp_intr.h: No such file or directory` HOT 1
- Fatal Error: esp_intr.h: No such file or directory HOT 3
- Solved: Fatal Error: esp_intr.h: No such file or directory HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-can.