Serial bus communication multiplexing device and method based on baud rate listening and switching mechanism

By using a serial bus communication multiplexing device based on a baud rate listening and switching mechanism, the communication subject can be automatically identified and switched using a programmable logic chip. This solves the problems of manual intervention and resource consumption in the existing technology, and realizes transparent transmission and differentiated baud rate configuration, adapting to the efficient interaction of multiple communication subjects.

CN123115018APending Publication Date: 2026-11-17CHINESE PEOPLES LIBERATION ARMY UNIT 93114
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610925592.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-25
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Existing serial bus multiplexing technologies require manual intervention, protocol modification, or processor resource consumption. They cannot automatically identify the communication subject and dynamically switch transmission channels, and they cannot support differentiated baud rate configurations.

Method used

A serial bus communication multiplexing device based on baud rate listening and switching mechanism is adopted. It listens to the serial bus input signal in parallel through a programmable logic chip, decodes and compares the handshake message to generate a communication subject identifier, and switches channels at frame boundary moments to achieve hardware-level automatic identification and transparent transmission.

Benefits of technology

It enables automatic identification of communication subjects, dynamic switching of transmission channels, and supports differentiated baud rate configurations without requiring protocol modifications. It ensures data frame integrity and a low probability of false identification, and adapts to flexible interactions between different communication subjects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123115018A_ABST
    Figure CN123115018A_ABST
Patent Text Reader

Abstract

This invention discloses a serial bus communication multiplexing device based on a baud rate listening and switching mechanism, comprising: a serial bus physical interface, including a serial bus transceiver, whose transmit and receive data lines are connected to the first set of I / O pins of a programmable logic chip for bidirectional data interaction with a host computer; N communication main interfaces, including transmit and receive data lines of N communication mains, respectively connected to the N sets of independent I / O pins of the programmable logic chip, each communication main being configured with N different agreed baud rates; and a programmable logic chip configured to: listen to the input signals of the serial bus physical interface in parallel, decode and compare the handshake messages of each communication main at the N agreed baud rates, generate a communication main identifier after matching, and establish a bidirectional data path between the serial bus physical interface and the corresponding communication main interface at the frame boundary time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of embedded system communication technology; and more particularly to a serial bus communication multiplexing device and method based on a baud rate listening switching mechanism. Background Technology

[0002] In embedded system design, multiprocessor architectures are widely used in industrial control, data acquisition, and communication equipment. Each processor typically interacts with a host computer or maintenance terminal via a serial bus (UART, RS-232, RS-485, etc.). However, due to limitations in device physical size, connector pin count, and cost control, external maintenance interfaces often only provide a single physical port.

[0003] Existing serial bus multiplexing technology has the following drawbacks: Manual switching solution: Relies on mechanical switches or jumpers, requires manual intervention, cannot achieve automatic identification, and is prone to communication failure due to misoperation.

[0004] Protocol layer address identification scheme: requires all devices to use a uniform baud rate, cannot be configured differently according to service characteristics, and requires modification of the communication protocol, introducing software overhead and compatibility issues.

[0005] The software parsing scheme distributes data after it is parsed by the processor, which consumes main control resources and has a large delay, resulting in poor real-time performance.

[0006] Therefore, there is an urgent need for a serial bus multiplexing technology that can automatically identify the communication subject, dynamically switch transmission channels, support differentiated baud rate configurations, and require no protocol modification. Summary of the Invention

[0007] Based on the above analysis, the present invention aims to disclose a serial bus communication multiplexing device and method based on a baud rate listening switching mechanism; to solve the problems of manual intervention, protocol modification or processor resource occupation required for serial bus multiplexing in the prior art, and to achieve hardware-level automatic identification and transparent transmission.

