Serial communication security system and serial communication method

By employing a heterogeneous design for the serial communication security system, the problems of detection blind spots and insufficient anti-interference robustness in existing technologies are solved, achieving highly reliable protection, low latency, and low cost serial communication, which is suitable for integrated circuit design.

CN123158632APending Publication Date: 2026-11-24FEIQING CONTROL SYSTEM (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611383124.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-08
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing serial communication solutions cannot simultaneously meet the multiple requirements of high reliability protection, low latency, low cost and IP-based multiplexing, and have problems such as detection blind spots and insufficient anti-interference robustness.

Method used

A serial communication security system is designed. Through the heterogeneous design of the main communication path module and the security monitoring engine, an independent detection path is constructed to realize the heterogeneity of the physical layer, circuit layer, sampling layer and algorithm layer. Combined with the verification and comparison module and the configuration and status register group, a complete serial communication security system is formed.

Benefits of technology

It achieves a balance between high reliability protection capabilities and native real-time communication, reduces system costs, improves protection robustness and design reusability, and has strong scenario adaptability and configuration flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158632A_ABST
    Figure CN123158632A_ABST
Patent Text Reader

Abstract

This invention provides a serial communication security system and method. A main communication path module performs standard serial communication transmission and reception. A security monitoring engine, heterogeneous with the main communication path module at the physical layer, circuit layer, sampling layer, and algorithm layer, constructs an independent detection path completely decoupled from the main link and analyzes physical layer signals to output security monitoring results. A verification and comparison module performs consistency comparison and reliability determination based on the main path parsing data / main path transmitted data records output by the main communication path module and the monitoring path parsing data and security monitoring results output by the security monitoring engine. Status and data interaction is achieved through configuration with the status register group and bus slave device interface module, enabling control and status reading of the serial communication security system. This method ensures data transmission reliability and protection capabilities, reduces system costs, and improves protection robustness and design reusability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of integrated circuit intellectual property core design and information security technology, and in particular to a serial communication security system and a serial communication method. Background Technology

[0002] Serial communication interfaces (RS-232, RS-422, RS-485, UART, etc.) are widely used in industrial control, aerospace, rail transportation, power systems, medical equipment, and other fields due to their advantages such as simple structure, low cost, strong anti-interference capability, and long transmission distance. In current integrated circuit design, serial communication interfaces are mostly integrated into various SoCs, security chips, and application-specific integrated circuits in the form of reusable IP cores. They are core components of on-chip peripheral IPs, and their transmission reliability and protection capabilities directly determine the overall operational stability of the system.

[0003] According to IDC statistics, in 2024, security incidents and transmission failures caused by serial communication interfaces accounted for 37% of global industrial control systems, and this figure is increasing year by year. On the one hand, traditional general-purpose serial communication interface IP cores are designed with only basic data transmission functions in mind, lacking built-in anomaly detection and protection capabilities. They generally rely solely on link-layer mechanisms such as parity checks and CRC checks to ensure data integrity. These checks can only identify random transmission errors. For maliciously constructed data frames, attackers can simultaneously calculate matching check values, ensuring the link-layer checks pass completely, thereby enabling attacks such as data injection and instruction tampering. This poses a serious threat in high-reliability scenarios such as industrial control and avionics. On the other hand, in complex electromagnetic environments, common-mode noise and electromagnetic pulse interference not only cause serial data transmission errors but also simultaneously affect the same source and structure of the protection and detection links, leading to misjudgments, missed detections, or even attacks that allow attackers to bypass protection through interference.

[0004] To address the issues of data transmission reliability and anomaly protection in serial communication, existing technologies have mainly developed five mainstream implementation schemes: 1. Dual-chip discrete security solution: This solution features a discrete architecture with a main control chip and a dedicated monitoring chip. The main control chip integrates a general-purpose serial port IP to handle normal communication and business processing, while the dedicated monitoring chip is responsible for bypassing serial port data acquisition and anomaly detection. The two chips exchange status and detection results through peripheral interfaces such as SPI and UART. At the same time, CRC check is used at the link layer and parity check is used at the physical layer as basic verification methods. This is the most widely used protection implementation method in the current industrial field.

[0005] 2. Board-level electrical protection solution: This solution is a common passive hardware protection solution in industrial environments. It builds a multi-level electrical protection circuit at the front end of the serial port physical interface: the primary stage uses a gas discharge tube to discharge amplified energy from lightning surges, the intermediate stage uses a PTC self-resetting fuse to limit overcurrent, and the final stage uses a TVS transient suppression diode to clamp residual voltage; at the same time, it is equipped with an optocoupler isolator or a digital isolation chip to achieve complete electrical isolation of power and signals between the main control side and the bus side, blocking the conduction path of ground loop interference and common-mode noise.

[0006] 3. Protocol layer software protection solution: This solution implements protocol layer protection logic through firmware on the main control processor, including frame format whitelist verification, device address code filtering, timeout retransmission mechanism, message sequence number anti-replay, communication status watchdog, etc. It works in conjunction with link layer CRC verification to complete anomaly checks at the protocol semantic level, which is the mainstream implementation method for low-cost scenarios.

[0007] 4. Differential transmission and physical layer optimization scheme: This scheme improves anti-interference capability through interface standard and transmission medium optimization: RS-422, RS-485 and other differential transmission interfaces are used to replace single-ended UART, and the common-mode rejection characteristics of differential signals are used to resist electromagnetic noise; together with shielded twisted pair, terminal impedance matching, and standardized wiring physical layer design, signal reflection and interference coupling are further reduced.

[0008] 5. Link Encryption Protection Scheme: This scheme introduces an encryption processing unit into the serial communication link to perform encryption operations and integrity verification on the transmitted data frames. It is the mainstream implementation method for preventing data eavesdropping and plaintext tampering in high-security scenarios. Typical implementations fall into two categories: one is an external encryption chip solution, where a dedicated encryption chip is connected in series between the main control chip and the serial bus to perform frame-by-frame encryption and decryption of transmitted and received data; the other is a dedicated serial communication chip with a built-in encryption engine, which performs data encryption operations internally before outputting the data. This type of scheme is usually accompanied by a message authentication code verification mechanism to improve the detection capability of data tampering.

[0009] The above five solutions all have their own technical defects and cannot simultaneously meet the multiple requirements of high reliability protection, low latency, low cost and IP reuse.

[0010] (i) The dual-chip discrete security solution has the following drawbacks: high hardware implementation cost, requiring the additional purchase of dedicated monitoring chips and supporting peripheral circuits, occupying a larger PCB layout area, and significantly increasing the system BOM cost and hardware design complexity; high software development difficulty, requiring separate firmware programs to be developed for the main control chip and the monitoring chip, and designing and implementing cross-chip interactive communication protocols and status synchronization logic, resulting in a long development cycle and high debugging difficulty; high communication transmission latency, as data status and detection results need to be transmitted back and forth between the two chips for processing, adding additional time overhead, making it difficult to meet the needs of high real-time industrial control, avionics and other scenarios; low overall system reliability, with the connection links between chips becoming a new single point of failure. Meanwhile, the main communication link and monitoring link are mostly designed with the same source and structure, which is susceptible to common-mode interference and synchronous impact, posing a risk of being bypassed by electromagnetic interference. The basic verification mechanism has an inherent detection blind spot. Both CRC check and parity check are based on the data content itself and can only detect random errors. They cannot identify maliciously constructed data frames. Attackers can construct complete malicious data frames and simultaneously calculate matching CRC check values ​​to achieve data injection, instruction tampering and other attacks without being detected by traditional mechanisms. The design has poor reusability. This solution is implemented separately at the board level and cannot be integrated into the chip in the form of a standardized IP core. Each chip and board-level design requires repeated construction of the protection link, resulting in high porting and iteration costs.

[0011] (ii) The board-level electrical protection scheme has the following defects: it is a passive physical protection, which can only resist electrical damage such as high voltage surge, electrostatic discharge, and ground potential difference, and cannot identify content layer attacks such as data tampering and instruction injection; it can only block interference transmission, and cannot distinguish whether the transmission error comes from natural electromagnetic interference or human-directed attack, and does not have the ability to classify and accurately handle anomalies; it is all implemented by board-level discrete components and cannot be integrated into the chip in the form of IP core. Each product needs to repeatedly design protection circuits, and the cost of porting and reuse is high.

[0012] (III) The protocol layer software protection scheme has the following defects: the protection logic runs entirely on a general-purpose processor, which consumes a lot of system computing resources, increases communication processing latency, and is difficult to adapt to high real-time control scenarios; the detection capability depends entirely on the data content and protocol format, and has no ability to identify malicious data frames that are specifically constructed, conform to the protocol format, and match the CRC check value, and has the same essential detection blind spot as traditional link layer verification; the software logic and business program share the same operating environment, which is easily affected by system vulnerabilities, and the reliability of protection is constrained by the overall software stability level.

[0013] (iv) The differential transmission and physical layer optimization scheme has the following defects: it can only improve the anti-common-mode noise capability of the physical transmission link, but cannot defend against differential injection attacks and targeted data tampering. Attackers can completely bypass the protection by injecting malicious signals synchronously through the differential line; it is a passive optimization at the transmission medium level and does not have the ability to actively detect anomalies and identify attacks. When transmission errors occur, the cause of the anomaly cannot be located; it cannot solve the common-mode failure problem of homogeneous links. When the interference intensity exceeds the differential suppression range, the main link and detection logic will be affected synchronously, and there is still a risk that the protection can be bypassed as a whole.

[0014] (V) The link encryption protection scheme has the following defects: Transmission delay is significantly increased; data needs to undergo a complete encryption and decryption process, generating additional computational overhead for each frame; real-time performance is far lower than native serial port transmission, making it difficult to adapt to latency-sensitive scenarios such as high-real-time industrial control and avionics; hardware and development costs are high; the procurement cost of dedicated encryption chips is higher than that of ordinary interface chips, and firmware for key management, encryption / decryption drivers, and protocol adaptation is required, resulting in long development cycles and high complexity in debugging and maintenance; it cannot resist physical layer interference and injection attacks; encryption only applies to the data content level and cannot detect anomalies such as physical layer level tampering, glitches, and electromagnetic interference. Attackers can trigger communication errors through physical layer interference. Attacks can bypass encryption verification or be achieved by replaying legitimate encrypted frames. Encryption mechanisms have no protection or ability to identify such physical layer attacks. There are security risks in key management. Key storage and distribution are the core weaknesses of encryption schemes. Once a key is leaked, the protection capabilities of the entire link are completely lost. Furthermore, embedded serial port scenarios usually lack secure key update and full lifecycle management mechanisms, posing long-term security risks. Design reusability is poor. External encryption chips are board-level discrete solutions and cannot be integrated into the chip as IP cores. Dedicated encryption chips have fixed functions and algorithms, making customization and upgrades difficult. They are not flexible enough to adapt to different serial port protocols, baud rates, and application scenarios, and cannot be reused as general-purpose IP cores in various SoC designs.

[0015] In summary, the five existing solutions each have their limitations and none can simultaneously meet the multiple requirements of high-reliability protection, low latency, low cost, and IP-based reuse. All solutions share three common shortcomings: First, the core detection methods all rely on link-layer CRC, parity check, or content-layer encryption verification, which can only identify random errors or plaintext tampering, leaving a fundamental blind spot for targeted malicious data frames and physical layer injection attacks. Second, the main transmission link and protection mechanism are mostly designed from the same source and are susceptible to common-mode interference and synchronization, and the protection mechanism itself lacks sufficient anti-interference robustness. Third, none of them can be integrated into the chip in the form of standardized reusable IP cores, making it difficult to adapt to the general reuse requirements of domestic integrated circuit independent design.

[0016] Therefore, how to provide a serial communication security system and serial communication method that can reduce system costs, simplify development processes, reduce transmission latency, and improve protection robustness and design reusability while ensuring data transmission reliability and protection capabilities is a technical problem that urgently needs to be solved in this field. Summary of the Invention

[0017] The technical problem to be solved by the present invention is to provide a serial communication security system and serial communication method that can ensure data transmission reliability and protection capability, reduce system cost, and improve protection robustness and design reusability.

[0018] To address the aforementioned problems, this invention provides a serial communication security system, comprising a serial receiving port and a serial transmitting port, including: a main communication path module, which receives serial signals from the serial receiving port to generate main path parsing data, and converts data to be transmitted into serial signals for output to a serial output port and generates main path transmission data records; and a security monitoring engine, which runs in parallel bypass of the main communication path module, and whose hardware circuitry is heterogeneous with the main communication path module at the physical layer, circuit layer, sampling layer, and algorithm layer. The security monitoring engine is used to bypass and collect serial signals from the serial receiving port on the receiving side to generate monitoring path parsing data, and to bypass and re-collect serial signals output to the serial output port on the transmitting side. The system parses and generates monitoring path parsing data, and analyzes physical layer signals on both the receiving and transmitting sides to output security monitoring results. These security monitoring results can be any one of normal communication, natural electromagnetic interference, or deliberate injection attacks. A verification and comparison module performs consistency comparison and trustworthiness determination based on the main path parsing data / main path transmitted data records, the monitoring path parsing data, and the security monitoring results, outputting a classification anomaly flag and determination result. A configuration and status register group is used for parameter configuration and status synchronization of each module within the serial communication security system. A bus slave device interface module is used for address decoding, bus timing conversion, and register read / write adaptation, serving as a unified entry point for external main processors to access the configuration and status register group.

[0019] To address the aforementioned issues, this invention also provides a serial communication method that instantiates and integrates the serial communication security system within a target chip. The method includes: sending an external serial signal to the serial receiving port of the serial communication security system; receiving an internal serial signal output from the serial transmitting port of the serial communication security system; and reading data and status flags from a configuration and status register group via a bus slave device interface module to control the serial communication security system.

[0020] The above technical solution executes standard serial communication transmission and reception through the main communication path module and records the main path transmitted data. A security monitoring engine, heterogeneous with the main communication path module at the physical layer, circuit layer, sampling layer, and algorithm layer, constructs an independent detection path completely decoupled from the main link and analyzes physical layer signals to output security monitoring results. A verification and comparison module performs consistency comparison and reliability determination based on the main path parsing data / main path transmitted data records output by the main communication path module and the monitoring path parsing data and security monitoring results output by the security monitoring engine, outputting classification anomaly flags and determination results. Status and data interaction with the status register group and bus slave device interface module are configured to achieve control and status reading of the serial communication security system. This serial communication security system can be integrated into the chip and repeatedly invoked, significantly reducing the overall cost throughout the system's lifecycle. It balances high reliability protection capabilities with native communication real-time performance, while improving protection robustness and system operational reliability, possessing strong scenario adaptability and configuration flexibility.

[0021] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Techniques, methods, and apparatus known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and apparatus should be considered part of the specification. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0023] Figure 1 This is a schematic diagram of the structure of a serial communication security system provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of the device structure of an application gateway for a distributed data cluster provided in an embodiment of the present invention; Figure 3 This is a flowchart of a physical layer anti-interference detection algorithm provided in an embodiment of the present invention.

[0024] Explanation of reference numerals in the attached figures: 1—Main communication path module; 11—Sending Submodule; 12 — Receiver submodule; 2—Security monitoring engine; 3—Verification and Comparison Module; 4—Configuration and Status Register Group; 5—Bus slave interface module; 6 - Interrupt and Alarm Module. Detailed Implementation

[0025] The technical solutions in the embodiments of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0026] Figure 1 This is a schematic diagram of the structure of a serial communication security system provided in an embodiment of the present invention. Figure 1 As shown, the serial communication security system includes a serial receive port and a serial transmit port, and conforms to the requirements of the standard serial communication protocol. The serial communication security system also includes: a main communication path module 1, a security monitoring engine 2, a verification and comparison module 3, a configuration and status register group 4, and a bus slave device interface module 5.

[0027] The main communication path module 1 is used to receive the serial signal from the serial receiving port to generate main path parsing data, and to convert the data to be sent into a serial signal and output it to the serial output port to generate a main path sending data record.

[0028] The security monitoring engine 2 runs in parallel bypass with the main communication path module 1, and its hardware circuit is heterogeneous with the main communication path module 1 at the physical layer, circuit layer, sampling layer, and algorithm layer. The security monitoring engine 2 is used to bypass and collect the serial signal of the serial receiving port on the receiving side to generate monitoring path analysis data, and to bypass and collect the serial signal output to the serial output port on the transmitting side to generate monitoring path analysis data. It also analyzes the physical layer on the receiving side and the transmitting side respectively and outputs security monitoring results. The security monitoring results are any one of normal communication, natural electromagnetic interference, and artificial injection attack.

[0029] The verification and comparison module 3 is used to perform hardware-level consistency comparison and trustworthiness determination based on the main path parsing data / main path sending data record, the monitoring path parsing data and the security monitoring results, and output classification anomaly flags and determination results (all determination results are written to the configuration and status register group).

[0030] The configuration and status register group 4 is used for parameter configuration and status synchronization of each module within the serial communication security system.

[0031] The bus slave interface module 5 is used for address decoding, bus timing conversion, and register read / write adaptation, serving as a unified entry point for the external master processor to access the configuration and status register group.

[0032] The main communication path module 1 is the main data transmission carrier of the serial communication security system, undertaking only the main link data transmission function; business logic processing is completed by an external main processor through bus interaction. Figure 1 As shown, the main communication path module 1 includes a transmitting submodule 11 and a receiving submodule 12.

[0033] The transmitting submodule 11 is used to receive the data to be transmitted written by the configuration and status register group 4, complete data conversion and basic verification, output the converted serial signal to the outside through the serial transmitting port, and generate the main path transmission data record. The data conversion includes parallel-to-serial conversion, baud rate generation, and basic verification calculation. The basic verification includes standard parity check and CRC check.

[0034] The receiving submodule 12 is used to sample input data from the serial receiving port, complete data processing and data verification, generate main path parsing data, and store it in the configuration and status register 4 for external host to read. The data processing includes deserialization, basic error detection, and data buffering.

[0035] The physical layer of the security monitoring engine 2 is the pin and transmission medium for signal interaction; the circuit layer is used to perform level shaping on the input electrical signal; the sampling layer is hardware sampling logic used to perform bit sampling on the shaped signal and complete serial-to-parallel conversion; the algorithm layer is used for frame verification, error detection, parsing to obtain valid data and updating status flags.

[0036] On the receiving side, the security monitoring engine 2 collects the serial signal from the serial receiving port. On the transmitting side, the security monitoring engine 2 collects the serial signal output from the main communication path module 1 to the serial transmitting port.

[0037] Figure 2 This is a schematic diagram of the structure of a security monitoring engine provided in an embodiment of the present invention. Figure 2 As shown, the security monitoring engine 2 includes a heterogeneous sampling front-end 21, a receiving monitoring unit 22, a sending monitoring unit 23, and a statistical detection and decision unit 24.

[0038] The heterogeneous sampling front-end 21 is used to bypass the acquisition of serial signals and independently complete data parsing to form independent sampling signals. The heterogeneous sampling front-end 21 includes a physical connection layer component 211, a sampling reference component 212, a sampling mode component 213, and a decision logic component 214. The physical connection layer component 211 corresponds to the physical layer, the sampling reference component 212 corresponds to the circuit layer, the sampling mode component 213 corresponds to the sampling layer, and the decision logic component 214 corresponds to the algorithm layer. Data is processed sequentially through the physical connection layer component 211 -> sampling reference component 212 -> sampling mode component 213 -> decision logic component 214.

[0039] The physical connection component 211 adopts a differentiated reference ground design and an independent power domain design; the sampling reference component 212 adopts a heterogeneous clock source and a differentiated baud rate tolerance; the sampling method component 213 adopts a differentiated sampling phase and a differentiated oversampling rate; the decision logic component 214 adopts a differentiated level decision threshold, a differentiated digital filtering algorithm, a differentiated sampling decision strategy, and a differentiated level hold detection mechanism.

[0040] The data link formed by the main communication path module 1 is the main communication path, and the data link formed by the security monitoring engine 2 is the security monitoring path.

[0041] The differentiated reference ground design includes adding a ferrite bead or resistor isolation to the signal reference ground of the security monitoring path to create an impedance difference with the reference ground of the main communication path. This differentiated design of the security monitoring paths disrupts the synchronous propagation path of common-mode interference, ensuring the independence of the security monitoring link in interference environments.

[0042] The independent power domain design includes: the interface power supply of the security monitoring path and the interface power supply of the main communication path belong to different power domains; and the interface power supply of the heterogeneous sampling front end is equipped with an inductor. Capacitor (LC) filters or low-dropout linear regulators (LC) Dropout Regulator (LDO). The LC filter, composed of inductors and capacitors, is used to filter out high-frequency ripple and interference noise in the power supply path of the safety monitoring path, improving the purity of the power supply signal. The LDO can generate independent power rails, achieving noise isolation between different power domains and suppressing the conduction of interference from the preceding circuit to the subsequent sensitive circuit.

[0043] The physical connection component 211 adopts a differentiated reference ground design and an independent power domain design, and blocks the synchronous conduction path of common-mode interference through impedance isolation and power filtering.

[0044] The heterogeneous clock sources include: the serial interface of the main communication path is driven by the system master clock; the serial interface of the security monitoring path uses an independent internal low-speed resistor-capacitor (RC) oscillation clock or an external crystal oscillator clock. This ensures that the sampling clocks of the main communication path and the security monitoring path are completely different and asynchronous, and interference with the master clock cannot affect the sampling reference of the security monitoring link.

[0045] The differentiated baud rate tolerance includes: the baud rate tolerance of the security monitoring path is less than the baud rate tolerance of the main communication path. Specifically, the baud rate tolerance of the security monitoring path is less than half of the baud rate tolerance of the main communication path, thereby enabling the security monitoring path to identify baud rate drift caused by common-mode interference as an abnormal waveform, mark it as suspicious communication, and trigger deep detection. In this embodiment, the main communication path uses a relatively lenient tolerance (e.g., ±5%) to ensure communication compatibility; the security monitoring path uses a stricter tolerance (e.g., ±2%).

[0046] The sampling reference component 212 adopts a heterogeneous clock source and differentiated baud rate tolerance, which completely decouples the sampling reference of the main communication path and the security monitoring path, avoiding clock synchronization interference that could cause the overall monitoring to fail.

[0047] The differentiated sampling phase includes: the main communication path uses standard symbol midpoint sampling; the security monitoring path uses sampling at 1 / 3 or 2 / 3 of the symbol, offset by 1 / 4 of the symbol period of the main communication path, thus staggering the sampling window in the time dimension, so that common mode spike interference cannot be sampled by the main communication path and the security monitoring path at the same time, ensuring that the security monitoring path will not miss data due to interference at a single moment.

[0048] The differentiated oversampling ratios include: the main communication path uses a standard 16x oversampling to ensure communication efficiency, while the security monitoring path uses 8x or 32x oversampling. This ratio difference makes it difficult for common-mode narrow-pulse interference to simultaneously fall within the effective sampling windows of both the main communication path and the security monitoring path. When the security monitoring path uses 32x oversampling, the high oversampling ratio also provides detailed raw waveform data for subsequent statistical detection.

[0049] The sampling method component 213 employs differentiated sampling phase and differentiated oversampling rate to stagger the sampling window in the time dimension, so that common-mode narrow pulse interference cannot affect the two sampling channels simultaneously.

[0050] The differentiated level decision thresholds include: the main communication path uses a standard threshold, and the high-level decision threshold of the security monitoring path is increased by 10% to 20% compared to the high-level threshold of the standard threshold, while the low-level decision threshold is decreased by 10% to 20% compared to the low-level threshold of the standard threshold. The use of a standard threshold in the main communication path ensures normal communication; while the security monitoring path widens the decision window, preventing level fluctuations caused by small-amplitude interference noise from exceeding the adjusted decision threshold, thus avoiding false decisions in the security monitoring link and preventing false alarms in security detection.

[0051] The differentiated digital filtering algorithm includes: the main communication path uses sliding window mean filtering; the security monitoring path uses median filtering, amplitude limiting filtering, or weighted filtering. The main communication path uses sliding window mean filtering to ensure real-time communication, while median filtering, amplitude limiting filtering, or weighted filtering provides stronger suppression of pulse interference, ensuring that the security monitoring path can accurately identify attack characteristics even in high-noise environments.

[0052] The differentiated sampling decision strategy includes: the main communication path uses single-sample decision; the security monitoring path uses multiple-sample majority decision. The main communication path ensures communication speed through single-sample decision; the security monitoring path filters out the impact of random common-mode spikes on security detection results through multiple-sample majority decision, improving the accuracy of security alarms and reducing the random false positive rate of security monitoring. In this embodiment, the multiple-sample majority decision involves three consecutive samplings, and the result that is consistent at least twice is taken as the decision value.

[0053] The differentiated level holding detection mechanism includes: the main communication path uses standard level decision, while the security monitoring path adds level duration verification; data is only considered valid if the high / low level of the security monitoring path is maintained for multiple clock cycles. This ensures that short-time common-mode spikes are directly identified as noise and filtered out by the security monitoring link, and are not included in security detection statistics.

