[go: up one dir, main page]

CN112328305B - An eye diagram testing method, device, electronic device and readable storage medium - Google Patents

An eye diagram testing method, device, electronic device 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
target file
memory
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 OR CALCULATING; 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 OR CALCULATING; 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

本申请公开了一种眼图测试方法、装置、电子设备及计算机可读存储介质,该方法包括:获取目标数据,并将目标数据写入目标文件;将目标文件中的寄存器数据读取至寄存器;将寄存器中的寄存器数据刷新至内存中,并在刷新完成后进行眼图测试;该方法可以将目标文件中的寄存器数据读取到寄存器中。通过目标文件对目标数据进行中转,即数据先写入目标文件,再读取至寄存器,可以实现在设备工作时对寄存器中的数据进行更新,减少了对软件的修改编译次数和设备的重启次数,在设备不关机的情况下实时更新参数,减少了眼图测试所需的时间,提高了测试效率。

Figure 202011189328

The present application discloses an eye diagram testing method, device, electronic device and computer-readable storage medium. The method includes: acquiring target data, and writing the target data into a target file; reading register data in the target file to a register ; Refresh the register data in the register to the memory, and perform the eye diagram test after the refresh is completed; this method can read the register data in the target file into the register. The target data is transferred through the target file, that is, the data is first written to the target file and then read to the register, so that the data in the register can be updated when the device is working, which reduces the number of software modifications and compilations and the number of restarts of the device. , the parameters are updated in real time without shutting down the device, which reduces the time required for the eye diagram test and improves the test efficiency.

Figure 202011189328

Description

一种眼图测试方法、装置、电子设备及可读存储介质An eye pattern testing method, device, electronic device and readable storage medium

技术领域technical field

本申请涉及信号测试技术领域,特别涉及一种眼图测试方法、眼图测试装置、电子设备及计算机可读存储介质。The present application relates to the technical field of signal testing, and in particular, to an eye pattern testing method, an eye pattern testing device, an electronic device, and a computer-readable storage medium.

背景技术Background technique

差分传输是一种信号传输的技术,区别于传统的一根信号线一根地线的做法,差分传输在这两根线上都传输信号,这两个信号的振幅相等,相位相差180度,极性相反。在这两根线上传输的信号就是差分信号。眼图测试为测试差分信号优劣的一种测试,眼图是一系列数字信号在示波器上累积而显示的图形,它包含了丰富的信息,从眼图上可以观察出码间串扰和噪声的影响,体现了数字信号整体的特征。相关技术在进行眼图测试时,需要启动被测设备使其工作进而得到眼图。由于设备启动后为了保证数据安全和系统稳定,其寄存器和内存中的数据均无法直接进行更改。因此相关技术在眼图测试不通过时需要关闭被测设备,重新对其上的软件进行编译,修改寄存器中的数据,并重新启动以便将寄存器中的数据写入到内存中以便使设备工作。因此整个测试过程需要多次编译和多次重启,测试时间较长,效率较低。Differential transmission is a signal transmission technology, which is different from the traditional method of one signal line and one ground wire. Differential transmission transmits signals on these two lines. The amplitudes of the two signals are equal and the phase difference is 180 degrees. opposite polarity. The signal transmitted on these two lines is the differential signal. The eye diagram test is a test for testing the quality of differential signals. The eye diagram is a series of digital signals accumulated and displayed on the oscilloscope. It contains a wealth of information. From the eye diagram, the intersymbol crosstalk and noise can be observed. The influence reflects the overall characteristics of the digital signal. In the related art, when the eye diagram test is performed, the device under test needs to be activated to make it work to obtain the eye diagram. After the device is started, in order to ensure data security and system stability, the data in its registers and memory cannot be directly changed. Therefore, the related art needs to shut down the device under test when the eye diagram test fails, recompile the software on it, modify the data in the register, and restart to write the data in the register into the memory to make the device work. Therefore, the entire testing process requires multiple compilations and multiple restarts, resulting in a longer testing time and lower efficiency.

因此,相关技术存在的测试时间较长,效率较低的问题,是本领域技术人员需要解决的技术问题。Therefore, the related art has the problems of long testing time and low efficiency, which are technical problems to be solved by those skilled in the art.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本申请的目的在于提供一种眼图测试方法、眼图测试装置、电子设备及计算机可读存储介质,减少了眼图测试所需的时间,提高了测试效率。In view of this, the purpose of the present application is to provide an eye pattern testing method, an eye pattern testing device, an electronic device and a computer-readable storage medium, which reduce the time required for the eye pattern testing and improve the testing efficiency.

为解决上述技术问题,本申请提供了一种眼图测试方法,包括:In order to solve the above technical problems, the present application provides an eye diagram testing method, including:

获取目标数据,并将所述目标数据写入目标文件;Obtain target data, and write the target data into a target file;

将所述目标文件中的寄存器数据读取至寄存器;reading the register data in the target file to the register;

将所述寄存器中的所述寄存器数据刷新至内存中,并在刷新完成后进行眼图测试。The register data in the register is refreshed into the memory, and the eye diagram test is performed after the refresh is completed.

可选地,所述将所述目标文件中的寄存器数据读取至寄存器,包括:Optionally, the reading of the register data in the target file to the register includes:

从所述目标文件中获取多个所述寄存器数据和分别对应的数据标识;Obtain a plurality of the register data and corresponding data identifiers from the target file;

根据所述数据标识确定各个所述寄存器数据对应的目标寄存器;Determine a target register corresponding to each of the register data according to the data identifier;

将各个所述寄存器数据写入对应的所述目标寄存器。Write each of the register data into the corresponding target register.

可选地,在将各个所述寄存器数据写入对应的所述目标寄存器之前,还包括:Optionally, before writing each of the register data to the corresponding target register, the method further includes:

分别判断各个所述寄存器数据是否发生变化;Determine whether each of the register data has changed;

若发生变化,则将所述寄存器数据确定为目标寄存器数据;If there is a change, the register data is determined as target register data;

相应的,所述将各个所述寄存器数据写入对应的所述目标寄存器,包括:Correspondingly, the writing of each of the register data to the corresponding target register includes:

将所述目标寄存器数据写入对应的所述目标寄存器。Write the target register data into the corresponding target register.

可选地,所述获取目标数据,并将所述目标数据写入目标文件,包括:Optionally, the acquiring target data and writing the target data to a target file includes:

利用ADB端口获取目标数据和对应的指向信息;Use the ADB port to obtain target data and corresponding pointing information;

