Skip to content

esp32 s3 serial2 read out invalid value when data size is big #7027

Closed
@flybeyond

Description

@flybeyond

Board

ESP32S3 Dev Module

Device Description

plain module

Hardware Configuration

GPIO 17 18 as serial2

Version

v2.0.4

IDE Name

Arduino

Operating System

N/A

Flash frequency

40Hz

PSRAM enabled

no

Upload speed

921600

Description

I use esp32 s3 to read data from a cat1 module. when the module send out big data size say 1000, the read out value will be wrong after 200 bytes to 0xff. Use Serial2.setRxBufferSize(2048) will not resolve the issue.
You can see the debug message, full of 0xff which is not correct.

Sketch

none

Debug Message

15:25:02.443 -> d3 00 d0 43 25 a6 6d 5d fc 62 3f 80 24 15 28 06 00 00 00 00 20 20 41 00 67 7e 77 e7 7a 3a 2a 42 12 32 8a 3a 4a 78 e8 ad 25 91 9d 02 aa cc 50 50 2b bb 
15:25:02.443 -> bb 73 00 ab 91 51 a2 b0 09 4d 12 c4 25 a2 4e 07 c5 97 85 ce 17 7c 2c f8 68 e6 75 17 52 a3 d7 3a 3d f4 e4 e9 4b a9 2b 54 2e a1 7f d5 df a4 bf 49 60 89 
15:25:02.443 -> c0 57 82 38 9d 39 2d 32 66 40 3a 81 09 03 64 34 7c 67 d0 d6 20 fb f2 07 a4 38 b4 40 67 ff d1 06 75 a8 ee 71 ea ce cf 9d d6 f6 e4 f1 01 e1 fb c7 67 e4 
15:25:02.443 -> f4 de 80 1d 04 cb ef f1 2b a3 92 39 7f 9c a1 7e 83 f6 fd d7 c7 e6 3b cf 28 ae bc 75 d1 f3 62 7c 25 30 e0 8d c1 02 42 3c fe a9 af f8 ff ff ff ff ff ff 
15:25:02.475 -> ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 85 bf e2 b7 c3 70 72 0d ba ac 38 e1 c0 79 b9 81 ea d0 07 fb 83 da d4 bf 77 af be 09 6f 11 e0 6c 4a e1 
15:25:02.475 -> 01 34 12 3e ec e7 fb 73 eb e5 90 4f c3 cd 7d fe c5 f8 82 ef ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff fc 00 00 00 00 2d b6 ea 2b ba 9a ed a6 
15:25:02.475 -> cb 2e c3 08 e3 9a fc b3 be fb f0 d7 5b 6a b6 9a 31 ca eb 40 0f e7 79 0d 0a 0d 0a 4f 4b 0d 0a ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
15:25:02.500 -> ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
15:25:02.500 -> ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
15:25:02.500 -> ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
15:25:02.500 -> ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
15:25:02.500 -> ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
15:25:02.500 -> ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
15:25:02.500 -> ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

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