CN115014684A - Device testing adjustment system, method, electronic device and storage medium - Google Patents
Device testing adjustment system, method, electronic device and storage medium Download PDFInfo
- Publication number
- CN115014684A CN115014684A CN202111264717.3A CN202111264717A CN115014684A CN 115014684 A CN115014684 A CN 115014684A CN 202111264717 A CN202111264717 A CN 202111264717A CN 115014684 A CN115014684 A CN 115014684A
- Authority
- CN
- China
- Prior art keywords
- electronic device
- simulation
- test data
- test
- data
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01M—TESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
- G01M7/00—Vibration-testing of structures; Shock-testing of structures
- G01M7/08—Shock-testing
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N3/00—Investigating strength properties of solid materials by application of mechanical stress
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N3/00—Investigating strength properties of solid materials by application of mechanical stress
- G01N3/02—Details
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N3/00—Investigating strength properties of solid materials by application of mechanical stress
- G01N3/22—Investigating strength properties of solid materials by application of mechanical stress by applying steady torsional forces
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Chemical & Material Sciences (AREA)
- Analytical Chemistry (AREA)
- Biochemistry (AREA)
- General Health & Medical Sciences (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本申请提供了一种设备测试调整系统、方法、电子设备及存储介质,涉及终端测试技术领域。所述系统包括应力模拟设备、电子设备和上位机,其中,应力模拟设备基于用户输入的模拟测试数据控制电子设备进行模拟测试;电子设备确定进行模拟测试时的姿态数据;上位机基于姿态数据和模拟测试数据,确定调整后的模拟测试数据;应力模拟设备基于所述调整后的模拟测试数据控制电子设备进行模拟测试。利用本申请实施例,可以基于电子设备测试时的姿态数据对应力模拟设备的模拟参数进行调整,以使应力模拟设备模拟的场景符合用户的需求,从而提高设备测试的准确率。
The present application provides a device testing adjustment system, method, electronic device and storage medium, and relates to the technical field of terminal testing. The system includes a stress simulation device, an electronic device and a host computer, wherein the stress simulation device controls the electronic device to perform a simulated test based on the simulated test data input by the user; the electronic device determines the attitude data during the simulated test; the host computer is based on the attitude data and The simulated test data is simulated to determine the adjusted simulated test data; the stress simulation device controls the electronic device to perform the simulated test based on the adjusted simulated test data. Using the embodiments of the present application, the simulation parameters of the stress simulation device can be adjusted based on the attitude data during the test of the electronic device, so that the scene simulated by the stress simulation device meets the needs of the user, thereby improving the accuracy of the device test.
Description
技术领域technical field
本申请涉及终端测试技术领域,尤其涉及一种设备测试调整系统、方法、电子设备及存储介质。The present application relates to the technical field of terminal testing, and in particular, to a device testing adjustment system, method, electronic device and storage medium.
背景技术Background technique
随着电子设备的普及,电子设备的应用场景也越来越复杂。在不同的应用场景下使用时,电子设备产生的应力(物体由于外因而变形时,在物体内各部分之间产生相互作用的内力)会直接影响到终端产品的质量表现。例如,导致电子设备发生损坏,甚至无法正常使用。通常,可以利用应力模拟设备(如跌落测试设备、扭曲测试设备等可用于模拟电子设备会产生应力的场景的相关设备)根据应用场景对电子设备进行使用模拟测试,从而根据模拟测试结果改进电子设备。With the popularization of electronic devices, the application scenarios of electronic devices are becoming more and more complex. When used in different application scenarios, the stress generated by the electronic device (when the object is deformed due to external factors, the internal force that interacts between the various parts of the object) will directly affect the quality performance of the end product. For example, it can cause damage to electronic equipment or even malfunction. Generally, stress simulation equipment (such as drop test equipment, twist test equipment and other related equipment that can be used to simulate scenarios where electronic equipment will generate stress) can be used to simulate the use of electronic equipment according to application scenarios. Use simulation tests, so as to improve electronic equipment according to the simulation test results .
但是,应力模拟设备是基于用户输入的模拟测试数据进行使用模拟测试,在测试过程中,不会调整模拟测试数据,对应力模拟设备自身的使用模拟效果无法修正,所以不能准确地模拟得到用户想要的应用场景,甚至会导致错误的设备测试结果。However, the stress simulation equipment is used for the simulation test based on the simulation test data input by the user. During the test process, the simulation test data will not be adjusted, and the simulation effect of the use of the stress simulation equipment itself cannot be corrected, so it cannot accurately simulate the user's desire. The required application scenarios may even lead to erroneous device test results.
发明内容SUMMARY OF THE INVENTION
鉴于以上内容,有必要提供一种设备测试调整系统、方法、电子设备及存储介质,以根据电子设备确定进行模拟测试时的姿态数据,并基于姿态数据对应力模拟设备的模拟参数进行调整,以使应力模拟设备模拟出的场景符合用户的需求,从而提高测试的准确率。In view of the above, it is necessary to provide an equipment test adjustment system, method, electronic equipment and storage medium, so as to determine the attitude data during the simulation test according to the electronic equipment, and adjust the simulation parameters of the stress simulation equipment based on the attitude data, so as to Make the scenarios simulated by the stress simulation equipment meet the needs of users, thereby improving the accuracy of the test.
第一方面,本申请提供了一种设备测试调整系统,该系统包括应力模拟设备、电子设备和上位机,应力模拟设备基于用户输入的模拟测试数据控制电子设备进行模拟测试;电子设备确定进行模拟测试时的姿态数据;上位机基于姿态数据和模拟测试数据,确定调整后的模拟测试数据;应力模拟设备基于调整后的模拟测试数据控制电子设备进行模拟测试。In a first aspect, the present application provides a system for testing and adjusting equipment, the system includes a stress simulation device, an electronic device, and a host computer. The stress simulation device controls the electronic device to perform a simulation test based on simulation test data input by a user; the electronic device determines to perform a simulation test. Attitude data during the test; the host computer determines the adjusted simulation test data based on the attitude data and the simulation test data; the stress simulation device controls the electronic equipment to perform the simulation test based on the adjusted simulation test data.
通过上述技术方案,可以基于电子设备确定基于用户输入的模拟测试数据进行模拟测试的实际测试数据,并通过上位机基于用户输入的模拟测试数据和实际测试数据,确定调整后的模拟测试数据,并控制应用模拟设备基于调整后的模拟测试数据进行模拟测试,修正了应用模拟设备自身的使用模拟效果,能准确地模拟得到用户想要的应用场景,从而提高测试的准确率。Through the above technical solution, the actual test data for the simulated test based on the simulated test data input by the user can be determined based on the electronic device, and the adjusted simulated test data can be determined by the upper computer based on the simulated test data and the actual test data input by the user, and The control application simulation device performs simulation test based on the adjusted simulation test data, which corrects the use simulation effect of the application simulation device itself, and can accurately simulate the application scenario that the user wants, thereby improving the test accuracy.
在一种实现方式中,上位机基于姿态数据和模拟测试数据,确定调整后的模拟测试数据包括:上位机基于姿态数据,确定电子设备进行模拟测试时的实际测试数据;上位机基于实际测试数据和模拟测试数据,确定调整后的模拟测试数据。通过上述技术方案,可借助上位机强大的运算能力,提高计算实际测试数据的准确度和效率。In an implementation manner, the host computer determines the adjusted simulated test data based on the attitude data and the simulated test data, including: the host computer determines, based on the attitude data, the actual test data when the electronic device performs the simulated test; and the simulated test data to determine the adjusted simulated test data. Through the above technical solution, the accuracy and efficiency of calculating actual test data can be improved by using the powerful computing capability of the host computer.
在一种实现方式中,电子设备与上位机建立通信后,电子设备将姿态数据发送至上位机。通过上述技术方案,可以使得上位机获取状态数据。In an implementation manner, after the electronic device establishes communication with the upper computer, the electronic device sends the attitude data to the upper computer. Through the above technical solution, the upper computer can be made to acquire status data.
在一种实现方式中,上位机基于姿态数据和模拟测试数据,确定调整后的模拟测试数据包括:电子设备基于姿态数据,确定电子设备进行模拟测试时的实际测试数据;上位机基于实际测试数据和模拟测试数据,确定调整后的模拟测试数据。通过上述技术方案,可以在电子设备中直接查看在模拟应力场景下的测试信息(实际测试数据),如跌落姿态、跌落角度和/或跌落时间等等,方便了用户对电子设备的实际测试数据的获取。In one implementation, the host computer determines the adjusted simulated test data based on the attitude data and the simulated test data, including: the electronic device determines the actual test data when the electronic device performs the simulated test based on the attitude data; the host computer based on the actual test data and the simulated test data to determine the adjusted simulated test data. Through the above technical solution, the test information (actual test data) in the simulated stress scenario can be directly viewed in the electronic device, such as the drop posture, the drop angle and/or the drop time, etc., which facilitates the user to the actual test data of the electronic device acquisition.
在一种实现方式中,电子设备与上位机建立通信后,电子设备将实际测试数据发送至上位机。通过上述技术方案,可以使得上位机获取实际测试数据。In an implementation manner, after the electronic device establishes communication with the upper computer, the electronic device sends the actual test data to the upper computer. Through the above technical solution, the upper computer can obtain actual test data.
在一种实现方式中,电子设备确定进行模拟测试时的姿态数据包括:电子设备判断是否满足触发条件;若满足触发条件,电子设备开启预设传感器;基于所述预设传感器采集到的数据,所述电子设备确定进行模拟测试时的姿态数据。通过上述技术方案,可以避免在不需要的情景下电子设备确定进行模拟测试时的姿态数据,造成了不必要的功耗的情况发生,减少了能量的损耗。In an implementation manner, the electronic device determining the attitude data when performing the simulation test includes: the electronic device judging whether a trigger condition is met; if the trigger condition is met, the electronic device turns on a preset sensor; based on the data collected by the preset sensor, The electronic device determines attitude data for the simulation test. Through the above technical solution, it can be avoided that the electronic device determines the attitude data during the simulation test in an unnecessary situation, which causes unnecessary power consumption and reduces the energy consumption.
在一种实现方式中,上位机与应力模拟设备建立通信后,上位机将调整后的模拟测试数据发送至应力模拟设备。通过上述技术方案,可以使得应力模拟设备获取调整后的模拟测试数据。In an implementation manner, after the upper computer establishes communication with the stress simulation device, the upper computer sends the adjusted simulation test data to the stress simulation device. Through the above technical solution, the stress simulation device can obtain the adjusted simulation test data.
第二方面,本申请提供了一种设备测试调整系统,该系统包括应力模拟设备和电子设备,应力模拟设备基于用户输入的模拟测试数据控制电子设备进行模拟测试;电子设备确定进行模拟测试时的姿态数据;应力模拟设备基于姿态数据和模拟测试数据,确定调整后的模拟测试数据;应力模拟设备基于调整后的模拟测试数据控制电子设备进行模拟测试。In a second aspect, the present application provides an equipment test adjustment system, the system includes a stress simulation device and an electronic device, and the stress simulation device controls the electronic device to perform a simulation test based on simulation test data input by a user; Attitude data; the stress simulation device determines the adjusted simulation test data based on the attitude data and the simulation test data; the stress simulation device controls the electronic device to perform the simulation test based on the adjusted simulation test data.
通过上述技术方案,可以基于电子设备确定基于用户输入的模拟测试数据进行模拟测试的实际测试数据,并通过应用模拟设备基于用户输入的模拟测试数据和实际测试数据,确定调整后的模拟测试数据,接着控制应用模拟设备基于调整后的模拟测试数据进行模拟测试,修正了应用模拟设备自身的使用模拟效果,能准确地模拟得到用户想要的应用场景,从而提高测试的准确率。Through the above technical solution, the actual test data for the simulation test based on the simulation test data input by the user can be determined based on the electronic device, and the adjusted simulation test data can be determined based on the simulation test data and the actual test data input by the user by applying the simulation device, Then, the application simulation device is controlled to perform a simulation test based on the adjusted simulation test data, and the use simulation effect of the application simulation device itself is corrected, and the application scenario desired by the user can be accurately simulated, thereby improving the test accuracy.
在一种实现方式中,应力模拟设备基于姿态数据和模拟测试数据,确定调整后的模拟测试数据包括:应力模拟设备基于姿态数据,确定电子设备进行模拟测试时的实际测试数据;应力模拟设备基于实际测试数据和模拟测试数据,确定调整后的模拟测试数据。通过上述技术方案,可以提高计算实际测试数据的准确度和效率。In an implementation manner, determining the adjusted simulation test data based on the attitude data and the simulation test data by the stress simulation device includes: the stress simulation device determines, based on the attitude data, the actual test data when the electronic device performs the simulation test; the stress simulation device is based on the attitude data. Actual test data and simulated test data to determine the adjusted simulated test data. Through the above technical solutions, the accuracy and efficiency of calculating actual test data can be improved.
在一种实现方式中,应力模拟设备基于姿态数据和模拟测试数据,确定调整后的模拟测试数据包括:电子设备基于姿态数据,确定电子设备进行模拟测试时的实际测试数据;应力模拟设备基于实际测试数据和模拟测试数据,确定调整后的模拟测试数据。通过上述技术方案,可以在电子设备中直接查看在模拟应力场景下的测试信息(实际测试数据),如跌落姿态、跌落角度和/或跌落时间等等,方便了用户对电子设备的实际测试数据的获取。In an implementation manner, the stress simulation device determines the adjusted simulation test data based on the attitude data and the simulation test data, including: the electronic device determines the actual test data when the electronic device performs the simulation test based on the attitude data; the stress simulation device is based on the actual test data. Test data and mock test data to determine adjusted mock test data. Through the above technical solution, the test information (actual test data) in the simulated stress scenario can be directly viewed in the electronic device, such as the drop posture, the drop angle and/or the drop time, etc., which facilitates the user to the actual test data of the electronic device acquisition.
在一种实现方式中,电子设备确定进行模拟测试时的姿态数据包括:电子设备判断是否满足触发条件;若满足触发条件,电子设备开启预设传感器;基于所述预设传感器采集到的数据,所述电子设备确定进行模拟测试时的姿态数据。通过上述技术方案,可以避免在不需要的情景下电子设备确定进行模拟测试时的姿态数据,造成了不必要的功耗的情况发生,减少了能量的损耗。In an implementation manner, the electronic device determining the attitude data when performing the simulation test includes: the electronic device judging whether a trigger condition is met; if the trigger condition is met, the electronic device turns on a preset sensor; based on the data collected by the preset sensor, The electronic device determines attitude data for the simulation test. Through the above technical solution, it can be avoided that the electronic device determines the attitude data during the simulation test in an unnecessary situation, which causes unnecessary power consumption and reduces the energy consumption.
第三方面,本申请实施例提供一种设备测试调整方法,应用于应力模拟设备,方法包括:基于用户输入的模拟测试数据,控制电子设备进行模拟测试;与上位机建立通信后,从上位机上获取调整后的模拟测试数据;根据调整后的模拟测试数据,控制电子设备进行模拟测试;其中,调整后的模拟测试数据是上位机基于电子设备进行模拟测试时的姿态数据和模拟测试数据确定的。In a third aspect, an embodiment of the present application provides a device test adjustment method, which is applied to a stress simulation device. The method includes: controlling an electronic device to perform a simulation test based on simulation test data input by a user; after establishing communication with a host computer, from the host computer Obtain the adjusted simulation test data; control the electronic equipment to perform the simulation test according to the adjusted simulation test data; wherein, the adjusted simulation test data is determined by the attitude data and the simulation test data when the host computer performs the simulation test based on the electronic equipment .
上述技术方案,通过测试的电子设备确定基于用户输入的模拟测试数据进行模拟测试的实际测试数据,并根据用户输入的模拟测试数据和实际测试数据,确定调整后的模拟测试数据,接着控制应用模拟设备基于调整后的模拟测试数据进行模拟测试,修正了应用模拟设备自身的使用模拟效果,能准确地模拟得到用户想要的应用场景,从而提高测试的准确率。In the above technical scheme, the actual test data for the simulation test based on the simulation test data input by the user is determined by the electronic equipment tested, and the adjusted simulation test data is determined according to the simulation test data and the actual test data input by the user, and then the application simulation is controlled. The device performs a simulation test based on the adjusted simulation test data, which corrects the use simulation effect of the application simulation device itself, and can accurately simulate the application scenario that the user wants, thereby improving the accuracy of the test.
第四方面,本申请实施例提供一种设备测试调整方法,应用于应力模拟设备,方法包括:基于用户输入的模拟测试数据,控制电子设备进行模拟测试;与电子设备建立通信后,从电子设备上,获取电子设备进行模拟测试时的姿态数据;基于姿态数据和模拟测试数据,确定调整后的模拟测试数据;根据调整后的模拟测试数据,控制电子设备进行模拟测试。In a fourth aspect, an embodiment of the present application provides a device test adjustment method, which is applied to a stress simulation device. The method includes: controlling an electronic device to perform a simulation test based on simulation test data input by a user; after establishing communication with the electronic device, from the electronic device , obtain the attitude data of the electronic equipment during the simulation test; determine the adjusted simulation test data based on the attitude data and the simulation test data; control the electronic equipment to perform the simulation test according to the adjusted simulation test data.
上述技术方案,通过测试的电子设备确定基于用户输入的模拟测试数据进行模拟测试的实际测试数据,并根据用户输入的模拟测试数据和实际测试数据,确定调整后的模拟测试数据,接着控制应用模拟设备基于调整后的模拟测试数据进行模拟测试,修正了应用模拟设备自身的使用模拟效果,能准确地模拟得到用户想要的应用场景,从而提高测试的准确率。In the above technical scheme, the actual test data for the simulation test based on the simulation test data input by the user is determined by the electronic equipment tested, and the adjusted simulation test data is determined according to the simulation test data and the actual test data input by the user, and then the application simulation is controlled. The device performs a simulation test based on the adjusted simulation test data, which corrects the use simulation effect of the application simulation device itself, and can accurately simulate the application scenario that the user wants, thereby improving the accuracy of the test.
第五方面,本申请实施例提供一种电子设备,该电子设备包括存储器和处理器;其中,存储器,用于存储程序指令;处理器,用于读取存储器中存储的程序指令,以实现如上述的设备测试调整方法。In a fifth aspect, an embodiment of the present application provides an electronic device, the electronic device includes a memory and a processor; wherein the memory is used to store program instructions; the processor is used to read the program instructions stored in the memory, so as to realize the The above-mentioned equipment test adjustment method.
第六方面,本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机可读指令,计算机可读指令被处理器执行时实现如上述的设备测试调整方法。In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, where computer-readable instructions are stored in the computer-readable storage medium, and when the computer-readable instructions are executed by a processor, the above-mentioned device testing adjustment method is implemented.
另外,第五方面和第六方面所带来的技术效果可参见上述方法部分各设计的方法相关的描述,此处不再赘述。In addition, for the technical effects brought about by the fifth aspect and the sixth aspect, reference may be made to the descriptions related to the designed methods in the above method section, which will not be repeated here.
附图说明Description of drawings
图1为本申请实施例提供的一种设备测试调整方法的场景示意图。FIG. 1 is a schematic diagram of a scenario of a device test adjustment method provided by an embodiment of the present application.
图2为本申请实施例提供的一种设备测试调整系统的示意图。FIG. 2 is a schematic diagram of a device testing and adjustment system provided by an embodiment of the present application.
图3为本申请另一实施例提供的一种设备测试调整系统的示意图。FIG. 3 is a schematic diagram of a device testing and adjustment system provided by another embodiment of the present application.
图4为本申请另一实施例提供的一种设备测试调整系统的示意图。FIG. 4 is a schematic diagram of a device testing and adjustment system according to another embodiment of the present application.
图5为本申请另一实施例提供的一种设备测试调整系统的示意图。FIG. 5 is a schematic diagram of a device testing and adjustment system provided by another embodiment of the present application.
图6为本申请另一实施例提供的一种设备测试调整方法的场景示意图。FIG. 6 is a schematic diagram of a scenario of a device test adjustment method provided by another embodiment of the present application.
图7为本申请实施例提供的一种设备测试调整系统的示意图。FIG. 7 is a schematic diagram of a device testing and adjustment system provided by an embodiment of the present application.
图8为本申请另一实施例提供的一种设备测试调整系统的示意图。FIG. 8 is a schematic diagram of a device testing and adjustment system according to another embodiment of the present application.
图9为本申请实施例提供的一种设备测试调整方法的流程图。FIG. 9 is a flowchart of a device test adjustment method provided by an embodiment of the present application.
图10为本申请另一实施例提供的一种设备测试调整方法的流程图。FIG. 10 is a flowchart of a device test adjustment method provided by another embodiment of the present application.
图11为本申请另一实施例提供的一种设备测试调整方法的流程图。FIG. 11 is a flowchart of a device test adjustment method provided by another embodiment of the present application.
图12为本申请另一实施例提供的一种设备测试调整方法的流程图。FIG. 12 is a flowchart of a device test adjustment method provided by another embodiment of the present application.
图13申请实施例提供的一种电子设备的结构示意图。FIG. 13 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
具体实施方式Detailed ways
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,“示例性”、“或者”、“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性”、“或者”、“例如”等词旨在以具体方式呈现相关概念。Hereinafter, the terms "first" and "second" are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may expressly or implicitly include one or more of that feature. In the description of the embodiments of the present application, words such as "exemplary", "or", "for example" and the like are used to represent examples, illustrations or illustrations. Any embodiment or design described in the embodiments of the present application as "exemplary" or "such as" should not be construed as preferred or advantageous over other embodiments or designs. Rather, use of the words "exemplary," "or," "eg," and the like is intended to present the related concepts in a specific manner.
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请中的技术领域的技术人员通常理解的含义相同。本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。应理解,本申请中除非另有说明,“/”表示或的意思。例如,A/B可以表示A或B。本申请中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系。例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B三种情况。“至少一个”是指一个或者多个,“多个”是指两个或多于两个。例如,a、b或c中的至少一个,可以表示:a,b,c,a和b,a和c,b和c,a、b和c七种情况。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field in this application. Terms used in the specification of the present application are for the purpose of describing specific embodiments only, and are not intended to limit the present application. It should be understood that unless otherwise specified in this application, "/" means or means. For example, A/B can mean A or B. In this application, "and/or" is only an association relationship to describe associated objects, which means that there can be three kinds of relationships. For example, A and/or B can mean that A exists alone, A and B exist at the same time, and B exists alone. "At least one" means one or more, and "plurality" means two or more. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, a, b and c seven situations.
随着电子设备的普及,人们对电子设备的应用场景也越来越复杂,电子设备在一些应用场景下会产生应力。应力是指物体由于外因而变形时,在物体内各部分之间产生相互作用的内力,如跌落应力、扭曲应力等,其中跌落应力为电子设备在跌落场景下产生的应力、扭曲应力为电子设备在扭曲场景下产生的应力。由于电子设备中存在多个部件,如显示器模组、电池模组、传感器模组等等,电子设备产生的应力会导致电子设备中的部件发生变形,会直接影响到终端产品的质量表现,如导致电子设备发生损坏,甚至无法正常使用。例如,在电子设备的跌落场景中,电子设备从空中跌落至落地点,电子设备与落地点撞击后产生的应力,可能导致该电子设备发生破损。又例如,在电子设备的扭曲场景中,电子设备受到外力的扭曲产生的应力,可能导致该电子设备的屏幕发生破损,或者导致电子设备中的某些部件脱离原有的位置。With the popularization of electronic devices, the application scenarios of electronic devices are becoming more and more complex, and electronic devices may generate stress in some application scenarios. Stress refers to the internal force that interacts between the various parts of the object when the object is deformed due to external factors, such as drop stress, torsional stress, etc., of which the drop stress is the stress generated by the electronic device in the drop scene, and the torsional stress is the electronic device. Stresses in a twisted scene. Due to the existence of multiple components in electronic equipment, such as display modules, battery modules, sensor modules, etc., the stress generated by electronic equipment will cause deformation of components in electronic equipment, which will directly affect the quality performance of end products, such as Causes damage to electronic equipment, or even can not be used normally. For example, in a fall scenario of an electronic device, the electronic device is dropped from the air to the landing site, and the stress generated after the electronic device collides with the landing site may cause the electronic device to be damaged. For another example, in a twisted scene of an electronic device, the stress generated by the distortion of the electronic device by an external force may cause the screen of the electronic device to be damaged, or cause some components in the electronic device to deviate from their original positions.
通常,可以利用应力模拟设备根据应用场景对电子设备进行使用模拟测试,从而根据模拟测试结果改进电子设备,如对电子设备中部件的排布进行调整、对电子设备中部件的安装方式进行调整。应力模拟设备用于模拟电子设备会产生应力的应力场景,例如,可以使用跌落测试设备模拟电子设备会产生跌落应力的跌落场景,可以使用扭曲测试设备模拟电子设备会产生扭曲应力的扭曲场景。Usually, stress simulation equipment can be used to simulate the use of electronic equipment according to the application scenario, so as to improve the electronic equipment according to the simulation test results, such as adjusting the arrangement of components in the electronic equipment, and adjusting the installation method of the components in the electronic equipment. Stress simulation equipment is used to simulate stress scenarios where electronic equipment will generate stress. For example, a drop test equipment can be used to simulate a drop scenario where electronic equipment will generate drop stress, and a twist test equipment can be used to simulate a twisted scene where electronic equipment will generate distorting stress.
但是,应力模拟设备是基于用户输入的模拟测试数据进行使用模拟测试,在测试过程中,不会调整模拟测试数据,对应力模拟设备自身的使用模拟效果无法修正,所以不能准确地模拟得到用户想要的应用场景,甚至会导致错误的设备测试结果。However, the stress simulation equipment is used for the simulation test based on the simulation test data input by the user. During the test process, the simulation test data will not be adjusted, and the simulation effect of the use of the stress simulation equipment itself cannot be corrected, so it cannot accurately simulate the user's desire. The required application scenarios may even lead to erroneous device test results.
例如,用户使用跌落测试设备模拟电子设备会产生跌落应力的跌落场景,用户输入的模拟测试数据为:跌落角度45°,跌落30次。由于在测试过程中,跌落测试设备不会调整模拟测试数据,对设备自身的使用模拟效果无法修正,若跌落测试设备基于用户输入的模拟测试数据为:跌落角度45°进行跌落测试,得到的模拟跌落角度是47°,跌落测试设备在测试过程中不会对模拟测试数据进行修正,会按照模拟跌落角度47°跌落30次,而用户需要的跌落场景是跌落角度45°,跌落测试设备模拟的跌落角度与用户需要测试的跌落角度是不一致的,所以得出来的测试结果可能和实际的结果存在误差。For example, a user uses a drop test device to simulate a drop scenario in which an electronic device will generate drop stress. The simulated test data input by the user is: a drop angle of 45° and 30 drops. During the test process, the drop test equipment will not adjust the simulated test data, and the simulation effect of the equipment itself cannot be corrected. The drop angle is 47°, the drop test equipment will not correct the simulated test data during the test, and will drop 30 times according to the simulated drop angle of 47°, and the drop scene required by the user is the drop angle of 45°, which is simulated by the drop test equipment. The drop angle is inconsistent with the drop angle that the user needs to test, so the test results obtained may be different from the actual results.
又例如,用户使用扭曲测试设备模拟电子设备会产生扭曲应力的扭曲场景,用户输入的模拟测试数据为:扭矩2N·m,正反扭曲各15次。由于在测试过程中,扭曲测试设备不会调整模拟测试数据,对设备自身的使用模拟效果无法修正,若扭曲测试设备基于用户输入的模拟测试数据为:扭矩2N·m进行扭曲测试,得到的模拟扭曲是1.7N·m,扭曲测试设备在测试过程中不会对扭曲测试数据进行修正,会按照模拟扭矩1.7N·m正反扭曲各15次,而用户需要的扭曲场景是扭矩2N·m,扭曲测试设备模拟的扭矩与用户需要测试的扭矩是不一致的,所以得出来的测试结果可能和实际的结果存在误差。For another example, a user uses a twist test device to simulate a twist scene in which an electronic device generates twist stress, and the simulated test data input by the user is: torque 2N·m, 15 times each of positive and negative twists. During the test process, the distortion test equipment will not adjust the simulated test data, and the simulation effect of the equipment itself cannot be corrected. The twist is 1.7N·m. The twist test equipment will not correct the twist test data during the test process. It will twist 15 times forward and reverse according to the simulated torque of 1.7N·m. The twist scene required by the user is the torque of 2N·m. The torque simulated by the torsion test equipment is inconsistent with the torque that the user needs to test, so the test results obtained may be inaccurate with the actual results.
为解决上述设备测试过程中,应力模拟设备不会调整模拟测试数据,对设备自身的使用模拟效果无法修正,不能准确地模拟得到用户想要的应用场景的技术问题,本申请实施例提供一种设备测试调整方法通过根据电子设备确定的进行模拟测试时的姿态数据,并基于所述姿态数据对应力模拟设备的模拟参数进行调整,以使应力模拟设备模拟出的场景符合用户的需求,从而提高测试的准确率。In order to solve the technical problems that the stress simulation equipment will not adjust the simulated test data during the above equipment testing process, the use simulation effect of the equipment itself cannot be corrected, and the application scenarios desired by users cannot be accurately simulated, the embodiments of the present application provide a The equipment test adjustment method adjusts the simulation parameters of the stress simulation equipment based on the attitude data determined by the electronic equipment during the simulation test, so as to make the scene simulated by the stress simulation equipment meet the needs of the user, thereby improving the performance. test accuracy.
参考图1所示,为本申请实施例提供的一种设备测试调整方法的场景示意图。应力模拟设备11基于用户输入的模拟测试数据对电子设备12进行模拟测试,电子设备12基于内置的传感器确定实际测试数据,并将确定的实际测试数据发送至上位机13,上位机13基于用户输入的模拟测试数据和实际测试数据,确定调整后的模拟测试数据,并将调整后的模拟测试数据发送至应力模拟设备11,以使应力模拟设备11基于调整后的模拟测试数据对电子设备12进行模拟测试。其中,应力模拟设备11可以包括跌落模拟测试设备、扭曲模拟测试设备等等;电子设备12可以是手机、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmentedreality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificialintelligence,AI)设备、可穿戴式设备、车载设备、智能家居设备和/或智慧城市设备;上位机13是指可以直接发出操控命令的计算机,可以包括个人计算机(Personal Computer,PC)、主机(host computer/master computer)等。Referring to FIG. 1 , it is a schematic diagram of a scenario of a device testing adjustment method provided by an embodiment of the present application. The
通过上述的设备测试调整方法,可以基于测试的电子设备,确定基于用户输入的模拟测试数据进行模拟测试的实际测试数据;并根据用户输入的模拟测试数据和实际测试数据,确定调整后的模拟测试数据,接着控制应用模拟设备基于调整后的模拟测试数据进行模拟测试,修正了应用模拟设备自身的使用模拟效果,能准确地模拟得到用户想要的应用场景,从而提高测试的准确率。Through the above-mentioned equipment test adjustment method, the actual test data for the simulated test based on the simulated test data input by the user can be determined based on the electronic equipment being tested; and the adjusted simulated test data can be determined according to the simulated test data and the actual test data input by the user. Data, and then control the application simulation device to perform a simulation test based on the adjusted simulation test data, which corrects the use simulation effect of the application simulation device itself, and can accurately simulate the application scenario that the user wants, thereby improving the accuracy of the test.
上述的设备测试调整方法可以应用于如图2所示的设备测试调整系统中。参考图2所示,为本申请实施例提供的一种设备测试调整系统的示意图,设备测试调整系统可以包括应力模拟设备11、电子设备12和上位机13。The above-mentioned equipment testing adjustment method can be applied to the equipment testing adjustment system as shown in FIG. 2 . Referring to FIG. 2 , which is a schematic diagram of a device testing and adjustment system provided in an embodiment of the present application, the device testing and adjustment system may include a
应力模拟设备11中包括控制模块111和执行模块112,控制模块111用于接收用户输入的模拟测试数据,并控制执行模块112基于用户输入的模拟测试数据进行模拟测试;执行模块112用于基于用户输入的模拟测试数据对电子设备12进行模拟测试。其中,执行模块112可以包括机械部件,如携载部,携载部用于固定电子设备12。基于携载部的运动,模拟电子设备12会产生应力的场景,使电子设备12产生应力。携载部的运动可以包括上下移动、左右移动、顺时针翻转、逆时针翻转或者平面转动等。基于此,可以理解的是,携载部与电子设备12固定后,带动电子设备12以与携载部相同的方式运动,从而模拟电子设备12会产生应力的场景。携载部的结构可以包括吸盘、机械手或者夹子等。The
电子设备12中包括传感器模块121和通信模块122。传感器模块121用于采集电子设备12进行模拟测试时的姿态数据,传感器模块121可以包括一种或多种传感器,所述传感器可以用于识别电子设备12的姿态,得到电子设备12的姿态数据,如加速度传感器、陀螺仪传感器,其中,加速度传感器可检测电子设备12在各个方向上(一般为三轴)加速度的大小,还可用于识别电子设备12的姿态;陀螺仪传感器可以用于确定电子设备12的运动姿态,在本申请的一些实施例中,可以通过陀螺仪传感器确定电子设备12围绕三个轴(即,x,y和z轴)的角速度。通信模块122用于将传感器模块121采集到的电子设备12进行模拟测试时的真实测试数据发送至上位机13。通信模块122可以包括有线通信模块和/或无线通信模块,其中,有线通信模块可以包括通用串行总线(Universal Serial Bus,USB)接口;无线通信模块可以包括无线通信技术(Wireless Fidelity,Wi-Fi)模块、蓝牙(Bluetooth,BT)模块、移动通信(Mobile communication)模块,移动通信模块可以提供应用在电子设备12上的包括2G/3G/4G/5G等无线通信的解决方案。The
上位机13中包括通信模块131、姿态解算模块132和数据调整模块133。通信模块131用于接收电子设备12发送的模拟测试时电子设备12的姿态数据。通信模块131主要用于实现多个设备(例如应力模拟设备11与电子设备12)之间的通信,例如,借助与通信模块122的数据交互实现上位机13与电子设备12之间的通信连接与数据交互。通信模块131的具体结构可以参见对通信模块122的相关描述,在此不再赘述。姿态解算模块132用于基于模拟测试时电子设备12的姿态数据,确定模拟测试时电子设备12对应的实际测试数据。例如,姿态解算模块132可以基于预设的换算关系,将模拟测试时电子设备12的姿态数据换算成模拟测试时电子设备12对应的实际测试数据。姿态解算模块132的具体工作原理可以参见下文中801-807部分的相关描述。数据调整模块133用于基于用户输入的模拟测试数据和实际测试数据,确定调整后的模拟测试数据,所述调整后的模拟测试数据用于控制应力模拟设备11进行模拟测试。例如,通信模块131可以将数据调整模块133确定的调整后的模拟测试数据发送至应力模拟设备11,以使应力模拟设备11的控制模块111控制执行模块112基于调整后的模拟测试数据对电子设备12进行模拟测试。The
上述如图2所示的设备测试调整系统,可以基于电子设备确定基于用户输入的模拟测试数据进行模拟测试的实际测试数据,并通过上位机基于用户输入的模拟测试数据和实际测试数据,确定调整后的模拟测试数据,接着控制应用模拟设备基于调整后的模拟测试数据进行模拟测试,修正了应用模拟设备自身的使用模拟效果,能准确地模拟得到用户想要的应用场景,从而提高测试的准确率。同时,将姿态解算模块132设置在上位机13中,可借助上位机13的强大的运算能力,提高计算实际测试数据的准确度和效率。The above-mentioned equipment test adjustment system as shown in Figure 2 can be determined based on the electronic equipment to determine the actual test data of the simulated test based on the simulated test data input by the user, and determine the adjustment based on the simulated test data and the actual test data input by the user by the host computer. After the simulation test data is obtained, the application simulation device is then controlled to perform a simulation test based on the adjusted simulation test data, which corrects the use simulation effect of the application simulation device itself, and can accurately simulate the application scenario that the user wants, thereby improving the accuracy of the test. Rate. At the same time, setting the
在本申请的另一实施例中,设备测试调整系统可以如图3所示。应力模拟设备11中包括控制模块311和执行模块312。电子设备12中包括传感器模块321、姿态解算模块322和通信模块323,姿态解算模块322用于根据传感器模块321采集到的电子设备12进行模拟测试时的姿态数据,确定模拟测试时电子设备12对应的实际测试数据,通信模块323用于将确定的实际测试数据,发送至上位机13。上位机13中包括通信模块331和数据调整模块332。通信模块331用于接收电子设备12发送的实际测试数据,数据调整模块332用于基于用户输入的模拟测试数据和实际测试数据,确定调整后的模拟测试数据。通信模块331可以将通信模块331确定的调整后的模拟测试数据发送至应力模拟设备11,以使应力模拟设备11的控制模块311控制执行模块312基于调整后的模拟测试数据对电子设备12进行模拟测试。In another embodiment of the present application, the equipment testing adjustment system may be as shown in FIG. 3 . The
其中,控制模块311、执行模块312、传感器模块321、姿态解算模块322、通信模块323、通信模块331和数据调整模块332的相关描述,可以参见上述内容中对控制模块111、执行模块112、传感器模块121、通信模块122、通信模块131、姿态解算模块132和数据调整模块133的相关描述,在此不再赘述。Among them, the relevant descriptions of the
上述如图3所示的设备测试调整系统,通过将姿态解算模块设置在电子设备中,可以在电子设备中直接查看在模拟应力场景下的测试信息(实际测试数据),如跌落姿态、跌落角度和/或跌落时间等等,方便了用户对电子设备的实际测试数据的获取。For the equipment testing and adjustment system shown in Figure 3 above, by arranging the attitude calculation module in the electronic equipment, the test information (actual test data) under the simulated stress scenario can be directly viewed in the electronic equipment, such as drop attitude, drop The angle and/or the drop time, etc., facilitate the user to obtain the actual test data of the electronic device.
在本申请的另一实施例中,设备测试调整系统可以如图4所示。应力模拟设备11中包括控制模块411和执行模块412。电子设备12中包括触发模块421、传感器模块422和通信模块423,触发模块421用于判断电子设备12的当前状态是否满足预设的传感器启动条件,若电子设备12的当前状态满足预设的传感器启动条件,通知传感器模块422采集电子设备12进行模拟测试时的姿态数据,若电子设备12的当前状态不满足预设的传感器启动条件,可以不执行任何动作。预设的传感器启动条件的具体介绍可以参见下文中801-807部分的相关描述。上位机13中包括通信模块431、姿态解算模块432和数据调整模块433。In another embodiment of the present application, the equipment testing adjustment system may be as shown in FIG. 4 . The
其中,控制模块411、执行模块412、传感器模块422、通信模块423、通信模块431、姿态解算模块432和数据调整模块433的相关描述,可以参见上述内容中对控制模块111、执行模块112、传感器模块121、通信模块122、通信模块131、姿态解算模块132和数据调整模块133的相关描述,在此不再赘述。Among them, for the relevant description of the
上述如图4所示的设备测试调整系统,通过在电子设备中设置触发模块,可以避免电子设备在不需要的情景下确定进行模拟测试时的姿态数据,造成了不必要的功耗,减少了能量的损耗。As shown in the above-mentioned equipment test adjustment system shown in FIG. 4 , by setting the trigger module in the electronic equipment, it can avoid the electronic equipment from determining the attitude data during the simulation test in an unnecessary situation, resulting in unnecessary power consumption and reducing the power consumption. loss of energy.
在本申请的另一实施例中,设备测试调整系统可以如图5所示。应力模拟设备11中包括控制模块511和执行模块512。电子设备12中包括触发模块521、传感器模块522、姿态解算模块523和通信模块524,触发模块521用于判断电子设备12的当前状态是否满足预设的传感器启动条件,若电子设备12的当前状态满足预设的传感器启动条件,通知传感器模块522采集电子设备12进行模拟测试时的姿态数据,若电子设备12的当前状态不满足预设的传感器启动条件,可以不执行任何动作。上位机13中包括通信模块531和数据调整模块532。In another embodiment of the present application, the equipment testing adjustment system may be as shown in FIG. 5 . The
其中,控制模块511、执行模块512、传触发模块521、传感器模块522、姿态解算模块523、通信模块524、通信模块531和数据调整模块532的相关描述,可以参见上述内容中对控制模块311、执行模块312、传感器模块321、姿态解算模块322、通信模块323、通信模块331和数据调整模块332的相关描述,在此不再赘述。Among them, for the description of the
上述如图5所示的设备测试调整系统,通过将在电子设备中设置触发模块,可以避免在不需要的情景下电子设备确定进行模拟测试时的姿态数据,造成了不必要的功耗,减少了能量的损耗。同时,将姿态解算模块设置在电子设备中,可以在电子设备中直接查看在模拟应力场景下的测试信息(实际测试数据),如跌落姿态、跌落角度和/或跌落时间等等,方便了用户对电子设备的实际测试数据的获取。The above-mentioned equipment test adjustment system shown in FIG. 5, by setting the trigger module in the electronic equipment, can avoid the electronic equipment to determine the attitude data when the simulation test is not required in an unnecessary situation, resulting in unnecessary power consumption, reducing loss of energy. At the same time, the attitude calculation module is set in the electronic device, and the test information (actual test data) under the simulated stress scenario can be directly viewed in the electronic device, such as the falling attitude, the falling angle and/or the falling time, etc., which is convenient The user obtains the actual test data of the electronic device.
如图6所示,图6为本申请另一实施例提供的一种设备测试调整方法的场景示意图。应力模拟设备11基于用户输入的模拟测试数据对电子设备12进行模拟测试,电子设备12基于内置的传感器确定实际测试数据,并将确定的实际测试数据发送至应力模拟设备11,应力模拟设备11基于用户输入的模拟测试数据和实际测试数据,确定调整后的模拟测试数据,并基于调整后的模拟测试数据对电子设备12进行模拟测试。As shown in FIG. 6 , FIG. 6 is a schematic scene diagram of a device testing adjustment method provided by another embodiment of the present application. The
上述如图6所示的设备测试调整方法,可以基于测试的电子设备,确定基于用户输入的模拟测试数据进行模拟测试的实际测试数据;并根据用户输入的模拟测试数据和实际测试数据,确定调整后的模拟测试数据,接着控制应用模拟设备基于调整后的模拟测试数据进行模拟测试,修正了应用模拟设备自身的使用模拟效果,能准确地模拟得到用户想要的应用场景,从而提高测试的准确率。The above-mentioned equipment test adjustment method as shown in Figure 6 can be based on the electronic equipment tested, to determine the actual test data of the simulated test based on the simulated test data input by the user; and according to the simulated test data and the actual test data input by the user, determine the adjustment After the simulation test data is obtained, the application simulation device is then controlled to perform a simulation test based on the adjusted simulation test data, which corrects the use simulation effect of the application simulation device itself, and can accurately simulate the application scenario that the user wants, thereby improving the accuracy of the test. Rate.
如图7所示,设备测试调整系统可以包括应力模拟设备11和电子设备12,其中应力模拟设备11中包括控制模块611、执行模块612、通信模块613、姿态解算模块614和数据调整模块615。控制模块611用于接收用户输入的模拟测试数据,并控制执行模块612基于用户输入的模拟测试数据进行模拟测试;执行模块612用于基于用户输入的模拟测试数据对电子设备12进行模拟测试。其中,执行模块612可以包括机械部件,如携载部,携载部用于固定电子设备12。基于携载部的运动,模拟电子设备12会产生应力的场景,使电子设备12产生应力。携载部的运动可以包括上下移动、左右移动、顺时针翻转、逆时针翻转或者平面转动等。基于此,可以理解的是,携载部与电子设备12固定后,带动电子设备12以与携载部相同的方式运动,从而模拟电子设备12会产生应力的场景。携载部的结构可以包括吸盘、机械手或者夹子等。通信模块613用于接收电子设备12发送的模拟测试时电子设备12的姿态数据。通信模块613的具体结构可以参见对通信模块122的相关描述,在此不再赘述。姿态解算模块614用于基于模拟测试时电子设备12的姿态数据,确定模拟测试时电子设备12对应的实际测试数据。例如,姿态解算模块614可以基于预设的换算关系,将模拟测试时电子设备12的姿态数据换算成模拟测试时电子设备12对应的实际测试数据。姿态解算模块614的具体工作原理可以参见下文中801-807部分的相关描述。数据调整模块615用于基于用户输入的模拟测试数据和实际测试数据,确定调整后的模拟测试数据,所述调整后的模拟测试数据用于控制应力模拟设备11进行模拟测试。例如,可以将数据调整模块615确定的调整后的模拟测试数据传送至控制模块611,以使控制模块611控制执行模块612基于调整后的模拟测试数据对电子设备12进行模拟测试。As shown in FIG. 7 , the device testing and adjustment system may include a
电子设备12中包括传感器模块621和通信模块622。传感器模块621用于采集电子设备12进行模拟测试时的姿态数据,传感器模块621可以包括一种或多种传感器,所述传感器可以用于识别电子设备12的姿态,得到电子设备12的姿态数据,如加速度传感器、陀螺仪传感器,其中,加速度传感器可检测电子设备12在各个方向上(一般为三轴)加速度的大小,还可用于识别电子设备12的姿态;陀螺仪传感器可以用于确定电子设备12的运动姿态,在本申请的一些实施例中,可以通过陀螺仪传感器确定电子设备12围绕三个轴(即,x,y和z轴)的角速度。通信模块622用于将传感器模块121采集到的电子设备12进行模拟测试时的真实测试数据发送至应力模拟设备11。通信模块622可以包括有线通信模块和/或无线通信模块,其中,有线通信模块可以包括通用串行总线(Universal Serial Bus,USB)接口;无线通信模块可以包括无线通信技术(Wireless Fidelity,Wi-Fi)模块、蓝牙(Bluetooth,BT)模块、移动通信(Mobile communication)模块,移动通信模块可以提供应用在电子设备12上的包括2G/3G/4G/5G等无线通信的解决方案。The
上述如图7所示的设备测试调整系统,可以基于电子设备确定基于用户输入的模拟测试数据进行模拟测试的实际测试数据,并通过应用模拟设备基于用户输入的模拟测试数据和实际测试数据,确定调整后的模拟测试数据,接着控制应用模拟设备基于调整后的模拟测试数据进行模拟测试,修正了应用模拟设备自身的使用模拟效果,能准确地模拟得到用户想要的应用场景,从而提高测试的准确率。同时,将姿态解算模块设置在应力模拟设备中,可以提高计算实际测试数据的准确度和效率。The above-mentioned equipment testing adjustment system as shown in Figure 7 can be based on the electronic equipment to determine the actual test data for the simulated test based on the simulated test data input by the user, and by applying the simulated equipment based on the simulated test data and the actual test data input by the user, determine The adjusted simulation test data, and then control the application simulation device to perform a simulation test based on the adjusted simulation test data, which corrects the use simulation effect of the application simulation device itself, and can accurately simulate the application scenario that the user wants, thereby improving the test accuracy. Accuracy. At the same time, setting the attitude calculation module in the stress simulation equipment can improve the accuracy and efficiency of calculating the actual test data.
在本申请的另一实施例中,设备测试调整系统可以如图8所示。应力模拟设备11中包括控制模块711、执行模块712、通信模块713和数据调整模块714。电子设备12中包括传感器模块721、姿态解算模块722和通信模块723,姿态解算模块722用于根据传感器模块721采集到的电子设备12进行模拟测试时的姿态数据,确定模拟测试时电子设备12对应的实际测试数据,通信模块723用于将确定的实际测试数据,发送至应力模拟设备11。通信模块713用于接收电子设备12发送的实际测试数据。数据调整模块714用于基于电子设备12发送的实际测试数据和用户输入的模拟测试数据,确定调整后的模拟测试数据。可以将数据调整模块714确定的调整后的模拟测试数据传送至控制模块711,以使控制模块711控制执行模块712基于调整后的模拟测试数据对电子设备12进行模拟测试。In another embodiment of the present application, the device test adjustment system may be as shown in FIG. 8 . The
其中,控制模块711、执行模块712、通信模块713、数据调整模块714、传感器模块721、姿态解算模块722和通信模块723的相关描述,可以参见上述内容中对控制模块611、执行模块612、通信模块613、姿态解算模块614、数据调整模块615、传感器模块621和通信模块622的相关描述,在此不再赘述。Among them, for the relevant description of the control module 711, the execution module 712, the
上述如图8所示的设备测试调整系统,通过将姿态解算模块设置在电子设备中,可以在电子设备中直接查看在模拟应力场景下的测试信息(实际测试数据),如跌落姿态、跌落角度和/或跌落时间等等,方便了用户对电子设备的实际测试数据的获取。For the equipment testing and adjustment system shown in Figure 8 above, by arranging the attitude calculation module in the electronic equipment, the test information (actual test data) under the simulated stress scenario can be directly viewed in the electronic equipment, such as the falling attitude, falling The angle and/or the drop time, etc., facilitate the user to obtain the actual test data of the electronic device.
在本申请的另一些实施例中,如图7所示的设备测试调整系统,电子设备12还可以包括触发模块,或者如图8所示的设备测试调整系统,电子设备12还可以包括触发模块。触发模块用于判断电子设备12的当前状态是否满足预设的传感器启动条件,若电子设备12的当前状态满足预设的传感器启动条件,通知传感器模块621(传感器模块721)采集电子设备12进行模拟测试时的姿态数据,若电子设备12的当前状态不满足预设的传感器启动条件,可以不执行任何动作。预设的传感器启动条件的具体介绍可以参见下文中801-807部分的相关描述。In other embodiments of the present application, as shown in FIG. 7 , the
上述的设备测试调整系统,通过将在电子设备中设置触发模块,可以避免在不需要的情景下电子设备确定进行模拟测试时的姿态数据,造成了不必要的功耗的情况发生,减少了能量的损耗。The above-mentioned equipment test adjustment system, by setting the trigger module in the electronic equipment, can avoid the situation that the electronic equipment determines the attitude data during the simulation test in an unnecessary situation, which causes unnecessary power consumption and reduces energy. loss.
参考图9所示,为本申请实施例提供的一种设备测试调整方法的流程图。所述方法可应用于如图1至图8中所示的任一应力模拟设备、电子设备和上位机。Referring to FIG. 9 , it is a flowchart of a device test adjustment method provided by an embodiment of the present application. The method can be applied to any stress simulation device, electronic device and upper computer as shown in FIG. 1 to FIG. 8 .
801,应力模拟设备基于用户输入的模拟测试数据控制电子设备进行模拟测试。801. The stress simulation device controls the electronic device to perform a simulation test based on the simulation test data input by the user.
在本申请的一些实施例中,应力模拟设备可以包括控制模块和执行模块,控制模块用于接收用户输入的模拟测试数据,并控制执行模块基于用户输入的模拟测试数据进行模拟测试。示例性的,用户可以在应力模拟设备上输入模拟测试数据,也可以在控制该应力模拟设备的上位机上输入模拟测试数据。执行模块用于基于用户输入的模拟测试数据对电子设备进行模拟测试。其中,执行模块可以包括机械部件,如携载部,携载部用于固定电子设备。基于携载部的运动,模拟电子设备会产生应力的场景,使电子设备产生应力。携载部的运动可以包括上下移动、左右移动、顺时针翻转、逆时针翻转或者平面转动等。基于此,可以理解的是,携载部与电子设备固定后,带动电子设备以与携载部相同的方式运动,从而模拟电子设备会产生应力的场景,使电子设备产生应力。携载部的结构可以包括吸盘、机械手或者夹子等。In some embodiments of the present application, the stress simulation device may include a control module and an execution module, where the control module is configured to receive simulation test data input by a user, and control the execution module to perform a simulation test based on the simulation test data input by the user. Exemplarily, the user may input simulated test data on the stress simulation device, or input simulated test data on the host computer that controls the stress simulation device. The execution module is used to perform a simulated test on the electronic device based on the simulated test data input by the user. Wherein, the execution module may include a mechanical part, such as a carrying part, and the carrying part is used for fixing the electronic device. Based on the movement of the carrying portion, a scenario in which the electronic device is stressed is simulated, so that the electronic device is stressed. The movement of the carrying portion may include up and down movement, left and right movement, clockwise inversion, counterclockwise inversion, or plane rotation, and the like. Based on this, it can be understood that after the carrying portion and the electronic device are fixed, the electronic device is driven to move in the same manner as the carrying portion, thereby simulating a scenario where the electronic device generates stress and causing the electronic device to generate stress. The structure of the carrying portion may include suction cups, robotic arms or clips, and the like.
在本申请的一些实施例中,应力模拟设备基于预先设置的测试数据换算表和用户输入的模拟测试数据,确定执行动作,并基于所述执行动作控制电子设备进行模拟测试。In some embodiments of the present application, the stress simulation device determines an execution action based on a preset test data conversion table and simulation test data input by a user, and controls the electronic device to perform a simulation test based on the execution action.
预先设置的测试数据换算表可以包括跌落测试数据换算报表、扭曲测试数据换算报表。其中,跌落测试数据换算报表中可以包括跌落角度与执行模块执行动作之间的映射关系、跌落高度与执行模块执行动作之间的映射关系等等;扭曲测试数据换算报表中可以包括扭矩与执行模块执行动作之间的映射关系等等。根据预先设置的测试数据换算表可以确定应力模拟设备要模拟用户输入的模拟测试数据对应的应力场景,要实现的执行动作。The preset test data conversion table may include a drop test data conversion report and a twist test data conversion report. Among them, the drop test data conversion report can include the mapping relationship between the drop angle and the execution action of the execution module, the mapping relationship between the drop height and the execution action of the execution module, etc.; the twist test data conversion report can include the torque and execution module. Mapping relationships between execution actions, etc. According to the preset test data conversion table, it can be determined that the stress simulation device needs to simulate the stress scene corresponding to the simulated test data input by the user, and the execution action to be realized.
基于预先设置的测试数据换算表,可以快速地根据用户输入的模拟测试数据确定应力模拟设备需要进行的执行动作,从而加快模拟用户需要的电子设备产生应力的应力场景的速度,提高了设备测试的效率。Based on the preset test data conversion table, it is possible to quickly determine the execution actions that the stress simulation device needs to perform according to the simulation test data input by the user, thereby speeding up the simulation of the stress scene of the electronic device required by the user to generate stress, and improving the equipment testing efficiency. efficiency.
802,电子设备确定自身进行模拟测试时的姿态数据。802. The electronic device determines attitude data when it performs the simulation test.
电子设备上包括传感器,电子设备可以基于所述传感器,确定在模拟测试时自身的姿态数据。传感器可以用于识别电子设备的姿态,得到电子设备的姿态数据,如加速度传感器、陀螺仪传感器,其中,加速度传感器可检测电子设备在各个方向上(一般为三轴)加速度的大小,还可用于识别电子设备的姿态;陀螺仪传感器可以用于确定电子设备的运动姿态,在本申请的一些实施例中,可以通过陀螺仪传感器确定电子设备围绕三个轴(即,x,y和z轴)的角速度。The electronic device includes sensors, and the electronic device can determine its own posture data during the simulation test based on the sensors. Sensors can be used to identify the posture of electronic devices and obtain posture data of electronic devices, such as acceleration sensors and gyroscope sensors. Among them, acceleration sensors can detect the acceleration of electronic devices in various directions (generally three axes), and can also be used for Identify the posture of the electronic device; the gyro sensor can be used to determine the motion posture of the electronic device, in some embodiments of the present application, the electronic device can be determined around three axes (ie, x, y and z axes) by the gyro sensor angular velocity.
在本申请的一些实施例中,可以预先设置数据采集条件,若满足数据采集条件,采集自身进行模拟测试时的姿态数据。例如,开启电子设备上的预设传感器,采集电子设备在拟测试时自身的姿态数据。数据采集条件可以包括用户开启电子设备上某一功能,如测试功能。通过设置数据采集条件,可以避免在不需要的情景下进行数据采集,造成了不必要功耗的情况发生,减少了能量的损耗。In some embodiments of the present application, the data collection conditions may be preset, and if the data collection conditions are met, the attitude data of the self during the simulation test is collected. For example, turn on the preset sensor on the electronic device, and collect the attitude data of the electronic device when it is to be tested. The data collection condition may include that the user turns on a certain function on the electronic device, such as a test function. By setting the data collection conditions, it is possible to avoid data collection in unneeded scenarios, resulting in unnecessary power consumption and reducing energy consumption.
803,电子设备将自身进行模拟测试时的姿态数据发送至上位机。803 , the electronic device sends the attitude data when the electronic device performs the simulation test to the upper computer.
在本申请的一些实施例中,电子设备和上位机上包括通信模块,基于通信模块,可以实现电子设备与上位机的通信。所述通信模块可以包括有线通信模块和/或无线通信模块,其中,有线通信模块可以包括通用串行总线(Universal Serial Bus,USB)接口;无线通信模块可以包括无线通信技术(Wireless Fidelity,Wi-Fi)模块、蓝牙(Bluetooth,BT)模块、移动通信(Mobile communication)模块,移动通信模块可以提供应用在电子设备和/或上位机上的包括2G/3G/4G/5G等无线通信的解决方案。In some embodiments of the present application, the electronic device and the upper computer include a communication module, and based on the communication module, the communication between the electronic device and the upper computer can be realized. The communication module may include a wired communication module and/or a wireless communication module, wherein the wired communication module may include a Universal Serial Bus (Universal Serial Bus, USB) interface; the wireless communication module may include a wireless communication technology (Wireless Fidelity, Wi- Fi) module, Bluetooth (Bluetooth, BT) module, mobile communication (Mobile communication) module, the mobile communication module can provide solutions including 2G/3G/4G/5G wireless communication applied on electronic devices and/or upper computers.
804,上位机基于电子设备进行模拟测试时的姿态数据,确定电子设备进行模拟测试时的实际测试数据。804, the upper computer determines actual test data when the electronic device performs the simulation test based on the attitude data when the electronic device performs the simulation test.
示例性的,上位机可以基于姿态解算方法对电子设备进行模拟测试时的姿态数据进行姿态解算,确定电子设备进行模拟测试时的实际测量数据。姿态解算方法用于将采集到的状态数据转换成预设坐标系下的坐标,实现不同坐标系下数据的转换,如将状态数据从一个坐标系下的值转换到另一个坐标系下对应的值,可以包括欧拉角法、余弦函数法和四元数法等等。欧拉角法可以是通过将动坐标系(固定在其它相对于地球运动的参考体上的坐标系)相对参考坐标系之间的位置关系用一组欧拉角来描述,例如用导航系到载体系的三个旋转角度(航向角ψ\psiψ,俯仰角θ\thetaθ,横滚角γ\gammaγ)来表示,依据三个旋转角度对电子设备进行模拟测试时的姿态数据进行计算,得到电子设备进行模拟测试时相对于参考坐标系的坐标。其中,参考坐标系可以根据应力模拟设备进行设置,在此不做任何限定。余弦函数法可以包括方向余弦矩阵法。方向余弦矩阵法是一种用矢量的方向余弦来表示姿态矩阵的方法,可以将绕定点转动的两个坐标系之间的关系用方向余弦矩阵来表示。应当理解的是,上述描述的姿态解算方法仅做举例说明,不构成对姿态解算方法的限制,也可以根据不同的应用场景,使用其它的现有的姿态解算方法对电子设备进行模拟测试时的姿态数据进行姿态解算。Exemplarily, the host computer may perform attitude calculation on the attitude data of the electronic device during the simulation test based on the attitude calculation method, and determine the actual measurement data when the electronic device performs the simulation test. The attitude calculation method is used to convert the collected state data into coordinates in a preset coordinate system, and realize the conversion of data in different coordinate systems, such as converting the state data from the value in one coordinate system to the corresponding value in another coordinate system. The value of , which can include Euler angle method, cosine function method, quaternion method, etc. The Euler angle method can be used to describe the positional relationship between the moving coordinate system (a coordinate system fixed on other reference bodies moving relative to the earth) relative to the reference coordinate system with a set of Euler angles, such as using the navigation system to The three rotation angles of the carrier system (heading angle ψ\psiψ, pitch angle θ\thetaθ, roll angle γ\gammaγ) are represented, and the attitude data during the simulation test of the electronic equipment is calculated according to the three rotation angles, and the electronic equipment is obtained. The coordinates of the device relative to the reference coordinate system during the simulation test. The reference coordinate system can be set according to the stress simulation equipment, which is not limited here. The cosine function method may include a directional cosine matrix method. The direction cosine matrix method is a method of representing the attitude matrix by the direction cosine of the vector, and the relationship between the two coordinate systems rotating around the fixed point can be represented by the direction cosine matrix. It should be understood that the attitude calculation method described above is only for illustration, and does not constitute a limitation on the attitude calculation method. Other existing attitude calculation methods can also be used to simulate electronic equipment according to different application scenarios. The attitude data during the test is used for attitude calculation.
在本申请的一些实施例中,上位机基于电子设备进行模拟测试时的姿态数据,确定基于电子设备进行模拟测试时相对于预设的参考坐标系的坐标数据,并基于所述坐标数据确定电子设备进行模拟测试时的实际测试数据。可以基于所述应力模拟设备对应的测试内容和所述坐标数据,确定电子设备进行模拟测试时的实际测试数据。所述测试内容可以包括测试类型,如跌落测试,扭曲测试。根据不同的测试内容,确定电子设备进行模拟测试时的实际测试数据。例如,应力模拟设备对应的测试内容为跌落测试,基于所述坐标数据,确定电子设备进行模拟测试时的实际测试跌落角度;又例如,应力模拟设备对应的测试内容为扭曲测试,基于所述坐标数据,确定电子设备进行模拟测试时的实际测试扭矩。In some embodiments of the present application, the host computer determines the coordinate data relative to a preset reference coordinate system when the simulation test is performed based on the electronic device based on the attitude data of the electronic device, and determines the electronic device based on the coordinate data. The actual test data when the device is subjected to a simulation test. Actual test data when the electronic device performs the simulation test may be determined based on the test content corresponding to the stress simulation device and the coordinate data. The test content may include test types, such as drop test, twist test. According to different test contents, determine the actual test data of the electronic equipment during the simulation test. For example, the test content corresponding to the stress simulation device is a drop test, and based on the coordinate data, the actual test drop angle when the electronic device performs the simulation test is determined; for another example, the test content corresponding to the stress simulation device is a twist test, based on the coordinates data to determine the actual test torque when the electronic equipment is subjected to a simulated test.
可以预先设置不同的测试内容对应的坐标换算表。所述坐标换算表包括每个测试内容中,进行模拟测试时,电子设备相对于预设的参考坐标系的坐标数据与测试数据之间的映射关系,如在跌落测试对应的坐标换算表中一坐标数据对应一跌落角度、在扭曲测试对应的坐标换算表中一坐标数据对应一扭矩,所述映射关系可以根据实际情况进行设置,在此不做限定。Coordinate conversion tables corresponding to different test contents can be preset. The coordinate conversion table includes the mapping relationship between the coordinate data of the electronic device relative to the preset reference coordinate system and the test data in each test content, such as a coordinate conversion table corresponding to the drop test. The coordinate data corresponds to a drop angle, and in the coordinate conversion table corresponding to the twist test, a coordinate data corresponds to a torque, and the mapping relationship can be set according to the actual situation, which is not limited here.
例如,根据跌落测试对应的坐标换算表,可以确定电子设备相对于预设的参考坐标系的坐标数据对应的实际测试跌落角度;又例如,根据扭曲测试对应的坐标换算表,可以确定电子设备相对于预设的参考坐标系的坐标数据对应的实际测试扭矩。For example, according to the coordinate conversion table corresponding to the drop test, the actual test drop angle corresponding to the coordinate data of the electronic device relative to the preset reference coordinate system can be determined; for another example, according to the coordinate conversion table corresponding to the twist test, it can be determined that the electronic device is relatively The actual test torque corresponding to the coordinate data of the preset reference coordinate system.
在本申请的一些实施例中,上位机基于电子设备进行模拟测试时的姿态数据,确定电子设备进行模拟测试时的实际测试数据可以包括:In some embodiments of the present application, the host computer determines the actual test data when the electronic device performs the simulation test based on the attitude data when the electronic device performs the simulation test may include:
上位机对所述电子设备进行模拟测试时的姿态数据进行数据处理,得到测试姿态数据,并基于所述测试姿态数据确定电子设备进行模拟测试时的实际测试数据。The host computer performs data processing on the attitude data when the electronic device performs a simulated test to obtain test attitude data, and determines the actual test data when the electronic device performs a simulated test based on the test attitude data.
所述数据处理可以包括异常数据处理和剔除,例如,在跌落测试中,剔除电子设备跌落前对应的状态数据和/或电子设备跌落后对应的状态数据。实际测量数据为电子设备在模拟应力场景下进行模拟测试时的测试数据,如测试跌落角度、测试扭矩等。通过对电子设备进行模拟测试时的姿态数据进行数据处理,可以减少数据量,提高确定实际测试数据的速率,同时,数据处理时也可以剔除异常数据,从而提高确定实际测试数据的准确率。The data processing may include abnormal data processing and rejection. For example, in a drop test, state data corresponding to the electronic device before being dropped and/or state data corresponding to the electronic device being dropped are rejected. The actual measurement data is the test data when the electronic device performs the simulation test under the simulated stress scenario, such as the test drop angle, the test torque, etc. By performing data processing on the attitude data during the simulated test of the electronic device, the amount of data can be reduced and the rate of determining the actual test data can be improved. At the same time, abnormal data can be eliminated during data processing, thereby improving the accuracy of determining the actual test data.
805,上位机基于电子设备进行模拟测试时的实际测试数据,确定调整后的模拟测试数据。805, the upper computer determines the adjusted simulation test data based on the actual test data when the electronic device performs the simulation test.
上位机可以计算用户输入的模拟测试数据与电子设备进行模拟测试时的实际测试数据的误差,并基于所述误差确定调整后的模拟测试数据,从而实现对应用模拟设备的调校。所述调整后的模拟测试用于控制应用模拟设备继续进行模拟测试,可以修正了应用模拟设备自身的使用模拟效果,能准确地模拟得到用户想要的应用场景,从而提高测试的准确率。The host computer can calculate the error between the simulation test data input by the user and the actual test data when the electronic device performs the simulation test, and determine the adjusted simulation test data based on the error, so as to realize the adjustment of the application simulation device. The adjusted simulation test is used to control the application simulation device to continue the simulation test, which can correct the use simulation effect of the application simulation device itself, and can accurately simulate the application scenario desired by the user, thereby improving the test accuracy.
例如,用户使用跌落测试设备模拟电子设备会产生跌落应力的跌落场景,如表1所示,用户输入的电子设备的模拟跌落角度为:α。由于在测试过程中,电子设备的实际跌落角度为:β,计算模拟跌落角度与实际跌落角度的误差为:δ,其中,δ=α—β,基于误差δ确定跌落测试设备的姿态调整数据,即调整后的模拟测试数据。For example, a user uses a drop test device to simulate a drop scenario where the electronic device will generate drop stress. As shown in Table 1, the simulated drop angle of the electronic device input by the user is: α. Since the actual drop angle of the electronic device is: β during the test, the error between the simulated drop angle and the actual drop angle is calculated as: δ, where δ=α-β, the attitude adjustment data of the drop test equipment is determined based on the error δ, That is, the adjusted simulated test data.
在一些实施例中,可以根据实际情况设置δ的计算公式,δ=β—α,如表2所示。In some embodiments, the calculation formula of δ can be set according to the actual situation, δ=β−α, as shown in Table 2.
表中所示的模拟跌落角度和实际跌落角度用于表示电子设备的位置信息,可以是电子设备相对于参考坐标系的夹角,可以包括一个或多个夹角,在此不做过多的限定。The simulated drop angle and actual drop angle shown in the table are used to represent the position information of the electronic device, which can be the included angle of the electronic device relative to the reference coordinate system, and can include one or more included angles. limited.
应当理解的是,上述实施例仅做举例说明,在一些实施例中,由于检测精度的原因,数据调整的条件可能与上述举例中的条件不同,例如,δ=α—β,若δ>阈值A,则正方向调整;若δ<阈值B,则反方向调整,若阈值A>δ>阈值B,则不调整,其中阈值A的取值大于阈值B的取值。又例如,δ=β—α,若δ>阈值A,则反方向调整;若δ<阈值B,则正方向调整,若阈值A>δ>阈值B,则不调整,其中阈值A的取值大于阈值B的取值。It should be understood that the above embodiments are only illustrative. In some embodiments, due to the detection accuracy, the conditions for data adjustment may be different from those in the above examples, for example, δ=α−β, if δ>threshold A, adjust in the positive direction; if δ < threshold B, adjust in the reverse direction, if threshold A > δ > threshold B, then do not adjust, where the value of threshold A is greater than the value of threshold B. For another example, δ=β-α, if δ>threshold A, adjust in the reverse direction; if δ<threshold B, adjust in the positive direction, if threshold A>δ>threshold B, then do not adjust, where the value of threshold A is A value greater than the threshold B.
807,应力模拟设备基于调整后的模拟测试数据控制电子设备进行模拟测试。807, the stress simulation device controls the electronic device to perform a simulation test based on the adjusted simulation test data.
应力模拟设备基于调整后的模拟测试数据控制电子设备进行模拟测试后,可以得到与用户输入的模拟测试数据一致的实际测试数据。例如,在用户使用跌落测试设备模拟电子设备会产生跌落应力的跌落场景,用户输入的模拟测试数据中,电子设备的测试跌落角度为:45°,电子设备基于用户输入的模拟测试数据进行测试的过程中,电子设备的实际跌落角度为:47°,电子设备基于调整后的模拟测试数据进行测试的过程中,电子设备的实际跌落角度可以被调整为用户需要的测试跌落角度,即跌落角度45°,修正了应用模拟设备自身的使用模拟效果,模拟出用户想要的应用场景。又例如,在用户使用扭曲测试设备模拟电子设备会产生扭曲应力的扭曲场景,用户输入的模拟测试数据中,电子设备的测试扭矩为:2N·m,电子设备基于用户输入的模拟测试数据进行测试的过程中,电子设备的实际扭矩为:1.7N·m,电子设备基于调整后的模拟测试数据进行测试的过程中,电子设备的实际扭矩可以被调整为用户需要的测试扭曲,即扭矩2N·m,修正了应用模拟设备自身的使用模拟效果,模拟出用户想要的应用场景。After the stress simulation device controls the electronic device to perform a simulation test based on the adjusted simulation test data, it can obtain actual test data consistent with the simulation test data input by the user. For example, in a drop scenario where a user uses a drop test device to simulate a drop stress on an electronic device, in the simulated test data input by the user, the test drop angle of the electronic device is: 45°, and the electronic device is tested based on the simulated test data input by the user. During the process, the actual drop angle of the electronic device is 47°. During the process of testing the electronic device based on the adjusted simulated test data, the actual drop angle of the electronic device can be adjusted to the test drop angle required by the user, that is, the drop angle of 45°. °, corrected the use simulation effect of the application simulation device itself, and simulated the application scene that the user wants. For another example, in a twisting scenario where a user uses a twisting test device to simulate a twisting stress on an electronic device, in the simulated test data input by the user, the test torque of the electronic device is: 2N m, and the electronic device is tested based on the simulated test data input by the user. During the process, the actual torque of the electronic device is: 1.7N·m. During the test process of the electronic device based on the adjusted simulation test data, the actual torque of the electronic device can be adjusted to the test twist required by the user, that is, the torque of 2N·m m, the use simulation effect of the application simulation device itself is corrected to simulate the application scenario that the user wants.
上述如图9所示的设备测试调整方法应用于应力模拟设备、上位机和电子设备,通过测试的电子设备确定基于用户输入的模拟测试数据进行模拟测试的实际测试数据,并根据用户输入的模拟测试数据和所述实际测试数据,确定调整后的模拟测试数据,接着控制应用模拟设备基于调整后的模拟测试数据进行模拟测试,修正了应用模拟设备自身的使用模拟效果,能准确地模拟得到用户想要的应用场景,从而提高测试的准确率。The above-mentioned equipment test adjustment method shown in Figure 9 is applied to the stress simulation equipment, the host computer and the electronic equipment, and the actual test data of the simulated test based on the simulated test data input by the user is determined by the electronic equipment tested, and according to the simulated test data input by the user. The test data and the actual test data, determine the adjusted simulation test data, and then control the application simulation device to perform a simulation test based on the adjusted simulation test data, correct the use simulation effect of the application simulation device itself, and can accurately simulate the user. The desired application scenario, thereby improving the accuracy of the test.
参考图10所示,为本申请另一实施例提供的一种设备测试调整方法的流程图。所述方法可应用于应力模拟设备、电子设备和上位机。Referring to FIG. 10 , it is a flowchart of a device test adjustment method provided by another embodiment of the present application. The method can be applied to stress simulation equipment, electronic equipment and upper computer.
901,应力模拟设备基于用户输入的模拟测试数据控制电子设备进行模拟测试。901. The stress simulation device controls the electronic device to perform a simulation test based on the simulation test data input by the user.
902,电子设备确定自身进行模拟测试时的姿态数据。902. The electronic device determines attitude data when it performs the simulation test.
903,电子设备基于所述姿态数据,确定进行模拟测试时的实际测试数据。903. Based on the attitude data, the electronic device determines actual test data during the simulation test.
904,电子设备将确定的实际测试数据发送至上位机。904, the electronic device sends the determined actual test data to the upper computer.
905,上位机基于电子设备进行模拟测试时的实际测试数据,确定调整后的模拟测试数据。905, the upper computer determines the adjusted simulation test data based on the actual test data when the electronic device performs the simulation test.
906,上位机将调整后的模拟测试数据发送至应力模拟设备。906, the host computer sends the adjusted simulation test data to the stress simulation device.
907,应力模拟设备基于调整后的模拟测试数据控制电子设备进行模拟测试。907, the stress simulation device controls the electronic device to perform a simulation test based on the adjusted simulation test data.
901-907的具体实现方法可以参照801-807的相关描述,在此不再赘述。For the specific implementation method of 901-907, reference may be made to the relevant descriptions of 801-807, which will not be repeated here.
上述如图10所示的设备测试调整方法应用于应力模拟设备、上位机和电子设备,通过测试的电子设备确定基于用户输入的模拟测试数据进行模拟测试的实际测试数据,并根据用户输入的模拟测试数据和所述实际测试数据,确定调整后的模拟测试数据,接着控制应用模拟设备基于调整后的模拟测试数据进行模拟测试,修正了应用模拟设备自身的使用模拟效果,能准确地模拟得到用户想要的应用场景,从而提高测试的准确率。同时,在电子设备中确定进行模拟测试时的实际测试数据,可以在电子设备中直接查看在模拟应力场景下的测试信息(实际测试数据),如跌落姿态、跌落角度和/或跌落时间等等,方便了用户对电子设备的实际测试数据的获取。The above-mentioned equipment test adjustment method shown in Figure 10 is applied to the stress simulation equipment, the host computer and the electronic equipment, and the actual test data for the simulated test based on the simulated test data input by the user is determined by the electronic equipment tested, and the simulated test data input by the user is used. The test data and the actual test data, determine the adjusted simulation test data, and then control the application simulation device to perform a simulation test based on the adjusted simulation test data, correct the use simulation effect of the application simulation device itself, and can accurately simulate the user. The desired application scenario, thereby improving the accuracy of the test. At the same time, the actual test data during the simulation test is determined in the electronic device, and the test information (actual test data) under the simulated stress scenario can be directly viewed in the electronic device, such as drop posture, drop angle and/or drop time, etc. , which is convenient for users to obtain the actual test data of electronic equipment.
参考图11所示,为本申请另一实施例提供的一种设备测试调整方法的流程图。所述方法可应用于应力模拟设备和电子设备。Referring to FIG. 11 , it is a flowchart of a device test adjustment method provided by another embodiment of the present application. The method can be applied to stress simulation devices and electronic devices.
1001,应力模拟设备基于用户输入的模拟测试数据控制电子设备进行模拟测试。1001, the stress simulation device controls the electronic device to perform a simulation test based on the simulation test data input by the user.
1002,电子设备确定自身进行模拟测试时的姿态数据。1002 , the electronic device determines attitude data when it performs the simulation test.
1003,电子设备将自身进行模拟测试时的姿态数据发送至上位机。1003, the electronic device sends the attitude data when the electronic device performs the simulation test to the host computer.
1004,应力模拟设备基于电子设备进行模拟测试时的姿态数据,确定电子设备进行模拟测试时的实际测试数据。1004 , the stress simulation device determines actual test data when the electronic device performs the simulation test based on the attitude data when the electronic device performs the simulation test.
1005,应力模拟设备基于电子设备进行模拟测试时的实际测试数据,确定调整后的模拟测试数据。1005, the stress simulation device determines the adjusted simulation test data based on the actual test data when the electronic device performs the simulation test.
1006,应力模拟设备基于调整后的模拟测试数据控制电子设备进行模拟测试。1006, the stress simulation device controls the electronic device to perform a simulation test based on the adjusted simulation test data.
1001-1006的具体实现方法可以参照801-807的相关描述,在此不再赘述。For the specific implementation methods of 1001-1006, reference may be made to the relevant descriptions of 801-807, which will not be repeated here.
上述如图11所示的设备测试调整方法应用于应力模拟设备和电子设备,通过测试的电子设备确定基于用户输入的模拟测试数据进行模拟测试的实际测试数据,并根据用户输入的模拟测试数据和所述实际测试数据,确定调整后的模拟测试数据,接着控制应用模拟设备基于调整后的模拟测试数据进行模拟测试,修正了应用模拟设备自身的使用模拟效果,能准确地模拟得到用户想要的应用场景,从而提高测试的准确率。The above-mentioned device test adjustment method shown in FIG. 11 is applied to the stress simulation device and the electronic device, and the actual test data for the simulation test based on the simulation test data input by the user is determined by the electronic device tested, and the simulation test data and the simulation test data input by the user are used. For the actual test data, the adjusted simulation test data is determined, and then the application simulation device is controlled to perform a simulation test based on the adjusted simulation test data, which corrects the use simulation effect of the application simulation device itself, and can accurately simulate and obtain what the user wants. application scenarios, thereby improving the accuracy of the test.
参考图12所示,为本申请另一实施例提供的一种设备测试调整方法的流程图。所述方法可应用于应力模拟设备和电子设备。Referring to FIG. 12 , it is a flowchart of a device test adjustment method provided by another embodiment of the present application. The method can be applied to stress simulation devices and electronic devices.
1101,应力模拟设备基于用户输入的模拟测试数据控制电子设备进行模拟测试。1101, the stress simulation device controls the electronic device to perform a simulation test based on the simulation test data input by the user.
1102,电子设备确定自身进行模拟测试时的姿态数据。1102 , the electronic device determines attitude data when it performs the simulation test.
1103,电子设备基于所述姿态数据,确定进行模拟测试时的实际测试数据。1103. Based on the attitude data, the electronic device determines actual test data during the simulation test.
1104,电子设备将确定的实际测试数据发送至上位机。1104, the electronic device sends the determined actual test data to the upper computer.
1105,应力模拟设备基于电子设备进行模拟测试时的实际测试数据,确定调整后的模拟测试数据。1105 , the stress simulation device determines the adjusted simulation test data based on the actual test data when the electronic device performs the simulation test.
1106,应力模拟设备基于调整后的模拟测试数据控制电子设备进行模拟测试。1106, the stress simulation device controls the electronic device to perform a simulation test based on the adjusted simulation test data.
1101-1106的具体实现方法可以参照801-807的相关描述,在此不再赘述。For the specific implementation methods of 1101-1106, reference may be made to the relevant descriptions of 801-807, which will not be repeated here.
上述如图12所示的设备测试调整方法应用于应力模拟设备和电子设备,通过测试的电子设备确定基于用户输入的模拟测试数据进行模拟测试的实际测试数据,并根据用户输入的模拟测试数据和所述实际测试数据,确定调整后的模拟测试数据,接着控制应用模拟设备基于调整后的模拟测试数据进行模拟测试,修正了应用模拟设备自身的使用模拟效果,能准确地模拟得到用户想要的应用场景,从而提高测试的准确率。同时,在电子设备中确定进行模拟测试时的实际测试数据,可以在电子设备中直接查看在模拟应力场景下的测试信息(实际测试数据),如跌落姿态、跌落角度和/或跌落时间等等,方便了用户对电子设备的实际测试数据的获取。The above-mentioned device test adjustment method shown in FIG. 12 is applied to stress simulation equipment and electronic equipment, and the actual test data for the simulation test based on the simulation test data input by the user is determined by the electronic device tested, and the simulation test data and the simulation test data input by the user are used. For the actual test data, the adjusted simulation test data is determined, and then the application simulation device is controlled to perform a simulation test based on the adjusted simulation test data, which corrects the use simulation effect of the application simulation device itself, and can accurately simulate and obtain what the user wants. application scenarios, thereby improving the accuracy of the test. At the same time, the actual test data during the simulation test is determined in the electronic device, and the test information (actual test data) under the simulated stress scenario can be directly viewed in the electronic device, such as drop posture, drop angle and/or drop time, etc. , which is convenient for users to obtain the actual test data of electronic equipment.
如图13,图13申请实施例提供的一种电子设备12的结构示意图,电子设备12可以实现上述多个实施例中的设备测试调整方法。电子设备12可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriberidentification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。FIG. 13 is a schematic structural diagram of an
可以理解的是,本发明实施例示意的结构并不构成对电子设备12的具体限定。在本申请另一些实施例中,电子设备12可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。在本申请的一些实施例中,处理器110可以用于控制电子设备12上的传感器采集电子设备12进行模拟测试时的姿态数据。The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions. In some embodiments of the present application, the
处理器110中还可以设置存储器,用于存储指令和数据。在本申请的一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。例如,存储器可以存储上述的数据采集条件,所述数据采集条件可以用于判断是否采集电子设备12进行模拟测试时的姿态数据。A memory may also be provided in the
在本申请的一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integratedcircuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。在本申请的一些实施例中,可以基于USB接口,实现电子设备12与上位机的通信;或者,实现电子设备12与应力模拟设备的通信。In some embodiments of the present application, the
I2C接口是一种双向同步串行总线。在本申请的一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。The I2C interface is a bidirectional synchronous serial bus. In some embodiments of the present application, the
I2S接口可以用于音频通信。在本申请的一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。The I2S interface can be used for audio communication. In some embodiments of the present application, the
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在本申请的一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在本申请的一些实施例中,可以基于UART接口,实现电子设备12与上位机的蓝牙通信;或者,实现电子设备12与应力模拟设备的蓝牙通信。The UART interface is a universal serial data bus used for asynchronous communication. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments of the present application, a UART interface is generally used to connect the
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备12充电,也可以用于电子设备12与外围设备(如上位机、应力模拟设备等)之间传输数据。The USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备12的结构限定。在本申请另一些实施例中,电子设备12也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。The
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。The power management module 141 is used for connecting the battery 142 , the
电子设备12的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the
天线1和天线2用于发射和接收电磁波信号。电子设备12中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in
移动通信模块150可以提供应用在电子设备12上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在本申请的一些实施例中,可以基于移动通信模块150,实现电子设备12与上位机的通信;或者,实现电子设备12与应力模拟设备的通信。The
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。The modem processor may include a modulator and a demodulator. Wherein, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and passed to the application processor.
无线通信模块160可以提供应用在电子设备12上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。在本申请的一些实施例中,可以基于无线通信模块160,实现电子设备12与上位机的通信;或者,实现电子设备12与应力模拟设备的通信。The
在本申请的一些实施例中,电子设备12的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备12可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobilecommunications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband codedivision multiple access,WCDMA),时分码分多址(time-division code divisionmultiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenithsatellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments of the present application, the antenna 1 of the
电子设备12通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在本申请的一些实施例中,电子设备12可以包括1个或N个显示屏194,N为大于1的正整数,显示屏194可以用于显示电子设备进行模拟测试时的实际测试数据。Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). , AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED) and so on. In some embodiments of the present application, the
电子设备12可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。The ISP is used to process the data fed back by the camera 193 . For example, when taking a photo, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在本申请的一些实施例中,电子设备12可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object is projected through the lens to generate an optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats of image signals. In some embodiments of the present application, the
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备12在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。A digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the
视频编解码器用于对数字视频压缩或解压缩。电子设备12可以支持一种或多种视频编解码器。Video codecs are used to compress or decompress digital video.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。The NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process the input information, and can continuously learn by itself.
内部存储器121可以包括一个或多个随机存取存储器(random access memory,RAM)和一个或多个非易失性存储器(non-volatile memory,NVM)。The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
随机存取存储器可以包括静态随机存储器(static random-access memory,SRAM)、动态随机存储器(dynamic random access memory,DRAM)、同步动态随机存储器(synchronous dynamic random access memory,SDRAM)、双倍资料率同步动态随机存取存储器(double data rate synchronous dynamic random access memory,DDR SDRAM,例如第五代DDR SDRAM一般称为DDR5 SDRAM)等;非易失性存储器可以包括磁盘存储器件、快闪存储器(flash memory)。Random access memory may include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous Dynamic random access memory (double data rate synchronous dynamic random access memory, DDR SDRAM, such as fifth-generation DDR SDRAM is generally referred to as DDR5 SDRAM), etc.; non-volatile memory may include disk storage devices, flash memory (flash memory) .
快闪存储器按照运作原理划分可以包括NOR FLASH、NAND FLASH、3D NAND FLASH等,按照存储单元电位阶数划分可以包括单阶存储单元(single-level cell,SLC)、多阶存储单元(multi-level cell,MLC)、三阶储存单元(triple-level cell,TLC)、四阶储存单元(quad-level cell,QLC)等,按照存储规范划分可以包括通用闪存存储(英文:universalflash storage,UFS)、嵌入式多媒体存储卡(embedded multi media Card,eMMC)等。Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operation principle, and can include single-level cell (SLC), multi-level memory cell (multi-level cell) according to the level of storage cell potential cell, MLC), triple-level cell (TLC), fourth-level storage cell (quad-level cell, QLC), etc., according to the storage specification can include universal flash storage (English: universal flash storage, UFS), Embedded multimedia memory card (embedded multi media Card, eMMC) and so on.
随机存取存储器可以由处理器110直接进行读写,可以用于存储操作系统或其他正在运行中的程序的可执行程序(例如机器指令),还可以用于存储用户及应用程序的数据等。The random access memory can be directly read and written by the
非易失性存储器也可以存储可执行程序和存储用户及应用程序的数据等,可以提前加载到随机存取存储器中,用于处理器110直接进行读写。The non-volatile memory can also store executable programs and store data of user and application programs, etc., and can be loaded into the random access memory in advance for the
外部存储器接口120可以用于连接外部的非易失性存储器,实现扩展电子设备12的存储能力。外部的非易失性存储器通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部的非易失性存储器中。The
外部存储器接口120或内部存储器121用于存储一个或多个计算机程序。一个或多个计算机程序被配置为被该处理器110执行。该一个或多个计算机程序包括多个指令,多个指令被处理器110执行时,可实现上述实施例中在电子设备12上执行的设备测试调整方法。
其中,在一个实施例中,处理器110执行所述多个指令时,用于实现:确定自身进行模拟测试时的姿态数据;基于所述姿态数据,确定进行模拟测试时的实际测试数据;将确定的实际测试数据发送至上位机(或应力模拟设备)。或者用于实现:确定自身进行模拟测试时的姿态数据;将所述姿态数据发送至上位机(或应力模拟设备)。Wherein, in one embodiment, when the
电子设备12可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。The
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备12可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备12接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备12可以设置至少一个麦克风170C。在另一些实施例中,电子设备12可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。The
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备12平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of theUSA,CTIA)标准接口。The
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在本申请的一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备12根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备12根据压力传感器180A检测所述触摸操作强度。电子设备12也可以根据压力传感器180A的检测信号计算触摸的位置。在本申请的一些实施例中,可以基于压力传感器180A确定电子设备进行模拟测试时的实际扭矩。The pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals. In some embodiments of the present application, the pressure sensor 180A may be disposed on the display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, and the like. The capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The
陀螺仪传感器180B可以用于确定电子设备12的运动姿态。在本申请的一些实施例中,可以通过陀螺仪传感器180B确定电子设备12围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备12抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备12的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。在本申请的一些实施例中,可以基于陀螺仪传感器180B确定电子设备12进行模拟测试时的姿态数据。The gyro sensor 180B may be used to determine the motion attitude of the
气压传感器180C用于测量气压。在本申请的一些实施例中,电子设备12通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments of the present application, the
磁传感器180D包括霍尔传感器。电子设备12可以利用磁传感器180D检测翻盖皮套的开合。The magnetic sensor 180D includes a Hall sensor. The
加速度传感器180E可检测电子设备12在各个方向上(一般为三轴)加速度的大小。当电子设备12静止时可检测出重力的大小及方向。还可以用于识别电子设备12姿态,应用于横竖屏切换,计步器等应用。在本申请的一些实施例中,可以基于加速度传感器180E确定电子设备12进行模拟测试时的姿态数据。The acceleration sensor 180E can detect the magnitude of the acceleration of the
距离传感器180F,用于测量距离。电子设备12可以通过红外或激光测量距离。Distance sensor 180F for measuring distance. The
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes.
环境光传感器180L用于感知环境光亮度。电子设备12可以根据感知的环境光亮度自适应调节显示屏194亮度。The ambient light sensor 180L is used to sense ambient light brightness. The
指纹传感器180H用于采集指纹。电子设备12可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The
温度传感器180J用于检测温度。在本申请的一些实施例中,电子设备12利用温度传感器180J检测的温度,执行温度处理策略。The temperature sensor 180J is used to detect the temperature. In some embodiments of the present application, the
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。Touch sensor 180K, also called "touch device". The touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
骨传导传感器180M可以获取振动信号。在本申请的一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。The bone conduction sensor 180M can acquire vibration signals. In some embodiments of the present application, the bone conduction sensor 180M may acquire the vibration signal of the vibrating bone mass of the human voice.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备12可以接收按键输入,产生与电子设备12的用户设置以及功能控制有关的键信号输入。The keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key. The
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。Motor 191 can generate vibrating cues. The motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备12的接触和分离。电子设备12可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多帧卡。所述多帧卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备12通过SIM卡和网络交互,实现通话以及数据通信等功能。在本申请的一些实施例中,电子设备12采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备12中,不能和电子设备12分离。The
本实施例还提供一种计算机存储介质,该计算机存储介质中存储了计算机程序,计算机程序中包含计算机指令,当该计算机程序在电子设备上运行时,使得电子设备执行上述相关方法实现上述实施例中的任意一种设备测试调整方法。This embodiment also provides a computer storage medium, where a computer program is stored in the computer storage medium, and the computer program contains computer instructions, when the computer program runs on an electronic device, the electronic device executes the above-mentioned related methods to realize the above-mentioned embodiments. Any one of the device test adjustment methods.
本实施例还提供了一种计算机程序产品,包括存储在非易失性存储介质上的计算机可执行指令,当该计算机可执行指令在电子设备上运行时,使得电子设备执行上述相关方法,以实现上述实施例中的任意一种设备测试调整方法。This embodiment also provides a computer program product, including computer-executable instructions stored on a non-volatile storage medium, and when the computer-executable instructions are run on an electronic device, the electronic device executes the above-mentioned related methods, so as to Any one of the device test adjustment methods in the above embodiments is implemented.
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的任意一种设备测试调整方法。In addition, the embodiments of the present application also provide an apparatus, which may specifically be a chip, a component or a module, and the apparatus may include a connected processor and a memory; wherein, the memory is used for storing computer execution instructions, and when the apparatus is running, The processor can execute the computer-executed instructions stored in the memory, so that the chip executes any one of the device testing and adjustment methods in the foregoing method embodiments.
其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Wherein, the electronic device, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, for the beneficial effects that can be achieved, reference can be made to the corresponding provided above. The beneficial effects in the method will not be repeated here.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。From the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated as required. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,该模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined. Or it may be integrated into another device, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
该作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components shown as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed to multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
该集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, which are stored in a storage medium , including several instructions to make a device (which may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .
最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and not to limit them. Although the present application has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present application can be Modifications or equivalent substitutions can be made without departing from the spirit and scope of the technical solutions of the present application.
Claims (15)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111264717.3A CN115014684A (en) | 2021-10-28 | 2021-10-28 | Device testing adjustment system, method, electronic device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111264717.3A CN115014684A (en) | 2021-10-28 | 2021-10-28 | Device testing adjustment system, method, electronic device and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115014684A true CN115014684A (en) | 2022-09-06 |
Family
ID=83064672
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111264717.3A Pending CN115014684A (en) | 2021-10-28 | 2021-10-28 | Device testing adjustment system, method, electronic device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115014684A (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040200264A1 (en) * | 2003-04-08 | 2004-10-14 | Chen Shia Chung | Detecting method of a drop test and the device thereof |
| CN102272572A (en) * | 2009-01-09 | 2011-12-07 | 特罗克斯勒电子实验室有限公司 | Gyratory compactor apparatuses and associated methods |
| CN105649607A (en) * | 2015-12-31 | 2016-06-08 | 郑州光力科技股份有限公司 | Mining while-drilling type borehole track detection method and system and drill rod |
| CN105701595A (en) * | 2015-12-25 | 2016-06-22 | 深圳市伊爱高新技术开发有限公司 | Vehicle working hour statistical method and device |
| CN108234703A (en) * | 2018-01-18 | 2018-06-29 | 广东欧珀移动通信有限公司 | Electronic device, camera shooting head inspecting method and Related product |
| CN111814354A (en) * | 2020-07-23 | 2020-10-23 | 展讯通信(上海)有限公司 | Simulation test method, system, medium and electronic device for instrument performance |
-
2021
- 2021-10-28 CN CN202111264717.3A patent/CN115014684A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040200264A1 (en) * | 2003-04-08 | 2004-10-14 | Chen Shia Chung | Detecting method of a drop test and the device thereof |
| CN102272572A (en) * | 2009-01-09 | 2011-12-07 | 特罗克斯勒电子实验室有限公司 | Gyratory compactor apparatuses and associated methods |
| CN105701595A (en) * | 2015-12-25 | 2016-06-22 | 深圳市伊爱高新技术开发有限公司 | Vehicle working hour statistical method and device |
| CN105649607A (en) * | 2015-12-31 | 2016-06-08 | 郑州光力科技股份有限公司 | Mining while-drilling type borehole track detection method and system and drill rod |
| CN108234703A (en) * | 2018-01-18 | 2018-06-29 | 广东欧珀移动通信有限公司 | Electronic device, camera shooting head inspecting method and Related product |
| CN111814354A (en) * | 2020-07-23 | 2020-10-23 | 展讯通信(上海)有限公司 | Simulation test method, system, medium and electronic device for instrument performance |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113347560B (en) | Bluetooth connection method, electronic device and storage medium | |
| CN110347269A (en) | A kind of sky mouse mode implementation method and relevant device | |
| CN112684969B (en) | Always on display method and mobile device | |
| US20230401897A1 (en) | Method for preventing hand gesture misrecognition and electronic device | |
| WO2021052170A1 (en) | Motor vibration control method and electronic device | |
| CN114494547A (en) | A drawing command processing method and related equipment | |
| WO2022161053A1 (en) | Method for adjusting display parameters and large-screen device | |
| CN114880251A (en) | Access method and access device of storage unit and terminal equipment | |
| WO2022022466A1 (en) | Method and apparatus for determining file storage position, and terminal | |
| WO2022105702A1 (en) | Method and electronic device for saving image | |
| CN111104295A (en) | Method and device for testing page loading process | |
| CN116719699A (en) | Bus monitoring and control method, electronic equipment, chip and storage medium | |
| CN117708009A (en) | A signal transmission method and electronic equipment | |
| CN113438643B (en) | Terminal capability reporting system, method, electronic equipment and storage medium | |
| WO2023179123A1 (en) | Bluetooth audio playback method, electronic device, and storage medium | |
| CN113573045B (en) | Stray light detection method and stray light detection device | |
| CN113721827B (en) | Floating keyboard display method, electronic equipment and storage medium | |
| CN114443109B (en) | Patch repair method, electronic device and storage medium | |
| CN115014684A (en) | Device testing adjustment system, method, electronic device and storage medium | |
| CN113610943B (en) | Icon rounding processing method and device | |
| CN117706182A (en) | Parameter adjustment method and electronic equipment | |
| CN117130975A (en) | Bus interface expansion method and related equipment | |
| CN113542984B (en) | Stereo realization system, method, electronic device and storage medium | |
| WO2023197709A1 (en) | Device identification method and related apparatus | |
| CN114363693B (en) | Image quality adjusting method and device |
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 |