[0054] The decision logic component 214 employs differentiated level decision thresholds, differentiated digital filtering algorithms, differentiated sampling decision strategies, and differentiated level maintenance detection mechanisms, which not only improves the noise resistance robustness of the monitoring link but also completely preserves the characteristic information of abnormal signals, providing reliable raw data for subsequent statistical algorithms.

[0055] The receiving monitoring unit 22, based on the independent sampling signal output by the heterogeneous sampling front-end 21, bypasses the serial receiving data parsing process to generate monitoring path parsing data, and simultaneously outputs the original oversampled waveform data to the statistical detection and decision unit 24, realizing bypass security auditing of the receiving link. The receiving parsing process includes independent deserialization, frame format identification, and basic verification operations.

[0056] The transmission monitoring unit 23, based on the independent sampling signal output by the heterogeneous sampling front-end 21, bypasses the serial transmission data transmission retrieval verification processing to generate monitoring path parsing data, and simultaneously outputs the original transmission waveform sampling data to the statistical detection and decision unit 24, realizing hardware-level security monitoring of transmission behavior. The transmission retrieval verification processing includes independent retrieval, consistency verification, and transmission compliance check.

[0057] The statistical detection and decision unit 24 outputs security monitoring results based on the original oversampled waveform data or the original transmitted waveform sampling data using a physical layer anti-interference detection algorithm. The security monitoring results include normal communication, natural electromagnetic interference, and artificial injection attacks.

[0058] The physical layer anti-interference detection algorithm includes: Step S11: During chip initialization, environmental calibration, or specific normal communication phases, multiple frames of valid normal communication data are continuously collected. Physical layer features are statistically modeled to generate baseline distribution parameters, which are then stored in the configuration and status register group 4. The physical layer features include symbol level duration features, oversampling point amplitude features, symbol state transition probability features, and level transition slope features. The baseline distribution parameters include interval divisions, expected frequency distributions, mean, variance, and significance thresholds for each feature. Furthermore, the configuration and status register group 4 supports online threshold updates based on the application scenario. The expected frequency distribution is the set of expected frequencies across all intervals.

[0059] Step S12: In the real-time operation phase, the actual feature parameters of each type of feature in the physical layer features in the current frame are extracted in parallel by using a hardware counter and a hardware accumulator. The actual feature parameters include the actual observation frequency and the amplitude variance dimension.

[0060] The actual feature parameters form a multidimensional feature vector, and each dimension of the feature vector corresponds to a value of the actual feature parameter, with the actual observation frequency and amplitude variance each corresponding to one of the dimensions.

[0061] The steps for extracting symbol level duration features include: counting the number of sustained clock cycles for each high / low level within a single frame; and based on the total number of sustained clock cycles for all high / low levels, obtaining the frequency distribution of duration intervals, the duration mean, and the duration variance. The level duration can be divided into several time intervals, and the frequency distribution of these intervals indicates the number of level segments within each interval. The duration mean represents the average value of the sustained clock cycles for high / low levels, and the duration variance represents the degree of dispersion of each sustained clock cycle for high / low levels relative to the mean.

[0062] The duration characteristics of symbol level correspond to the identification of anomalies such as glitch injection, baud rate drift, and symbol width tampering. Under normal communication, the duration strictly matches the baud rate and follows a narrow range normal distribution.

[0063] The steps for extracting the amplitude features of oversampled points include: based on the high-rate oversampling results, statistically analyzing the amplitude distribution of all sampling points within a single symbol, and obtaining the amplitude mean and amplitude variance.

[0064] Oversampling point amplitude characteristics can be used to identify common-mode noise, level tampering, and amplitude interference anomalies. Under normal communication conditions, the level is stable and the amplitude variance is extremely low. Electromagnetic interference can lead to a significant increase in variance, and level attacks can result in a multi-peak distribution.

[0065] The steps for extracting symbol state transition probability features include: based on a discrete-time Markov chain model, statistically analyzing the high / low level state transition probabilities of consecutive symbols to generate the transition probability matrix for the current frame. High / low level state transitions include 0→0, 0→1, 1→0, and 1→1.

[0066] The symbol state transition probability feature corresponds to the identification of data injection and semantic tampering attacks. There are structural differences in the state transition patterns between maliciously constructed data frames and normal protocol frames.

[0067] The steps for extracting the level transition slope features include: statistically analyzing the number of transition clock cycles and edge position deviation for each transition edge to obtain the distribution characteristics of edge jitter within a single frame. The transition edges include rising edges transitioning from low to high and falling edges transitioning from high to low. The number of transition clock cycles for each transition edge corresponds to the edge slope. The distribution characteristics of edge jitter within a single frame include the frequency distribution, mean, variance, and maximum and minimum deviations of the edge distribution.

[0068] The level transition slope characteristic can be used to identify anomalies such as edge interference and narrow pulse attack. Under normal communication, the edge slope is stable, while interference can cause edge jitter and multiple transitions.

[0069] Step S13: Perform single-frame anomaly determination and persistent anomaly determination for each type of feature in the physical layer features. Specifically, the original sampled data of the current frame features are classified according to a preset statistical interval to obtain the actual observation frequency distribution; the feature deviation between the actual observation frequency distribution and the expected frequency distribution is quantified by the chi-square statistic, and the feature deviation between the chi-square statistic and the significance threshold is obtained. When the chi-square statistic of a type of feature exceeds the significance threshold, it is determined that the type of feature has a single-frame anomaly; the feature deviation of each type of feature in the physical layer features is accumulated frame by frame to obtain the cumulative sum. When the cumulative sum of a type of feature exceeds the decision threshold, it is determined that the type of feature has a persistent anomaly.

[0070] The actual frequency distribution is the set of actual observed frequencies across all intervals. Step S13 first converts the original sampled values ​​into frequencies for each interval through preprocessing. Then, based on the actual observed frequency distribution, it is divided into two stages: single-frame detection and continuous frame accumulation and change point detection. Through a two-level cascaded mechanism of coarse single-frame judgment and fine continuous frame judgment, both real-time performance and accuracy are balanced, avoiding false alarms caused by random noise in single frames.

[0071] Single-frame detection quantifies the feature deviation between the actual observed frequency distribution and the expected frequency distribution using the chi-square statistic, as shown in the following formula:

[0072] In the formula, Here, k is the chi-square statistic, and k is the number of groups in the characteristic interval. This represents the actual observation frequency of the i-th interval in the current frame. Let be the expected frequency of the i-th interval in the baseline distribution.

