Skip to content

Possible regression of serial communication performance since version 2.x #7505

Closed
@awawa-dev

Description

@awawa-dev

Board

ESP32 dev module

Device Description

Board capable of 2Mb serial speed (CH9102x)

Hardware Configuration

nothing is connected

Version

v2.0.5

IDE Name

Arduino IDE, PlatformIO

Operating System

Windows, Linux

Flash frequency

default

PSRAM enabled

no

Upload speed

default

Description

As of version 2.x I observe possible performance regression compared to version 1.x when high-speed communication is used (2 000 000 baud). We verify the integrity of the frame data to make sure the frame is complete and undamaged.

Simplified sketch and python test client provided as an attachment. 'Esp32 dev module' with CH9102x

With version 1.0.6 was working fine.
image

Sending 900 bytes frames without any problem to ESP32 board. The reception is confirmed.

image

Since version 2.x the same sketch does not work anymore, which was first reported by our users and then confirmed by us after testing. We are unable to maintain such communication, all 900 byte frames are damaged or incomplete:

image

None of 900 byte frames is receive undamaged and completed.

image

It starts to work for ~600 byte frame but with high error rate:

image
client_and_sketch.zip

Sketch

Test client and sketch provided as an attachment in the description section.

Debug Message

not applicable since it's not a bug

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions