Dual-channel screen anomaly detection and automatic switching method
Through the dual-channel redundant design and dynamic switching mechanism, the status data of MIPI channels can be monitored and analyzed in real time, and the rapid switching and automatic repair are achieved, which solves the lag and instability of MIPI channel abnormal detection and switching in the existing technology, and improves the reliability and stability of screen display.
Patent Information
- Application Number
- CN202510429113.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-08
- Publication Date
- 2025-06-20
AI Technical Summary
The prior art has problems such as detection lag, handover instability and lack of repair mechanism in the detection, switching and optimization of MIPI channel, which is difficult to meet the high reliability requirements of screen display performance.
Through dual-channel redundancy design and dynamic switching mechanism, the status data of MIPI channels can be monitored in real time, abnormal situations are analyzed, quick switching and automatic repair, optimize the selection of main and backup channels, and reduce latency and data loss.
It realizes high reliability and continuity of screen communication, improves the system's adaptability and communication stability in complex environments, and provides innovative guarantees for screen display performance.
Smart Images

Figure CN120183353A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of control or regulation systems, and particularly to a method for dual-channel screen anomaly detection and automatic switching. Background Art
[0002] With the development of electronic device screen display technology, the MIPI interface is widely used in the communication of device screens due to its high bandwidth and low power consumption characteristics. However, the MIPI channel is prone to interference in a complex environment, resulting in communication anomalies and thus affecting the normal display of the screen.
[0003] In the prior art, the abnormal situation is usually dealt with by means of a single standby channel, such as using a channel of a preset type as a backup. However, delays or data loss are likely to occur during the switching process, and the efficient repair and dynamic optimization of the abnormal channel cannot be achieved. The existing methods have problems such as detection lag, unstable switching, and lack of a repair mechanism in channel anomaly detection, switching, and optimization, and it is difficult to meet the high reliability requirements for screen display performance.
[0004] Therefore, the present invention provides a method for dual-channel screen anomaly detection and automatic switching. Summary of the Invention
[0005] The present invention provides a method for dual-channel screen anomaly detection and automatic switching, which is used to ensure the high reliability and continuity of screen communication through dual-channel redundant design and dynamic switching mechanism, realize the closed-loop control of anomaly detection, fast switching, and automatic repair, optimize the selection of the primary and standby channels through real-time monitoring and status analysis, effectively reduce delays and data loss, improve the adaptive ability and communication stability of the system in a complex environment, and provide an innovative guarantee for screen display performance.
[0006] The present invention provides a method for dual-channel screen anomaly detection and automatic switching, including:
[0007] Step 1: Initialize the MIPI channel, establish an initial communication connection between the MIPI channel and the LCM, and at the same time, configure a channel of a preset type as a standby channel;
[0008] Step 2: Based on a preset monitoring device, continuously monitor and collect the status data of the MIPI channel, and determine the abnormal situation of the MIPI channel;
[0009] Step 3: Analyze the abnormal situation of the MIPI channel, determine the abnormal type of the MIPI channel. If the abnormal type of the MIPI channel belongs to a preset abnormal type, replace the MIPI channel with a channel of a preset type, and perform anomaly repair on the MIPI channel;
[0010] Step 4: Based on a preset monitoring device, monitor the status of channels of a preset type in real time. Meanwhile, perform mirror transmission on the repaired MIPI channel and obtain the status data of the repaired MIPI channel based on a preset inspection frequency.
[0011] Step 5: Obtain the status data of the channels of the preset type and the status data of the MIPI channel and perform analysis, and then determine the optimized channel based on the analysis result.
[0012] The present invention provides a dual-channel screen anomaly detection and automatic switching method, which initializes the MIPI channel, establishes an initial communication connection between the MIPI channel and the LCM. Meanwhile, configure the channels of the preset type as backup channels, including:
[0013] Obtain the specific parameters of the LCM and determine the configuration parameters of the MIPI channel based on the specific parameters of the LCM.
[0014] Configure the MIPI channel based on the configuration parameters of the MIPI channel.
[0015] Initialize the MIPI interface based on a preset method, and then send several preset type initialization commands to the LCM through the initialized MIPI interface. After receiving the initialization commands, the LCM returns a handshake signal.
[0016] Analyze the handshake signal to determine whether the initialization command is correct. If the initialization command is correct, the LCM will confirm successful communication and enter the working state.
[0017] If the initialization command is incorrect, it is determined that the communication fails. The LCM returns a status signal, and then re-initialize based on the returned status signal.
[0018] If the LCM enters the working state, configure the channels of the preset type as backup channels based on a preset configuration method.
[0019] The present invention provides a dual-channel screen anomaly detection and automatic switching method, and the configuration parameters include: the timing parameters of the MIPI interface, the MIPI transmission rate and data channels, and the data bit width and data type of the MIPI.
[0020] The present invention provides a dual-channel screen anomaly detection and automatic switching method, which monitors and collects the status data of the MIPI channel in real time based on a preset monitoring device and determines the abnormal conditions of the MIPI channel, including:
[0021] Monitor and collect the status data of the MIPI channel in real time based on a preset monitoring device.
[0022] Analyze the status data of the MIPI channel, and then determine the status coefficient of the MIPI channel.
[0023] If the status coefficient of the MIPI channel is greater than the preset status coefficient, the status coefficient of the MIPI channel and the preset status coefficient determine the anomaly coefficient of the MIPI channel;
[0024] Based on the preset coefficient - anomaly situation database and the anomaly coefficient of the MIPI channel, determine the anomaly situation of the MIPI channel.
[0025] The present invention provides a dual - channel screen anomaly detection and automatic switching method, which analyzes the status data of the MIPI channel, and then determines the status coefficient of the MIPI channel, including:
[0026] Analyze the status data of the MIPI channel, and then determine a number of status - related parameters;
[0027] Determine the status coefficient of the MIPI channel based on the status - related parameters:
[0028]
[0029] Among them, C1 is the status coefficient of the MIPI channel, P i is the i - th status - related parameter of the MIPI channel, w i is the weight of the i - th status - related parameter of the MIPI channel, μ1 is the preset amplitude control coefficient, P0 i is the preset reference value of the i - th status - related parameter of the MIPI channel, N1 is the number of status - related parameters of the MIPI channel, Q j is the j - th status interference parameter of the MIPI channel, N2 is the number of status interference parameters of the MIPI channel, γ is the weight corresponding to the status interference parameter of the MIPI channel, α1 is the preset adjustment coefficient of the status interference parameter of the MIPI channel, β1 is the correction factor of the status interference parameter of the MIPI channel, β2 is the conversion factor of the status interference parameter of the MIPI channel, α1 is the proportionality coefficient of the status interference parameter of the MIPI channel, Q0 i is the preset reference value of the j - th status interference parameter of the MIPI channel, δ1 is the preset segmented threshold of the status interference parameter of the MIPI channel, ln is the logarithmic function.
[0030] The present invention provides a dual - channel screen anomaly detection and automatic switching method, and preset anomaly types, including: data transmission anomaly, timing anomaly, channel connection anomaly, power supply anomaly, noise interference anomaly, temperature or environment anomaly, and firmware or configuration anomaly.
[0031] The present invention provides a dual - channel screen anomaly detection and automatic switching method, which obtains the channel status data of the preset type and the status data of the MIPI channel and conducts analysis, and then determines the optimized channel based on the analysis result, including:
[0032] Obtain the status data of channels of a preset type and the status data of MIPI channels and analyze them, and then determine the channel analysis coefficient;
[0033] Based on the channel analysis coefficient and a preset switching condition coefficient, determine whether the preset switching condition is met;
[0034] If the preset switching condition is met, determine the optimized channel based on the channel analysis coefficient and a preset coefficient-channel data table.
[0035] The present invention provides a dual-channel screen anomaly detection and automatic switching method, which obtains the status data of channels of a preset type and the status data of MIPI channels and analyzes them, and then determines the channel analysis coefficient, including:
[0036] Conduct a first analysis on the status data of channels of a preset type to determine several current status-related parameters of the channels of the preset type;
[0037] Conduct a second analysis on the status data of MIPI channels to determine several current status-related parameters of the MIPI channel data;
[0038] Obtain the current workload data, and then combine the current status-related parameters of the channels of the preset type and the current status-related parameters of the MIPI channels to determine the channel analysis coefficient: Among them, C2 is the channel analysis coefficient, r k is the k-th current status-related parameter of the channels of the preset type, N3 is the number of current status-related parameters of the channels of the preset type, is the average value of the historical status-related parameters of the channels of the preset type, σ k is the standard deviation of the historical status-related parameters of the channels of the preset type, w1 k is the weight of the k-th current status-related parameter of the channels of the preset type, ∈1 is the adjustment coefficient of the channels of the preset type, r1 k is the conversion coefficient of the k-th current status-related parameter of the channels of the preset type, w1 k is the number of the k-th current status-related parameters of the channels of the preset type, ε1 is the weight coefficient of the channels of the preset type, ε2 is the weight coefficient of the MIPI channels, m s is the s-th current status-related parameter of the MIPI channels, N4 is the number of current status-related parameters of the MIPI channels, w2 s is the weight of the s-th current status-related parameter of the MIPI channels, m1 s is the conversion coefficient of the s-th current status-related parameter of the MIPI channels, ε3 is the interaction weight of the channels of the preset type and the MIPI channels, q ksIt is the interaction coefficient between the k-th current state related parameter of a channel of a preset type and the s-th current state related parameter of the MIPI channel.
[0039] Compared with the prior art, the beneficial effects of the present application are as follows:
[0040] Through the dual-channel redundancy design and dynamic switching mechanism, the high reliability and continuity of screen communication are ensured, the closed-loop control of anomaly detection, fast switching and automatic repair is realized, the selection of the primary and backup channels is optimized through real-time monitoring and status analysis, the delay and data loss are effectively reduced, the adaptive ability and communication stability of the system in complex environments are improved, and innovative guarantee for screen display performance is provided. Description of the Drawings
[0041] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0042] Figure 1 It is a schematic flowchart of the dual-channel screen anomaly detection and automatic switching method provided by an embodiment of the present invention. Detailed Embodiments
[0043] To make the objectives, technical solutions and advantages of the present invention clearer, the following will clearly and completely describe the technical solutions in the present invention with reference to the drawings in the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts fall within the scope of protection of the present invention.
[0044] Embodiment 1:
[0045] The embodiment of the present invention provides a dual-channel screen anomaly detection and automatic switching method, as Figure 1 shown, including:
[0046] Step 1: Initialize the MIPI channel, establish an initial communication connection between the MIPI channel and the LCM, and at the same time, configure the channel of the preset type as the backup channel;
[0047] Step 2: Based on a preset monitoring device, monitor and collect the status data of the MIPI channel in real time, and determine the anomaly situation of the MIPI channel;
[0048] Step 3: Analyze the abnormal conditions of the MIPI channel, determine the abnormal type of the MIPI channel. If the abnormal type of the MIPI channel belongs to the preset abnormal type, replace the MIPI channel with the channel of the preset type, and repair the abnormality of the MIPI channel;
[0049] Step 4: Based on the preset monitoring device, monitor the status of the channel of the preset type in real time. At the same time, perform mirror transmission on the repaired MIPI channel, and obtain the status data of the repaired MIPI channel based on the preset inspection frequency;
[0050] Step 5: Obtain the status data of the channel of the preset type and the status data of the MIPI channel and analyze them, and then determine the optimized channel based on the analysis results.
[0051] In this embodiment, the initial communication connection means that when the system starts, a data transmission channel between the MIPI channel and the display module (LCM) is established through a specific protocol, enabling it to enter the working state and complete the basic signal synchronization and data transmission preparation. For example, during the startup process, the MIPI channel shakes hands with the LCM through the I2C protocol, completes the frame synchronization configuration, and confirms the data transmission rate to establish the initial communication connection;
[0052] In this embodiment, the configuration of the channel of the preset type means that the system, according to the design preset, sets the MIPI channel as the main communication channel, and the channel of the preset type as the backup channel, and allocates specific hardware resources and priorities to both. For example, when the system is initialized, the MIPI channel is configured as the main high-speed communication channel, and its bandwidth is set to 1 Gbps; the SPI channel is used as the backup channel, with a bandwidth of 100 Mbps and is only enabled during abnormal switching;
[0053] In this embodiment, the backup channel refers to the channel that automatically switches to undertake the communication task when the main channel (MIPI) fails, which is used to ensure the continuity of communication. For example, when the MIPI channel loses signals due to interference, the system will switch to the SPI channel and continue to transmit display data through the SPI channel to ensure normal screen display.
[0054] In this embodiment, the preset monitoring device refers to a hardware or software module used to collect and monitor the running status of the channel in real time, providing basic data support for channel anomaly detection. For example, the ADC module built in the embedded MCU collects the voltage fluctuation and signal quality of the MIPI channel in real time and uploads the data to the anomaly analysis unit;
[0055] In this embodiment, the status data of the MIPI channel includes the electrical signal quality parameters collected in real time, such as signal integrity, voltage stability, bandwidth utilization rate, etc. For example, the system records the status data of the MIPI channel as: voltage 3.3V ± 0.1V, signal bandwidth occupancy rate 90%, bit error rate 0.01%;
[0056] In this embodiment, an abnormal situation refers to a phenomenon that deviates from the normal state during the operation of the MIPI channel, such as signal interruption, voltage anomaly, data frame loss, etc. For example, when the bit error rate of the MIPI channel rises to 10% and the frame loss exceeds the preset threshold, the system detects an abnormal situation;
[0057] In this embodiment, determining the abnormal type of the MIPI channel is to identify the specific abnormal causes and types by analyzing the status data, such as connection interruption, signal interference, insufficient bandwidth. For example, after system analysis, it is found that the abnormal type is signal interference, which may be caused by changes in the electromagnetic environment;
[0058] In this embodiment, the preset monitoring device is a module for real-time monitoring of the status of the spare channel (SPI channel) to ensure the normal operation of the spare channel. For example, an FPGA chip continuously detects the status of the SPI channel, including signal delay and frame integrity, and feeds the data back to the control system;
[0059] In this embodiment, the status of the SPI channel includes parameters such as its signal quality, data transmission rate, frame loss rate, etc. For example, the detected status of the SPI channel is: data delay 50ms, frame loss rate 0.02%, signal intensity stable;
[0060] In this embodiment, mirror transfer means that during the repair process of the MIPI channel, its status is synchronized with that of the SPI channel to complete seamless switching or restore the main channel. For example, after the MIPI channel is repaired, through mirror transfer technology, the display data on the SPI channel is synchronously transmitted to the MIPI channel;
[0061] In this embodiment, the preset inspection frequency refers to the frequency at which the system checks the channel status at fixed time intervals to detect and handle abnormalities in a timely manner. For example, the system sets the preset inspection frequency to 10 times per second for continuous status monitoring of the channel.
[0062] In this embodiment, the status data of the repaired MIPI channel refers to the channel operation status parameters re-collected after the repair is completed, which is used to verify the repair effect. For example, the status data of the repaired MIPI channel shows that the bit error rate has recovered to 0.001%, the signal is stable, and the frame loss rate is 0.
[0063] In this embodiment, the optimized channel refers to dynamically adjusting and selecting the channel with the optimal performance as the main communication channel by analyzing the status data of the MIPI and SPI channels. For example, the system compares and finds that the repaired MIPI channel has a higher bandwidth utilization rate and a lower bit error rate, so it is reset as the main communication channel.
[0064] The beneficial effects of the above technical solution are as follows: Through the dual-channel redundancy design and the dynamic switching mechanism, the high reliability and continuity of screen communication are ensured, and the closed-loop control of anomaly detection, rapid switching, and automatic repair is achieved. Through real-time monitoring and status analysis, the selection of the main and backup channels is optimized, effectively reducing latency and data loss, enhancing the adaptive ability and communication stability of the system in complex environments, and providing an innovative guarantee for the screen display performance.
[0065] Embodiment 2:
[0066] The embodiment of the present invention provides a dual-channel screen anomaly detection and automatic switching method, which initializes the MIPI channel, establishes an initial communication connection between the MIPI channel and the LCM, and at the same time configures a preset type of channel as the backup channel, including:
[0067] Obtain the specific parameters of the LCM, and determine the configuration parameters of the MIPI channel based on the specific parameters of the LCM;
[0068] Configure the MIPI channel based on the configuration parameters of the MIPI channel;
[0069] Initialize the MIPI interface based on a preset method, and then send several preset types of initialization commands to the LCM through the initialized MIPI interface. After receiving the initialization commands, the LCM returns a handshake signal;
[0070] Parse the handshake signal to determine whether the initialization command is correct. If the initialization command is correct, the LCM will confirm successful communication and enter the working state;
[0071] If the initialization command is incorrect, it is determined that the communication fails, the LCM returns a status signal, and then re-initialization is performed based on the returned status signal;
[0072] If the LCM enters the working state, configure a preset type of channel as the backup channel based on a preset configuration method.
[0073] In this embodiment, obtaining the specific parameters of the LCM means that before initialization, the system obtains the hardware characteristics and configuration requirements of the liquid crystal display module (LCM) through a communication protocol, including information such as resolution, refresh rate, signal timing, etc. For example, read the specific parameters of the LCM through the I2C interface, such as the resolution is 1920×1080, the refresh rate is 60Hz, the horizontal sync pulse width is 10μs, and the driving voltage is 3.3V;
[0074] In this embodiment, the configuration parameters of the MIPI channel refer to the communication interface parameters adjusted according to the specific parameters of the LCM, including data rate, clock frequency, synchronization signal mode, etc. For example, based on the resolution and refresh rate of the LCM, the configuration parameters of the MIPI channel are set as a data rate of 1.5 Gbps, a clock frequency of 750 MHz, and a transmission mode of D-PHY.
[0075] In this embodiment, the preset method refers to a standardized process of performing operations according to predefined rules or algorithms during the initialization process, ensuring that the system is configured and detected according to a standardized process. For example, the system executes the initialization sequence of the MIPI channel in a preset manner, including first loading the power configuration file and then sending initialization commands in sequence.
[0076] In this embodiment, the preset type refers to a class of standardized data structures or command formats defined in the system for specific tasks, such as initialization commands, handshake signals, etc. For example, the preset type of initialization commands includes a power-on command, a frame refresh rate setting command, and a data channel enable command.
[0077] In this embodiment, the initialization commands refer to a set of commands sent by the system to the LCM through the MIPI interface to complete the startup of the communication channel and the preparation of the display module. For example, the initialization commands include: a display frame rate setting command 0x29, a MIPI data channel enable command 0x11, and a test command 0x0A for verifying the connection status.
[0078] In this embodiment, the handshake signal is the feedback information returned by the LCM after receiving the initialization command to confirm whether the communication is successful, usually including signal integrity and status information. For example, the LCM returns a handshake signal data frame ACK = 0xAA, indicating that the received initialization command is correct and the communication connection is successful.
[0079] In this embodiment, when the system detects that the handshake signal indicates that the initialization command has been correctly executed, the LCM will confirm that the communication is successful and enter the working state. The LCM will complete all initialization operations and switch to the normal operating state. For example, if the ACK = 0xAA in the received handshake signal, the system confirms that the initialization command is correct, and the LCM lights up the screen and starts to refresh the display content.
[0080] In this embodiment, if the initialization command is incorrect, it is determined that the communication has failed. The LCM returns a status signal, and then re-initialization is performed based on the returned status signal. When the LCM detects that the content or format of the initialization command does not conform to the protocol, it will return a status signal to identify the error. The system then re-sends the initialization command to repair the communication. If the LCM returns a status signal ERR = 0x01, indicating that the initialization command is incorrect, the system re-sends a set of commands, including the command 0x15 for calibrating the voltage and the reset command 0x12.
[0081] In this embodiment, if the LCM enters the working state, then based on a preset configuration method, a preset type of channel is configured as a standby channel. When the LCM successfully enters the working state, the system configures another channel (SPI) as the standby channel according to a predefined configuration method to ensure that it can be switched when the main channel fails. For example, after successful communication on the MIPI channel, the system sends a standby command 0x1F through the SPI interface to set it as the standby channel and maintain a low-power standby mode.
[0082] The beneficial effects of the above technical solution are as follows: Through dual-channel configuration (MIPI main channel and SPI standby channel), an efficient solution for screen anomaly detection and automatic switching is achieved. The channels are dynamically configured based on LCM parameters to ensure the stability of initial communication. If the initialization of the main channel fails, the standby channel can be quickly switched, improving the reliability and fault tolerance of the system, thereby realizing the intelligent management of screen communication and ensuring the continuous and stable operation of the device.
[0083] Embodiment 3:
[0084] The embodiment of the present invention provides a method for dual-channel screen anomaly detection and automatic switching, and the configuration parameters include: the timing parameters of the MIPI interface, the MIPI transmission rate, the data channel, and the data bit width and data type of the MIPI.
[0085] In this embodiment, the timing parameters of the MIPI interface refer to the time control settings for data transmission in the MIPI channel, including the clock frequency, the synchronization time of the data rising edge / falling edge, the data preparation time, etc. These parameters determine the reliability and efficiency of data transmission. For example, the MIPI interface timing parameters are configured as a clock frequency of 400 MHz, a data rising edge synchronization time with the clock of 1 ns, and a falling edge synchronization time of 0.8 ns to ensure the stable display of high-resolution screens;
[0086] In this embodiment, the MIPI transmission rate refers to the speed of data transmission through the MIPI interface, usually measured in bits per second (bps). A high transmission rate can support higher resolution or refresh rate display requirements. For example, to meet the display requirements of 1080p resolution @ 60 Hz, the MIPI transmission rate is configured to 1.5 Gbps to ensure real-time transmission of display data without delay;
[0087] In this embodiment, the data channel refers to the specific data transmission line in the MIPI interface, which includes several Lanes. Different numbers of Lanes determine the data parallel transmission ability. For example, according to the requirements of the LCM, the MIPI interface is configured to use 4 data channels (4Lane) to improve the transmission efficiency to support 4K resolution display;
[0088] In this embodiment, the data bit width of MIPI refers to the number of bits contained in each data packet. The larger the bit width, the more information carried by a single transmission, which improves the transmission efficiency. For example, to meet the 10-bit color depth display requirement of the LCM, the MIPI data bit width is configured to 10-bit to support higher-quality screen display;
[0089] In this embodiment, the data type refers to the data format transmitted through the MIPI interface, such as RGB data, YUV data, or specific instruction data. Different data types are adapted to different display mode or control signal requirements. For example, the MIPI data type is configured to RGB888 (24-bit color depth) to ensure rich color expression during screen display and support the hardware requirements of the LCM at the same time.
[0090] The beneficial effects of the above technical solution are: Through the dual-channel screen anomaly detection and automatic switching method, by using the timing parameters, transmission rate, data channels, data bit width, and data type configuration of the MIPI interface, the stability and reliability of the screen are improved. When an anomaly occurs on the screen, the system can automatically switch to the standby channel to ensure the continuous operation of the device, reduce the impact caused by screen failures, and has high anti-interference ability and fault tolerance.
[0091] Embodiment 4:
[0092] The embodiment of the present invention provides a dual-channel screen anomaly detection and automatic switching method, which based on a preset monitoring device to continuously monitor and collect the status data of the MIPI channel, and determine the anomaly situation of the MIPI channel, including:
[0093] Based on a preset monitoring device to continuously monitor and collect the status data of the MIPI channel;
[0094] Analyze the status data of the MIPI channel, and then determine the status coefficient of the MIPI channel;
[0095] If the status coefficient of the MIPI channel is greater than the preset status coefficient, the status coefficient of the MIPI channel and the preset status coefficient are used to determine the anomaly coefficient of the MIPI channel;
[0096] Based on the preset coefficient-anomaly situation database and the anomaly coefficient of the MIPI channel, determine the anomaly situation of the MIPI channel.
[0097] In this embodiment, the preset monitoring device is a hardware or software module for real-time monitoring of the operating status of the MIPI channel, capable of collecting parameters such as timing, data integrity, voltage, and current during the transmission process to evaluate the channel status. For example, an embedded monitoring module integrated in the screen driving circuit is used to monitor whether the channel is operating normally by collecting the frequency of the MIPI signal clock, the data transmission rate, and the bit error rate in real time. An external logic analyzer is used to monitor the MIPI signal level and transmission waveform to identify whether there are waveform distortions or data losses. In this embodiment, the status coefficient of the MIPI channel is a comprehensive value calculated by a specific algorithm based on the data collected by the monitoring device, reflecting the current operating status of the MIPI channel. The closer the status coefficient is to the ideal value, the more stable the channel status is.
[0098] In this embodiment, the preset status coefficient is a threshold set according to system design requirements or experience for judging whether the MIPI channel status meets the operating requirements. For example, in the system design, the preset status coefficient is set to 0.9. If the monitored status coefficient of the MIPI channel is lower than 0.9, it is considered that there may be potential abnormalities in the channel;
[0099] In this embodiment, the anomaly coefficient is a value calculated from the difference between the status coefficient of the MIPI channel and the preset status coefficient, used to quantify the severity of the channel anomaly. If the status coefficient of the MIPI channel is 0.85 and the preset status coefficient is 0.9, then the anomaly coefficient = 0.9 - 0.85 = 0.050.9 - 0.85 = 0.05. The higher the anomaly coefficient, the more severe the channel anomaly is.
[0100] In this embodiment, the preset coefficient-anomaly situation database is a preset database that stores specific anomaly situations corresponding to different anomaly coefficients for quickly locating problems. For example, different anomaly coefficient ranges are associated with specific anomaly types. For example, database entry example: anomaly coefficient 0.01 - 0.05: may be minor signal interference; anomaly coefficient 0.05 - 0.10: may be data packet loss or clock jitter; anomaly coefficient > 0.10: may be hardware failure or physical connection anomaly. When the system calculates the anomaly coefficient to be 0.07, it is judged as "data packet loss or clock jitter" according to the database, prompting the operation and maintenance personnel to check the corresponding problems.
[0101] The beneficial effects of the above technical solution are as follows: By presetting the monitoring device to collect and analyze the status data of the MIPI channel in real time, based on the determination of the status coefficient and the anomaly coefficient, combined with the coefficient-anomaly situation database, the channel anomaly situation is accurately identified, realizing efficient and intelligent anomaly detection. The accuracy and real-time performance of anomaly detection are significantly improved, the stability of the system is optimized, misjudgment and missed judgment are reduced, and the reliability and safety of equipment operation are ensured.
[0102] Embodiment 5:
[0103] The embodiment of the present invention provides a dual-channel screen anomaly detection and automatic switching method, which analyzes the status data of the MIPI channel, and then determines the status coefficient of the MIPI channel, including:
[0104] Analyze the status data of the MIPI channel, and then determine a number of status-related parameters;
[0105] Determine the status coefficient of the MIPI channel based on the status-related parameters:
[0106]
[0107] Wherein, C1 is the status coefficient of the MIPI channel, P i is the i-th status-related parameter of the MIPI channel, w i is the weight of the i-th status-related parameter of the MIPI channel, μ1 is a preset amplitude control coefficient, P0 i is the preset reference value of the i-th status-related parameter of the MIPI channel, N1 is the number of status-related parameters of the MIPI channel, Q j is the j-th status interference parameter of the MIPI channel, N2 is the number of status interference parameters of the MIPI channel, γ is the weight corresponding to the status interference parameter of the MIPI channel, α1 is the preset adjustment coefficient of the status interference parameter of the MIPI channel, β1 is the correction factor of the status interference parameter of the MIPI channel, β2 is the conversion factor of the status interference parameter of the MIPI channel, α1 is the proportionality coefficient of the status interference parameter of the MIPI channel, Q0 i is the preset reference value of the j-th status interference parameter of the MIPI channel, δ1 is the preset segmented threshold of the status interference parameter of the MIPI channel, and ln is the logarithmic function.
[0108] In this embodiment, the preset amplitude control coefficient is used to adjust the influence amplitude of the MIPI channel state parameter in the calculation of the state coefficient, and functions to balance or amplify specific parameters. Through the preset amplitude control coefficient, different environmental and device requirements can be flexibly adapted, making the calculation of the state coefficient more accurate. For example, in a specific environment, a parameter such as signal delay has a greater impact on screen anomaly detection. Therefore, the preset amplitude control coefficient is set to 1.5 to amplify its weight in the calculation. On the contrary, in a low-interference environment, the coefficient is set to 0.8 to reduce its influence;
[0109] In this embodiment, the preset reference value is the reference value for state-related parameters or interference parameters, used to measure the normality and deviation degree of the parameters. In the calculation of the state coefficient, the deviation value of the parameter (the difference from the reference value) directly affects the final anomaly judgment. For example, if a state-related parameter is the transmission rate of the MIPI channel, its preset reference value is 1.5 Gbps. If the actual collected data is 1.2 Gbps, it means that the parameter deviates from the reference value by 20%, indicating that there may be an anomaly;
[0110] In this embodiment, the state interference parameter is an external or secondary factor that affects the state of the MIPI channel and may cause deviations in state-related parameters. The state interference parameter introduces a correction factor and an adjustment coefficient in the calculation of the state coefficient to reduce or explain its misleading effect on anomaly determination. For example, a state interference parameter is the ambient temperature, with a preset reference value of 25 °C. If the actual temperature is 40 °C, it may cause an increase in the jitter of the MIPI transmission signal. By introducing a correction factor and segmented thresholds, considering the non-linear influence of temperature on the state coefficient, the detection result is made more reliable.
[0111] The beneficial effects of the above technical solution are as follows: By introducing a multi-level calculation model of state-related parameters and interference parameters, combined with precise control methods such as weights, correction factors, and preset reference values, the state of the MIPI channel is comprehensively quantified, the complex influence relationship between parameters is effectively balanced, the sensitivity and robustness of anomaly detection are improved, the adaptability and reliability of the device are significantly enhanced, and the efficiency and accuracy of dual-channel switching are guaranteed.
[0112] Embodiment 6:
[0113] The embodiment of the present invention provides a dual-channel screen anomaly detection and automatic switching method, with preset anomaly types including: data transmission anomaly, timing anomaly, channel connection anomaly, power supply anomaly, noise interference anomaly, temperature or environment anomaly, and firmware or configuration anomaly.
[0114] In this embodiment, abnormal data transmission refers to situations such as transmission interruption, packet loss, and data errors during the data transmission process of the MIPI channel. Examples include: data verification failure (such as CRC verification error), frame sync lost, too low data transmission rate or no data transmission signal.
[0115] In this embodiment, abnormal timing refers to the situation where the timing parameters of the MIPI channel do not meet the requirements, resulting in communication failure or display abnormality. Examples include: clock missing, data-clock desynchronization, and clock jitter exceeding the specified range;
[0116] In this embodiment, abnormal channel connection refers to the abnormal physical connection state between the MIPI channel and the LCM, which may be caused by hardware failures or poor contact. Examples include: physical disconnection of the channel, the LCM not responding to the handshake signal, and signal distortion caused by excessive contact resistance.
[0117] In this embodiment, abnormal power supply refers to the abnormal power supply state of the MIPI channel or the LCM, resulting in signal transmission failure or the device not working properly. Examples include: insufficient or overloaded power supply voltage, module reset caused by power transient interference, short circuit or open circuit of the power supply line;
[0118] In this embodiment, abnormal noise interference refers to the signal of the MIPI channel being affected by external noise or electromagnetic interference, resulting in communication data errors or interruptions. Examples include: signal distortion caused by high-frequency noise, increased bit error rate caused by electromagnetic interference, and data errors caused by crosstalk problems.
[0119] In this embodiment, abnormal temperature or environment refers to the working environment temperature of the MIPI channel or the LCM exceeding the allowable range, resulting in a decrease in device performance or failure. Examples include: the working temperature exceeding the specified range (such as >85°C or < -40°C), and signal attenuation or short circuit caused by excessive humidity;
[0120] In this embodiment, abnormal firmware or configuration refers to the mismatch of the firmware version or parameter configuration of the MIPI channel, resulting in abnormal operation. Examples include: incorrect initialization parameter settings, incompatibility between the firmware version and the LCM, and loss or damage of the configuration file.
[0121] The beneficial effects of the above technical solutions are as follows: By presetting multiple types of abnormalities, covering multi-dimensional factors such as data, timing, connection, power supply, noise, environment, and firmware, comprehensive and refined abnormality detection is achieved. This method greatly improves the accuracy and adaptability of abnormality recognition, can quickly locate the root cause of problems and trigger automatic switching, ensuring the stability and reliability of the screen operation, and effectively reducing the cost of fault handling.
[0122] Example 7:
[0123] The embodiment of the present invention provides a dual-channel screen abnormality detection and automatic switching method, which obtains the status data of a preset type of channel and the status data of the MIPI channel and analyzes them, and then determines the optimized channel based on the analysis result, including:
[0124] Obtain the status data of a preset type of channel and the status data of the MIPI channel and analyze them, and then determine the channel analysis coefficient;
[0125] Based on the channel analysis coefficient and the preset switching condition coefficient, determine whether the preset switching condition is met;
[0126] If the preset switching condition is met, determine the optimized channel based on the channel analysis coefficient and the preset coefficient-channel data table.
[0127] In this embodiment, the channel analysis coefficient is a comprehensive evaluation index obtained after analyzing the channel status data, which is used to quantify the operating condition of the current channel. Its calculation integrates multiple status parameters and interference factors, and balances the influence of each factor through weights and correction factors, so as to reflect the comprehensive performance of the channel. For example, if the status data of an MIPI channel includes signal strength, transmission rate, timing deviation, etc., assuming the signal strength score is 0.8, the transmission rate score is 0.9, and the timing deviation score is 0.7, the channel analysis coefficient obtained by weighted calculation is 0.82, indicating that the channel status is relatively good.
[0128] In this embodiment, the preset switching condition coefficient is a threshold parameter used to determine whether the current channel meets the switching requirements. The preset switching condition defines the trigger rule for channel switching, and usually combines the channel analysis coefficient with other external conditions to comprehensively judge whether to switch. For example, the preset switching condition is: when the channel analysis coefficient is lower than 0.75 and the interference coefficient exceeds 0.2, trigger the switching. Assuming that the current channel analysis coefficient is 0.7 and the interference coefficient is 0.25, which meets the switching condition, the system will switch to the standby channel.
[0129] In this embodiment, the preset coefficient-channel data table is a mapping table used to quickly match the optimal channel according to the channel analysis coefficient and other relevant coefficients. The table contains the preset reference values of the key performance indicators and status parameters of each channel, providing a basis for optimized selection after switching. For example, assume that the performance data of two channels are recorded in the coefficient-channel data table: Channel A: analysis coefficient 0.85, power consumption coefficient 0.2, noise coefficient 0.1, Channel B: analysis coefficient 0.9, power consumption coefficient 0.25, noise coefficient 0.15. The current system preferentially selects Channel B with the highest analysis coefficient for switching.
[0130] The beneficial effects of the above technical solution are as follows: By obtaining and analyzing the status data of the preset type channels and the MIPI channels, calculating the channel analysis coefficient, and intelligently selecting and optimizing channels in combination with the switching conditions and the coefficient-channel data table, accurate and efficient channel switching is achieved, significantly improving the abnormal handling ability and the stability of the screen performance, reducing the fault downtime, and optimizing the user experience.
[0131] Embodiment 8:
[0132] The embodiment of the present invention provides a dual-channel screen abnormality detection and automatic switching method, which obtains the status data of the preset type channels and the status data of the MIPI channels and analyzes them, and then determines the channel analysis coefficient, including:
[0133] Perform a first analysis on the status data of the preset type channels to determine the current status related parameters of several preset type channels;
[0134] Perform a second analysis on the status data of the MIPI channels to determine the current status related parameters of several MIPI channel data;
[0135] Obtain the current workload data, and then determine the channel analysis coefficient in combination with the current status related parameters of the preset type channels and the current status related parameters of the MIPI channels:
[0136]
[0137] Among them, C2 is the channel analysis coefficient, r k is the kth current status related parameter of the preset type channels, N3 is the number of the current status related parameters of the preset type channels, is the average value of the historical status related parameters of the preset type channels, σ k is the standard deviation of the historical status related parameters of the preset type channels, w1 k is the weight of the kth current status related parameter of the preset type channels, ∈1 is the adjustment coefficient of the preset type channels, r1 k is the conversion coefficient of the kth current status related parameter of the preset type channels, w1 k is the number of the kth current status related parameters of the preset type channels, ε1 is the weight coefficient of the preset type channels, ε2 is the weight coefficient of the MIPI channels, m s is the sth current status related parameter of the MIPI channels, N4 is the number of the current status related parameters of the MIPI channels, w2 s is the weight of the sth current status related parameter of the MIPI channels, m1 s is the conversion coefficient of the sth current status related parameter of the MIPI channels, ε3 is the interaction weight of the preset type channels and the MIPI channels, qks It is the interaction coefficient between the k-th current state-related parameter of a channel of a preset type and the s-th current state-related parameter of the MIPI channel.
[0138] In this embodiment, the first analysis is an analysis process for the state data of a channel of a preset type. The purpose is to extract and evaluate the current state-related parameters of the channel. By combining the average value and standard deviation of historical state data, the current parameters are quantified, and then the operating condition of the channel is evaluated. For example, in a channel of a preset type, the current state-related parameters include signal delay, bandwidth utilization rate, and bit error rate. Through the first analysis, the current signal delay is calculated to be 20 ms (historical average value is 15 ms, standard deviation is 3 ms), the bandwidth utilization rate is 80% (normal value is 75%), and the bit error rate is 0.01% (normal value is 0.05%). The analysis shows that the overall state of the channel is good, but the signal delay is relatively high and may need attention.
[0139] In this embodiment, the second analysis is an evaluation process for the state data of the MIPI channel. The main purpose is to extract the current state-related parameters of the MIPI channel and perform state quantification in combination with its characteristics. By evaluating the weights, conversion coefficients, and historical reference data of these parameters, the current performance of the MIPI channel is determined. For example, in the MIPI channel, the current state-related parameters include data transmission rate, signal jitter, and synchronization error. Through the second analysis, the calculated transmission rate is 1.8 Gbps (weight is 0.4, conversion coefficient is 1.2), the signal jitter is 5 ps (weight is 0.3, conversion coefficient is 1.0), and the synchronization error is 0.5 ns (weight is 0.3, conversion coefficient is 0.8). The comprehensive result shows that the performance of the MIPI channel is slightly lower than the optimal state and may require optimizing the transmission rate.
[0140] The beneficial effects of the above technical solution are as follows: Through the comprehensive processing of the first analysis, the second analysis, and the workload data, the channel analysis coefficient is calculated by using multi-parameter interaction to accurately evaluate the channel performance. By integrating historical data and real-time state, the intelligence and robustness of detection and switching are significantly improved, ensuring the efficient operation and stability of the dual-channel in complex scenarios.
[0141] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments or perform equivalent replacements for some of the technical features. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A dual-channel screen abnormality detection and automatic switching method, characterized in that: include: Step 1: Initialize the MIPI channel and establish an initial communication connection between the MIPI channel and the LCM. At the same time, configure the preset type of channel as a standby channel; Step 2: Based on the preset monitoring device, real-time monitoring and collection of MIPI channel status data are performed, and abnormal conditions of the MIPI channel are determined; Step 3: Analyze the abnormal situation of the MIPI channel and determine the abnormal type of the MIPI channel. If the abnormal type of the MIPI channel belongs to the preset abnormal type, replace the MIPI channel with a channel of the preset type and repair the abnormality of the MIPI channel. Step 4: Based on the preset monitoring device, the status of the preset channel type is monitored in real time. At the same time, mirror transmission is performed on the repaired MIPI channel, and the status data of the repaired MIPI channel is obtained based on the preset inspection frequency; Step 5: Obtain and analyze the status data of the preset type of channel and the status data of the MIPI channel, and then determine the optimized channel based on the analysis results.
2. The dual-channel screen abnormality detection and automatic switching method according to claim 1 is characterized in that: Initialize the MIPI channel and establish an initial communication connection between the MIPI channel and the LCM. At the same time, configure the preset type of channel as a standby channel, including: Obtain specific parameters of the LCM, and determine configuration parameters of the MIPI channel based on the specific parameters of the LCM; Configure the MIPI channel based on the configuration parameters of the MIPI channel; Initialize the MIPI interface based on a preset method, and then send several preset types of initialization commands to the LCM through the initialized MIPI interface. After receiving the initialization command, the LCM returns a handshake signal; Parse the handshake signal to determine whether the initialization command is correct. If the initialization command is correct, LCM will confirm that the communication is successful and enter the working state; If the initialization command is wrong, it is judged as a communication failure, and the LCM returns a status signal, and then reinitialization is performed based on the returned status signal; If the LCM enters the working state, a channel of a preset type is configured as a standby channel based on a preset configuration method.
3. The dual-channel screen abnormality detection and automatic switching method according to claim 1 is characterized in that: Configuration parameters include: MIPI interface timing parameters, MIPI transmission rate and data channel, and MIPI data width and data type.
4. The dual-channel screen abnormality detection and automatic switching method according to claim 1, characterized in that: Based on the preset monitoring device, the status data of the MIPI channel is monitored and collected in real time, and the abnormal situation of the MIPI channel is determined, including: Monitor and collect MIPI channel status data in real time based on preset monitoring devices; Analyze the status data of the MIPI channel to determine the status coefficient of the MIPI channel; If the state coefficient of the MIPI channel is greater than the preset state coefficient, the state coefficient of the MIPI channel and the preset state coefficient determine the abnormal coefficient of the MIPI channel; The abnormal condition of the MIPI channel is determined based on a preset coefficient-abnormal condition database and the abnormal coefficient of the MIPI channel.
5. The dual-channel screen abnormality detection and automatic switching method according to claim 4 is characterized in that: Analyze the status data of the MIPI channel to determine the status coefficient of the MIPI channel, including: Analyze the status data of the MIPI channel to determine several status-related parameters; Determine the state coefficient of the MIPI channel based on the state-related parameters: Among them, C1 is the state coefficient of the MIPI channel, P i is the i-th state-related parameter of the MIPI channel, w i is the weight of the i-th state-related parameter of the MIPI channel, μ1 is the preset amplitude control coefficient, P0 i is the preset reference value of the i-th state-related parameter of the MIPI channel, N1 is the number of state-related parameters of the MIPI channel, Q j is the jth state interference parameter of the MIPI channel, N2 is the number of state interference parameters of the MIPI channel, γ is the weight corresponding to the state interference parameter of the MIPI channel, α1 is the preset adjustment coefficient of the state interference parameter of the MIPI channel, β1 is the correction factor of the state interference parameter of the MIPI channel, β2 is the conversion factor of the state interference parameter of the MIPI channel, α1 is the proportional coefficient of the state interference parameter of the MIPI channel, Q0 i is the preset reference value of the j-th state interference parameter of the MIPI channel, δ1 is the preset segmentation threshold of the state interference parameter of the MIPI channel, and ln is a logarithmic function.
6. The dual-channel screen abnormality detection and automatic switching method according to claim 1, characterized in that: Preset exception types include: data transmission exception, timing exception, channel connection exception, power supply exception, noise interference exception, temperature or environment exception, and firmware or configuration exception.
7. The dual-channel screen abnormality detection and automatic switching method according to claim 1, characterized in that: Obtain and analyze the channel status data of preset types and the status data of MIPI channels, and then determine the optimized channel based on the analysis results, including: Obtain and analyze the status data of a preset type of channel and the status data of a MIPI channel, and then determine a channel analysis coefficient; Determining whether a preset switching condition is met based on the channel analysis coefficient and the preset switching condition coefficient; If the preset switching condition is met, the optimized channel is determined based on the channel analysis coefficient and the preset coefficient-channel data table.
8. The dual-channel screen abnormality detection and automatic switching method according to claim 7, characterized in that: Obtain and analyze the status data of the preset channel type and the status data of the MIPI channel, and then determine the channel analysis coefficient, including: Performing a first analysis on the state data of the preset type of channels to determine current state-related parameters of several preset types of channels; Perform a second analysis on the status data of the MIPI channel to determine current status related parameters of several MIPI channel data; The current workload data is obtained, and the channel analysis coefficient is determined by combining the current state-related parameters of the preset type of channel and the current state-related parameters of the MIPI channel: Among them, C2 is the channel analysis coefficient, r k is the kth current state related parameter of the preset type of channel, N3 is the number of current state related parameters of the preset type of channel, is the average value of the historical state related parameters of the preset type of channel, σ k is the standard deviation of the historical state related parameters of the preset channel type, w1 k is the weight of the kth current state related parameter of the preset type of channel, ∈1 is the adjustment coefficient of the preset type of channel, r1 k is the conversion coefficient of the kth current state related parameter of the preset type of channel, w1 k is the number of the kth current state related parameters of the preset type of channel, ε1 is the weight coefficient of the preset type of channel, ε2 is the weight coefficient of the MIPI channel, m s is the sth current state related parameter of the MIPI channel, N4 is the number of current state related parameters of the MIPI channel, w2 s is the weight of the sth current state related parameter of the MIPI channel, m1 s is the conversion coefficient of the sth current state related parameter of the MIPI channel, ε3 is the interaction weight between the preset type of channel and the MIPI channel, q ks It is the interaction coefficient between the kth current state related parameter of the preset type of channel and the sth current state related parameter of the MIPI channel.
Citation Information
Patent Citations
Power line carrier communication method intelligently selecting signal channel
CN107529689A
Dual link backup method, system and storage medium based on optical fiber 4KHDR ultra high definition video transmission
CN109412756A
Electronic equipment
CN114443373A
Channel repairing method and related device
CN115346590A
High-speed data transmission method based on 5G technology
CN116193426A