[0008] This invention discloses a serial bus communication multiplexing device based on a baud rate listening switching mechanism, comprising: The serial bus physical interface includes a serial bus transceiver, whose transmit and receive data lines are connected to the first set of I / O pins of the programmable logic chip for bidirectional data interaction with the host computer. The N-channel communication interface includes N transmit and receive data lines for each communication entity, which are respectively connected to N independent I / O pins of the programmable logic chip. Each communication entity is configured with N different agreed baud rates. Programmable logic chips are configured as follows: The system listens to the input signals of the serial bus physical interface in parallel, decodes and compares the handshake messages of each communication subject at N agreed baud rates, generates a communication subject identifier after matching, and establishes a bidirectional data path between the serial bus physical interface and the corresponding communication subject interface at the frame boundary time.

[0009] Furthermore, the programmable logic chip includes a baud rate monitoring module and a channel switching control module; The baud rate listening module listens to the input signals of the serial bus physical interface in parallel at N agreed baud rates, compares the decoded data with the handshake messages preset by each communication subject, and generates a communication subject identifier after a successful match. The channel switching control module controls the path switching at frame boundary moments based on the communication subject identifier, thereby establishing a bidirectional data connection between the serial bus physical interface and the target communication subject interface.

[0010] Furthermore, the baud rate monitoring module includes: N agreed baud rate decoding submodules, N channel handshake message confirmation submodules, and a channel confirmation submodule; Each agreed baud rate decoding submodule performs oversampling decoding on the input signal using an independent sampling clock and outputs the decoded data to the corresponding channel handshake message confirmation submodule. Each channel handshake message confirmation submodule uses a byte-by-byte sliding window comparison algorithm to compare the decoded data with the preset handshake message. Once a match is found, a channel matching signal is output. The channel confirmation submodule receives the matching signal output by the handshake message confirmation submodule of each channel, generates a communication subject identifier, and outputs it to the channel switching control module.

[0011] Furthermore, the agreed baud rate decoding submodule includes: an oversampling clock generation unit, a start bit detection unit, and a data bit extraction unit; The oversampling clock generation unit generates a sampling clock of M times the target baud rate based on the frequency division of the system master clock; The start bit detection unit uses falling edge detection combined with a majority voting algorithm to determine the valid start bit. The data bit extraction unit samples data at the center position of each bit and determines the logical value through a 2-out-of-3 majority voting mechanism.

[0012] Furthermore, the channel handshake message confirmation submodule includes: a byte receiving FIFO unit, a byte-by-byte comparator array, and a matching state machine unit; The byte receiving FIFO unit buffers the decoded data output by the agreed baud rate decoding submodule; The byte-by-byte comparator array performs parallel byte-by-byte comparisons between the data in the FIFO and the preset handshake message. The matching state machine unit includes five states: "idle - receive - compare - confirm - lock". It outputs a channel matching signal and locks the channel identifier only after a complete match is completed, and starts a timeout timer at the same time.

[0013] Furthermore, the channel switching control module includes a multi-channel data selection submodule and a switching timing control submodule; The multi-channel data selection submodule adopts an N:1 bidirectional transmission structure. In the uplink direction, it aggregates the data of the selected communication main interface to the serial bus physical interface, and in the downlink direction, it distributes the data of the serial bus physical interface to the selected communication main interface. The switching timing control sub-module detects the frame boundary time, triggers path switching at the end of the stop bit, and inserts a guard interval.

[0014] Furthermore, the switching timing control submodule includes: a frame boundary detection unit, a switching latch unit, and a glitch suppression unit; The frame boundary detection unit monitors the data transmission status and identifies the end time of the stop bit as the switching trigger point. The switching latch unit latches the new channel selection signal at the trigger point to ensure data integrity at the switching moment; The glitch suppression unit inserts a protection interval before and after switching, and the switching delay is less than one bit cycle.

[0015] Furthermore, the baud rate monitoring module also includes a timeout backoff submodule; The timeout rollback submodule starts a timer after channel confirmation. During the timeout period, it blocks the matching signals of other channels. If the current channel has no data for more than a threshold, it clears the communication subject identifier and causes the channel switching control module to roll back to the default communication subject interface.

[0016] Furthermore, it also includes a configuration storage module and an online reconfiguration interface; The configuration storage module stores the baud rate parameters, handshake message content, and default communication subject identifier for each communication subject; The online reconfiguration interface supports dynamic modification of configuration parameters via JTAG, SPI, or I2C bus.