根据所述指向信息确定所述目标文件的待更新寄存器数据,并利用所述目标数据对所述待更新寄存器数据进行更新。The register data to be updated of the target file is determined according to the pointing information, and the register data to be updated is updated by using the target data.

可选地,所述将所述寄存器中的寄存器数据刷新至内存中,包括:Optionally, the flushing of the register data in the register to the memory includes:

关闭显示屏,并重新开启所述显示屏,以便在所述显示屏开启时将寄存器数据刷新至内存中。Turn off the display screen and turn it back on to refresh register data into memory when the display screen is turned on.

可选地,还包括:Optionally, also include:

获取所述寄存器数据对应的数据范围;Obtain the data range corresponding to the register data;

相应的,在刷新完成后进行眼图测试之后,还包括:Correspondingly, after the eye diagram test is performed after the refresh is completed, it also includes:

获取眼图测试结果,并判断所述眼图测试结果是否为通过;Obtain the eye diagram test result, and determine whether the eye diagram test result is passed;

若所述眼图测试结果为未通过,则根据所述数据范围对所述目标数据进行更新,并将更新后的所述目标数据写入所述目标文件。If the eye diagram test result is failed, the target data is updated according to the data range, and the updated target data is written into the target file.

可选地,所述根据所述数据范围对所述目标数据进行更新,包括:Optionally, the updating the target data according to the data range includes:

判断所述目标数据对应的寄存器是否需要被更新;Determine whether the register corresponding to the target data needs to be updated;

若需要被更新,则根据所述数据范围,按照预设更新顺序对所述目标数据进行更新。If it needs to be updated, the target data is updated in a preset update sequence according to the data range.

本申请还提供了一种眼图测试装置,包括:The present application also provides an eye diagram testing device, including:

目标文件写入模块,用于获取目标数据,并将所述目标数据写入目标文件;A target file writing module, used to obtain target data, and write the target data into the target file;

读取模块,用于将所述目标文件中的寄存器数据读取至寄存器;a reading module for reading the register data in the target file to the register;

刷新模块,用于将所述寄存器中的所述寄存器数据刷新至内存中,并在刷新完成后进行眼图测试。A refresh module, configured to refresh the register data in the register to the memory, and perform an eye diagram test after the refresh is completed.

本申请还提供了一种电子设备,包括存储器和处理器,其中:The application also provides an electronic device, including a memory and a processor, wherein:

所述存储器,用于保存计算机程序;the memory for storing computer programs;

所述处理器,用于执行所述计算机程序,以实现上述的眼图测试方法。The processor is configured to execute the computer program to implement the above-mentioned eye-diagram testing method.

本申请还提供了一种计算机可读存储介质,用于保存计算机程序,其中,所述计算机程序被处理器执行时实现上述的眼图测试方法。The present application also provides a computer-readable storage medium for storing a computer program, wherein when the computer program is executed by a processor, the above-mentioned eye-diagram testing method is implemented.

本申请提供的眼图测试方法,获取目标数据,并将目标数据写入目标文件;将目标文件中的寄存器数据读取至寄存器;将寄存器中的寄存器数据刷新至内存中,并在刷新完成后进行眼图测试。The eye-diagram testing method provided by the present application acquires target data and writes the target data into the target file; reads the register data in the target file to the register; refreshes the register data in the register to the memory, and after the refresh is completed Perform an eye diagram test.

可见,该方法从外界获取目标数据,并将目标数据写入目标文件。由于寄存器在设备工作时也可以对文件中的数据进行读取,因此可以将目标文件中的寄存器数据读取到寄存器中。通过目标文件对目标数据进行中转,即数据先写入目标文件,再读取至寄存器,可以实现在设备工作时对寄存器中的数据进行更新,利用对目标文件进行读取的方式解除寄存器中的数据无法被直接修改的限制。将寄存器中的寄存器数据刷新至内存后,设备即可利用新的数据进行眼图测试。该方法可以减少对软件的修改编译次数和设备的重启次数,在设备不关机的情况下实时更新参数,减少了眼图测试所需的时间,提高了测试效率,解决了相关技术存在的测试时间较长,效率较低的问题。It can be seen that this method obtains the target data from the outside world and writes the target data to the target file. Since the register can also read the data in the file when the device is working, the register data in the target file can be read into the register. The target data is transferred through the target file, that is, the data is first written to the target file and then read to the register, so that the data in the register can be updated when the device is working, and the data in the register can be released by reading the target file. The restriction that data cannot be directly modified. After the register data in the register is refreshed to the memory, the device can use the new data for eye diagram testing. The method can reduce the number of software modifications and compilations and the number of restarts of the device, update parameters in real time without shutting down the device, reduce the time required for eye diagram testing, improve the testing efficiency, and solve the testing time existing in related technologies. longer, less efficient problems.

此外,本申请还提供了一种眼图测试装置、电子设备及计算机可读存储介质,同样具有上述有益效果。In addition, the present application also provides an eye pattern testing device, an electronic device and a computer-readable storage medium, which also have the above beneficial effects.

附图说明Description of drawings

为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application or related technologies more clearly, the following briefly introduces the accompanying drawings that are used in the description of the embodiments or related technologies. Obviously, the drawings in the following description are only the For the embodiments of the application, for those of ordinary skill in the art, other drawings can also be obtained according to the provided drawings without any creative effort.

图1为本申请实施例提供的一种眼图测试方法流程图;1 is a flowchart of an eye diagram testing method provided by an embodiment of the present application;

图2为本申请实施例提供的一种具体的目标数据更新过程流程图;2 is a flowchart of a specific target data update process provided by the embodiment of the present application;

图3为本申请实施例提供的一种眼图测试装置的结构示意图;FIG. 3 is a schematic structural diagram of an eye pattern testing apparatus provided by an embodiment of the present application;

图4为本申请实施例提供的一种电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.

具体实施方式Detailed ways

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this application.

请参考图1,图1为本申请实施例提供的一种眼图测试方法流程图。该方法包括:Please refer to FIG. 1 , which is a flowchart of an eye diagram testing method provided by an embodiment of the present application. The method includes:

S101:获取目标数据,并将目标数据写入目标文件。S101: Acquire target data, and write the target data into a target file.

