Skip to content

Commit 198db4b

Browse files
committed
fix(serial): limit throughput test max_size to 512
Reduce upload probe max_size from 4096 to 1024 to avoid triggering UART DMA Bus Fault on BES O62 when buffer is near capacity. Signed-off-by: VIFEX <vifextech@foxmail.com>
1 parent 92a849a commit 198db4b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Tools/WebServer/core/serial_protocol.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ def _phase_fragment_probe(self, timeout: float = 2.0) -> Dict:
806806
return result
807807

808808
def _phase_upload_probe(
809-
self, start_size: int = 16, max_size: int = 4096, timeout: float = 2.0
809+
self, start_size: int = 16, max_size: int = 512, timeout: float = 2.0
810810
) -> Dict:
811811
"""Phase 2: Find the device shell receive buffer limit (upload direction).
812812
@@ -982,7 +982,7 @@ def _phase_download_probe(
982982
return result
983983

984984
def test_serial_throughput(
985-
self, start_size: int = 16, max_size: int = 4096, timeout: float = 2.0
985+
self, start_size: int = 16, max_size: int = 512, timeout: float = 2.0
986986
) -> Dict:
987987
"""Test serial throughput with 3-phase probing.
988988

Tools/WebServer/static/js/features/fpb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async function fpbTestSerial() {
5353
headers: { 'Content-Type': 'application/json' },
5454
body: JSON.stringify({
5555
start_size: 16,
56-
max_size: 4096,
56+
max_size: 512,
5757
timeout: 2.0,
5858
}),
5959
});

0 commit comments

Comments
 (0)