[0073] In this embodiment, the feature bias of a type of feature is the difference between the chi-square statistic of that type of feature and the significance threshold.

[0074] When the chi-square statistic of a feature exceeds the preset significance threshold, that dimension is marked as an anomaly. This stage can quickly identify strong interference and obvious attacks within a single frame, achieving real-time coarse judgment.

[0075] In continuous frame accumulation and change point detection, the feature deviation of each type of feature in the physical layer features for each frame is accumulated continuously to obtain the cumulative sum. In a specific embodiment, this includes: setting an independent accumulation channel for each type of feature in the physical layer features, and sending the feature deviation of each type of feature for each frame into the corresponding accumulation channel to accumulate continuously to obtain the cumulative sum.

[0076] The formula for obtaining the cumulative sum is:

[0077] In the formula, Let be the feature deviation of the nth frame. The baseline mean is given by k, where k is the tolerance offset. This is the current cumulative sum.

[0078] When cumulative sum When the threshold h is exceeded, a persistent anomaly is determined in that dimension. This stage can effectively filter out single-frame misjudgments caused by random noise, while also identifying slowly changing, progressive attacks.

[0079] Step S13 uses a two-level cascade mechanism of coarse judgment in a single frame and fine judgment in consecutive frames to balance the real-time performance and accuracy of detection, and avoid false alarms caused by random noise in a single frame.

[0080] Step S14: Output security monitoring results based on whether single-frame anomalies and persistent anomalies occur. If none of the physical layer features exhibit single-frame or persistent anomalies, the security monitoring result is determined to be normal communication. If only the amplitude variance dimension of the oversampling point amplitude feature triggers an anomaly, while the other dimensions are within the normal range, the security monitoring result is determined to be natural electromagnetic interference. If at least two of the symbol level duration feature, symbol state transition feature, and level transition edge feature simultaneously trigger persistent anomalies, the security monitoring result is determined to be a deliberate injection attack.

[0081] Furthermore, when the security monitoring result is determined to be normal communication, the detection result is marked as trustworthy; when the security monitoring result is determined to be natural electromagnetic interference, the interference level is marked; when the security monitoring result is determined to be a natural electromagnetic injection attack, the attack type is marked. All the marked content is stored in configuration and status register group 4 for external hosts to read.

[0082] The security monitoring engine 2, through a heterogeneous design across the physical, circuit, sampling, and algorithm layers of the main communication path 1, constructs an independent detection path that is completely decoupled from the main communication link. This not only disrupts the synchronous transmission conditions of common-mode interference, ensuring its own detection reliability in strong interference environments, but also provides differentiated raw sampling data for the built-in statistical detection algorithm. This addresses the inherent security flaw of the main communication path relying solely on link-layer verification from the physical layer, enabling accurate differentiation between normal communication, natural electromagnetic interference, and deliberate injection attacks.

[0083] Based on the main path parsing data / main path sending data records, the monitoring path parsing data, and the security monitoring results, perform hardware-level consistency comparison and trustworthiness determination.

[0084] Specifically, on the receiving side, the verification and comparison module 3 performs hardware-level consistency comparison and trustworthiness determination based on the main path parsing data, the monitoring path parsing data, and the security monitoring result. Specifically, it includes: (1) when the main path parsing data and the monitoring path parsing data are consistent and the security monitoring result is normal communication, the data is determined to be trustworthy and the receiving status is marked as normal; (2) when the main path parsing data and the monitoring path parsing data are inconsistent and the security monitoring result is a human injection attack, the data is determined to be abnormal and the corresponding data is marked as an abnormal frame; (3) when the main path parsing data and the monitoring path parsing data are inconsistent and the security monitoring result is natural electromagnetic interference, the environmental electromagnetic interference is determined and the link interference status is marked; (4) when both the main path parsing data and the monitoring path parsing data are incomplete and the security monitoring result is not a human injection attack, the communication link physical layer fault is determined. All determination results and markings are written into the configuration and status register group 4 for external hosts to read.

[0085] When data is determined to be abnormal, the external host can directly discard the abnormal data; when environmental electromagnetic interference is determined, a retransmission suggestion can be reported to the external host.

[0086] Although the link layer verification of the malicious data frame constructed by the attacker and matching the CRC check value can pass, the statistical regularity of its physical layer signal will still deviate from the normal benchmark and be effectively identified by the verification and comparison module 3.

[0087] On the sending side, the verification and comparison module 3 performs hardware-level consistency comparison and trustworthiness determination based on the main channel data transmission record, the monitoring channel parsing data, and the security monitoring result. Specifically, it includes: 1) When the main channel data transmission record is consistent with the monitoring channel parsing data and the security monitoring result indicates normal communication, the data is determined to be trustworthy; 2) When the main channel data transmission record is complete, but the monitoring channel parsing data is incomplete, and the security monitoring result indicates natural electromagnetic interference, environmental electromagnetic interference is determined, and the transmission status is marked; 3) When the main channel data transmission record is complete, but the monitoring channel parsing data is inconsistent with the main channel data transmission record, and the security monitoring result indicates a human injection attack, an external injection attack is determined.

[0088] If the data is deemed reliable, it indicates that the current transmission process is normal, the data has not been tampered with, and the transmission behavior is legal and valid. If environmental electromagnetic interference is detected, a retransmission suggestion or a link interference alarm can be triggered. If an external injection attack is detected, it indicates that the output of the sending end is normal, but an external attacker has tampered with the physical layer signal through bus injection.

[0089] The configuration and status register group 4 is the hub for status and data interaction of all modules within the serial communication security system. In this embodiment, the configuration and status register group 4 includes a baud rate configuration register, a security rule configuration register, a transmit and receive data buffer register, a main path status register, a monitoring and detection result register, an anomaly flag register, and a security log register.

[0090] The serial communication security system uses only this register group for parameter configuration and status synchronization, with no direct data path interaction, further enhancing the physical isolation of the two paths.

[0091] The bus slave interface module 5 is compatible with standard on-chip peripheral bus protocols such as APB and AHB-Lite. The external master processor can access the configuration and status register group 4 through the bus slave interface module 5 to control and read the status of the serial communication security system.

[0092] Furthermore, the serial communication security system also includes an interrupt and alarm module 6. When an external injection attack is detected, the interrupt and alarm module 6 is used to trigger a security alarm, record the attack log, and then trigger subsequent transmission verification and link protection.