本实施例提供的眼图测试方法的部分或全部步骤可以由指定的电子设备执行,该电子设备的具体类型和型号不做限定。例如在一种可行的实施方式中,该电子设备可以为显示设备,例如VR(Virtual Reality,虚拟现实技术)设备、AR(Augmented Reality,增强现实技术)设备或其他具有显示屏幕的设备。在另一种可行的实施方式中,该电子设备可以为具有USB(Universal Serial Bus,通用串行总线)接口的设备。需要说明的是,该电子设备的运行时,其寄存器和内存中的数据无法直接进行读写。眼图测试对于使用差分信号进行数据传输的电子设备来说至关重要,眼图测试不通过,则说明信号传输存在问题,可能在使用时造成通信异常。这种异常根据电子设备的种类不同而不同,例如对于显示设备来说,异常可能为花屏异常;对于具有USB接口的电子设备来说,该异常可能为USB接口无法识别的异常,或者为利用USB接口进行数据传输时传输结果错误的异常。Some or all of the steps of the eye diagram testing method provided in this embodiment may be performed by a designated electronic device, and the specific type and model of the electronic device are not limited. For example, in a feasible implementation manner, the electronic device may be a display device, such as a VR (Virtual Reality, virtual reality technology) device, an AR (Augmented Reality, augmented reality technology) device, or other devices having a display screen. In another feasible implementation manner, the electronic device may be a device having a USB (Universal Serial Bus, Universal Serial Bus) interface. It should be noted that, when the electronic device is running, the data in its registers and memory cannot be directly read and written. The eye diagram test is very important for electronic devices that use differential signals for data transmission. If the eye diagram test fails, it means that there is a problem with the signal transmission, which may cause abnormal communication during use. This abnormality varies according to the type of electronic device. For example, for display devices, the abnormality may be a Huaping abnormality; for electronic devices with a USB interface, the abnormality may be an abnormality that cannot be recognized by the USB interface, or an abnormality that uses a USB interface. The exception that the transmission result is wrong when the interface performs data transmission.

目标数据可以由用户输入,用于对寄存器和内存中的数据进行修改,本实施例并不限定目标数据的具体大小、格式和数量,其可以根据实际需要进行设置。可以理解的是,目标数据可以为多个,分别用于写入目标文件的不同位置;目标数据的格式可以为直接写入的格式,也可以为便于传输的格式或数据大小较小的格式,在写入时可以先对其进行格式转换,再写入目标文件。本实施例并不限定目标数据的具体获取方式,例如可以从指定的路径下获取目标数据,或者可以从指定的设备或终端处获取目标数据。在一种可行的实施方式中,可以利用电子设备上的测试接口获取目标数据,该测试接口的具体类型不做限定,例如可以为ADB接口,即ADB(Android Debug Bridge,Android调试桥)端口,一种用于开发调试的端口。The target data can be input by the user to modify the data in the registers and the memory. This embodiment does not limit the specific size, format and quantity of the target data, which can be set according to actual needs. It can be understood that there can be multiple target data, which are respectively used for writing to different locations of the target file; the format of the target data can be a directly written format, or a format that is convenient for transmission or a format with a smaller data size. When writing, it can be formatted first, and then written to the target file. This embodiment does not limit the specific acquisition method of the target data, 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 feasible implementation manner, the target data can be obtained by using a test interface on the electronic device, and the specific type of the test interface is not limited, for example, it can be an ADB interface, that is, an ADB (Android Debug Bridge, Android Debug Bridge) port, A port for development debugging.

目标文件具体为存储有寄存器数据的文件,同样为允许寄存器读取的文件,其具体格式等不做限定。目标文件同样允许目标数据的写入,可以理解的是,目标文件中的寄存器数据即为一个寄存器的全量数据,其与寄存器相对应,由于寄存器的数量可能为一个或多个,因此目标文件中同样可能记录了一个或多个寄存器对应的数据。进一步的,写入目标文件的目标数据,可以用于替换目标文件中的全部数据,或者可以用于对目标文件中的部分数据进行替换或修改。例如当目标文件中记录了多个寄存器对应的寄存器数据时,目标数据可以用于替换目标文件中某一个寄存器对应的数据。通过目标数据写入使得寄存器读取到目标数据,以便在电子设备运行过程中对寄存器中的数据进行修改。通过利用目标文件对目标数据进行中转,采用先写入再读出的方式绕过了寄存器中数据无法被直接修改的限制,从而对寄存器中的数据进行了修改。The target file is specifically a file that stores register data, and is also a file that allows register reading, and its specific format is not limited. The target file also allows the writing of target data. It can be understood that the register data in the target file is the full data of a register, which corresponds to the register. Since the number of registers may be one or more, the target file Data corresponding to one or more registers may also be recorded. Further, the target data written in the target file can be used to replace all the data in the target file, or can be used to replace or modify part of the data in the target file. For example, when register data corresponding to multiple registers is recorded in the target file, the target data can be used to replace data corresponding to a certain register in the target file. The target data is written to the register to read the target data, so that the data in the register can be modified during the operation of the electronic device. By using the target file to transfer the target data, the restriction that the data in the register cannot be directly modified is bypassed by the method of first writing and then reading, so that the data in the register is modified.

S102:将目标文件中的寄存器数据读取至寄存器。S102: Read the register data in the target file to the register.

可以理解的是,本实施例并不限定将目标文件中的寄存器数据读取至寄存器的具体执行时机,即并不限定在什么时候读取目标文件。在一种实施方式中,可以在检测到有目标数据写入目标文件后立即将其中的数据读取至寄存器;在另一种实施方式中,可以在检测到读取指令时将目标文件中的寄存器数据读取至寄存器,且该读取指令是否生成与目标文件中是否写入了目标数据无关。本实施例也不限定控制寄存器读取目标文件中寄存器数据的方式,具体方式可以参考相关技术,本实施例在此不再赘述。通过控制寄存器对目标文件进行读取,获取其中的寄存器数据并存储,即将目标文件中的寄存器数据读取至寄存器,可以在设备软件没有被重新编译,且电子设备没有被重新启动的情况下,对寄存器中的数据进行替换。It can be understood that this embodiment does not limit the specific execution timing of reading the register data in the target file to the register, that is, does not limit when the target file is read. In one embodiment, the data in the target file can be read to the register immediately after it is detected that the target data is written into the target file; in another embodiment, the data in the target file can be read when the read instruction is detected. The register data is read to the register, and whether the read command is generated or not is independent of whether the target data is written in the target file. This embodiment also does not limit the manner in which the control register reads the register data in the target file. For the specific manner, reference may be made to the related art, which will not be repeated in this embodiment. The target file is read through the control register, and the register data in it is obtained and stored, that is, the register data in the target file is read into the register, so that the device software can not be recompiled and the electronic device has not been restarted. Replace the data in the register.