[0017] Another aspect of the present invention discloses a serial bus communication multiplexing method based on a baud rate listening switching mechanism, which uses the serial bus communication multiplexing device based on the baud rate listening switching mechanism described above to perform the following steps: Interface configuration steps: Connect the transmit and receive data lines of the serial bus transceiver to the first group of IO pins of the programmable logic chip, and connect the transmit and receive data lines of the N communication subjects to the N independent groups of IO pins of the programmable logic chip respectively. Configure N different agreed baud rates for each communication subject. Baud rate listening step: The programmable logic chip listens to the input signal of the serial bus transceiver in parallel, decodes it at N agreed baud rates, compares the decoded data with the handshake message preset by each communication subject, and generates a communication subject identifier after a successful match; Channel switching steps: Based on the communication subject identifier, a bidirectional data path is established between the serial bus transceiver and the target communication subject at the frame boundary time to realize uplink data forwarding and downlink data distribution.

[0018] Compared with traditional methods, the present invention has the following technical advantages: This invention breaks through the limitation of traditional multiplexing technology that forces all communication entities to adopt a uniform baud rate, and uses the baud rate itself as an identifier for the communication entity. Each entity configures the optimal baud rate according to its business needs, which not only meets the high-speed transmission requirements of high data volume services, but also ensures the stability of low-speed services, realizing a flexible configuration of "one thing, one speed". This invention implements multi-channel parallel hardware decoding within programmable logic. Each decoder operates independently, employing 16x oversampling and a 2 / 3 majority voting mechanism to improve anti-interference capabilities. The subsequent handshake message confirmation submodule implements hardware-level authentication through a byte-by-byte sliding window comparison algorithm, confirming the channel only when both the baud rate and handshake message match, resulting in a low probability of false identification. ; This invention employs a frame boundary-triggered mechanism for channel switching, performing the switch at the end of the current byte's stop bit, with a switching delay of less than one bit cycle. Compared to traditional byte truncation schemes, this invention ensures data frame integrity, achieving true "transparent transmission," allowing the host computer software to interact with different communication entities without any modifications. Attached Figure Description

[0019] The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Throughout the drawings, the same reference numerals denote the same parts. Figure 1 This is a schematic diagram showing the connection of the serial bus communication multiplexing device in an embodiment of the present invention; Figure 2 This is a schematic diagram showing the connection of the baud rate monitoring module in an embodiment of the present invention; Figure 3 This is a flowchart of the serial bus communication multiplexing method in an embodiment of the present invention. Detailed Implementation

[0020] Preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings, which form part of this application and, together with the embodiments of the present invention, serve to illustrate the principles of the present invention.

[0021] Example 1 One embodiment of the present invention discloses a serial bus communication multiplexing device based on a baud rate listening switching mechanism, such as... Figure 1 As shown, it includes: The serial bus physical interface 100 includes a serial bus transceiver 101, whose transmit and receive data lines are connected to the first set of IO pins of the programmable logic chip for bidirectional data interaction with the host computer. The serial bus transceiver 101 is connected between the host computer's serial bus multiplexing port and the programmable logic chip 300 via a serial bus. The serial bus transceiver 101 uses a level conversion chip such as MAX232 or MAX485, and its transmit data line TxD and receive data line RxD are connected to the first set of IO pins (such as IO_0 and IO_1) of the programmable logic chip 300. The serial bus can be an RS-232, RS-485, or TTL level UART interface. The N-channel communication interface 200 includes N transmit and receive data lines for the communication entities, which are respectively connected to N independent I / O pins of the programmable logic chip. Each communication entity is configured with N different agreed baud rates. The N-channel communication interface 200 includes N communication entities 201, 202...20N (such as microprocessors MCU1, MCU2...MCUN). The transmit and receive data lines of each communication entity are connected to N independent I / O pins of the programmable logic chip 300. For example, communication entity 201 is connected to I / O_2 and I / O_3, communication entity 202 is connected to I / O_4 and I / O_5, and so on.