[0093] The above technical solution executes standard serial communication transmission and reception through the main communication path module and records the main path transmitted data. A security monitoring engine, heterogeneous with the main communication path module at the physical layer, circuit layer, sampling layer, and algorithm layer, constructs an independent detection path completely decoupled from the main link and analyzes physical layer signals to output security monitoring results. A verification and comparison module performs consistency comparison and reliability determination based on the main path parsing data / main path transmitted data records output by the main communication path module and the monitoring path parsing data and security monitoring results output by the security monitoring engine, outputting classification anomaly flags and determination results. Status and data interaction with the status register group and bus slave device interface module are configured to achieve control and status reading of the serial communication security system. This serial communication security system can be integrated into the chip and repeatedly invoked, significantly reducing the overall cost throughout the system's lifecycle. It balances high reliability protection capabilities with native communication real-time performance, while improving protection robustness and system operational reliability, possessing strong scenario adaptability and configuration flexibility.

[0094] Based on the same inventive concept, this application also provides a serial communication security method, which instantiates and integrates the serial communication security system inside the target chip. The method includes: sending an external serial signal to the serial receiving port of the serial communication security system, receiving the internal serial signal of the serial transmitting port of the serial communication security system, and reading data and status flags from the configuration and status register 4 group through the bus slave device interface module 5 to control the serial communication security system.

[0095] It should be noted that references to "an embodiment," "an embodiment," "an exemplary embodiment," "some embodiments," etc., in the specification indicate that the described embodiments may include specific features, structures, or characteristics, but each embodiment may not necessarily include that specific feature, structure, or characteristic. Furthermore, such phrases do not necessarily refer to the same embodiment. In addition, when a specific feature, structure, or characteristic is described in connection with an embodiment, whether explicitly described or not, implementing such a feature, structure, or characteristic in conjunction with other embodiments is within the knowledge of those skilled in the art.

[0096] It should be noted that the terms "comprising" and "having," and their variations, used in this invention document are intended to cover non-exclusive inclusion. The terms "first," "second," etc., are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence, unless explicitly indicated by the context. It should be understood that such data used interchangeably where appropriate. Furthermore, embodiments and features within embodiments of this invention can be combined with each other unless otherwise specified. In addition, descriptions of well-known components and technologies have been omitted in the above description to avoid unnecessarily obscuring the concepts of this invention. In the various embodiments described above, each embodiment focuses on its differences from other embodiments; similar or identical parts between embodiments can be referred to interchangeably.

[0097] The above description is only a preferred embodiment of the present invention. It should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A serial communication security system, comprising a serial receiving port and a serial transmitting port, characterized in that, include: The main communication path module is used to receive the serial signal from the serial receiving port to generate main path parsing data, and to convert the data to be sent into a serial signal and output it to the serial output port and generate a main path sending data record. The security monitoring engine runs in parallel with the main communication path module, and its hardware circuitry is heterogeneous with the main communication path module at the physical layer, circuit layer, sampling layer, and algorithm layer. The security monitoring engine is used to bypass and collect the serial signal of the serial receiving port on the receiving side to generate monitoring path analysis data, and to bypass and collect the serial signal output to the serial output port on the transmitting side to generate monitoring path analysis data. It also analyzes the physical layer signals on the receiving side and the transmitting side respectively and outputs security monitoring results. The security monitoring results are any one of normal communication, natural electromagnetic interference, and artificial injection attack. The verification and comparison module is used to perform consistency comparison and trustworthiness determination based on the main path parsing data / main path data transmission record, the monitoring path parsing data and the security monitoring results, and output the classification anomaly flag and determination result. A configuration and status register group is used for parameter configuration and status synchronization of each module within the serial communication security system; The bus slave interface module is used for address decoding, bus timing conversion, and register read / write adaptation, serving as a unified entry point for the external master processor to access the configuration and status register group.

2. The system according to claim 1, characterized in that, The main communication path module includes a sending submodule and a receiving submodule, wherein, The transmitting submodule is used to receive the data to be transmitted written in the configuration and status register group, complete the data conversion and basic verification, output the converted serial signal to the outside through the serial transmitting port, and generate the main path transmission data record. The receiving submodule is used to sample input data from the serial receiving port, complete data processing and data verification, generate main path parsing data and store it in the configuration and status register for external host to read.

3. The system according to claim 1, characterized in that, The security monitoring engine includes a heterogeneous sampling front-end, a receiving monitoring unit, a sending monitoring unit, and a statistical detection and decision unit, wherein... The heterogeneous sampling front end is used to bypass serial signal acquisition and independently complete data parsing to form independent sampling signals. The heterogeneous sampling front end includes a physical connection layer component, a sampling reference component, a sampling mode component, and a decision logic component. The physical connection component adopts a differentiated reference ground design and an independent power domain design; the sampling reference component adopts a heterogeneous clock source and differentiated baud rate tolerance; the sampling mode component adopts differentiated sampling phase and differentiated oversampling rate; the decision logic component adopts differentiated level decision threshold, differentiated digital filtering algorithm, differentiated sampling decision strategy, and differentiated level hold detection mechanism. The receiving monitoring unit, based on the independent sampling signal output by the heterogeneous sampling front end, bypasses the serial receiving data receiving and parsing processing to generate monitoring path parsing data, and simultaneously outputs the original oversampled waveform data to the statistical detection and decision unit. The transmission monitoring unit, based on the independent sampling signal output by the heterogeneous sampling front end, bypasses the serial transmission data transmission retrieval verification process to generate monitoring path parsing data, and simultaneously outputs the original transmission waveform sampling data to the statistical detection and decision unit. The statistical detection and decision unit outputs security monitoring results based on the original oversampled waveform data or the original transmitted waveform sampling data using a physical layer anti-interference detection algorithm.