需要说明的是,在每次读取寄存器数据时,可以对目标文件进行全量读取,即将目标文件中的全部数据均读取至寄存器;在另一种实施方式中,可以对目标文件进行部分读取,即选择目标文件中的部分数据读取至寄存器,以便减少读取寄存器数据所需的时间,提高眼图测试的效率。It should be noted that, each time the register data is read, the target file can be read in full, that is, all data in the target file can be read into the register; in another embodiment, the target file can be partially read. Read, that is, select part of the data in the target file to read to the register, so as to reduce the time required to read the register data and improve the efficiency of eye diagram testing.

S103:将寄存器中的寄存器数据刷新至内存中,并在刷新完成后进行眼图测试。S103: Refresh the register data in the register to the memory, and perform an eye diagram test after the refresh is completed.

为了使用新的寄存器数据进行眼图测试,而电子设备利用内存中的数据运行,因此在将目标文件中的寄存器数据读取至寄存器后,还需要将该寄存器数据刷新至内存中。本实施例并不限定将寄存器数据刷新至内存的具体方式,例如对于VR设备、AR设备等显示设备,可以通过关开显示屏的方式将寄存器数据刷新至内存。在将新的寄存器数据刷新至内存后,电子设备即可以利用新的寄存器数据进行新一次的眼图测试。两次眼图测试中不需要进行软件编译,也不需要对电子设备进行重启,因此减少了软件编译和重启所需的时间,提高了眼图测试的效率。In order to use the new register data for eye-diagram testing, the electronic device operates with the data in the memory, so after the register data in the target file is read into the register, the register data needs to be refreshed into the memory. This embodiment does not limit the specific manner of refreshing the register data to the memory. For example, for display devices such as VR devices and AR devices, the register data may be refreshed to the memory by turning off the display screen. After the new register data is flushed to the memory, the electronic device can use the new register data to perform a new eye pattern test. No software compilation is required in the two eye diagram tests, nor is the need to restart the electronic device, thus reducing the time required for software compilation and restarting, and improving the efficiency of the eye diagram test.

应用本申请实施例提供的眼图测试方法,从外界获取目标数据,并将目标数据写入目标文件。由于寄存器在设备工作时也可以对文件中的数据进行读取,因此可以将目标文件中的寄存器数据读取到寄存器中。通过目标文件对目标数据进行中转,即数据先写入目标文件,再读取至寄存器,可以实现在设备工作时对寄存器中的数据进行更新,利用对目标文件进行读取的方式解除寄存器中的数据无法被直接修改的限制。将寄存器中的寄存器数据刷新至内存后,设备即可利用新的数据进行眼图测试。该方法可以减少对软件的修改编译次数和设备的重启次数,在设备不关机的情况下实时更新参数,减少了眼图测试所需的时间,提高了测试效率,解决了相关技术存在的测试时间较长,效率较低的问题。By applying the eye diagram testing method provided by the embodiments of the present application, target data is acquired from the outside world, and the target data is written into a target file. Since the register can also read the data in the file when the device is working, the register data in the target file can be read into the register. The target data is transferred through the target file, that is, the data is first written to the target file and then read to the register, so that the data in the register can be updated when the device is working, and the data in the register can be released by reading the target file. The restriction that data cannot be directly modified. After the register data in the register is refreshed to the memory, the device can use the new data for eye diagram testing. The method can reduce the number of software modifications and compilations and the number of restarts of the device, update parameters in real time without shutting down the device, reduce the time required for eye diagram testing, improve the testing efficiency, and solve the testing time existing in related technologies. longer, less efficient problems.

基于上述实施例,本实施例将对上述实施例中的若干步骤进行具体的阐述。其中,S101步骤可以包括:Based on the foregoing embodiments, this embodiment will specifically describe several steps in the foregoing embodiments. Wherein, step S101 may include:

步骤11:利用ADB端口获取目标数据和对应的指向信息。Step 11: Use the ADB port to acquire target data and corresponding pointing information.

步骤12:根据指向信息确定目标文件的待更新寄存器数据,并利用目标数据对待更新寄存器数据进行更新。Step 12: Determine the register data to be updated of the target file according to the pointing information, and use the target data to update the register data to be updated.

在本实施例中,可以通过ADB端口获取目标数据,需要说明的是,该目标数据并不是全量且完整的寄存器数据,即并不是用于对目标文件中的数据全部进行覆盖的数据。因此为了准确的将目标数据写入到目标文件,还可以通过ADB端口获取与目标数据对应的指向信息。目标数据和指向信息可以同时获取,或者可以分两次分别获取目标数据和指向信息,并利用对应的标志位对目标数据和指向信息的获取情况进行记录,例如在未全部获取时为0,在全部获取后修改为1。在确定获取到目标数据和指向信息后,根据指向信息在目标文件中确定待更新寄存器数据,并利用目标数据对待更新寄存器数据进行更新。在一种实施方式中,待更新寄存器数据为某一个寄存器对应的全部数据,在另外一种实施方式中,待更新寄存器数据为某一个寄存器对应的寄存器数据中需要被替换的部分。在确定待更新寄存器数据后,可以利用目标数据对其进行替换。具体的,可以先删除原有数据后再写入目标数据,这样可以在写入故障需要重新写入时确定未写入的部分,以便直接将目标数据的未写入部分进行写入。在另一种实施方式中,可以直接利用目标数据对待更新寄存器数据进行覆盖更新。In this embodiment, the target data can be acquired through the ADB port. It should be noted that the target data is not full and complete register data, that is, not data used to cover all the data in the target file. Therefore, in order to accurately write the target data to the target file, the pointing information corresponding to the target data can also be obtained through the ADB port. The target data and the pointing information can be acquired at the same time, or the target data and the pointing information can be acquired separately in two times, and the acquisition of the target data and the pointing information can be recorded by using the corresponding flag bits. Modified to 1 after all acquisitions. After it is determined that the target data and the pointing information are acquired, the register data to be updated is determined in the target file according to the pointing information, and the register data to be updated is updated by using 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 the part of the register data corresponding to a certain register that needs to be replaced. After the register data to be updated is determined, it can be replaced with the target data. Specifically, the original data can be deleted before the target data is written, so that the unwritten part can be determined when the write failure needs to be rewritten, so that the unwritten part of the target data can be directly written. In another implementation manner, the target data can be directly used to overwrite and update the register data to be updated.