[0022] The differentiated baud rate of each communication entity is configured according to the data throughput requirements. Entities with high data volume are configured with high baud rates, and entities with low data volume are configured with low baud rates. Each baud rate corresponds to a unique binary identifier bit.

[0023] For example, communication entity 201 is configured with 9600bps, communication entity 202 with 115200bps, and communication entity 203 with 230400bps. The unique binary identifier for each baud rate can be, for example, a 2-bit binary code (01, 10, 11).

[0024] Programmable logic chip 300 is configured as follows: The system listens to the input signals of the serial bus physical interface 100 in parallel, decodes and compares the handshake messages of each communication subject at N agreed baud rates, generates a communication subject identifier after matching, and establishes a bidirectional data path between the serial bus physical interface 100 and the corresponding communication subject interface 200 at the frame boundary time.

[0025] Among them, the programmable logic chip 300 (such as FPGA or CPLD) implements the configured functions through a hardware description language (Verilog or VHDL).

[0026] Specifically, the programmable logic chip 300 includes a baud rate monitoring module 310 and a channel switching control module 320; The baud rate listening module 310 listens to the input signals of the serial bus physical interface in parallel at N agreed baud rates, compares the decoded data with the handshake messages preset by each communication subject, and generates a communication subject identifier after a successful match. The channel switching control module 320 controls the path switching at frame boundary moments based on the communication subject identifier, and establishes a bidirectional data connection between the serial bus physical interface and the target communication subject interface.

[0027] More specifically, The baud rate monitoring module 310 includes N agreed baud rate decoding submodules 311, N channel handshake message confirmation submodules 312, and a channel confirmation submodule 313.

[0028] The agreed baud rate decoding submodule 311 performs oversampling decoding on the input signal using an independent sampling clock; and outputs the decoded data to the corresponding channel handshake message confirmation submodule. The decoding submodule 311 includes an oversampling clock generation unit, a start bit detection unit, and a data bit extraction unit; The oversampling clock generation unit generates a sampling clock M times (usually M=16) of the target baud rate based on the system master clock (e.g., 50MHz) through frequency division. For example, for a baud rate of 9600bps, it generates a sampling clock of 153.6kHz; for a baud rate of 115200bps, it generates a sampling clock of 1.8432MHz. The start bit detection unit uses falling edge detection combined with a majority voting algorithm to determine the valid start bit. When the data line is detected to change from high level to low level (falling edge), multiple sampling points are continuously collected. If the proportion of low level exceeds a threshold (e.g., 2 / 3), it is determined to be a valid start bit. The data bit extraction unit samples data at the center position of each bit (i.e., the 8th sampling point after the start bit, for 16 times oversampling) and determines the logical value through a 3-out-of-2 majority voting mechanism to improve anti-interference capability.

[0029] The channel handshake message confirmation submodule 312 uses a byte-by-byte sliding window comparison algorithm to compare the decoded data with the preset handshake message. After the match is successful, the channel matching signal is output. Each channel handshake message acknowledgment submodule 312 includes a byte receive FIFO unit, a byte-by-byte comparator array, and a matching state machine unit.

[0030] The byte receive FIFO unit buffers the decoded data output by the agreed baud rate decoding submodule 311. The FIFO depth is equal to the handshake message length (e.g., 8 bytes). A byte-by-byte comparator array compares the data in the FIFO with the preset handshake messages byte by byte in parallel. For example, the preset handshake messages are a fixed array: 0xEB, 0x90, 0xF1, 0x11, 0x22, 0x33, 0x44, 0xAA. The handshake messages for each channel are unique and do not match each other. The matching state machine unit includes five states: "Idle," "Receive," "Compare," "Confirm," and "Lock." The state machine starts in the "Idle" state. Upon receiving a byte, it transitions to the "Receive" state, shifting the byte into the FIFO. When the FIFO is full, it transitions to the "Compare" state, initiating parallel comparison. If all bytes match, it transitions to the "Confirm" state, outputting a channel matching signal. It then enters the "Lock" state, locking the channel identifier and starting a timeout timer to prevent interference from other channels.

