Giter VIP home page Giter VIP logo

Comments (6)

Super169 avatar Super169 commented on August 22, 2024 2

I just find that it has already updated to disable interrupt in 9600 also.
Please refer to the commit 7077979

Old version:

m_highSpeed = speed > 9600;

New version:

m_intTxEnabled = speed < 9600;

Have you try the latest version already?

from espsoftwareserial.

VisarutR avatar VisarutR commented on August 22, 2024

Anyone can help me about this?

from espsoftwareserial.

Super169 avatar Super169 commented on August 22, 2024

I also encountered problem in 9600bps (with GPIO 14, 13), but it works fine in 115200bps.

I'm still studying if this is related to low speed communication, since the interrupt will be disabled during transmission only if m_highSpeed (m_highSpeed = speed > 9600;). i.e. the transmission can be interrupt for 9600bps. However, disable interrupt for low speed communication may have other impact as the transmission time is relatively long.

I'm not sure if it's really related to the interrupt setting, could you please try if your problem can be solve in other speed above 9600bps?

from espsoftwareserial.

VisarutR avatar VisarutR commented on August 22, 2024

Hi,
Thank you for your advice.

So, I have test with same scenario by send out data with baud rate(14400, 19200, 28800, 38400, 56000, 57600 and 115200) every 100ms for 5 minutes, all of them work fine.

That's meaning the problem occurs only 9600bps.
I have no choice to use other baud rate due to my connection device is using 9600bps.

from espsoftwareserial.

VisarutR avatar VisarutR commented on August 22, 2024

Previously, I installed SoftwareSerial from Arduino library manager, it provided SoftwareSerial v1.0.0 and cannot be upgrade.

I have to pull latest version from this git.
Currently it's working fine more than 10 mins.
I will test over the week and give feedback to you again.

from espsoftwareserial.

VisarutR avatar VisarutR commented on August 22, 2024

Hi,
I have test over a month with my full program.
Serial communication is looking good.
Once a week, still found some problem but not sure it's related with corruption or not.

from espsoftwareserial.

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.