通过在获取目标数据时获取指向信息并依据指向信息写入目标数据,可以减小目标数据的体积,不需要在每次传输时均发送目标文件对应的全量数据,避免通信资源浪费。By acquiring the pointing information when acquiring the target data and writing the target data according to the pointing information, the volume of the target data can be reduced, and it is not necessary to send the full amount of data corresponding to the target file in each transmission, thereby avoiding waste of communication resources.

基于上述实施例,若目标文件中记录了多个寄存器对应的寄存器数据,S102步骤可以包括:Based on the above embodiment, if register data corresponding to multiple registers is recorded in the target file, step S102 may include:

步骤21:从目标文件中获取多个寄存器数据和分别对应的数据标识。Step 21: Acquire multiple register data and corresponding data identifiers from the target file.

步骤22:根据数据标识确定各个寄存器数据对应的目标寄存器。Step 22: Determine the target register corresponding to each register data according to the data identifier.

步骤23:将各个寄存器数据写入对应的目标寄存器。Step 23: Write each register data into the corresponding target register.

由于寄存器的数量为多个,目标文件中存储有多个寄存器对应的寄存器数据,为了防止寄存器数据读取错误造成电子设备工作异常,本实施例中为每个寄存器设置对应的数据标识,并将数据标识与寄存器数据相对应。数据标识具体可以为数据编号、寄存器编号、目标文件中的位置等信息,其可以起到标识作用即可,具体内容可以根据需要进行设置。在将寄存器数据读取至寄存器时,可以利用寄存器数据—数据标识—寄存器这一对应关系,根据数据标识确定各个寄存器数据对应的目标寄存器,并在确定后将寄存器数据写入到对应的目标寄存器中。Since the number of registers is multiple, the target file stores register data corresponding to multiple registers. In order to prevent the electronic device from working abnormally due to register data reading errors, in this embodiment, a corresponding data identifier is set for each register, and the The data identification corresponds to the register data. The data identifier may specifically be information such as a data number, a register number, a location in the target file, etc., which can play an identifier role, and the specific content can be set as required. When the register data is read to the register, the corresponding relationship of register data-data identification-register can be used to determine the target register corresponding to each register data according to the data identification, and after the determination, the register data is written to the corresponding target register middle.

进一步的,由于目标数据可能为非全量数据,因此将目标数据写入到目标文件后,目标文件中仅有部分数据发生了变化,而部分数据没有变化。这样就导致目标文件中可能有部分寄存器数据发生了变化,而其他的寄存器数据没有发生变化。因此在将各个所述寄存器数据写入对应的所述目标寄存器之前,还可以包括:Further, since the target data may be incomplete data, after writing the target data to the target file, only part of the data in the target file has changed, while some data has not changed. As a result, some register data in the object file may have changed, while other register data has not changed. Therefore, before writing each of the register data into the corresponding target register, it may further include:

步骤31:分别判断各个寄存器数据是否发生变化。Step 31: Determine whether the data of each register has changed.

步骤32:若发生变化,则将寄存器数据确定为目标寄存器数据。Step 32: If there is a change, the register data is determined as the target register data.

相应的,将各个寄存器数据写入对应的目标寄存器,即步骤23可以包括:Correspondingly, the data of each register is written into the corresponding target register, that is, step 23 may include:

步骤33:将目标寄存器数据写入对应的目标寄存器。Step 33: Write the target register data into the corresponding target register.

在确定各个寄存器对应的目标寄存器后,可以判断各个寄存器数据是否发生变化,即本次写入的目标数据对哪些寄存器数据进行了修改。若某一寄存器数据发生了变化,则必须将其读取至寄存器,以便对寄存器中的数据进行修改,因此可以将其确定为目标寄存器数据。若某一寄存器数据未发生变化,则无论是否将其读取至对应的目标寄存器,目标寄存器中的数据均不会发生变化,因此在本实施例中,可以不将未发生变化的寄存器数据读取至对应的目标寄存器,以便减少数据读取所需的时间。After determining the target register corresponding to each register, it can be determined whether the data of each register has changed, that is, which register data has been modified by the target data written this time. If a register data has changed, it must be read to the register to modify the data in the register, so it can be determined as the target register data. If the data of a certain register has not changed, no matter whether it is read to the corresponding target register or not, the data in the target register will not change. Therefore, in this embodiment, the register data that has not changed may not be read. Fetch to the corresponding destination register in order to reduce the time required for data read.

基于上述实施例,步骤103可以包括:Based on the above embodiment, step 103 may include:

步骤41:关闭显示屏,并重新开启显示屏,以便在显示屏开启时将寄存器数据刷新至内存中。Step 41: Turn off the display screen and turn it back on to refresh the register data to the memory when the display screen is turned on.

在本实施例中,电子设备具体为具有显示屏的显示设备,例如VR设备或AR设备等穿戴式设备,或者可以为电脑等具有显示屏的非穿戴式设备。在将寄存器中的寄存器数据刷新至内存时,可以通过关闭显示屏的方式清空内存中的数据,并重新开启显示屏。在重新开启显示屏时,会将寄存器中的数据读取至内存中以便支持电子设备的正常工作,因此通过关闭显示屏和重新开启显示屏的方式将数据刷新至内存中,不需要对电子设备进行重新启动。In this embodiment, the electronic device is specifically a display device with a display screen, such as a wearable device such as a VR device or an AR device, or a non-wearable device with a display screen such as a computer. 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 then the display screen can be turned on again. When the display screen is turned on again, the data in the register will be read into the memory to support the normal operation of the electronic device. Therefore, by turning off the display screen and turning it on again, the data is refreshed into the memory without any need for the electronic device. Do a restart.

基于上述实施例,在本实施例中,可以对目标数据进行更新,以便减少人工输入目标数据所需的时间,进一步提升眼图测试的效率。请参考图2,图2为本申请实施例提供的一种具体的目标数据更新过程流程图,具体包括:Based on the above embodiment, in this embodiment, the target data can 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. Please refer to FIG. 2, which is a flowchart of a specific target data update process provided by the embodiment of the present application, which specifically includes:

S201:获取寄存器数据对应的数据范围。S201: Obtain the data range corresponding to the register data.