[0031] The channel confirmation submodule 313 receives the matching signal output by the handshake message confirmation submodule 312 of each channel, generates a communication subject identifier and outputs it to the channel switching control module 320; Specifically, the channel confirmation submodule 313 generates a communication subject identifier (such as a 2-bit binary code: 01, 10, 11) through priority arbitration, including fixed priority or polling priority.

[0032] In addition, the baud rate monitoring module 310 also includes a timeout rollback submodule 314. The timeout rollback submodule starts a timer (e.g., 100ms) after channel confirmation, and blocks matching signals from other channels during the timeout period to ensure the integrity of the current communication. If the current channel remains without data for more than a threshold time, the communication subject identifier is cleared, causing the channel switching control module 320 to roll back to the default communication subject interface (e.g., communication subject 201).

[0033] Specifically, the channel switching control module 320 includes a multi-channel data selection submodule and a switching timing control submodule; The multi-channel data selection submodule 321 adopts an N:1 bidirectional transmission structure. In the uplink direction (communication subject → serial bus), it aggregates the data of the selected communication subject interface 200 to the serial bus physical interface 100. In the downlink direction (serial bus → communication subject), it distributes the data of the serial bus physical interface 100 to the selected communication subject interface 200. The data selector that specifically implements the module function can be implemented by a tri-state gate or a multiplexer.

[0034] The switching timing control sub-module detects frame boundary moments, triggers path switching at the end of the stop bit, and inserts a guard interval.

[0035] The switching timing control submodule includes a frame boundary detection unit, a switching latch unit, and a glitch suppression unit; The frame boundary detection unit monitors the data transmission status and identifies the end time of the stop bit of the currently transmitted byte as the switching trigger point. For the UART protocol, the stop bit is high, and a trigger pulse is generated when the end of the stop bit is detected (falling edge or low-level start bit after a sustained high level).

[0036] The switching latch unit latches a new channel selection signal (i.e., the communication subject identifier generated by the baud rate listening module 310) at the trigger point to ensure data integrity at the switching moment and avoid data truncation caused by switching during byte transmission.

[0037] The glitch suppression unit inserts a protection interval (e.g., 1-2 bit cycles) before and after switching. It controls the brief shutdown of the data path by an enable signal to prevent the transmission of glitch signals at the moment of switching and ensure that the switching delay is less than 1 bit cycle.

[0038] Preferably, the device further includes a configuration storage module and an online reconfiguration interface.

[0039] The configuration storage module can use the Block RAM inside the FPGA or an external EEPROM to store the baud rate parameters (such as the frequency division coefficient), handshake message content (8-byte array), and default communication subject identifier (2-bit encoding) of each communication subject.

[0040] The online reconfiguration interface supports dynamic modification of configuration parameters via JTAG, SPI, or I2C bus. For example, a new baud rate configuration can be downloaded from the host computer via the SPI interface without recompiling and programming the FPGA program, improving system flexibility and maintainability.

[0041] The serial bus communication multiplexing method using the serial bus communication multiplexing device provided in this embodiment includes: Step S1, Interface Configuration Steps: Connect the transmit and receive data lines of the serial bus transceiver to the first group of IO pins of the programmable logic chip, and connect the transmit and receive data lines of the N communication subjects to the N independent IO pins of the programmable logic chip respectively. Configure N different agreed baud rates for each communication subject. Step S2, Baud Rate Listening Step: The programmable logic chip listens to the input signal of the serial bus transceiver in parallel, decodes it at N agreed baud rates, compares the decoded data with the handshake message preset by each communication subject, and generates a communication subject identifier after a successful match. Step S3, Channel Switching Step: Based on the communication subject identifier, a bidirectional data path is established between the serial bus transceiver and the target communication subject at the frame boundary time to realize uplink data forwarding and downlink data distribution.

[0042] Preferably, it further includes: Step S4: Timeout rollback step; After the communication subject identifier is generated, a timer is started, and the matching signals of other channels are blocked within the timeout period; If the current channel has no data for a continuous period exceeding the threshold, the communication subject identifier is cleared and the system rolls back to the default communication subject.

