Coder Social home page Coder Social logo

Comments (6)

mister0wl avatar mister0wl commented on June 7, 2024 1

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.

sandeepmistry avatar sandeepmistry commented on June 7, 2024

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.

mister0wl avatar mister0wl commented on June 7, 2024

Well... I'm still learning Github but I'll try. Thanks!

from arduino-can.

sandeepmistry avatar sandeepmistry commented on June 7, 2024

Closed via #17.

from arduino-can.

ale1800 avatar ale1800 commented on June 7, 2024

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.

zalexzperez avatar zalexzperez commented on June 7, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.