Project

General

Profile

Actions

support #466

open

串口波特率921600支持

Added by zhanbin lin 5 days ago. Updated 1 day ago.

Status:
solved
Priority:
low priority
Assignee:
Start date:
05/22/2026
Due date:
% Done:

0%

Estimated time:

Description

客户外设雷达固定波特率为921600
需要修改K5C串口支持921600波特率


Files

Actions #1

Updated by zhanbin lin 1 day ago

补丁0001实现全志原串口支持921600波特率支持,未使用;
实际项目使用串口为USB-ch340串口,原ch340驱动精度较低921600波特率会有误码,所以需要更新驱动

commit 47f454ca3440120855f2782c7fa34191107ad9d6 (HEAD -> TeYuKeJi)
Author: Lin <zblin@kickpi.com>
Date:   Tue May 26 09:44:18 2026 +0800

    feat(ch341): backport ch341 usb-serial driver from linux 6.12
    
    - Replace legacy baudrate calculation (CH341_BAUDBASE_FACTOR) with 48MHz clock-based formula supporting 46~3000000 bps
    - Add full termios support: CS5-CS8, parity, stop bits, mark/space
    - Add chip version detection and quirk mechanism (CH341_QUIRK_LIMITED_PRESCALER, CH341_QUIRK_SIMULATE_BREAK)
    - Add simulated break condition for limited-function CH34x chips
    - Expand USB device ID table (6 entries vs 3)
    - Adapt APIs for kernel 4.9: usb_control_msg_recv->usb_control_msg, asm/unaligned.h, break_ctl void return, port_remove int return
    
    Co-Authored-By: Claude Code (deepseek-v4-pro) <noreply@anthropic.com>

Actions

Also available in: Atom PDF