[0043] In practice, when the host computer needs to communicate with a certain communication entity (such as MCU2), the host computer sends data at the baud rate corresponding to MCU2 (such as 115200bps). The data enters the programmable logic chip via the serial bus transceiver. N predefined baud rate decoding submodules within the programmable logic chip operate simultaneously, but only the decoding submodule configured for 115200bps can correctly decode the data. The decoded data enters the corresponding channel handshake message confirmation submodule and is compared with the handshake message preset by MCU2. If the first 8 bytes of the data completely match the handshake message, the channel confirmation submodule generates an identifier for MCU2 (e.g., 10) and sends it to the channel switching control module. The switching timing control submodule triggers the switching at the end of the current byte's stop bit, and the multi-channel data selection submodule establishes a bidirectional path between the host computer and MCU2. During subsequent data transmission, the timeout rollback submodule continuously monitors the process. If MCU2 does not respond for an extended period, it automatically rolls back to the default channel and waits for a new communication request.

[0044] In summary, the apparatus and method of this embodiment break through the limitation of traditional multiplexing technology that forces all communication subjects to adopt a uniform baud rate, and use the baud rate itself as an identifier for the communication subject. Each subject configures the optimal baud rate according to its service needs, which not only meets the high-speed transmission requirements of high data volume services, but also ensures the stability of low-speed services, realizing a flexible configuration of "one thing, one speed". Multi-channel parallel hardware decoding is implemented within programmable logic. Each decoder operates independently, employing 16x oversampling and a 2 / 3 majority voting mechanism to improve anti-interference capabilities. The subsequent handshake message acknowledgment submodule implements hardware-level authentication through a byte-by-byte sliding window comparison algorithm, confirming the channel only when both the baud rate and handshake message match, resulting in a low probability of false identification. ; Channel switching employs a frame boundary triggered mechanism, performing the switch at the end of the current byte's stop bit, with a switching delay of less than one bit cycle. Compared to traditional byte truncation schemes, this ensures data frame integrity and achieves true "transparent transmission," allowing the host computer software to interact with different communication entities without any modifications.

[0045] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention.

Claims

1. A serial bus communication multiplexing apparatus based on a baud rate sniffing switching mechanism, characterized by, include: The serial bus physical interface includes a serial bus transceiver, whose transmit and receive data lines are connected to the first set of I / O pins of the programmable logic chip for bidirectional data interaction with the host computer. The N-channel communication interface includes N transmit and receive data lines for each communication entity, which are respectively connected to N independent I / O pins of the programmable logic chip. Each communication entity is configured with N different agreed baud rates. Programmable logic chips are configured as follows: The system listens to the input signals of the serial bus physical interface in parallel, decodes and compares the handshake messages of each communication subject at N agreed baud rates, generates a communication subject identifier after matching, and establishes a bidirectional data path between the serial bus physical interface and the corresponding communication subject interface at the frame boundary time.

2. The serial bus communication multiplexing device based on baud rate monitoring and switching mechanism according to claim 1, characterized in that, The programmable logic chip includes a baud rate monitoring module and a channel switching control module; The baud rate listening module listens to the input signals of the serial bus physical interface in parallel at N agreed baud rates, compares the decoded data with the handshake messages preset by each communication subject, and generates a communication subject identifier after a successful match. The channel switching control module controls the path switching at frame boundary moments based on the communication subject identifier, thereby establishing a bidirectional data connection between the serial bus physical interface and the target communication subject interface.

3. The serial bus communication multiplexing device based on baud rate monitoring and switching mechanism according to claim 2, characterized in that, The baud rate monitoring module includes: N agreed baud rate decoding submodules, N channel handshake message confirmation submodules, and a channel confirmation submodule; Each agreed baud rate decoding submodule performs oversampling decoding on the input signal using an independent sampling clock and outputs the decoded data to the corresponding channel handshake message confirmation submodule. Each channel handshake message confirmation submodule uses a byte-by-byte sliding window comparison algorithm to compare the decoded data with the preset handshake message. Once a match is found, a channel matching signal is output. The channel confirmation submodule receives the matching signal output by the handshake message confirmation submodule of each channel, generates a communication subject identifier, and outputs it to the channel switching control module.