可以理解的是,每个寄存器均具有对应的取值范围。例如对于高通芯片sxr2130来说,其display mipi(Mobile Industry Processor Interface,移动产业处理器接口,display mipi即为显示移动产业处理器接口)可调整的寄存器为0x0ae94420寄存器和0x0ae96420寄存器,其中,0x0ae94420寄存器的取值范围(即数据范围)是0x00至0x3f,在利用目标数据对0x0ae94420寄存器中的寄存器数据进行设置时均需要处于这个范围内。因此获取寄存器数据对应的数据范围可以为后续对目标数据进行更新划定更新范围。需要说明的是,本实施并不限定S201的具体执行时机,在对目标数据进行更新前执行即可。It can be understood that each register has a corresponding value range. For example, for the Qualcomm chip sxr2130, its display mipi (Mobile Industry Processor Interface, mobile industry processor interface, display mipi is the display mobile industry processor interface) adjustable registers are 0x0ae94420 register and 0x0ae96420 register, among which, 0x0ae94420 register The value range (that is, the data range) is 0x00 to 0x3f, which needs to be within this range when using the target data to set the register data in the 0x0ae94420 register. Therefore, acquiring the data range corresponding to the register data can define the update range for the subsequent update of the target data. It should be noted that, this implementation does not limit the specific execution timing of S201, and it may be executed before the target data is updated.

S202:获取眼图测试结果。S202: Obtain an eye diagram test result.

眼图测试结果可以体现采用当前寄存器数据进行眼图测试时的测试结果,其具体形式不做限定,例如可以为0或1,或者可以为分数,例如60分。眼图测试结果可以分为通过和未通过两种,通过则表示当前的寄存器数据可以使得电子设备正常工作,符合要求;未通过则表示电子设备利用当前寄存器数据无法正常工作,不符合要求。The eye diagram test result may reflect the test result when the current register data is used to perform the eye diagram test, and its specific form is not limited, for example, it may be 0 or 1, or it may be a score, such as 60 points. The eye diagram test results can be divided into pass and fail. Pass means that the current register data can make the electronic device work normally and meet the requirements; Fail means that the electronic device cannot work normally with the current register data and does not meet the requirements.

S203:判断眼图测试结果是否为通过。S203: Determine whether the eye diagram test result is passed.

可以理解的是,判断眼图测试结果是否为通过的方式可以有多种,根据眼图测试结果的具体形式不同,判断方式可以不同。例如眼图测试结果为0或1时,可以将1确定为通过。或者当眼图测试结果为分数时,可以当分数大于60分时确定为通过。若眼图测试结果为通过,可以进入S205步骤,若眼图测试结果为未通过时,可以进入S204步骤。It can be understood that there may be various ways to determine whether the eye diagram test result is passed, and the determination method may be different according to the specific form of the eye diagram test result. For example, when the eye diagram test result is 0 or 1, 1 can be determined as pass. Or when the eye diagram test result is a score, it can be determined as a pass when the score is greater than 60 points. If the eye diagram test result is passed, the step S205 may be entered, and if the eye diagram test result is not passed, the step S204 may be entered.

S204:根据数据范围对目标数据进行更新,并将更新后的目标数据写入目标文件。S204: Update the target data according to the data range, and write the updated target data into the target file.

若眼图测试结果为未通过,则说明当前寄存器数据无法使电子设备正常工作,因此可以根据数据范围对目标数据进行更新,即在目标数据范围内选择新的数据作为目标数据,并在对目标数据更新过后将其写入目标文件,以便通过目标文件将更新后的目标数据读取至寄存器。本实施例并不限定更新的具体方式,例如可以设置由大到小更新或由小到大更新的预设更新顺序,按照该预设更新顺序在数据范围内确定数据,并将确定的数据确定为更新后的目标数据。If the eye diagram test result is failed, it means that the current register data cannot make the electronic device 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 After the data is updated, it is written to the target file, so that the updated target data can be read into the register through the target file. This embodiment does not limit the specific manner of updating. For example, a preset update sequence of updating from large to small or from small to large can be set, and data is determined within the data range according to the preset update sequence, and the determined data is determined. is the updated target data.

进一步的,在一种可能的实施方式中,寄存器的数量为多个,因此在进行目标数据的更新时,可以仅对部分寄存器对应的目标数据进行更新。例如可以每次仅对一个寄存器对应的寄存器数据进行更新,以便对各种寄存器数据的组合进行眼图测试,保证测试全面性。S204步骤可以包括:Further, in a possible implementation manner, the number of registers is multiple, so when updating target data, only target data corresponding to some registers may be updated. For example, only register data corresponding to one register can be updated at a time, so as to perform eye-diagram test on combinations of various register data to ensure the comprehensiveness of the test. Step S204 may include:

步骤51:判断目标数据对应的寄存器是否需要被更新。Step 51: Determine whether the register corresponding to the target data needs to be updated.

步骤52:若需要被更新,则根据数据范围,按照预设更新顺序对目标数据进行更新。Step 52: If it needs to be updated, update the target data according to the data range and according to the preset update sequence.

在对目标数据进行更新前,可以先判断其对应的寄存器是否需要更新,例如可以设置更新标志位,分别用于指定各个寄存器是否需要更新的更新状态。若确定目标寄存器需要被更新,则可以根据数据范围,按照预设更新顺序对目标数据进行更新。例如对于高通平台sxr2130来说,可调整的寄存器为0x0ae94420寄存器和0x0ae96420寄存器,其中,0x0ae94420寄存器的取值范围(即数据范围)是0x00至0x3f。0x0ae94420寄存器对应的更新标志位为1,表明需要更新,0x0ae96420寄存器对应的更新标志位为0,表示不需要被更新。在这种情况下,若0x0ae94420寄存器的当前取值为0x00,预设更新顺序为由小到大,则可以确定更新后的寄存器的取值为0x01,因此可以利用0x01对目标数据进行更新。Before updating the target data, it can be judged whether the corresponding register needs to be updated. For example, an update flag bit can be set to specify the update status of each register whether it 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 in a preset update sequence. For example, for the Qualcomm platform sxr2130, the adjustable registers are the 0x0ae94420 register and the 0x0ae96420 register, where the value range (that is, the data range) of the 0x0ae94420 register is 0x00 to 0x3f. The update flag bit corresponding to the 0x0ae94420 register is 1, indicating that it needs to be updated, and the update flag bit corresponding to the 0x0ae96420 register is 0, indicating that it does not need to be updated. In this case, if the current value of the 0x0ae94420 register is 0x00, and the preset update sequence is from small to large, it can be determined that the value of the updated register is 0x01, so 0x01 can be used to update the target data.

S205:预设操作。S205: preset operation.

