Detection method and device, computer equipment, storage medium and program product
Through the conversion module to parse and convert signals under the initial display protocol in signal detection, it solves the problem of insufficient signal protocol detection efficiency and accuracy under modular development, realizes efficient signal and module detection, and judges its versatility and portability sex.
Patent Information
- Application Number
- CN202410733777.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-20
AI Technical Summary
After the modular development idea is introduced into chip design, the efficiency and accuracy of signal protocol detection need to be improved, especially during the conversion process between different display protocols.
The signal under the initial display protocol is obtained and parsed through the conversion module, converted into data under the target display protocol, and output to the target screen for detection to determine the versatility and portability of the signal and module. The method includes using random access memory for cache processing, capacitor-resistor circuit power supply, and detecting power consumption through a power consumption test module.
It improves the efficiency and accuracy of signal detection, judges the versatility and portability of signals and modules, makes the test faster, and enables efficient detection between different screens and protocols.
Smart Images

Figure CN118672834A
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a detection method, apparatus, computer equipment, storage medium and computer program product. Background Art
[0002] In the existing solution, when the precise electronic LCD module signal detection system is used to perform multi-functional detection on the electrical and signal of the LCD module, the user can operate through the computer client, command line or portable remote control box, and complete the unified scheduling and management of each task through message drive to achieve functional differentiation in different scenarios.
[0003] However, the introduction of modular development ideas into chip design has greatly improved the versatility and portability of each module, and also accelerated the rapid prototyping of products; however, it is necessary to test the protocol applicable to the signal and the protocol conversion process, so the efficiency and accuracy of the detection need to be improved. Summary of the invention
[0004] Based on this, it is necessary to provide a detection method, device, computer equipment, computer-readable storage medium and computer program product that can improve efficiency and accuracy in response to the above technical problems.
[0005] In a first aspect, the present application provides a detection method, the method comprising:
[0006] Acquire and parse the signal under the initial display protocol through the conversion module to obtain initial data;
[0007] The conversion module converts the initial data into target data under the target display protocol;
[0008] The target data is output to a target screen for display, so as to detect whether at least one of the signal and the conversion module is applicable to the initial display protocol and the target display protocol.
[0009] In one embodiment, the step of acquiring and parsing a signal under an initial display protocol through a conversion module to obtain initial data includes:
[0010] Parsing the signal under the initial display protocol according to the initial display protocol by the conversion module to obtain parsed data;
[0011] The parsed data is cached through the random access memory in the conversion module to obtain initial data.
[0012] In one embodiment, the random access memory is a PSRAM, the storage unit of the PSRAM is a capacitor-based storage structure, and the storage unit of the PSRAM has the same data reading and writing method as the SRAM;
[0013] The step of caching the parsed data through the random access memory in the conversion module to obtain the initial data includes:
[0014] The parsed data is cached through the storage unit of the PSRAM according to the data reading and writing method of the SRAM to obtain initial data.
[0015] In one embodiment, before obtaining the initial data by the conversion module, acquiring and parsing the signal under the initial display protocol, the process includes:
[0016] The conversion module is powered by the switch tube turned on by the capacitor-resistance circuit, so that the conversion module acquires and analyzes the signal under the initial display protocol to obtain initial data.
[0017] In one embodiment, outputting the target data to a target screen for display includes:
[0018] Determine a target power source to which the signal is adapted among candidate power sources;
[0019] Powering a target screen adapted to the target power supply through the target power supply;
[0020] The target data is output to the target screen for display.
[0021] In one embodiment, the step of acquiring and parsing a signal under an initial display protocol through a conversion module to obtain initial data includes:
[0022] The conversion module receives a signal from the bit error generator through a signal connector; the signal is generated by the bit error generator according to the initial display protocol;
[0023] The signal is analyzed by the conversion module to obtain initial data.
[0024] In one embodiment, the method further comprises:
[0025] detecting the power consumption of the conversion module by a power consumption testing module; and / or,
[0026] The power consumption of the target screen is detected by the power consumption testing module.
[0027] In a second aspect, the present application further provides a detection device, the device comprising:
[0028] A conversion module, used for acquiring and parsing the signal under the initial display protocol to obtain initial data;
[0029] The conversion module is used to convert the initial data into target data under the target display protocol;
[0030] The data output module is used to output the target data to a target screen for display, so as to detect whether at least one of the signal and the conversion module is applicable to the initial display protocol and the target display protocol.
[0031] In a third aspect, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the steps of the detection method in any of the above embodiments when executing the computer program.
[0032] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the detection method in any of the above embodiments are implemented.
[0033] In a fifth aspect, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the detection method in any of the above embodiments are implemented.
[0034] The above detection method, device, computer equipment, storage medium and computer program product obtain and analyze the signal under the initial display protocol through the conversion module to obtain the initial data; although there is a screen that supports the initial data, the initial data is converted into target data under the target display protocol through the conversion module; and the target data is output to the target screen for display to detect whether at least one of the signal and the conversion module is applicable to the initial display protocol and the target display protocol. Therefore, through this conversion process, at least one of the conversion module and the signal can be detected to determine whether the project is universal and portable, and the test speed is relatively high. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] FIG1 is a diagram of an application environment of a detection method in one embodiment;
[0036] Figure 2 A schematic diagram of a detection method in an embodiment;
[0037] Figure 3 A schematic diagram of a process for obtaining initial data in an embodiment;
[0038] Figure 4 A schematic diagram of a capacitor-resistance circuit in one embodiment;
[0039] Figure 5 A schematic diagram of a conversion module and its power supply process in one embodiment;
[0040] Figure 6 A schematic diagram of a process of screen selection and power supply in one embodiment;
[0041] Figure 7 is a schematic diagram of the structure of a conversion module in one embodiment;
[0042] Figure 8 is a structural block diagram of a detection device in an embodiment;
[0043] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0045] The detection method provided in the embodiment of the present application can be applied in the application environment as shown in Figure 1. The signal received by the detection device comes from the signal output circuit of the terminal, and the signal output circuit can be the main processor (CPU), micro control unit (MCU) or other modules of the terminal; and the target screen is a screen in the terminal that can be used to display information; the signal and the target screen can belong to different models of terminals, or they can belong to the same model of terminals. The terminal can be, but is not limited to, various error generators, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc.
[0046] In one embodiment, Figure 2 As shown, a detection method is provided, which is applied to the detection device in Figure 1, and the method includes the following steps:
[0047] Step 202: Acquire and parse the signal under the initial display protocol through the conversion module to obtain initial data.
[0048] Among them, the conversion module is a protocol conversion module, which is used to convert the display protocol of the signal. Since the detection device is provided with a conversion module, the versatility and portability of the detection module can be improved, and the unified scheduling and management of various tasks can be completed through message drive to achieve functional differentiation in different scenarios. At the same time, in the case of introducing modular development ideas into chip design, it is necessary for the conversion module and the module to which the signal belongs to be applicable to different screens, so as to ensure the versatility and portability between the signal and the screen. The conversion module can be a chip, a transistor, an integrated circuit or other physical module.
[0049] The initial display protocol is a protocol in the field of digital display technology. The initial display protocol involves transmission rules and display rules, and according to the transmission rules of the initial display protocol, the signal under the initial display protocol can be converted into initial data. The conversion module can parse the signal into initial data according to the initial display protocol.
[0050] The initial data is the data obtained by the conversion module after parsing according to the initial display protocol. If the screen supports the display rules of the initial display protocol, a picture or other information can be generated on the screen based on the initial data according to the display rules of the initial display protocol.
[0051] By performing signal conversion through a conversion module instead of displaying based on initial data, the universality and portability of the signal can be tested, and the conversion module itself can be tested to determine whether the conversion module and the module to which the signal belongs are universal and portable. The module to which the signal belongs includes but is not limited to a module that generates or outputs the signal.
[0052] Optionally, obtaining a signal under an initial display protocol through a conversion module includes: performing frame synchronization processing on a data stream received by the conversion module through a physical interface in accordance with a format and synchronization method indicated by the initial display protocol, so that the conversion module can more accurately identify the start and end positions of the signal and more accurately form a data frame containing the initial data.
[0053] Optionally, acquiring a signal under an initial display protocol through a conversion module includes: determining the start and end positions of the signal through the conversion module according to a format indicated by the initial display protocol; and generating a data frame containing initial data based on the signal between the start and end positions.
[0054] Optionally, the signal under the initial display protocol is parsed by a conversion module to obtain initial data, including: when the signal under the initial display protocol contains image attribute information, the conversion module parses the video data according to the video transmission specification in the initial display protocol, needs to identify and extract this information, and converts it into a format that can be used by the display, so as to obtain initial data in a video format; wherein the image attribute information includes but is not limited to resolution, color depth and compression format.
[0055] Optionally, the signal under the initial display protocol is parsed by the conversion module to obtain the initial data, including: when the signal under the initial display protocol includes an audio signal, the conversion module parses the audio attribute according to the audio transmission specification in the initial display protocol and converts it into a format that can be used by the audio device to obtain the initial data in the audio format. The audio attribute includes but is not limited to the format, sampling rate, number of channels and other information of the audio data.
[0056] Optionally, the initial data may be a data frame, or may be initial data in a video format parsed from a data frame, and / or initial data in an audio format.
[0057] Step 204: convert the initial data into target data under the target display protocol.
[0058] The target display protocol is a protocol in the field of digital display technology that is different from the initial display protocol. The target display protocol involves transmission rules and display rules, and according to the transmission rules of the target display protocol, the initial data can be converted into the target data.
[0059] The target data is the data obtained by the conversion module by converting the initial data according to the target display protocol. If the screen supports the display rules of the target display protocol, a picture or other information can be generated on the screen based on the target data according to the display rules of the target display protocol.
[0060] Optionally, the initial display protocol is an embedded display protocol (Embedded DisplayPort, eDp), and the target display protocol is a mobile interface protocol (Mobile Industry Processor Interface, MIPI).
[0061] Optionally, converting the initial data into target data under the target display protocol includes: encapsulating the data packet according to the target display protocol to obtain the target data.
[0062] Optionally, converting the initial data into target data under the target display protocol includes: determining a sub-protocol under the target display protocol according to the application field to which the initial data belongs; and converting the initial data according to the sub-protocol to obtain the target data. Taking the target display protocol as the MIPI protocol as an example, the sub-protocols include but are not limited to DSI and CSI.
[0063] Optionally, the initial data is converted into target data under the target display protocol, including: encapsulating the control instructions in the initial data according to the data length of the command packet to obtain a command packet; encapsulating the video data in the initial data according to the data length of the video data packet to obtain a video data packet; the command packet and the video data packet are both target data.
[0064] Optionally, the initial display protocol and the target display protocol are corresponding display protocol groups, and each display protocol group performs data conversion in sequence; correspondingly, converting the initial data into target data under the target display protocol includes: converting the initial data in the current display protocol group into target data in the current display protocol group, converting the target data in the current display protocol group as the initial data in the next display protocol group, until the last display protocol group is obtained, and using the target data obtained by the last conversion as the target data output to the target screen for display. Thus, the target data of each display protocol group is used as the initial data of the next display protocol group, and step 204 is repeatedly performed, so that when each display protocol is supported by different screens, the universality and portability can be tested more comprehensively and efficiently through fewer tests.
[0065] Step 206: Output the target data to the target screen for display, so as to detect whether at least one of the signal and the conversion module is applicable to the initial display protocol and the target display protocol.
[0066] The target screen is a screen that supports the target display protocol. The target screen is a display module of the terminal, which is used to display information represented by the target data according to the target display protocol. The display of the target data on the target screen can be used to determine whether the signal under the initial display protocol is compatible with the initial display protocol and the target display protocol, and can also be used to determine whether there is an abnormality in the conversion process of the conversion module between the two display protocols.
[0067] Optionally, outputting the target data to a target screen for display includes: outputting the target data to the target screen for display when power is supplied to the target screen.
[0068] Optionally, outputting the target data to a target screen for display includes: encoding the target data into a level signal to obtain the level signal for representing the target data; and outputting the level signal for representing the target data to the target screen for display.
[0069] Optionally, when the conversion module is switched and the signal under the initial display protocol does not change, the target data is output to the target screen for display to test whether the conversion module is universal and portable; when the conversion module does not change and the signal under the initial display protocol changes, the target data is output to the target screen for display to test whether the signal under the initial display protocol is universal and portable; when the conversion module changes and the signal under the initial display protocol changes, the target data is output to the target screen for display to test whether the conversion module and the signal under the initial display protocol are universal and portable.
[0070] In the above detection method, the signal under the initial display protocol is obtained and parsed by the conversion module to obtain the initial data; although there is a screen that supports the initial data, the initial data is converted into target data under the target display protocol by the conversion module; and the target data is output to the target screen for display to detect whether at least one of the signal and the conversion module is applicable to the initial display protocol and the target display protocol. Therefore, through this conversion process, at least one of the conversion module and the signal can be detected to determine whether the project is universal and portable, and the test speed is relatively high.
[0071] In an exemplary embodiment, Figure 3 As shown, obtaining and parsing the signal under the initial display protocol to obtain initial data includes steps 302 and 304, wherein:
[0072] Step 302: parse the signal under the initial display protocol through the conversion module according to the initial display protocol to obtain parsed data.
[0073] The parsed data is the data obtained by parsing according to the initial display protocol. Since the initial display protocol and the target display protocol belong to different display protocols, the initial data and the target data are different in terms of data transmission methods, so the initial display protocol needs to be parsed and stored first, and then converted according to the target display protocol. It should be understood that the parsed data and the initial data represent the same information, and one or some parameters in the parsed data and the initial data are the same or affect each other, which leads to data conflict problems. Parsing and storing them separately can avoid data conflict problems.
[0074] Optionally, the signal under the initial display protocol is parsed by the conversion module according to the initial display protocol, including: determining the start and end positions of the signal by the conversion module according to the format indicated by the initial display protocol; and generating a data frame containing initial data according to the level signal between the start and end positions.
[0075] Optionally, parsing the signal under the initial display protocol according to the initial display protocol by the conversion module to obtain the parsed data includes: parsing the signal under the initial display protocol according to the initial display protocol by the initial display protocol conversion module in the conversion module to obtain the parsed data.
[0076] Step 304: Cache the parsed data using the random access memory in the conversion module to obtain initial data.
[0077] Random access memory is a memory whose storage units are independently addressed, so access requests can be initiated to multiple memories with different addresses at the same time to achieve parallel data reading and writing. This parallelism helps to improve the overall data throughput. Exemplarily, the random access memory can be a dynamic random access memory (DRAM), the random access memory can be a static random access memory (SRAM), and the random access memory can also be a pseudo static random access memory (PSRAM).
[0078] The random access memory may be a volatile memory, which is a temporary storage medium for operating system programs or running applications. Since the data stored in the volatile memory will be lost when the power is off, the data can be kept saved by continuous power supply, so there is no need to build a persistent and stable data storage structure to more efficiently convert the initial data.
[0079] In this embodiment, the signal under the initial display protocol is parsed by the conversion module, so that the generation process and storage process of the initial data are executed in different stages, reducing the possibility of data conflict; and the initial data can be cached more efficiently by storing it in a random access memory.
[0080] In an exemplary embodiment, the random access memory is a PSRAM, a storage unit of the PSRAM is a capacitor-based storage structure, and the storage unit of the PSRAM has the same data reading and writing method as that of the SRAM.
[0081] Among them, PSRAM is a pseudo-static random access memory, which has a self-refresh mechanism for its own storage cells and / or an amplifier, which can extend its own charge storage time through the amplifier. Therefore, the storage cells of PSRAM and the storage cells of DRAM are both based on capacitor storage structures, so the storage cells of PSRAM occupy a relatively small area, and more storage cells can be arranged, making the storage capacity larger; at the same time, the storage cells of PSRAM can use the same data reading and writing method as SRAM to improve access time and reduce latency.
[0082] SRAM is a static random access memory, and the data reading and writing method of static random access memory. The storage unit of PSRAM has the same data reading and writing method as SRAM, which means that for SRAM, each bit on its address bus corresponds to a specific row and column of the storage array, and these address bits are converted into row selection and column selection signals through the address decoder to realize data reading and writing; correspondingly, for PSRAM, each bit on its address bus corresponds to a specific row and column of the storage array, and these address bits are converted into row selection and column selection signals through the address decoder to realize data reading and writing.
[0083] The parsed data is cached through the random access memory in the conversion module to obtain the initial data, including: the parsed data is cached through the storage unit structure of the pseudo-static random access memory according to the data reading and writing method of the static random access memory to obtain the initial data.
[0084] In an optional embodiment, the parsed data is cached through the storage cell structure of the pseudo-static random access memory in accordance with the data reading and writing method of the static random access memory to obtain the initial data, including: in the storage cell structure of the pseudo-static random access memory, the pseudo-static random access memory determines the target storage cell according to the order in which each bit of data in the initial data is generated in sequence; in the target storage cell, charge is stored through a storage capacitor to obtain a storage capacitor storing charge; each storage capacitor storing charge is used to represent each bit of data in the initial data.
[0085] In an optional embodiment, the parsed data is cached according to the data reading and writing method of the static random access memory through the storage cell structure of the pseudo-static random access memory to obtain the initial data, including: in the storage cell structure of the pseudo-static random access memory, the pseudo-static random access memory determines the target storage cell according to the order in which each bit of data in the initial data is generated in sequence; in the target storage cell, the charge is stored through the storage capacitor to obtain a storage capacitor storing the charge; the sense amplifier in the pseudo-static random access memory performs amplification processing according to the charge stored in the storage capacitor to obtain the amplified level of the storage capacitor; the amplified level of each storage capacitor is used to characterize each bit of data in the initial data. Therefore, since the storage capacitor storing the charge is amplified by the sense amplifier, an effect similar to that of a trigger can be achieved, and the refresh frequency can be reduced. Even when the target data conversion process is faster than the initial data parsing process, there is no need to refresh the frequency to ensure a more efficient conversion frequency.
[0086] In this embodiment, a pseudo-static random access memory is used to cache initial data. Since the initial data storage unit uses the storage unit structure of a dynamic random access memory, the physical space occupied is relatively small, a relatively large storage capacity can be achieved, and it is expandable, so it can be applied to initial data with different data volumes. At the same time, the pseudo-static random access memory in this embodiment has the same data reading and writing method as the static random access memory, because the pseudo-static random access memory has a self-refresh mechanism, so the pseudo-static random access memory can be omitted from receiving external instructions to perform refresh operations, so as to ensure that the data conversion process has a higher efficiency.
[0087] In an exemplary embodiment, before obtaining the initial data by the conversion module acquiring and parsing the signal under the initial display protocol, it includes: powering the conversion module through a switch tube turned on by a capacitor-resistor circuit, so that the conversion module acquires and parses the signal under the initial display protocol to obtain the initial data.
[0088] The capacitor-resistor circuit is a time delay circuit used to control whether the switch tube is turned on.
[0089] A switching tube is a transistor used as a switch.
[0090] Optionally, a capacitor-resistor circuit is connected between the base and emitter of the switching tube, and the time required for the transistor Q1 to be turned from cutoff to turn-on is extended by at least part of the capacitor in the capacitor-resistor circuit, and the switching speed of the transistor is adjusted by adjusting the resistance value of at least part of the resistor in the capacitor-resistor circuit to achieve delay control.
[0091] Alternatively, if Figure 4As shown, the capacitor-resistance circuit includes a first capacitor C1, a second capacitor C2 and a resistor R1; the first capacitor C1 and the second capacitor C2 are respectively connected between the base 1 and the emitter 2 of the transistor Q1, and between the collector 3 of the transistor Q1 and the ground. The first capacitor C1 is connected between the base 1 and the emitter 2 of the transistor Q1, and it can store charges and release them slowly, thereby extending the time required for the transistor Q1 to be turned on from off. The second capacitor C2 is connected between the collector 2 of the transistor Q1 and the ground, and it can also store charges and release them slowly, thereby extending the time required for the output signal to reach the maximum value; the resistor R1 is connected between the emitter 2 and the collector 3 of the transistor Q1, and the function of the resistor R1 is to limit the current flowing through the transistor. By adjusting the resistance value of the resistor R1, the switching speed of the transistor can be changed. When the signal reaches the base 1 of the transistor Q1, a current will flow through the transistor Q1, thereby turning on the transistor Q1.
[0092] Optionally, the switch tube can be a metal oxide semiconductor field effect transistor (MOSFET, mos) or a triode; the metal oxide semiconductor field effect transistor adjusts the current between the source and the drain by controlling the gate voltage to control whether the conversion module is turned on; and the triode controls the current between the emitter and the collector through the base current to control whether the conversion module is turned on.
[0093] In this embodiment, the capacitor is charged through a resistor, the capacitor voltage is used to control the on-off of the switch tube, and the conduction delay is generated by adjusting the resistance value and the capacitance value. As a result, the activation time of each module of the power supply can be gradually started according to the timing, which helps to avoid the current peak and voltage fluctuation caused by starting multiple modules at the same time, so that the detection device can operate stably, and prevent abnormalities caused by power switching, reducing the impact of modularization; at the same time, ensure that each module of the power supply is correctly enabled or disabled at a specific stage of the system operation, so that the conversion module can cooperate with other modules. In addition, when the voltage exceeds the safe range, the protection mechanism can be triggered by the comparator to avoid damage to the conversion module or the screen.
[0094] In an exemplary embodiment, outputting target data to a target screen for display includes: determining a target power source to which the signal is adapted from candidate power sources; supplying power to a target screen adapted to the target power source through the target power source; and outputting the target data to the target screen for display.
[0095] Among them, the candidate power source is a power module adapted to different screen types. The screen adapted by each candidate power source can be made of different materials, and the principles of light emission of different materials are different, so different power sources can be used for power supply. The target power source is a candidate power source determined based on the initial data.
[0096] Optionally, the candidate power sources are power sources designed for screens of different materials, one of which uses an organic light-emitting diode (OLED) and the other of which uses a liquid crystal display (LCD).
[0097] If the candidate power sources of the LCD screen are used, the OLED screen will not work properly because the OLED screen does not need a backlight module. If the candidate power sources of the LCD screen are used for the OLED screen, the OLED screen will not get enough voltage to drive the pixels to emit light, resulting in poor display effects.
[0098] If the candidate power sources of OLED are used, the LCD screen will not work properly because the LCD screen needs a backlight module to provide light. If the candidate power sources of OLED screen are used for LCD screen, the LCD screen will not get enough voltage to drive the backlight module, resulting in poor display effect.
[0099] Optionally, the target screen for signal adaptation can be identified based on one of the initial data and the target data; when the target screen is determined based on the initial data, the power supply of the target screen can be controlled during the conversion of the target data to improve processing efficiency.
[0100] Optionally, the target screen for signal adaptation can be determined according to the screen identifier in the initial data, and the target screen for signal adaptation can be determined according to the number of modules operated by the initial data. In the case of determining the target screen by the number of modules operated by the initial data, the screen identifier can be omitted to increase the output speed. For example: when the initial data contains data for processing the backlight module, the candidate power source supporting the liquid crystal display is the target power source; when the initial data does not contain data for processing the backlight module, the candidate power source supporting the organic light emitting diode display is the target power source.
[0101] In this embodiment, since each signal is adapted to a single type of screen, the detection device is configured with different candidate power sources so that the detection device can detect signals adapted to different screens. At the same time, since the target data output by the conversion module needs to be adapted to different screens, the detection of the conversion module can also be realized.
[0102] In an exemplary embodiment, the signal under the initial display protocol is acquired and parsed by a conversion module to obtain initial data, including: the conversion module receives a signal from an error generator through a signal connector; the signal is generated by the error generator according to the initial display protocol; the signal is parsed by the conversion module to obtain initial data.
[0103] Among them, the error generator is an instrument used to test the quality of data transmission in digital communication systems. The error generator can simulate various types of errors at the sending end to test the error detection and correction capabilities of the receiving end. The error generator can simulate various types of errors, including but not limited to: bit flip, insertion error, deletion error, and repetition error.
[0104] Optionally, the signal under the initial display protocol may be obtained through a SubMiniature version A (SMA) connector, or may be obtained through other RF connectors or other connectors (connect).
[0105] In an optional embodiment, the signal under the initial display protocol is obtained and parsed by the conversion module to obtain the initial data, including: the conversion module is powered by the switch tube turned on by the capacitor-resistance circuit, so that the conversion module receives the signal from the error generator through the signal connector; the signal is generated by the error generator according to the initial display protocol; the signal is parsed by the conversion module to obtain the initial data. Therefore, the capacitor voltage is controlled to turn on and off the switch tube, and the conduction delay is generated by adjusting the resistance value and the capacitance value to achieve the corresponding effect.
[0106] In an optional embodiment, the signal is parsed by a conversion module to obtain initial data, including: parsing the signal under the initial display protocol according to the initial display protocol by the conversion module to obtain parsed data; caching the parsed data by a random access memory in the conversion module to obtain the initial data.
[0107] In an optional embodiment, the random access memory is a PSRAM, the storage unit of the PSRAM is a capacitor-based storage structure, and the storage unit of the PSRAM has the same data reading and writing method as the SRAM. The signal is parsed by the conversion module to obtain the initial data, including: parsing the signal under the initial display protocol by the conversion module according to the initial display protocol to obtain the parsed data; caching the parsed data by the storage unit of the PSRAM according to the data reading and writing method of the SRAM to obtain the initial data.
[0108] In this embodiment, since the error generator generates a signal under the initial display protocol based on the initial display protocol, it can obtain multiple types of signals through the signal connector, and then analyze the multiple types of signals separately, so that different signals can be simulated more accurately to detect the applicability of the conversion module in terms of the initial display protocol and the target display protocol.
[0109] In an exemplary embodiment, the method further includes: detecting the power consumption of the conversion module through a power consumption testing module; and / or detecting the power consumption of the target screen through a power consumption testing module.
[0110] The power consumption detection module is used to detect the power consumption of at least one module in the conversion module and the target screen.
[0111] Optionally, the power consumption test module includes a first power consumption detection module and a second power consumption detection module; the power consumption of the conversion module is detected by the first power consumption test module; and / or the power consumption of the target screen is detected by the second power consumption test module. Thus, the power consumption detection module is modularized to be divided into two types: the first power consumption detection module and the second power consumption detection module. The power consumption detection of the conversion module and the target screen is performed respectively by these two types, which helps to avoid data conflicts.
[0112] In this embodiment, the detection device is provided with a power consumption detection module, which performs power consumption detection on at least one of the conversion module and the target screen, so that the detection process of universality and portability involves power consumption. Therefore, from the perspective of power consumption of the conversion module and the target screen, the signal conversion process under different display protocols can have multiple dimensions.
[0113] In a specific embodiment, the signal transmitted by the embedded display protocol is parsed into initial data by a conversion module, and the initial data is converted into target data under the mobile interface protocol by the conversion module.
[0114] In a specific embodiment, Figure 5 As shown, when the screen is powered by a power management unit (Power Management Unit, PMU) and a low dropout regulator (low dropout regulator, LDO), and the conversion module is detected by the power timing control first power consumption detection module, the mobile phone processor signal under the embedded display protocol is input to the conversion module, the signal transmitted by the embedded display protocol is parsed into initial data by the conversion module, and the initial data is converted into target data under the mobile interface protocol by the conversion module, and then in the power supply of the LCD screen and the power supply of the OLED screen, the target power supply adapted according to the signal transmitted by the embedded display protocol; the target power supply is powered to output the target data to the target screen in the LCD screen and the OLED screen for display, and the target data is output to the target screen.
[0115] In a specific embodiment, Figure 6As shown, the power supply of the mobile phone display depends on the power module. The OLED power module provides power to the OLED display, and the LCD power module provides power to the LCD display. The power timing is controlled by software through the IO of the conversion module, and the power consumption is monitored through the power consumption test module 2.
[0116] In a specific embodiment, Figure 7 As shown, the conversion module includes an EDP parsing unit, a PSRAM, a TX PHY conversion unit, a Power supply unit, a flash memory (Flash) and a port (IO); wherein the EDP parsing unit is used to parse the EDP protocol to obtain initial data; the PSRAM is used to store the initial data; the TX PHY conversion unit is used to send the initial data cached in the PSRAM through the MIPI interface, the flash memory is used to store firmware, and multiple groups of ports are used for input and output for digital control, and the digital control includes power timing control.
[0117] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0118] Based on the same inventive concept, the embodiment of the present application also provides a detection device for implementing the detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more detection device embodiments provided below can refer to the limitations on the detection method above, and will not be repeated here.
[0119] In one embodiment, Figure 8 As shown, a detection device is provided, the device comprising:
[0120] The conversion module 802 is used to obtain and analyze the signal under the initial display protocol to obtain initial data;
[0121] The conversion module 802 is used to convert the initial data into target data under the target display protocol;
[0122] The data output module 804 is used to output the target data to a target screen for display, so as to detect whether at least one of the signal and the conversion module 802 is applicable to the initial display protocol and the target display protocol.
[0123] In one embodiment, the conversion module 802 is used to:
[0124] According to the initial display protocol, parsing the signal under the initial display protocol to obtain parsed data;
[0125] The parsed data is cached through the random access memory in the conversion module 802 to obtain initial data.
[0126] In one embodiment, the random access memory is a PSRAM, the storage unit of the PSRAM is a capacitor-based storage structure, and the storage unit of the PSRAM has the same data reading and writing method as the SRAM; the random access memory is used to: cache the parsed data through the storage unit of the PSRAM according to the data reading and writing method of the SRAM to obtain the initial data.
[0127] In one embodiment, the device further comprises a power supply module, wherein the power supply module is configured to:
[0128] The conversion module 802 is powered by the switch tube turned on by the capacitor-resistance circuit, so that the conversion module 802 acquires and analyzes the signal under the initial display protocol to obtain initial data.
[0129] In one embodiment, the data output module 804 is used to:
[0130] Determine a target power source to which the signal is adapted among candidate power sources;
[0131] Powering a target screen adapted to the target power supply through the target power supply;
[0132] The target data is output to the target screen for display.
[0133] In one embodiment, the conversion module 802 is used to:
[0134] receiving a signal from a bit error generator via a signal connector; the signal is generated by the bit error generator according to the initial display protocol;
[0135] The signal is analyzed to obtain initial data.
[0136] In one embodiment, the device further includes a power consumption testing module, and the power consumption testing module is used to:
[0137] Detecting the power consumption of the conversion module 802; and / or detecting the power consumption of the target screen.
[0138] Each module in the above detection device can be implemented in whole or in part by software, hardware and a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module above.
[0139] In one embodiment, a computer device is provided. The computer device may be a detection device, and its internal structure diagram may be as shown in FIG. Fig. 9 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a detection method is implemented. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.
[0140] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0141] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0142] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0143] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0144] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0145] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0146] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0147] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A detection method, characterized in that: The method comprises: Acquire and parse the signal under the initial display protocol through the conversion module to obtain initial data; The conversion module converts the initial data into target data under the target display protocol; The target data is output to a target screen for display, so as to detect whether at least one of the signal and the conversion module is applicable to the initial display protocol and the target display protocol.
2. The method according to claim 1, characterized in that The step of acquiring and parsing the signal under the initial display protocol through the conversion module to obtain initial data includes: Parsing the signal under the initial display protocol according to the initial display protocol by the conversion module to obtain parsed data; The parsed data is cached through the random access memory in the conversion module to obtain initial data.
3. The method according to claim 2, characterized in that The random access memory is a PSRAM, the storage unit of the PSRAM is a capacitor-based storage structure, and the storage unit of the PSRAM has the same data reading and writing method as the SRAM; The step of caching the parsed data through the random access memory in the conversion module to obtain the initial data includes: The parsed data is cached through the storage unit of the PSRAM according to the data reading and writing method of the SRAM to obtain initial data.
4. The method according to claim 1, characterized in that: The method of acquiring and parsing the signal under the initial display protocol through the conversion module to obtain the initial data includes: The conversion module is powered by the switch tube turned on by the capacitor-resistance circuit, so that the conversion module acquires and analyzes the signal under the initial display protocol to obtain initial data.
5. The method according to claim 1, characterized in that Outputting the target data to a target screen for display includes: Determine a target power source to which the signal is adapted among candidate power sources; Powering a target screen adapted to the target power supply through the target power supply; The target data is output to the target screen for display.
6. The method according to claim 1, characterized in that The step of acquiring and parsing the signal under the initial display protocol through the conversion module to obtain initial data includes: The conversion module receives a signal from the bit error generator through a signal connector; the signal is generated by the bit error generator according to the initial display protocol; The signal is analyzed by the conversion module to obtain initial data.
7. The method according to claim 1, characterized in that The method further comprises: detecting the power consumption of the conversion module by a power consumption testing module; and / or, The power consumption of the target screen is detected by the power consumption testing module.
8. A detection device, characterized in that: The device comprises: A conversion module, used for acquiring and parsing the signal under the initial display protocol to obtain initial data; The conversion module is used to convert the initial data into target data under the target display protocol; The data output module is used to output the target data to a target screen for display, so as to detect whether at least one of the signal and the conversion module is applicable to the initial display protocol and the target display protocol.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Display screen detection method and system, electronic equipment and storage medium
CN121365025A