4. The serial bus communication multiplexing device based on baud rate monitoring and switching mechanism according to claim 3, characterized in that, The agreed baud rate decoding submodule includes: an oversampling clock generation unit, a start bit detection unit, and a data bit extraction unit; The oversampling clock generation unit generates a sampling clock of M times the target baud rate based on the frequency division of the system master clock; The start bit detection unit uses falling edge detection combined with a majority voting algorithm to determine the valid start bit. The data bit extraction unit samples data at the center position of each bit and determines the logical value through a 2-out-of-3 majority voting mechanism.

5. The serial bus communication multiplexing device based on baud rate monitoring and switching mechanism according to claim 3, characterized in that, The channel handshake message confirmation submodule includes: a byte receiving FIFO unit, a byte-by-byte comparator array, and a matching state machine unit; The byte receiving FIFO unit buffers the decoded data output by the agreed baud rate decoding submodule; The byte-by-byte comparator array performs parallel byte-by-byte comparisons between the data in the FIFO and the preset handshake message. The matching state machine unit includes five states: "idle - receive - compare - confirm - lock". It outputs a channel matching signal and locks the channel identifier only after a complete match is completed, and starts a timeout timer at the same time.

6. The serial bus communication multiplexing device based on baud rate monitoring and switching mechanism according to claim 2, characterized in that, The channel switching control module includes a multi-channel data selection submodule and a switching timing control submodule; The multi-channel data selection submodule adopts an N:1 bidirectional transmission structure. In the uplink direction, it aggregates the data of the selected communication main interface to the serial bus physical interface, and in the downlink direction, it distributes the data of the serial bus physical interface to the selected communication main interface. The switching timing control sub-module detects the frame boundary time, triggers path switching at the end of the stop bit, and inserts a guard interval.

7. The serial bus communication multiplexing device based on baud rate monitoring and switching mechanism according to claim 6, characterized in that, The switching timing control submodule includes: a frame boundary detection unit, a switching latch unit, and a glitch suppression unit; The frame boundary detection unit monitors the data transmission status and identifies the end time of the stop bit as the switching trigger point. The switching latch unit latches the new channel selection signal at the trigger point to ensure data integrity at the switching moment; The glitch suppression unit inserts a protection interval before and after switching, and the switching delay is less than one bit cycle.

8. The serial bus communication multiplexing device based on baud rate monitoring and switching mechanism according to claim 2, characterized in that, The baud rate monitoring module also includes a timeout backoff submodule; The timeout rollback submodule starts a timer after channel confirmation. During the timeout period, it blocks the matching signals of other channels. If the current channel has no data for more than a threshold, it clears the communication subject identifier and causes the channel switching control module to roll back to the default communication subject interface.

9. The serial bus communication multiplexing device based on baud rate monitoring and switching mechanism according to claim 1, characterized in that, It also includes a configuration storage module and an online reconfiguration interface; The configuration storage module stores the baud rate parameters, handshake message content, and default communication subject identifier for each communication subject; The online reconfiguration interface supports dynamic modification of configuration parameters via JTAG, SPI, or I2C bus.

10. A method of multiplexing serial bus communications based on a baud rate sniffing switching mechanism, characterized by, Using the serial bus communication multiplexing device based on the baud rate listening switching mechanism as described in any one of claims 1-9, perform the following steps: Interface configuration steps: Connect the transmit and receive data lines of the serial bus transceiver to the first group of IO pins of the programmable logic chip, and connect the transmit and receive data lines of the N communication subjects to the N independent groups of IO pins of the programmable logic chip respectively. Configure N different agreed baud rates for each communication subject. Baud rate listening step: The programmable logic chip listens to the input signal of the serial bus transceiver in parallel, decodes it at N agreed baud rates, compares the decoded data with the handshake message preset by each communication subject, and generates a communication subject identifier after a successful match; Channel switching steps: Based on the communication subject identifier, a bidirectional data path is established between the serial bus transceiver and the target communication subject at the frame boundary time to realize uplink data forwarding and downlink data distribution.