本实施例并不限定眼图测试结果后的具体执行内容,即不限定预设操作的具体内容,例如可以为无操作,即不执行任何操作,或者可以对目标数据进行更新,以便继续进行眼图测试,进而筛选出使电子设备工作在最佳状态下的最佳寄存器数据。This embodiment does not limit the specific execution content after the eye diagram test result, that is, does not limit the specific content of the preset operation. For example, it can be no operation, that is, no operation is performed, or the target data can be updated so that the eye diagram can continue to be performed. Figure test, and then filter out the best register data to make the electronic device work in the best state.

下面对本申请实施例提供的眼图测试装置进行介绍,下文描述的眼图测试装置与上文描述的眼图测试方法可相互对应参照。The following describes the eye-diagram testing apparatus provided by the embodiments of the present application. The eye-diagram testing apparatus described below and the eye-diagram testing method described above may refer to each other correspondingly.

请参考图3,图3为本申请实施例提供的一种眼图测试装置的结构示意图,包括:Please refer to FIG. 3. FIG. 3 is a schematic structural diagram of an eye-diagram testing apparatus provided by an embodiment of the present application, including:

目标文件写入模块110,用于获取目标数据,并将目标数据写入目标文件;The target file writing module 110 is used to obtain target data and write the target data into the target file;

读取模块120,用于将目标文件中的寄存器数据读取至寄存器;a reading module 120, configured to read the register data in the target file to the register;

刷新模块130,用于将寄存器中的寄存器数据刷新至内存中,并在刷新完成后进行眼图测试。The refresh module 130 is configured to refresh the register data in the register to the memory, and perform an eye diagram test after the refresh is completed.

可选地,读取模块120,包括:Optionally, the reading module 120 includes:

标识获取单元,用于从目标文件中获取多个寄存器数据和分别对应的数据标识;an identification acquisition unit, used for acquiring a plurality of register data and corresponding data identifications from the target file;

对应关系确定单元,用于根据数据标识确定各个寄存器数据对应的目标寄存器;Correspondence determination unit, for determining the target register corresponding to each register data according to the data identification;

写入单元,用于将各个寄存器数据写入对应的目标寄存器。The writing unit is used to write the data of each register into the corresponding target register.

可选地,读取模块120,还包括:Optionally, the reading module 120 further includes:

变化判断单元,用于分别判断各个寄存器数据是否发生变化;a change judgment unit, which is used to judge whether the data of each register has changed;

目标寄存器数据确定单元,用于若发生变化,则将寄存器数据确定为目标寄存器数据;The target register data determination unit is used to determine the register data as the target register data if there is a change;

相应的,写入单元,包括:Correspondingly, the writing unit includes:

目标写入子单元,用于将目标寄存器数据写入对应的目标寄存器。The target write subunit is used to write the target register data into the corresponding target register.

可选地,目标文件写入模块110,包括:Optionally, the target file writing module 110 includes:

获取单元,用于利用ADB端口获取目标数据和对应的指向信息;an acquisition unit, used to acquire target data and corresponding pointing information by using the ADB port;

指向写入单元,用于根据指向信息确定目标文件的待更新寄存器数据,并利用目标数据对待更新寄存器数据进行更新。The pointing writing unit is used to determine the register data to be updated of the target file according to the pointing information, and use the target data to update the register data to be updated.

可选地,刷新模块130,包括:Optionally, the refresh module 130 includes:

显示屏内存刷新单元,用于关闭显示屏,并重新开启显示屏,以便在显示屏开启时将寄存器数据刷新至内存中。The display memory refresh unit is used to turn off the display and turn it on again, so that the register data can be refreshed to the memory when the display is turned on.

可选地,还包括:Optionally, also include:

数据范围获取模块,用于获取寄存器数据对应的数据范围;The data range acquisition module is used to acquire the data range corresponding to the register data;

相应的,还包括:Accordingly, it also includes:

结果判断模块,用于获取眼图测试结果,并判断眼图测试结果是否为通过;The result judgment module is used to obtain the eye pattern test result and judge whether the eye pattern test result is passed;

目标数据更新模块,用于若眼图测试结果为未通过,则根据数据范围对目标数据进行更新,并将更新后的目标数据写入目标文件。The target data update module is used to update the target data according to the data range if the eye diagram test result is failed, and write the updated target data into the target file.

可选地,目标数据更新模块,包括:Optionally, the target data update module, including:

更新判断单元,用于判断目标数据对应的寄存器是否需要被更新;an update judgment unit for judging whether the register corresponding to the target data needs to be updated;

顺序更新单元,用于若需要被更新,则根据数据范围,按照预设更新顺序对目标数据进行更新。The sequence updating unit is used to update the target data in accordance with the preset update sequence according to the data range if it needs to be updated.

下面对本申请实施例提供的电子设备进行介绍,下文描述的电子设备与上文描述的眼图测试方法可相互对应参照。The electronic device provided by the embodiments of the present application will be introduced below, and the electronic device described below and the eye-diagram testing method described above may refer to each other correspondingly.

请参考图4,图4为本申请实施例提供的一种电子设备的结构示意图。其中电子设备100可以包括处理器101和存储器102,还可以进一步包括多媒体组件103、信息输入/信息输出(I/O)接口104以及通信组件105中的一种或多种。Please refer to FIG. 4 , which is a schematic structural diagram of an electronic device according to an embodiment of the present application. 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 .

其中,处理器101用于控制电子设备100的整体操作,以完成上述的眼图测试方法中的全部或部分步骤;存储器102用于存储各种类型的数据以支持在电子设备100的操作,这些数据例如可以包括用于在该电子设备100上操作的任何应用程序或方法的指令,以及应用程序相关的数据。该存储器102可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,例如静态随机存取存储器(Static Random Access Memory,SRAM)、电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM)、可编程只读存储器(Programmable Read-Only Memory,PROM)、只读存储器(Read-OnlyMemory,ROM)、磁存储器、快闪存储器、磁盘或光盘中的一种或多种。Wherein, the processor 101 is used to control the overall operation of the electronic device 100 to complete all or part of the steps in the above-mentioned eye diagram testing method; the memory 102 is used to store various types of data to support the operation of the electronic device 100, these Data may include, for example, instructions for any application or method to operate on the electronic device 100, as well as application-related data. The memory 102 may be implemented by any type of volatile or non-volatile memory device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory) Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (Read- One or more of OnlyMemory, ROM), magnetic memory, flash memory, magnetic disk or optical disk.

