CN111158969B - Data processing method, electronic device and storage medium - Google Patents

Data processing method, electronic device and storage medium Download PDF

Info

Publication number
CN111158969B
CN111158969B CN201911424633.4A CN201911424633A CN111158969B CN 111158969 B CN111158969 B CN 111158969B CN 201911424633 A CN201911424633 A CN 201911424633A CN 111158969 B CN111158969 B CN 111158969B
Authority
CN
China
Prior art keywords
electronic device
program
test
operating system
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911424633.4A
Other languages
Chinese (zh)
Other versions
CN111158969A (en
Inventor
马强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Original Assignee
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qianxin Technology Group Co Ltd, Secworld Information Technology Beijing Co Ltd filed Critical Qianxin Technology Group Co Ltd
Priority to CN201911424633.4A priority Critical patent/CN111158969B/en
Publication of CN111158969A publication Critical patent/CN111158969A/en
Application granted granted Critical
Publication of CN111158969B publication Critical patent/CN111158969B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2289Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test

Abstract

The embodiment of the disclosure provides a data processing method applied to first electronic equipment, which comprises the following steps: receiving a first test command from a second electronic device; starting a first test program pre-stored in the first electronic device by using a first test command; acquiring hardware performance information of the first electronic equipment through a first test program; the hardware performance information is sent to the second electronic device to receive an application corresponding to the hardware performance information from the second electronic device. Embodiments of the present disclosure also provide an electronic device, a computer-readable storage medium, and a computer program product.

Description

Data processing method, electronic device and storage medium
Technical Field
The present disclosure relates to the field of computer technology, and more particularly, to a data processing method, an electronic device, a computer-readable storage medium, and a computer program product.
Background
A series of domestic microprocessor devices (such as a firewall, a CPE (Customer Premise Equipment, a customer premise equipment) based on an Advanced RISC (Reduced Instruction Set Computing, abbreviated as a reduced instruction computer) Machine, abbreviated as an Advanced reduced instruction computer device) are still in a starting stage in the industry, and no mature automatic production scheme exists. When the microprocessor device is produced, operations such as hard disk formatting, software and hardware testing, operating system installation and the like are required to be manually executed on the microprocessor device.
In the process of implementing the disclosed concept, the inventor finds that at least the following technical problems exist in the related art: the hardware performance of the microprocessor device is tested manually, and the efficiency is low.
Disclosure of Invention
In view of this, the embodiments of the present disclosure provide a data processing method, an electronic device, and a computer-readable storage medium.
An aspect of an embodiment of the present disclosure provides a data processing method, where the method is applied to a first electronic device, and the method includes: receiving a first test command from a second electronic device; starting a first test program pre-stored in the first electronic equipment by using the first test command; acquiring hardware performance information of the first electronic device through the first test program; and transmitting the hardware performance information to the second electronic device so as to receive an application program corresponding to the hardware performance information from the second electronic device.
According to an embodiment of the present disclosure, after the hardware performance information is sent to the second electronic device, the data processing method further includes: receiving the application program from the second electronic device; installing the application program to obtain program installation result information; and transmitting the program installation result information to the second electronic device.
According to an embodiment of the present disclosure, after the program installation result information is transmitted to the second electronic device, the data processing method further includes: receiving a second test program sent by the second electronic equipment in response to the program installation result information; acquiring configuration information of the application program by testing the application program by using the second test program; and sending the configuration information to the second electronic equipment so that the second electronic equipment generates a first log according to the configuration information.
According to an embodiment of the present disclosure, before receiving the first test command from the second electronic device, the data processing method further includes: receiving an operating system from the second electronic device, wherein the operating system comprises the first test program; performing system filling by using the received operating system to obtain a filling system; acquiring hardware parameters of the first electronic equipment by using the filling system; and sending the hardware parameters to the second electronic device so that the second electronic device generates the first test command according to the hardware parameters.
Another aspect of an embodiment of the present disclosure provides a data processing method, where the method is applied to a second electronic device, the method including: transmitting a first test command to the first electronic device so that the first electronic device starts a pre-stored first test program; receiving hardware performance information of the first electronic device, which is acquired by the first electronic device by using the first test program; and sending an application program corresponding to the hardware performance information to the first electronic device according to the hardware performance information.
According to an embodiment of the present disclosure, after transmitting an application corresponding to the hardware performance information to the first electronic device according to the hardware performance information, the data processing method further includes: receiving program installation result information from the first electronic device; generating a second log according to the program installation result information; and sending a second test program for testing the application program to the first electronic device according to the program installation result information.
According to an embodiment of the present disclosure, after transmitting a second test program for testing the application program to the first electronic device according to the program installation result information, the data processing method further includes: receiving configuration information of the application program, which is obtained by the first electronic device through testing the application program by using the second test program; and generating a first log according to the configuration information.
According to an embodiment of the present disclosure, before the first test command is sent, the data processing method further includes: transmitting an operating system to the first electronic device, so that the first electronic device performs system filling on the operating system to obtain a filling system; receiving hardware parameters of the first electronic equipment, which are acquired by the first electronic equipment by using the filling system; and generating the first test command according to the hardware parameters.
Another aspect of the disclosed embodiments provides an electronic device including one or more processors and a storage device, where the storage device is configured to store executable instructions that, when executed by the processors, implement a method of an embodiment of the disclosure.
Another aspect of the disclosed embodiments provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, are configured to implement the method of the disclosed embodiments.
Another aspect of the disclosed embodiments provides a computer program product comprising a non-transitory computer readable storage medium containing computer program code for implementing the methods of the disclosed embodiments.
According to the embodiment of the disclosure, the server is utilized to send the test command to the microprocessor, and the test program stored in the microprocessor is started to perform hardware test, so that the problems of hardware performance and low efficiency of the manual test microprocessor in the related technology can be at least partially solved, and the technical effect of improving the test efficiency of the hardware performance of the microprocessor can be realized.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments thereof with reference to the accompanying drawings in which:
FIG. 1A schematically illustrates a system architecture suitable for a data processing method according to an embodiment of the present disclosure;
FIG. 1B schematically illustrates a timing interaction diagram of a data processing method according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a data processing method according to an embodiment of the disclosure;
FIG. 3 schematically illustrates a flow chart of a data processing method according to another embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow chart of a data processing method according to another embodiment of the present disclosure;
FIG. 5 schematically illustrates a flow chart of a data processing method according to another embodiment of the present disclosure;
FIG. 6 schematically illustrates a flow chart of a data processing method according to another embodiment of the present disclosure;
FIG. 7 schematically illustrates a flow chart of a data processing method according to another embodiment of the present disclosure;
FIG. 8 schematically illustrates a flow chart of a data processing method according to another embodiment of the present disclosure;
FIG. 9 schematically illustrates a flow chart of a data processing method according to another embodiment of the present disclosure; and
Fig. 10 schematically illustrates a block diagram of an electronic device adapted to implement a data processing method according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a formulation similar to at least one of "A, B or C, etc." is used, in general such a formulation should be interpreted in accordance with the ordinary understanding of one skilled in the art (e.g. "a system with at least one of A, B or C" would include but not be limited to systems with a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). It should also be appreciated by those skilled in the art that virtually any disjunctive word and/or phrase presenting two or more alternative items, whether in the description, claims, or drawings, should be understood to contemplate the possibilities of including one of the items, either of the items, or both. For example, the phrase "a or B" should be understood to include the possibility of "a" or "B", or "a and B".
The terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more features.
Embodiments of the present disclosure provide a data processing method applied to a first electronic device, which may include the following operations. And receiving a first test command from the second electronic device, starting a first test program stored in the first electronic device in advance by using the first test command, acquiring hardware performance information of the first electronic device by using the first test program, and sending the hardware performance information to the second electronic device so that an application program corresponding to the hardware performance information can be received from the second electronic device.
Fig. 1A schematically illustrates a system architecture 100 suitable for a data processing method according to an embodiment of the present disclosure. It should be noted that fig. 1A illustrates only an example of a system architecture in which embodiments of the present disclosure may be applied to assist those skilled in the art in understanding the technical content of the present disclosure, but does not mean that embodiments of the present disclosure may not be used in other devices, systems, environments, or scenarios.
As shown in fig. 1A, a system architecture 100 according to this embodiment may include a server 101, a network 102, and an electronic device 103. Network 102 is the medium used to provide communications links between servers 101 and electronic devices 103. Network 102 may include various connection types such as wired, wireless communication links, or fiber optic cables, among others.
The server 101 may interact with the electronic device 103 over the network 102 to receive or transmit data, etc. The electronic device 103 may have various operating systems and applications installed thereon, such as the operating system may include a LINUX operating system, a UNIX operating system, and the like.
The electronic device 103 may be various processing devices having a memory and a processor, including but not limited to ARM, a data signal processor (Digital Signal Processor, DSP for short), a System on Chip (SoC for short), a field programmable gate array (Field Programmable Gate Array, FPGA for short), and the like.
The server 101 may be a server providing various services. For example, the server 101 assigns an IP address to the electronic device 103 using a dynamic host configuration protocol (Dynamic Host Configuration Protocol, abbreviated as DHCP) and establishes a network connection with the electronic device 103. The server 101 pushes data such as an operating system or an application program to the electronic device 103, receives data from the electronic device 103, and processes and analyzes the received data to generate a log. The server 101 may also push data to the electronic device 103 according to the analysis results.
In embodiments of the present disclosure, after the electronic device 103 fills the operating system (installation of the operating system is often referred to in the industry as filling the operating system), hardware parameters are reported to the server 101. After analyzing the hardware parameters, the server 101 issues a first test command to the electronic device 103. The electronic device 103 starts a first test program local to the electronic device 103 according to the first test command, acquires hardware performance information local to the electronic device 103 by using the first test program, and reports the hardware performance information to the server 101. The server 101 analyzes the hardware performance information and divides it into logs, and then issues an installation package of the application program to the electronic device 103. The electronic device 103 installs the application program and reports the program installation result to the server 101. The server 101 analyzes the program installation result and generates a log, and then the server 101 issues a second test program to the electronic device 103. The electronic device 103 tests the configuration information of the application program by using the second test program, and reports the configuration information to the server 101.
It should be understood that the number of servers 101, networks 102, and electronic devices 103 in FIG. 1A is merely illustrative. There may be any number of servers 101, networks 102, and electronic devices 103, as desired for implementation.
Fig. 1B schematically illustrates a timing interaction diagram of a data processing method according to an embodiment of the present disclosure.
As shown in fig. 1B, the server 101 may assign an IP address to the electronic device 103, and after establishing a connection with the electronic device 103, the server 101 may send an operating system (e.g., an operating system installation package) to the electronic device 103.
After receiving the operating system sent by the server 101, the electronic device 103 may fill the operating system and obtain a filling system (i.e. an installed operating system), where the filling system may include a first test program, the electronic device 103 may further obtain a hardware parameter local to the electronic device by using the filling system, and the electronic device 103 may further send the obtained hardware parameter to the server 101.
After the server 101 receives the hardware parameters sent by the electronic device 103, the server 101 may send a first test command to the electronic device 103, so that the electronic device 103 starts a first test program in the electronic device 103.
After the electronic device 103 receives the first test command sent by the server 101, a first test program may be run, where the running first test program may obtain hardware performance information local to the electronic device, and the electronic device 103 may also send the obtained hardware performance information to the server 101.
After receiving the hardware performance information sent by the electronic device 103, the server 101 may send an installation package of the application program to the electronic device 103.
After the electronic device 103 receives the installation package of the application program sent by the server 101, the electronic device 103 may install the corresponding application program by using the installation package, obtain the program installation result information, and may also send the program installation result information to the server 101.
After receiving the program installation result information sent by the electronic device 103, the server 101 may send an installation package of the second test program to the electronic device 103.
After receiving the installation package of the second test program sent by the server 101, the electronic device 103 may install the installation package of the second test program to obtain a corresponding second test program, and then may obtain the configuration information of the application program by using the second test program, and the electronic device 103 may also send the obtained configuration information to the server 101.
Fig. 2 schematically illustrates a flow chart of a data processing method according to an embodiment of the present disclosure.
In an alternative embodiment of the present disclosure, as shown in fig. 2, the data processing method may include the following operations S201 to S204.
In operation S201, a first test command is received from a second electronic device.
In an embodiment of the disclosure, the first electronic device may be an ARM, a data signal processor, a system on chip, or a field programmable gate array, the second electronic device may be a file server or a configuration server, the first electronic device and the second electronic device may be located in the same local area network, and the first electronic device may receive the first test command from the second electronic device through a wired or wireless manner. Wherein the first test command may be an LS instruction (i.e., a list instruction) in the LINUX operating system.
Then, in operation S202, a first test program previously stored in the first electronic device is started using the first test command.
In an embodiment of the present disclosure, the first test program may include a Shell script (i.e., a program that accesses the operating system kernel services), which may test the stress that the hardware of the first electronic device can withstand. In addition, the first electronic device may already have the LINUX operating system installed, and the LINUX operating system includes the first test program (i.e., the first test program is already stored in the first electronic device), so that the first test program may be started by using the first test command. For example, shell scripts in the LINUX operating system may be launched with LS instructions.
In operation S203, hardware performance information of the first electronic device is acquired through the first test program.
In the embodiment of the disclosure, after the Shell script is run, the hardware performance information of the first electronic device may be obtained. The hardware performance information may include information such as a disk read-write rate, CPU performance, and memory performance. Such as the maximum read-write rate of the disk, the maximum processing speed of the CPU, etc.
In operation S204, the hardware performance information is transmitted to the second electronic device so as to receive an application corresponding to the hardware performance information from the second electronic device.
In an embodiment of the present disclosure, the first electronic device may store the hardware performance information in a file using a Python program (i.e., a program written using a computer programming language Python), and then transmit the file storing the hardware performance information to the second electronic device. Accordingly, after the second electronic device receives the file, the Python program may be used to read the hardware performance information from the file. In addition, the application programs may be various operating systems, such as LINUX operating system, UNIX operating system, and the like. In addition, the application programs may also be various versions of the operating system, such as the LINUX operating system.
Through the embodiment of the disclosure, the second electronic device can send the test command to the first electronic device, start the first test program in the first electronic device, and acquire the hardware performance information of the first electronic device by the started first test program, so that the method and the device are convenient and quick, and the efficiency of acquiring the hardware performance information is improved. In addition, because the first test program is contained in the operating system of the first electronic device, the second electronic device does not need to send the first test program to the first electronic device, so that the network data transmission quantity can be reduced, the first electronic device does not need to additionally install the first test program, and the efficiency of acquiring the hardware performance information is further improved.
The method shown in fig. 2 is further described below with reference to fig. 3-5 in conjunction with the exemplary embodiment.
Fig. 3 schematically illustrates a flow chart of a data processing method according to another embodiment of the present disclosure.
Specifically, in an alternative embodiment of the present disclosure, after the operation S204 transmits the hardware performance information to the second electronic device, as shown in fig. 3, the data processing method may further include the following operations S301 to S303.
In operation S301, an application is received from a second electronic device.
In an embodiment of the disclosure, the second electronic device writes the application program into the file using the Python program, and then sends the file containing the application program to the first electronic device. In addition, the application program can comprise various different versions of operating systems and operating system execution scripts, wherein the operating system execution scripts can realize automatic installation of the operating system at the first electronic device side.
Then, in operation S302, the application program is installed to obtain program installation result information.
In an embodiment of the present disclosure, the first electronic device may be restarted if the application program includes an operating system and an operating system execution script, and the operating system may be installed (i.e., canned) within the first electronic device after the operating system execution script is started if the startup item selects the operating system execution script. In addition, after the installation of the operating system is completed, program installation result information is generated.
Next, in operation S303, program installation result information is transmitted to the second electronic device.
In an embodiment of the present disclosure, the first electronic device may store the program installation result information in a file using the Python program, and then transmit the file storing the program installation result information to the second electronic device.
Note that, operation S201 in fig. 3 corresponds to operation S201 in fig. 2, operation S202 in fig. 3 corresponds to operation S202 in fig. 2, operation S203 in fig. 3 corresponds to operation S203 in fig. 2, and operation S204 in fig. 3 corresponds to operation S204 in fig. 2, and the description thereof will not be repeated.
Through the embodiment of the disclosure, the first electronic device can receive the application program from the second electronic device, automatically install the received application program, and report program installation result information to the second electronic device, so that manual participation is not needed, the installation efficiency of the application program is improved, and meanwhile, the labor is saved.
Fig. 4 schematically shows a flow chart of a data processing method according to another embodiment of the present disclosure.
Specifically, in an alternative embodiment of the present disclosure, after the operation S303 transmits the program installation result information to the second electronic device, as shown in fig. 4, the data processing method may further include the following operations S401 to S403.
In operation S401, a second test program transmitted by the second electronic device in response to the program installation result information is received.
In an embodiment of the present disclosure, the second test program may include an operating system test program and a software test program, where the operating system test program may perform an IP address configuration test, a routing configuration test, an initial account configuration test, a network card access control test, and the like, and the software test program may test whether software installed in the operating system may normally run. In addition, the second electronic device may store the second test program in the file by using the Python program, then send the file containing the second test program to the first electronic device, and after the first electronic device receives the file containing the second test program from the second electronic device, take out the second test program from the file by using the Python program.
Then, in operation S402, configuration information of the application program is acquired by testing the application program using the second test program.
In embodiments of the present disclosure, the configuration information may include IP address configuration, routing configuration, primary account configuration, access control configuration, software default storage path configuration, software default startup mode configuration, and the like. In addition, the second test program comprises an execution script, so that the second test program can automatically run on the first electronic device through the execution script, thereby acquiring the configuration information of the application program.
Next, in operation S403, the configuration information is transmitted to the second electronic device, so that the second electronic device generates a first log according to the configuration information.
In the embodiment of the disclosure, the first electronic device may store the configuration information into the file by using the Python program, then send the file containing the configuration information to the second electronic device, and after the second electronic device receives the file containing the configuration information, take out the configuration information in the file by using the Python program, and generate a log according to the configuration information, so that later reference is facilitated.
Note that, operation S201 in fig. 4 corresponds to operation S201 in fig. 2, operation S202 omitted in fig. 4 corresponds to operation S202 in fig. 2, operation S203 omitted in fig. 4 corresponds to operation S203 in fig. 2, operation S204 in fig. 4 corresponds to operation S204 in fig. 2, operation S301 in fig. 4 corresponds to operation S301 in fig. 3, operation S302 omitted in fig. 4 corresponds to operation S302 in fig. 3, and operation S303 in fig. 4 corresponds to operation S303 in fig. 3, and the description thereof is omitted.
Through the embodiment of the disclosure, after the first electronic device completes the installation of the application program, the second electronic device can automatically push the second test program to the first electronic device, the second test program obtains the configuration information of the application program and reports the configuration information of the application program to the second electronic device, and the second electronic device can quickly master the configuration information of the application program without manual intervention, so that the method and the device are convenient and quick and save manpower.
Fig. 5 schematically illustrates a flow chart of a data processing method according to another embodiment of the present disclosure.
Specifically, in an alternative embodiment of the present disclosure, as shown in fig. 5, the data processing method may further include the following operations S501 to S504 before operation S201 of fig. 1.
In operation S501, an operating system is received from a second electronic device, wherein the operating system includes a first test program.
In embodiments of the present disclosure, the first electronic device has no operating system before it receives the operating system from the second electronic device, i.e., the first electronic device is a "bare metal" that cannot function properly. The operating system may include a LINUX operating system, where the LINUX operating system may satisfy a basic operating requirement of the first electronic device. In addition, the LINUX operating system comprises a first test program, and the first test program can acquire the hardware performance information of the first electronic device after being started.
Then, in operation S502, system filling is performed using the received operating system to obtain a filling system.
In an embodiment of the disclosure, the installation of the operating system on the first electronic device may be referred to as system filling, and after the first electronic device installs the operating system, the operating system of the first electronic device may be referred to as a filling system. For example, the first electronic device receives a LINUX operating system installation package from the second electronic device, the LINUX operating system installation package further includes an automatic operation script, the automatic operation script directs that the LINUX operating system be installed on the first electronic device after the first electronic device is powered on, a process in which the LINUX operating system is directed to be installed on the first electronic device is referred to as system filling, and a LINUX operating system installed on the first electronic device is referred to as a filling system. If the operating system is a LINUX operating system, the first electronic device has an operating system that can be run after the LINUX operating system is canned to the first electronic device.
Next, in operation S503, a hardware parameter of the first electronic device is acquired using the filling system.
In the embodiment of the disclosure, the LINUX operating system may be built with an automatically running script, and after the LINUX operating system is started, the script is started, and after the script is started, the hardware parameters of the first electronic device may be obtained. The hardware parameters may include the number of CPU cores, the memory size, the hard disk size, the memory space size of the graphics card, etc.
Then, in operation S504, the hardware parameters are sent to the second electronic device, so that the second electronic device generates the first test command according to the hardware parameters.
In an embodiment of the disclosure, the first electronic device may use the Python program to store the hardware parameters in the file, and then send the file containing the hardware parameters to the second electronic device, and after the second electronic device receives the file containing the hardware parameters, the second electronic device may use the Python program to obtain the hardware parameters from the file containing the hardware parameters, and may generate the first test command according to the hardware parameters. In addition, the second electronic device can also generate a log according to the hardware parameters for later reference.
Note that, operation S201 in fig. 5 corresponds to operation S201 in fig. 2, operation S202 in fig. 5 corresponds to operation S202 in fig. 2, operation S203 in fig. 5 corresponds to operation S203 in fig. 2, and operation S204 in fig. 5 corresponds to operation S204 in fig. 2, and the description thereof will not be repeated.
Through the embodiment of the disclosure, after the second electronic device allocates the IP address to the first electronic device, communication connection is established with the first electronic device. Then, the second electronic device sends an operating system meeting basic operation requirements to the first electronic device, and the operating system contains a first test program. And after receiving the test command, the operating system of the first electronic device starts a first test program, and the first test program can acquire the hardware parameters of the first electronic device. Therefore, the second electronic device does not need to additionally send the first test program to the first electronic device, and the network data transmission quantity is saved. In addition, the second electronic equipment can start the first test program of the first electronic equipment only by sending a test command to the first electronic equipment, so that the hardware parameters of the first electronic equipment are obtained, manual intervention is not needed, the efficiency of obtaining the hardware parameters is high, and the labor is saved.
Fig. 6 schematically illustrates a flow chart of a data processing method according to another embodiment of the present disclosure.
In an alternative embodiment of the present disclosure, as shown in fig. 6, a data processing method is applied to a second electronic device, and the method may include the following operations S601 to S603.
In operation S601, a first test command is transmitted to a first electronic device so that the first electronic device starts a first test program stored in advance.
In an embodiment of the present disclosure, the second electronic device may store the first test command in a file using a Python program, and then transmit the file including the first test command to the first electronic device. Furthermore, as the operating system is being filled in the first electronic device, the first test program is subsequently installed in the first electronic device, and thus the first test program is already present in the first electronic device.
In operation S602, hardware performance information of a first electronic device acquired by the first electronic device using a first test program is received.
In an embodiment of the present disclosure, after the second electronic device receives the file containing the hardware performance information from the first electronic device, the hardware performance information may be obtained from the file containing the hardware performance information using the Python program.
In operation S603, an application corresponding to the hardware performance information is transmitted to the first electronic device according to the hardware performance information.
In an embodiment of the present disclosure, the second electronic device may store the application program in the file using the Python program, and then transmit the file containing the application program to the first electronic device.
According to the embodiment of the disclosure, the second electronic device can start the first test program of the first electronic device only by sending the test command to the first electronic device, and the first test program can acquire the hardware performance information of the first electronic device. Therefore, the second electronic device does not need to additionally send the first test program to the first electronic device, and the network data transmission quantity is saved. And the hardware performance information of the first electronic equipment can be obtained without manual intervention, so that the efficiency of obtaining the hardware performance information is high, and the labor is saved.
The method shown in fig. 6 is further described below with reference to fig. 7-9, in conjunction with the exemplary embodiment.
Fig. 7 schematically illustrates a flow chart of a data processing method according to another embodiment of the present disclosure.
Specifically, in an alternative embodiment of the present disclosure, as shown in fig. 7, after operation S603, the data processing method may further include the following operations S701 to S703.
Program installation result information is received from the first electronic device in operation S701.
In the embodiment of the present disclosure, the program installation result information may include information that the first electronic device has completed the application program installation, and thus, the second electronic device may confirm that the first electronic device has completed the application program installation according to the program installation result information. Further, the second electronic device may receive the file containing the program installation result information from the first electronic device, and may acquire the program installation result information from the file containing the program installation result information using the Python program.
In operation S702, a second log is generated according to the program installation result information.
In the embodiment of the disclosure, the second log records the result of the first electronic device installing the application program, and later reference is facilitated.
In operation S703, a second test program for testing the application program is transmitted to the first electronic device according to the program installation result information.
In an embodiment of the disclosure, the second electronic device uses the Python program to present the second test program in a file and sends the file containing the second test program to the first electronic device.
Note that, operation S601 in fig. 7 corresponds to operation S601 in fig. 6, operation S602 in fig. 7 corresponds to operation S602 in fig. 6, operation S603 in fig. 7 corresponds to operation S603 in fig. 6, and the description thereof is omitted.
According to the embodiment of the disclosure, the second electronic device automatically sends the second test program to the first electronic device according to the program installation result information sent by the first electronic device, and the second test program can test the application program of the first electronic device, so that the test efficiency of the application program is improved, manual intervention is not needed, and labor is saved.
Fig. 8 schematically illustrates a flow chart of a data processing method according to another embodiment of the present disclosure.
Specifically, in an alternative embodiment of the present disclosure, as shown in fig. 8, after operation 703, the data processing method may further include the following operations S801 to S802.
In operation S801, configuration information of an application program acquired by a first electronic device by testing the application program using a second test program is received.
In an embodiment of the disclosure, the second electronic device receives a file containing configuration information from the first electronic device, and obtains the configuration information from the file containing the configuration information using a Python program.
Then, in operation S802, a first log is generated according to the configuration information.
In an embodiment of the present disclosure, the first log records a configuration of the application program, facilitating later viewing.
Note that, operation S601 in fig. 8 corresponds to operation S601 in fig. 6, operation S602 in fig. 8 corresponds to operation S602 in fig. 6, operation S603 in fig. 8 corresponds to operation S603 in fig. 6, operation S701 in fig. 8 corresponds to operation S701 in fig. 7, operation S702 in fig. 8 corresponds to operation S702 in fig. 7, and operation S703 in fig. 8 corresponds to operation S703 in fig. 7, and the description thereof will not be repeated.
Through the embodiment of the disclosure, the second electronic device can receive the configuration information of the application program from the first electronic device, analyze and record the configuration information, generate the log for later reference, save manpower without manual intervention, and have high testing efficiency.
Fig. 9 schematically illustrates a flow chart of a data processing method according to another embodiment of the present disclosure.
Specifically, in an alternative embodiment of the present disclosure, as shown in fig. 9, before operation S601 of fig. 6, the data processing method may include the following operations S901 to S903.
In operation S901, an operating system is sent to a first electronic device, so that the first electronic device performs system filling on the operating system to obtain a filling system.
In embodiments of the present disclosure, the second electronic device may assign an IP address to the first electronic device using a dynamic host configuration protocol service and establish a communication link with the first electronic device through the IP address of the first electronic device. Then, the second electronic device may bind the network interface of the first electronic device using the Python program, store the operating system into the file using the Python program, and then transmit the file containing the operating system to the first electronic device.
In operation S902, a hardware parameter of the first electronic device acquired by the first electronic device using the filling system is received.
In an embodiment of the disclosure, the second electronic device receives a file containing the hardware parameters from the first electronic device and obtains the hardware parameters from the file containing the hardware parameters using a Python program.
In operation S903, a first test command is generated according to the hardware parameter.
In the embodiment of the disclosure, the hardware parameter includes hardware configuration information of the first electronic device, and the second electronic device generates a first test command for starting a first test program of the first electronic device when the second electronic device confirms that the hardware configuration of the first electronic device is accurate.
Note that, operation S601 in fig. 9 corresponds to operation S601 in fig. 6, operation S602 in fig. 9 corresponds to operation S602 in fig. 6, operation S603 in fig. 9 corresponds to operation S603 in fig. 6, and the description thereof is omitted.
Through the embodiment of the disclosure, the second electronic device sends the operating system supporting the basic operation requirement of the first electronic device to the first electronic device, the operating system can acquire the hardware parameters of the first electronic device after the first electronic device is filled, and the second electronic device can generate a first test command for starting the first test program of the first electronic device according to the hardware parameters of the first electronic device. The hard disk of the first electronic equipment is not required to be manually formatted, the operating system is not required to be installed for the first electronic equipment, the operating system can be sent to the first electronic equipment by the second electronic equipment, the first electronic equipment can automatically complete the installation of the operating system, the system filling efficiency is high, and the economic benefit is good.
Fig. 10 schematically illustrates a block diagram of an electronic device adapted to implement a data processing method according to an embodiment of the disclosure. The electronic device shown in fig. 10 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
Note that the electronic device in fig. 10 may be the first electronic device or the second electronic device in the above-described embodiment, and as shown in fig. 10, the electronic device 1000 according to the embodiment of the present disclosure includes a processor 1001 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1002 or a program loaded from a storage section 1008 into a Random Access Memory (RAM) 1003. The processor 1001 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 1001 may also include on-board memory for caching purposes. The processor 1001 may include a single processing unit or multiple processing units for performing different actions of the method flows according to embodiments of the present disclosure.
In the RAM 1003, various programs and data necessary for the operation of the electronic apparatus 1000 are stored. The processor 1001, the ROM 1002, and the RAM 1003 are connected to each other by a bus 1004. The processor 1001 performs various operations of the method flow according to the embodiment of the present disclosure by executing programs in the ROM 1002 and/or the RAM 1003. Note that the program may be stored in one or more memories other than the ROM 1002 and the RAM 1003. The processor 1001 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in one or more memories.
According to an embodiment of the disclosure, the electronic device 1000 may also include an input/output (I/O) interface 1005, the input/output (I/O) interface 1005 also being connected to the bus 1004. The electronic device 1000 may also include one or more of the following components connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output portion 1007 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc., and a speaker, etc.; a storage portion 1008 including a hard disk or the like; and a communication section 1009 including a network interface card such as a LAN card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The drive 1010 is also connected to the I/O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is installed as needed in the drive 1010, so that a computer program read out therefrom is installed as needed in the storage section 1008.
According to embodiments of the present disclosure, the method flow according to embodiments of the present disclosure may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 1009, and/or installed from the removable medium 1011. The above-described functions defined in the electronic device of the embodiments of the present disclosure are performed when the computer program is executed by the processor 1001. According to embodiments of the present disclosure, the above-described electronic devices, apparatuses, means, modules, units, etc. may be implemented by computer program modules.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 1002 and/or RAM 1003 and/or one or more memories other than ROM 1002 and RAM 1003 described above.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be provided in a variety of combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (7)

1. A data processing method applied to a first electronic device, the method comprising:
receiving a first test command from a second electronic device;
starting a first test program pre-stored in the first electronic equipment by utilizing the first test command; prior to receiving the first test command from the second electronic device,
receiving an operating system from the second electronic device, wherein the operating system includes the first test program;
performing system filling by utilizing the received operating system to obtain a filling system;
acquiring hardware parameters of the first electronic equipment by using the filling system; and
Transmitting the hardware parameters to the second electronic device so that the second electronic device generates the first test command according to the hardware parameters;
acquiring hardware performance information of the first electronic equipment through the first test program;
transmitting the hardware performance information to the second electronic device so as to receive an application program corresponding to the hardware performance information from the second electronic device, wherein the application program comprises one or more types of operating systems and/or one or more versions of operating systems;
receiving the application from the second electronic device;
installing the application program to obtain program installation result information; and
and sending the program installation result information to the second electronic equipment.
2. The method of claim 1, further comprising: after transmitting the program installation result information to the second electronic device,
receiving a second test program sent by the second electronic equipment in response to the program installation result information;
acquiring configuration information of the application program by testing the application program by using the second test program; and
and sending the configuration information to the second electronic equipment so that the second electronic equipment generates a first log according to the configuration information.
3. A data processing method applied to a second electronic device, the method comprising:
sending a first test command to a first electronic device so that the first electronic device starts a pre-stored first test program; before the first test command is sent out,
sending an operating system to the first electronic device so that the first electronic device performs system filling on the operating system to obtain a filling system;
receiving hardware parameters of the first electronic device, which are acquired by the first electronic device through the filling system; and
generating the first test command according to the hardware parameters;
receiving hardware performance information of the first electronic device, which is acquired by the first electronic device through the first test program; and
transmitting an application program corresponding to the hardware performance information to the first electronic device according to the hardware performance information, wherein the application program comprises one or more versions of operating systems;
receiving program installation result information from the first electronic device;
generating a second log according to the program installation result information; and
and sending a second test program for testing the application program to the first electronic equipment according to the program installation result information.
4. A method according to claim 3, further comprising: after transmitting a second test program for testing the application program to the first electronic device according to the program installation result information,
receiving configuration information of the application program, which is obtained by the first electronic device through testing the application program by using the second test program; and
and generating a first log according to the configuration information.
5. A method according to claim 3, further comprising: before the first test command is sent out,
sending an operating system to the first electronic device so that the first electronic device performs system filling on the operating system to obtain a filling system;
receiving hardware parameters of the first electronic device, which are acquired by the first electronic device through the filling system; and
and generating the first test command according to the hardware parameters.
6. An electronic device, comprising:
one or more processors;
storage means for storing executable instructions which when executed by the processor implement the method according to any one of claims 1 to 5.
7. A computer readable storage medium having stored thereon executable instructions which when executed by a processor implement the method according to any of claims 1 to 5.
CN201911424633.4A 2019-12-31 2019-12-31 Data processing method, electronic device and storage medium Active CN111158969B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911424633.4A CN111158969B (en) 2019-12-31 2019-12-31 Data processing method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911424633.4A CN111158969B (en) 2019-12-31 2019-12-31 Data processing method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN111158969A CN111158969A (en) 2020-05-15
CN111158969B true CN111158969B (en) 2024-03-08

Family

ID=70560757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911424633.4A Active CN111158969B (en) 2019-12-31 2019-12-31 Data processing method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN111158969B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101589369A (en) * 2007-03-02 2009-11-25 松下电器产业株式会社 Regenerating unit, system LSI, initial method
CN102368225A (en) * 2011-06-29 2012-03-07 奇智软件(北京)有限公司 Hardware-detection based upgrade recommendation method and device
CN103092635A (en) * 2011-10-31 2013-05-08 联想(北京)有限公司 Operation method and electronic equipment
CN103455396A (en) * 2013-09-03 2013-12-18 北京安兔兔科技有限公司 Test method and test device of hardware performance of electronic equipment
CN103853663A (en) * 2014-03-25 2014-06-11 北京金山网络科技有限公司 Application program test method and system
WO2015117539A1 (en) * 2014-07-22 2015-08-13 中兴通讯股份有限公司 Method and apparatus for invoking application installed on electronic device
WO2016082543A1 (en) * 2014-11-28 2016-06-02 中兴通讯股份有限公司 Device testing method and testing device
US9710368B1 (en) * 2014-05-02 2017-07-18 Amazon Technologies, Inc. Inter-process communication automated testing framework
CN109597727A (en) * 2018-11-14 2019-04-09 歌尔股份有限公司 Detection method, detection device, server and the detection system of electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7321766B2 (en) * 2003-01-21 2008-01-22 Agilent Technologies, Inc System and method for testing portable communication devices
US9778844B2 (en) * 2014-05-14 2017-10-03 American Megatrends, Inc. Installation of operating system on host computer using virtual storage of BMC
US9740585B2 (en) * 2015-06-23 2017-08-22 International Business Machines Corporation Flexible configuration and control of a testing system
US10083102B2 (en) * 2016-07-28 2018-09-25 FedEx Supply Chain Logistics & Electronics, Inc. Systems and methods to service an electronic device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101589369A (en) * 2007-03-02 2009-11-25 松下电器产业株式会社 Regenerating unit, system LSI, initial method
CN102368225A (en) * 2011-06-29 2012-03-07 奇智软件(北京)有限公司 Hardware-detection based upgrade recommendation method and device
CN103092635A (en) * 2011-10-31 2013-05-08 联想(北京)有限公司 Operation method and electronic equipment
CN103455396A (en) * 2013-09-03 2013-12-18 北京安兔兔科技有限公司 Test method and test device of hardware performance of electronic equipment
CN103853663A (en) * 2014-03-25 2014-06-11 北京金山网络科技有限公司 Application program test method and system
US9710368B1 (en) * 2014-05-02 2017-07-18 Amazon Technologies, Inc. Inter-process communication automated testing framework
WO2015117539A1 (en) * 2014-07-22 2015-08-13 中兴通讯股份有限公司 Method and apparatus for invoking application installed on electronic device
WO2016082543A1 (en) * 2014-11-28 2016-06-02 中兴通讯股份有限公司 Device testing method and testing device
CN109597727A (en) * 2018-11-14 2019-04-09 歌尔股份有限公司 Detection method, detection device, server and the detection system of electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Janusz Sosnowski.Software-based self-testing of microprocessors.《Journal of Systems Architecture》.2006,Pages 257-271. *
张淑娟. 一种软硬件联合微处理器固件测试系统.《空间电子技术》.2019,全文. *

Also Published As

Publication number Publication date
CN111158969A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
CN109684188B (en) Test method and device
CN104317914A (en) Data acquiring method and device
CN110377440B (en) Information processing method and device
CN110310139B (en) Data delivery method and data delivery engine device
CN103581133A (en) Method and system for transmitting responses to access requests of Web server
CN111917603A (en) Client test method and device, computer equipment and storage medium
CN107360036B (en) Network fault positioning method, terminal and server
CN109656799B (en) Test method and device
CN111694757A (en) Application program testing method and device, electronic equipment and computer readable storage medium
US9541921B2 (en) Measuring performance of an appliance
CN113468067B (en) Application program debugging method and device, electronic equipment and computer readable medium
CN111158969B (en) Data processing method, electronic device and storage medium
CN112084102A (en) Interface pressure testing method and device
CN110971482B (en) Back-end server detection method and device based on ebpf and electronic equipment
CN109120433B (en) Method and apparatus for containerized deployment of hosts
CN109039765B (en) Network configuration method and device
CN109656791B (en) gPC performance test method and device based on Jmeter
CN111783005A (en) Method, apparatus and system for displaying web page, computer system and medium
CN115576791A (en) Dynamic adjustment method and device for pressure measurement thread, electronic equipment and storage medium
CN111786939A (en) Method, device and system for testing management platform of Internet of things
CN111338928A (en) Chrome-based browser testing method and device
CN112131092A (en) Page debugging method and device
CN112948195B (en) Interface testing method, device, electronic equipment and storage medium
CN113238944A (en) Test method, device and system
CN113448730A (en) Service processing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Country or region after: China

Address after: Room 332, 3 / F, Building 102, 28 xinjiekouwei street, Xicheng District, Beijing 100088

Applicant after: Qianxin Technology Group Co.,Ltd.

Applicant after: Qianxin Wangshen information technology (Beijing) Co.,Ltd.

Address before: Room 332, 3 / F, Building 102, 28 xinjiekouwei street, Xicheng District, Beijing 100088

Applicant before: Qianxin Technology Group Co.,Ltd.

Country or region before: China

Applicant before: LEGENDSEC INFORMATION TECHNOLOGY (BEIJING) Inc.

GR01 Patent grant
GR01 Patent grant