CN112328305B - Eye pattern testing method and device, electronic equipment and readable storage medium - Google Patents

Eye pattern testing method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112328305B
CN112328305B CN202011189328.4A CN202011189328A CN112328305B CN 112328305 B CN112328305 B CN 112328305B CN 202011189328 A CN202011189328 A CN 202011189328A CN 112328305 B CN112328305 B CN 112328305B
Authority
CN
China
Prior art keywords
data
register
target
eye pattern
target file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011189328.4A
Other languages
Chinese (zh)
Other versions
CN112328305A (en
Inventor
杨文刚
姜滨
迟小羽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Inc
Original Assignee
Goertek Optical Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Optical Technology Co Ltd filed Critical Goertek Optical Technology Co Ltd
Priority to CN202011189328.4A priority Critical patent/CN112328305B/en
Publication of CN112328305A publication Critical patent/CN112328305A/en
Application granted granted Critical
Publication of CN112328305B publication Critical patent/CN112328305B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30098Register arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal

Abstract

The application discloses an eye pattern testing method, an eye pattern testing device, electronic equipment and a computer-readable storage medium, wherein the method comprises the following steps: acquiring target data and writing the target data into a target file; reading register data in a target file to a register; refreshing the register data in the register to the memory, and carrying out eye pattern test after refreshing is finished; the method may read register data in the target file into a register. The target data is transferred through the target file, namely the data is written into the target file firstly and then read to the register, so that the data in the register can be updated when the equipment works, the software modification and compilation times and the equipment restart times are reduced, the parameters are updated in real time under the condition that the equipment is not shut down, the time required by eye pattern testing is reduced, and the testing efficiency is improved.

Description

Eye pattern testing method and device, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of signal testing technologies, and in particular, to an eye pattern testing method, an eye pattern testing apparatus, an electronic device, and a computer-readable storage medium.
Background
Differential transmission is a signal transmission technology, and is different from the traditional method of one signal line and one ground wire, wherein the differential transmission transmits signals on the two lines, the amplitudes of the two signals are equal, the phase difference is 180 degrees, and the polarities are opposite. The signals transmitted on these two wires are differential signals. The eye pattern test is a test for testing the quality of differential signals, the eye pattern is a graph displayed by accumulating a series of digital signals on an oscilloscope, the eye pattern contains rich information, the influence of intersymbol interference and noise can be observed from the eye pattern, and the integral characteristic of the digital signals is reflected. When the related art performs the eye pattern test, the device to be tested needs to be started to work so as to obtain the eye pattern. After the equipment is started, in order to ensure the data safety and the system stability, the data in the register and the memory of the equipment cannot be directly changed. Therefore, in the related art, when the eye pattern test fails, the device to be tested needs to be shut down, software on the device is compiled again, data in the register is modified, and the device is restarted so that the data in the register can be written into the memory to enable the device to work. Therefore, the whole test process needs to be compiled and restarted for multiple times, the test time is long, and the efficiency is low.
Therefore, the problems of long testing time and low efficiency in the related art are technical problems to be solved by those skilled in the art.
Disclosure of Invention
In view of this, an object of the present application is to provide an eye pattern testing method, an eye pattern testing apparatus, an electronic device, and a computer-readable storage medium, which reduce the time required for eye pattern testing and improve the testing efficiency.
In order to solve the above technical problem, the present application provides an eye pattern testing method, including:
acquiring target data and writing the target data into a target file;
reading the register data in the target file to a register;
and refreshing the register data in the register to a memory, and carrying out eye pattern test after the refreshing is finished.
Optionally, the reading the register data in the target file to a register includes:
acquiring a plurality of register data and respectively corresponding data identifications from the target file;
determining a target register corresponding to each register data according to the data identification;
and writing each register data into the corresponding target register.
Optionally, before writing each of the register data into the corresponding target register, the method further includes:
respectively judging whether the data of each register changes;
if the register data is changed, determining the register data as target register data;
correspondingly, the writing of the data of each register into the corresponding target register includes:
and writing the target register data into the corresponding target register.
Optionally, the obtaining target data and writing the target data into a target file includes:
acquiring target data and corresponding pointing information by using an ADB port;
and determining register data to be updated of the target file according to the pointing information, and updating the register data to be updated by utilizing the target data.
Optionally, the refreshing the register data in the register to the memory includes:
and closing the display screen, and restarting the display screen so as to refresh the register data into the memory when the display screen is started.
Optionally, the method further comprises:
acquiring a data range corresponding to the register data;
correspondingly, after the eye pattern test is performed after the refresh is completed, the method further comprises the following steps:
obtaining an eye pattern test result, and judging whether the eye pattern test result passes or not;
and if the eye pattern test result is failed, updating the target data according to the data range, and writing the updated target data into the target file.
Optionally, the updating the target data according to the data range includes:
judging whether a register corresponding to the target data needs to be updated or not;
and if the target data need to be updated, updating the target data according to a preset updating sequence according to the data range.
The application also provides an eye pattern testing device, including:
the target file writing module is used for acquiring target data and writing the target data into a target file;
the reading module is used for reading the register data in the target file to a register;
and the refreshing module is used for refreshing the register data in the register into the memory and carrying out eye pattern test after the refreshing is finished.
The present application further provides an electronic device comprising a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor is used for executing the computer program to realize the eye pattern testing method.
The present application also provides a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the eye test method described above.
According to the eye pattern testing method, target data are obtained and written into a target file; reading register data in a target file to a register; and refreshing the register data in the register to the memory, and carrying out eye pattern test after the refreshing is finished.
Therefore, the method obtains the target data from the outside and writes the target data into the target file. Since the register can also read the data in the file when the device is in operation, the register data in the target file can be read into the register. The target data is transferred through the target file, namely the data is written into the target file firstly and then read to the register, so that the data in the register can be updated when the equipment works, and the limitation that the data in the register cannot be directly modified is removed by reading the target file. After the register data in the register is refreshed to the memory, the device can utilize the new data to perform the eye pattern test. The method can reduce the number of times of modifying and compiling the software and the number of times of restarting the equipment, updates the parameters in real time under the condition that the equipment is not shut down, reduces the time required by the eye pattern test, improves the test efficiency, and solves the problems of longer test time and lower efficiency in the related technology.
In addition, the application also provides an eye pattern testing device, electronic equipment and a computer readable storage medium, and the eye pattern testing device, the electronic equipment and the computer readable storage medium also have the beneficial effects.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or related technologies of the present application, the drawings needed to be used in the description of the embodiments or related technologies are briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of an eye chart testing method provided in an embodiment of the present application;
FIG. 2 is a flowchart of a specific target data update process provided by an embodiment of the present application;
fig. 3 is a schematic structural diagram of an eye chart testing apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart of an eye chart testing method according to an embodiment of the present disclosure. The method comprises the following steps:
s101: and acquiring target data and writing the target data into a target file.
Some or all of the steps of the eye pattern testing method provided by this embodiment may be performed by a specific electronic device, and the specific type and model of the electronic device are not limited. For example, in one possible embodiment, the electronic device may be a display device, such as a VR (Virtual Reality technology) device, an AR (Augmented Reality technology) device, or other device having a display screen. In another possible implementation, the electronic device may be a device having a USB (Universal Serial Bus) interface. It should be noted that, when the electronic device operates, data in the register and the memory of the electronic device cannot be directly read and written. The eye pattern test is important for electronic equipment which uses differential signals for data transmission, and if the eye pattern test is not passed, the signal transmission is problematic, and communication abnormity can be caused during use. Such an abnormality differs depending on the kind of electronic device, and for example, in the case of a display device, the abnormality may be a screen-splash abnormality; for an electronic device with a USB interface, the abnormality may be an abnormality that cannot be identified by the USB interface, or an abnormality that a transmission result is wrong when data transmission is performed by using the USB interface.
The target data may be input by a user to modify data in the register and the memory, and the embodiment does not limit the specific size, format and quantity of the target data, and may be set according to actual needs. It is understood that the target data may be plural, and are respectively used for writing to different positions of the target file; the format of the target data can be a directly written format, or a format convenient for transmission or a format with a small data size, and the target data can be firstly subjected to format conversion and then written into the target file during writing. The embodiment does not limit the specific manner of acquiring the target data, and for example, the target data may be acquired from a specified path, or the target data may be acquired from a specified device or terminal. In a possible implementation manner, the target data may be obtained by using a test interface on the electronic device, where a specific type of the test interface is not limited, and for example, the test interface may be an ADB (ADB Debug Bridge) interface, which is a port for developing and debugging.
The target file is specifically a file storing register data, and is also a file allowing register reading, and the specific format and the like of the target file are not limited. The target file also allows writing of target data, and it is understood that the register data in the target file is the full data of one register, which corresponds to the register, and since the number of registers may be one or more, the data corresponding to one or more registers may also be recorded in the target file. Further, the target data written into the target file may be used to replace all data in the target file, or may be used to replace or modify part of data in the target file. For example, when register data corresponding to a plurality of registers is recorded in the target file, the target data may be used to replace data corresponding to a certain register in the target file. And reading the target data from the register through the target data writing so as to modify the data in the register during the operation of the electronic equipment. The target data is transferred by using the target file, and the limitation that the data in the register cannot be directly modified is avoided by adopting a mode of writing first and then reading, so that the data in the register is modified.
S102: and reading the register data in the target file to the register.
It is understood that the embodiment does not limit the specific execution time for reading the register data in the target file to the register, i.e. the time when the target file is read. In one embodiment, the data in the target file can be read to the register immediately after the target data is detected to be written into the target file; in another embodiment, the register data in the target file may be read to the register when the read instruction is detected, and whether the read instruction is generated is independent of whether the target data is written in the target file. The embodiment also does not limit the way in which the control register reads the register data in the target file, and the specific way may refer to related technologies, which are not described herein again. The target file is read through the control register, the register data in the target file are obtained and stored, namely the register data in the target file are read to the register, and the data in the register can be replaced under the condition that the device software is not recompiled and the electronic device is not restarted.
It should be noted that, when reading the register data each time, the target file may be read in full, that is, all the data in the target file are read to the register; in another embodiment, the target file may be partially read, that is, a part of data in the target file is selected to be read to the register, so as to reduce the time required for reading the register data and improve the efficiency of the eye pattern test.
S103: and refreshing the register data in the register to the memory, and carrying out eye pattern test after the refreshing is finished.
In order to perform an eye test using new register data, the electronic device operates using data in the memory, and therefore, after the register data in the target file is read to the register, the register data needs to be refreshed in the memory. The embodiment does not limit the specific manner of refreshing the register data to the memory, and for example, for display devices such as VR devices and AR devices, the register data may be refreshed to the memory by turning off and turning on the display screen. After the new register data is refreshed to the memory, the electronic device can perform a new eye pattern test by using the new register data. Software compiling is not needed in the two eye pattern tests, and the electronic equipment is not needed to be restarted, so that the time needed by the software compiling and restarting is shortened, and the efficiency of the eye pattern test is improved.
By applying the eye pattern testing method provided by the embodiment of the application, the target data is obtained from the outside and written into the target file. Since the register can also read the data in the file when the device is in operation, the register data in the target file can be read into the register. The target data is transferred through the target file, namely the data is written into the target file firstly and then read to the register, so that the data in the register can be updated when the equipment works, and the limitation that the data in the register cannot be directly modified is relieved by reading the target file. After the register data in the register is refreshed to the memory, the device can utilize the new data to perform the eye pattern test. The method can reduce the times of modification and compilation of software and the times of restarting of the equipment, updates the parameters in real time under the condition that the equipment is not shut down, reduces the time required by eye pattern testing, improves the testing efficiency, and solves the problems of longer testing time and lower efficiency in the related art.
Based on the foregoing embodiments, the present embodiment will specifically describe several steps in the foregoing embodiments. Wherein, the step S101 may include:
step 11: and acquiring target data and corresponding pointing information by using the ADB port.
Step 12: and determining the register data to be updated of the target file according to the pointing information, and updating the register data to be updated by utilizing the target data.
In this embodiment, the target data may be obtained through the ADB port, and it should be noted that the target data is not full and complete register data, that is, data for overwriting all data in the target file. Therefore, in order to accurately write the target data into the target file, the direction information corresponding to the target data can also be acquired through the ADB port. The target data and the pointing information may be acquired simultaneously, or the target data and the pointing information may be acquired twice respectively, and the acquisition condition of the target data and the pointing information is recorded by using the corresponding flag bits, for example, 0 is obtained when all the target data and the pointing information are not acquired, and 1 is modified after all the target data and the pointing information are acquired. After the target data and the pointing information are determined to be obtained, register data to be updated are determined in the target file according to the pointing information, and the register data to be updated are updated by utilizing the target data. In one embodiment, the register data to be updated is all data corresponding to a certain register, and in another embodiment, the register data to be updated is a part of the register data corresponding to a certain register, which needs to be replaced. After determining the register data to be updated, it may be replaced with the target data. Specifically, the original data may be deleted first and then the target data may be written, so that the unwritten portion may be determined when the write failure requires rewriting, so as to directly write the unwritten portion of the target data. In another embodiment, the target data may be directly utilized to perform the overlay update on the register data to be updated.
By acquiring the pointing information when the target data is acquired and writing the target data according to the pointing information, the volume of the target data can be reduced, the full amount of data corresponding to the target file does not need to be sent during each transmission, and waste of communication resources is avoided.
Based on the foregoing embodiment, if the target file records register data corresponding to a plurality of registers, the step S102 may include:
step 21: and acquiring a plurality of register data and respectively corresponding data identifications from the target file.
Step 22: and determining a target register corresponding to each register data according to the data identification.
Step 23: and writing the data of each register into the corresponding target register.
Because the number of the registers is multiple, the target file stores register data corresponding to the registers, in order to prevent the electronic device from working abnormally due to a register data reading error, in this embodiment, a corresponding data identifier is set for each register, and the data identifier corresponds to the register data. The data identifier may specifically be information such as a data number, a register number, a position in a target file, and the like, and may perform an identification function, and specific content may be set as needed. When the register data is read to the register, the corresponding relation of the register data-the data identifier-the register can be utilized, the target register corresponding to each register data is determined according to the data identifier, and the register data is written into the corresponding target register after the target register is determined.
Further, since the target data may be non-full data, only part of the data in the target file is changed and part of the data is not changed after the target data is written into the target file. This may result in some register data being changed in the destination file while other register data is unchanged. Therefore, before writing each register data into the corresponding target register, the method may further include:
step 31: and respectively judging whether the data of each register changes.
Step 32: and if the change occurs, determining the register data as the target register data.
Accordingly, writing the data of each register into the corresponding target register, that is, step 23 may include:
step 33: and writing the target register data into the corresponding target register.
After the target registers corresponding to the registers are determined, whether the data of the registers change or not can be judged, namely, the target data written at this time modifies the data of the registers. If some register data is changed, it must be read to the register in order to modify the data in the register, so that it can be determined as the target register data. If the data in a register is not changed, the data in the target register is not changed no matter whether the register is read to the corresponding target register, so in this embodiment, the register data which is not changed may not be read to the corresponding target register, so as to reduce the time required for reading the data.
Based on the above embodiment, step 103 may include:
step 41: and closing the display screen and restarting the display screen so as to refresh the register data into the memory when the display screen is started.
In this embodiment, the electronic device is specifically a display device with a display screen, for example, a wearable device such as a VR device or an AR device, or may be a non-wearable device such as a computer with a display screen. When the register data in the register is refreshed to the memory, the data in the memory can be cleared by closing the display screen, and the display screen is restarted. When the display screen is restarted, the data in the register is read into the memory so as to support the normal work of the electronic equipment, so that the data is refreshed into the memory in a mode of closing and restarting the display screen, and the electronic equipment does not need to be restarted.
Based on the above embodiment, in this embodiment, the target data may be updated, so as to reduce the time required for manually inputting the target data, and further improve the efficiency of the eye pattern test. Referring to fig. 2, fig. 2 is a flowchart of a specific target data updating process provided in an embodiment of the present application, which specifically includes:
s201: and acquiring a data range corresponding to the register data.
It will be appreciated that each register has a corresponding range of values. For example, for the high-pass chip sxr2130, its adjustable registers of display mipi (Mobile Industry Processor Interface, i.e., display Mobile Industry Processor Interface) are 0x0ae94420 register and 0x0ae96420 register, where the range of values (i.e., data range) of the 0x0ae94420 register is 0x00 to 0x3f, and both registers need to be in this range when setting the register data in the 0x0ae94420 register by using the target data. Therefore, the data range corresponding to the acquired register data can define an update range for subsequent target data updating. Note that the present embodiment is not limited to the specific execution timing of S201, and may be executed before the target data is updated.
S202: and obtaining an eye pattern test result.
The eye test result may be a test result obtained when the eye test is performed by using the current register data, and the specific form thereof is not limited, and may be, for example, 0 or 1, or may be a fraction, for example, 60. The eye pattern test result can be divided into a pass type and a fail type, and the pass type indicates that the current register data can enable the electronic equipment to work normally and meets the requirements; if the register data fails, the electronic equipment cannot work normally by using the current register data, and the requirement is not met.
S203: and judging whether the eye pattern test result is passed or not.
It can be understood that there are various ways to determine whether the eye pattern test result passes, and the determination way may be different according to the specific form of the eye pattern test result. For example, when the eye pattern test result is 0 or 1, 1 may be determined to be passed. Or when the eye pattern test result is a score, it may be determined as passing when the score is greater than 60 minutes. If the eye pattern test result is pass, the process may proceed to step S205, and if the eye pattern test result is fail, the process may proceed to step S204.
S204: and updating the target data according to the data range, and writing the updated target data into the target file.
If the eye pattern test result is failed, it indicates that the current register data cannot enable the electronic device to work normally, so the target data can be updated according to the data range, that is, new data is selected as the target data in the target data range, and the target data is written into the target file after being updated, so that the updated target data can be read to the register through the target file. The embodiment does not limit the specific updating manner, and for example, a preset updating sequence of updating from large to small or updating from small to large may be set, data may be determined in the data range according to the preset updating sequence, and the determined data may be determined as the updated target data.
Further, in a possible implementation, the number of registers is multiple, so that when the target data is updated, only the target data corresponding to a part of the registers may be updated. For example, only the register data corresponding to one register may be updated at a time, so as to perform an eye diagram test on a combination of various register data, thereby ensuring test comprehensiveness. The S204 step may include:
step 51: and judging whether the register corresponding to the target data needs to be updated or not.
Step 52: and if the target data needs to be updated, updating the target data according to a preset updating sequence according to the data range.
Before updating the target data, it may be determined whether the corresponding register needs to be updated, for example, an update flag bit may be set to respectively specify an update state of whether each register needs to be updated. If it is determined that the target register needs to be updated, the target data can be updated according to the data range and the preset updating sequence. For example, for the high-pass platform sxr2130, the adjustable registers are the 0x0ae94420 register and the 0x0ae96420 register, where the value range (i.e., data range) of the 0x0ae94420 register is 0x00 to 0x3f. The update flag bit corresponding to the 0x0ae94420 register is 1, which indicates that the update is required, and the update flag bit corresponding to the 0x0ae96420 register is 0, which indicates that the update is not required. In this case, if the current value of the register 0x0ae94420 is 0x00 and the preset update sequence is from small to large, it may be determined that the value of the updated register is 0x01, and thus the target data may be updated by using 0x 01.
S205: and (5) presetting operation.
The embodiment does not limit the specific execution content after the eye pattern test result, that is, the specific content of the preset operation is not limited, and for example, the operation may be no operation, that is, no operation is performed, or the target data may be updated, so as to continue the eye pattern test, and further filter the optimal register data for the electronic device to operate in the optimal state.
The following describes an eye pattern testing apparatus provided in an embodiment of the present application, and the eye pattern testing apparatus described below and the eye pattern testing method described above may be referred to correspondingly.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an eye chart testing apparatus according to an embodiment of the present application, including:
a target file writing module 110, configured to obtain target data and write the target data into a target file;
a reading module 120, configured to read register data in a target file to a register;
and the refreshing module 130 is configured to refresh the register data in the register into the memory, and perform an eye diagram test after the refreshing is completed.
Optionally, the reading module 120 includes:
the identification acquisition unit is used for acquiring a plurality of register data and respectively corresponding data identifications from the target file;
the corresponding relation determining unit is used for determining a target register corresponding to each register data according to the data identification;
and the writing unit is used for writing the data of each register into the corresponding target register.
Optionally, the reading module 120 further includes:
the change judging unit is used for respectively judging whether the data of each register changes;
a target register data determining unit configured to determine the register data as target register data if the change occurs;
accordingly, a write unit comprising:
and the target writing subunit is used for writing the target register data into the corresponding target register.
Optionally, the target file writing module 110 includes:
the acquisition unit is used for acquiring target data and corresponding pointing information by using an ADB port;
and the pointing writing unit is used for determining the register data to be updated of the target file according to the pointing information and updating the register data to be updated by utilizing the target data.
Optionally, the refresh module 130 includes:
and the display screen memory refreshing unit is used for closing the display screen and restarting the display screen so as to refresh the register data into the memory when the display screen is started.
Optionally, the method further comprises:
the data range acquisition module is used for acquiring a data range corresponding to the register data;
correspondingly, the method also comprises the following steps:
the result judging module is used for acquiring the eye pattern test result and judging whether the eye pattern test result passes or not;
and the target data updating module is used for updating the target data according to the data range and writing the updated target data into the target file if the eye pattern test result is failed.
Optionally, the target data update module includes:
the updating judgment unit is used for judging whether the register corresponding to the target data needs to be updated or not;
and the sequence updating unit is used for updating the target data according to a preset updating sequence according to the data range if the target data need to be updated.
In the following, the electronic device provided by the embodiment of the present application is introduced, and the electronic device described below and the eye pattern testing method described above may be referred to correspondingly.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. Wherein the electronic device 100 may include a processor 101 and a memory 102, and may further include one or more of a multimedia component 103, an information input/information output (I/O) interface 104, and a communication component 105.
The processor 101 is configured to control the overall operation of the electronic device 100 to complete all or part of the steps in the eye diagram testing method; the memory 102 is used to store various types of data to support operation at the electronic device 100, such as instructions for any application or method operating on the electronic device 100 and application-related data. The Memory 102 may be implemented by any type or combination of volatile and non-volatile Memory devices, such as one or more of Static Random Access Memory (SRAM), electrically Erasable Programmable Read-Only Memory (EEPROM), erasable Programmable Read-Only Memory (EPROM), programmable Read-Only Memory (PROM), read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic or optical disk.
The multimedia component 103 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 102 or transmitted through the communication component 105. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 104 provides an interface between the processor 101 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 105 is used for wired or wireless communication between the electronic device 100 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding Communication component 105 may include: wi-Fi part, bluetooth part, NFC part.
The electronic Device 100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components, and is configured to perform the eye diagram testing method according to the above embodiments.
The following describes a computer-readable storage medium provided in an embodiment of the present application, and the computer-readable storage medium described below and the eye pattern testing method described above may be referred to correspondingly.
The present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the eye pattern testing method described above.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relationships such as first and second, etc., are intended only to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms include, or any other variation is intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements does not include only those elements but also other elements not expressly listed or inherent to such process, method, article, or apparatus.
The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. An eye diagram testing method, comprising:
acquiring target data and writing the target data into a target file;
reading the register data in the target file to a register;
refreshing the register data in the register to a memory, and carrying out an eye pattern test after the refreshing is finished;
the reading of the register data in the target file to a register comprises:
acquiring a plurality of register data and respectively corresponding data identifications from the target file;
determining a target register corresponding to each register data according to the data identification;
and writing each register data into the corresponding target register.
2. The eye pattern test method according to claim 1, further comprising, before writing each of the register data into the corresponding target register:
respectively judging whether the data of each register changes;
if the change occurs, determining the register data as target register data;
correspondingly, the writing of the data of each register into the corresponding target register includes:
and writing the target register data into the corresponding target register.
3. The eye pattern testing method according to claim 1, wherein said obtaining target data and writing said target data into a target file comprises:
acquiring target data and corresponding pointing information by using an ADB port;
and determining register data to be updated of the target file according to the pointing information, and updating the register data to be updated by utilizing the target data.
4. The eye pattern test method according to claim 1, wherein the refreshing the register data in the register into the memory comprises:
and closing the display screen, and restarting the display screen so as to refresh the register data into the memory when the display screen is started.
5. The eye pattern test method according to claim 1, further comprising:
acquiring a data range corresponding to the register data;
correspondingly, after the eye pattern test is performed after the refresh is completed, the method further comprises the following steps:
obtaining an eye pattern test result, and judging whether the eye pattern test result passes or not;
and if the eye pattern test result is failed, updating the target data according to the data range, and writing the updated target data into the target file.
6. The eye diagram testing method according to claim 5, wherein said updating the target data according to the data range comprises:
judging whether a register corresponding to the target data needs to be updated or not;
and if the target data need to be updated, updating the target data according to a preset updating sequence according to the data range.
7. An eye diagram testing device, comprising:
the target file writing module is used for acquiring target data and writing the target data into a target file;
the reading module is used for reading the register data in the target file to a register;
the reading module is specifically configured to obtain a plurality of register data and corresponding data identifiers from the target file, determine a target register corresponding to each register data according to the data identifiers, and write each register data into the corresponding target register;
and the refreshing module is used for refreshing the register data in the register into the memory and carrying out eye pattern test after the refreshing is finished.
8. An electronic device comprising a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor for executing the computer program to implement the eye diagram testing method according to any one of claims 1 to 6.
9. A computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the eye testing method of any one of claims 1 to 6.
CN202011189328.4A 2020-10-30 2020-10-30 Eye pattern testing method and device, electronic equipment and readable storage medium Active CN112328305B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011189328.4A CN112328305B (en) 2020-10-30 2020-10-30 Eye pattern testing method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011189328.4A CN112328305B (en) 2020-10-30 2020-10-30 Eye pattern testing method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112328305A CN112328305A (en) 2021-02-05
CN112328305B true CN112328305B (en) 2022-10-18

Family

ID=74297363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011189328.4A Active CN112328305B (en) 2020-10-30 2020-10-30 Eye pattern testing method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112328305B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113836852B (en) * 2021-08-18 2024-04-05 深圳市紫光同创电子有限公司 Analog bit stream generation method, device, equipment and storage medium
CN113722242B (en) * 2021-08-31 2023-12-08 龙芯中科技术股份有限公司 Memory configuration method, memory configuration device, electronic equipment and readable medium
CN116312682B (en) * 2023-05-18 2023-08-08 牛芯半导体(深圳)有限公司 Eye pattern center determining method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2364089A1 (en) * 2001-11-13 2003-05-13 Daesung Digital Tech Co., Ltd. Portable storage medium based on universal serial bus standard and control method therefor
JP2007250187A (en) * 2007-07-09 2007-09-27 Toshiba Corp Nonvolatile semiconductor memory and method of testing same
CN104205052A (en) * 2012-03-30 2014-12-10 国际商业机器公司 Cycle accurate and cycle reproducible memory for an FPGA based hardware accelerator
CN106528392A (en) * 2015-09-09 2017-03-22 黑龙江傲立辅龙科技开发有限公司 Aurora protocol-based B3G (beyond third generation) testing tool

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5754557A (en) * 1996-10-10 1998-05-19 Hewlett-Packard Co. Method for refreshing a memory, controlled by a memory controller in a computer system, in a self-refresh mode while scanning the memory controller
GB2367912B (en) * 2000-08-08 2003-01-08 Sun Microsystems Inc Apparatus for testing computer memory
DE102006051591B3 (en) * 2006-11-02 2008-04-30 Infineon Technologies Ag Memory chip i.e. dynamic RAM memory chip, testing method, involves determining that all data outputs of memory chips lie close to logical zero and one, if signal level at input falls below and exceeds threshold level, respectively
US9495279B2 (en) * 2008-09-30 2016-11-15 Nintendo Co., Ltd. Method and apparatus for efficient statistical profiling of video game and simulation software
US8719767B2 (en) * 2011-03-31 2014-05-06 Commvault Systems, Inc. Utilizing snapshots to provide builds to developer computing devices
CN107978338B (en) * 2016-10-21 2020-09-08 深圳市中兴微电子技术有限公司 Test signal generation method and device
US10313068B1 (en) * 2018-04-24 2019-06-04 Qualcomm Incorporated Signal monitoring and measurement for a multi-wire, multi-phase interface
CN109445860B (en) * 2018-10-17 2022-03-25 京东方科技集团股份有限公司 Method for guiding electronic equipment system to start, electronic equipment and readable storage medium
CN110377344A (en) * 2019-06-26 2019-10-25 苏州浪潮智能科技有限公司 A kind of method for refreshing and relevant device of FRU information
CN111048139A (en) * 2019-12-22 2020-04-21 苏州浪潮智能科技有限公司 Storage medium detection method, device, equipment and readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2364089A1 (en) * 2001-11-13 2003-05-13 Daesung Digital Tech Co., Ltd. Portable storage medium based on universal serial bus standard and control method therefor
JP2007250187A (en) * 2007-07-09 2007-09-27 Toshiba Corp Nonvolatile semiconductor memory and method of testing same
CN104205052A (en) * 2012-03-30 2014-12-10 国际商业机器公司 Cycle accurate and cycle reproducible memory for an FPGA based hardware accelerator
CN106528392A (en) * 2015-09-09 2017-03-22 黑龙江傲立辅龙科技开发有限公司 Aurora protocol-based B3G (beyond third generation) testing tool

Also Published As

Publication number Publication date
CN112328305A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN112328305B (en) Eye pattern testing method and device, electronic equipment and readable storage medium
US7266809B2 (en) Software debugger and software development support system for microcomputer operable to execute conditional execution instruction
CN112270149B (en) Verification platform automatic integration method and system, electronic equipment and storage medium
WO2018118837A1 (en) Method to dynamically inject errors in a repairable memory on silicon and a method to validate built-in-self-repair logic
US20080016415A1 (en) Evaluation system and method
CN111563032A (en) APP debugging method and device, computer equipment and storage medium
CN107272441B (en) Method for monitoring errors and data processing device for monitoring errors
CN115756984A (en) Memory test method, device, equipment and storage medium
US20120110383A1 (en) Method and apparatus for off-line analyzing crashed programs
JPWO2019077738A1 (en) Data verification device, data verification method, and data verification program
US6925522B2 (en) Device and method capable of changing codes of micro-controller
US10229029B2 (en) Embedded instruction sets for use in testing and error simulation of computing programs
CN113377586A (en) Automatic server detection method and device and storage medium
CN113742215A (en) Method and system for automatically configuring and calling test tool to perform test analysis
JP2007058450A (en) Semiconductor integrated circuit
CN114280459A (en) Test method and device for integrated circuit
CN112765018B (en) Instrument and meter debugging system and method
TWI750849B (en) Automatic test system and method for testing application of device under test
JP5120103B2 (en) Debugging method and debugging program
CN114138588B (en) Method, system, equipment and medium for deriving debug information of controller
JP2005174045A (en) Source program conversion device, source program conversion method, source program conversion program and program recording medium
CN112527657B (en) Method and equipment for automatic pile insertion in unit test
CN111858310B (en) Method, system, equipment and medium for dynamic test based on source code
CN117093490A (en) Code processing method, device, computer equipment and storage medium
WO2023238262A1 (en) Information processing device, testing method, and testing program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20221117

Address after: 261031 No. 268 Dongfang Road, hi tech Industrial Development Zone, Shandong, Weifang

Patentee after: GOERTEK Inc.

Address before: 261031 north of Yuqing street, east of Dongming Road, high tech Zone, Weifang City, Shandong Province (Room 502, Geer electronics office building)

Patentee before: GoerTek Optical Technology Co.,Ltd.

TR01 Transfer of patent right