多媒体组件103可以包括屏幕和音频组件。其中屏幕例如可以是触摸屏,音频组件用于输出和/或输入音频信号。例如,音频组件可以包括一个麦克风,麦克风用于接收外部音频信号。所接收的音频信号可以被进一步存储在存储器102或通过通信组件105发送。音频组件还包括至少一个扬声器,用于输出音频信号。I/O接口104为处理器101和其他接口模块之间提供接口,上述其他接口模块可以是键盘,鼠标,按钮等。这些按钮可以是虚拟按钮或者实体按钮。通信组件105用于电子设备100与其他设备之间进行有线或无线通信。无线通信,例如Wi-Fi,蓝牙,近场通信(Near Field Communication,简称NFC),2G、3G或4G,或它们中的一种或几种的组合,因此相应的该通信组件105可以包括:Wi-Fi部件,蓝牙部件,NFC部件。Multimedia components 103 may include screen and audio components. Wherein the screen can 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 be further 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, and the above-mentioned other interface modules may be a keyboard, a mouse, a button, and the like. These buttons can 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 for short), 2G, 3G or 4G, or one or a combination of them, so the corresponding communication component 105 may include: Wi-Fi parts, Bluetooth parts, NFC parts.

电子设备100可以被一个或多个应用专用集成电路(Application SpecificIntegrated Circuit,简称ASIC)、数字信号处理器(Digital Signal Processor,简称DSP)、数字信号处理设备(Digital Signal Processing Device,简称DSPD)、可编程逻辑器件(Programmable Logic Device,简称PLD)、现场可编程门阵列(Field ProgrammableGate Array,简称FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述实施例给出的眼图测试方法。The electronic device 100 may be implemented by one or more Application Specific Integrated Circuit (ASIC for short), Digital Signal Processor (DSP for short), Digital Signal Processing Device (DSPD for short), A Programmable Logic Device (PLD for short), a Field Programmable Gate Array (FPGA for short), a controller, a microcontroller, a microprocessor or other electronic components to implement the implementation of the eye diagram test method.

下面对本申请实施例提供的计算机可读存储介质进行介绍,下文描述的计算机可读存储介质与上文描述的眼图测试方法可相互对应参照。The computer-readable storage medium provided by the embodiments of the present application is introduced below, and the computer-readable storage medium described below and the eye-diagram testing method described above may refer to each other correspondingly.

本申请还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述的眼图测试方法的步骤。The present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned eye diagram testing method are implemented.

该计算机可读存储介质可以包括:U盘、移动硬盘、只读存储器(Read-OnlyMemory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The computer-readable storage medium may include: a USB flash drive, a removable hard disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, etc., which can store program codes. medium.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments may be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method.

本领域技术人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应该认为超出本申请的范围。Those skilled in the art may further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two, in order to clearly illustrate the hardware and software In the above description, the components and steps of each example have been generally described according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different approaches to implement the described functionality for each particular application, but such implementations should not be considered beyond the scope of this application.

结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in connection with the embodiments disclosed herein may be directly implemented in hardware, a software module executed by a processor, or a combination of the two. A software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系属于仅仅用来将一个实体或者操作与另一个实体或者操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语包括、包含或者其他任何变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。Finally, it should also be noted that, in this context, relationships such as first and second, etc., are used only to distinguish one entity or operation from another, and do not necessarily require or imply these entities or that there is any such actual relationship or sequence between operations. Furthermore, the terms including, comprising or any other variation are intended to cover non-exclusive inclusion such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or Yes also includes elements inherent to such a process, method, article or apparatus.

本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The principles and implementations of the present application are described herein by using specific examples. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application. There will be changes in the specific implementation and application scope. To sum up, the content of this specification should not be construed as a limitation to the 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 An eye diagram testing method, device, electronic device 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 An eye diagram testing method, device, electronic device 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 An eye diagram testing method, device, electronic device 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 An eye diagram testing method, device, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN112328305B (en)

Families Citing this family (6)

* 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
CN115525490B (en) * 2022-09-29 2025-06-13 苏州浪潮智能科技有限公司 A memory eye diagram testing method, hardware debugging equipment and storage medium
CN115563773A (en) * 2022-09-30 2023-01-03 中科可控信息产业有限公司 Interface signal adjusting method, device, equipment and storage medium
CN116312682B (en) * 2023-05-18 2023-08-08 牛芯半导体(深圳)有限公司 Eye pattern center determining method and device, electronic equipment and storage medium
CN119541603B (en) * 2025-01-21 2025-05-13 深圳市晶存科技股份有限公司 Memory storage consistency test method, device, 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 test method thereof
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 深圳市中兴微电子技术有限公司 Method and device for generating test signal
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 booting electronic device system, electronic device, 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 苏州浪潮智能科技有限公司 A storage medium detection method, apparatus, device 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 test method thereof
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) An eye diagram testing method, device, electronic device and readable storage medium
US6915416B2 (en) Apparatus and method for microcontroller debugging
US10204698B2 (en) Method to dynamically inject errors in a repairable memory on silicon and a method to validate built-in-self-repair logic
US8261130B2 (en) Program code trace signature
CN100543693C (en) Self-detection method for starting up
CN113377586B (en) Automatic detection method and device for server and storage medium
US20080016415A1 (en) Evaluation system and method
CN100578674C (en) Method and system for register testing
US20130024178A1 (en) Playback methodology for verification components
CN118606114A (en) Programmable logic device upgrade method, device, medium and product
CN117827554A (en) Test method, test device, computer equipment and storage medium
US20120110383A1 (en) Method and apparatus for off-line analyzing crashed programs
US6925522B2 (en) Device and method capable of changing codes of micro-controller
CN115757168A (en) Vehicle UI automatic test script recording method and device and electronic equipment
CN112765018B (en) Instrument debugging system and method
KR20070082222A (en) AP testing method and device of embedded software
TW201301023A (en) System and method for testing a mother board
CN101206578A (en) Starting method of chip type system and computer system medium thereof
CN118152311B (en) Data processing method, device, system, electronic equipment and storage medium
TWI801412B (en) Debug method
JP2007058450A (en) Semiconductor integrated circuit
CN117389863A (en) Self-checking method, system, media and electronic equipment of ECC fault strategy
CN106250261A (en) A kind of determination method and device of memory parameters
CN114356583A (en) SLUB memory application monitoring method and system based on LINUX operating system
CN119987859A (en) A memory operation method, device and storage medium

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
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.