4. The system according to claim 3, characterized in that, The physical layer anti-interference detection algorithm includes: During chip initialization, environmental calibration, or specific normal communication phases, multiple frames of valid normal communication data are continuously collected. Physical layer features are statistically modeled to generate baseline distribution parameters, which are then stored in the configuration and status register group. The physical layer features include symbol level duration, oversampling point amplitude, symbol state transition probability, and level transition slope. The baseline distribution parameters include interval division of various features, expected frequency distribution, expected mean, expected variance, and significance threshold. During the real-time operation phase, the actual feature parameters of each type of feature in the physical layer features are extracted in the current frame in parallel using a hardware counter and a hardware accumulator. The actual feature parameters include the actual observation frequency and the amplitude variance dimension. For each type of feature in the physical layer features, single-frame anomaly determination and persistent anomaly determination are performed respectively: the original sampled data of the current frame features are classified according to a preset statistical interval to obtain the actual observation frequency distribution; the feature deviation between the actual observation frequency distribution and the baseline expected frequency distribution is quantified by the chi-square statistic, and the feature deviation between the chi-square statistic and the significance threshold is obtained. When the chi-square statistic of a type of feature exceeds the significance threshold, it is determined that the type of feature has a single-frame anomaly; the feature deviation of each frame of each type of feature in the physical layer features is accumulated in consecutive frames to obtain the cumulative sum. When the cumulative sum of a type of feature exceeds the decision threshold, it is determined that the type of feature has a persistent anomaly. The security monitoring results are output based on whether single-frame anomalies and persistent anomalies occur. When none of the physical layer features show single-frame or persistent anomalies, the security monitoring result is determined to be normal communication. When only the amplitude variance dimension of the oversampling point amplitude feature triggers an anomaly, while the other dimensions are within the normal range, the security monitoring result is determined to be natural electromagnetic interference. When at least two of the symbol level duration feature, symbol state transition feature, and level transition edge feature simultaneously trigger persistent anomalies, the security monitoring result is determined to be a deliberate injection attack.

5. The system according to claim 4, characterized in that, The steps for extracting the physical layer features using a parallel operation of hardware counters and hardware accumulators specifically include: The steps for extracting symbol level duration features include: counting the number of duration clock cycles for each high / low level within a single frame, and obtaining the frequency distribution, duration mean, and duration variance of the duration interval based on the number of duration clock cycles for all high / low levels; The steps for extracting the amplitude features of oversampled points include: based on the high-rate oversampling results, statistically analyzing the amplitude distribution of all sampling points within a single symbol, and obtaining the amplitude mean and amplitude variance; The steps for extracting symbol state transition probability features include: based on the discrete-time Markov chain model, statistically analyzing the high / low level state transition probabilities of consecutive symbols, and generating the transition probability matrix of the current frame; The steps for extracting the level transition slope features include: counting the number of transition clock cycles and edge position deviation for each transition edge to obtain the distribution features of edge jitter within a single frame.

6. The system according to claim 3, characterized in that, The data link formed by the main communication path module is the main communication path, and the data link formed by the security monitoring engine is the security monitoring path. The differentiated reference ground design includes: adding a ferrite bead or resistor isolation to the signal reference ground of the security monitoring path to create an impedance difference with the reference ground of the main communication path; The independent power domain design includes: the interface power supply of the security monitoring path and the interface power supply of the main communication path belong to different power domains; and the interface power supply of the heterogeneous sampling front end is equipped with an inductor. Capacitor filters or low-dropout linear regulators; The heterogeneous clock sources include: the serial interface of the main communication path is driven by the system master clock; the serial interface of the security monitoring path adopts an independent internal low-speed resistor-capacitor oscillation clock or an external crystal oscillator clock; The differentiated baud rate tolerance includes: the baud rate tolerance of the security monitoring path is less than the baud rate tolerance of the main communication path; The differentiated sampling phase includes: the main communication path uses standard symbol midpoint sampling; the security monitoring path uses sampling at 1 / 3 or 2 / 3 of the symbol, offset by 1 / 4 of the symbol period of the main communication path, thus staggering the sampling window in the time dimension. The differentiated oversampling ratios include: the main communication path uses a standard 16x oversampling to ensure communication efficiency, and the security monitoring path uses 8x or 32x oversampling. The differentiated level decision thresholds include: the main communication path adopts a standard threshold, the high-level decision threshold of the security monitoring path is increased by 10% to 20% compared with the high-level threshold of the standard threshold, and the low-level decision threshold is decreased by 10% to 20% compared with the low-level threshold of the standard threshold; The differentiated digital filtering algorithms include: the main communication path uses sliding window mean filtering; the security monitoring path uses median filtering, amplitude limiting filtering, or weighted filtering. The differentiated sampling decision strategy includes: the main communication path adopts single-sampling decision; the security monitoring path adopts multiple-sampling majority decision. The differential level holding detection mechanism includes: the main communication path adopts standard level decision, the security monitoring path adds level duration verification, and the security monitoring path is determined to be valid data only when the high / low level is maintained for multiple clock cycles.

7. The system according to claim 1, characterized in that, On the receiving side, the verification and comparison module performs hardware-level consistency comparison and trustworthiness determination based on the main path parsing data, the monitoring path parsing data, and the security monitoring results, specifically including: When the main path parsing data and the monitoring path parsing data are consistent and the security monitoring result is normal communication, the data is determined to be reliable and the receiving status is marked as normal. If the main path parsing data and the monitoring path parsing data are inconsistent and the security monitoring result is a human injection attack, then the data is determined to be abnormal and the corresponding data is marked as an abnormal frame. When the main path parsing data and the monitoring path parsing data are inconsistent and the security monitoring result is natural electromagnetic interference, then environmental electromagnetic interference is determined and the link interference status is marked. If both the main path parsing data and the monitoring path parsing data are incomplete and the security monitoring results are not due to a human injection attack, then the communication link physical layer is determined to be faulty.

8. The system according to claim 1, characterized in that, On the sending side, the verification and comparison module performs hardware-level consistency comparison and trustworthiness determination based on the main channel transmission data record, the monitoring channel parsed data, and the security monitoring results, specifically including: If the data record sent by the main channel is consistent with the data parsed by the monitoring channel and the security monitoring result is normal communication, then the data is determined to be reliable. When the main channel transmits complete data records, but the monitoring channel parses incomplete data, and the security monitoring result is natural electromagnetic interference, then environmental electromagnetic interference is determined, and the transmission status is marked. If the main channel transmits complete data records, but the data parsed by the monitoring channel is inconsistent with the main channel transmits data records, and the security monitoring result indicates a human injection attack, then an external injection attack is determined.

9. The system according to claim 1, characterized in that, The serial communication security system also includes an interrupt and alarm module, which is used to trigger a security alarm and record an attack log when the security monitoring result is determined to be a human injection attack.

10. A serial communication method, characterized in that, Integrating the serial communication security system according to any one of claims 1 to 9 into the target chip, the method includes: Send an external serial signal to the serial receiving port of the serial communication security system, and receive the internal serial signal output by the serial transmitting port of the serial communication security system; The serial communication security system is controlled by reading data and status flags from the configuration and status register group via the bus slave device interface module.