Equipment mirror image burning and testing method and system and development panel

By optimizing the device image burning process and filtering and storing target image information, the problem of the device being unable to respond immediately and the burning process is solved, the device identification and mirroring efficiency is improved, and data integrity is ensured.

CN119668629AActive Publication Date: 2025-03-21深圳开鸿数字产业发展有限公司
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411521683.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-03-21
Estimated Expiration
2044-10-29

AI Technical Summary

Technical Problem

In the prior art, the device cannot respond immediately when the first mirror burns, resulting in stuttering during command execution, slow burning process, and reducing development and debugging efficiency.

Method used

By obtaining the initial mirror information in multiple containers, filtering the target mirror information, and storing and burning the mirror information in the target container, the device identification and mirroring process is optimized.

Benefits of technology

It effectively reduces the equipment identification time, improves the equipment identification efficiency, shortens the mirror recording time, improves the development and debugging efficiency, and ensures the integrity of the data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119668629A_ABST
    Figure CN119668629A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment mirror image burning and testing method and system and a development panel, and the method comprises the steps: obtaining the information of a target container, building a connection with the target container, and obtaining the initial mirror image information of a stored initial mirror image disk; analyzing the burning instruction to obtain target mirror image information, and adding a corresponding target mirror image disk to carry out mirror image burning; and inputting a plurality of test instructions to obtain a plurality of mirror image burning results, and generating a final test result. According to the method and the device, the mirror image disks in the multiple containers and the target container are obtained, the corresponding connection is established, then mirror image burning is performed, and the burning process is tested from multiple angles such as the containers, the mirror images and the directories, so that the efficiency of mirror image burning on the equipment is improved, and the data integrity is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of testing technology, and in particular to a device image burning and testing method, system, development panel and computer-readable storage medium. Background Art

[0002] Image burning is the process of writing an operating system or data image file to a storage device. This process plays a key role in many fields, especially in embedded system development and device maintenance. Image burning not only involves burning the image file content to a specified partition, but also includes backing up the storage device to the image file and restoring the image file to a new storage device. These operations are crucial for data migration, backup, and sharing data between different devices.

[0003] However, when performing the first image burning, it may take some time for the device to recognize and respond. If the device cannot respond immediately, it will cause a freeze when executing commands, and the device needs to send a series of AT commands (Attention commands, a type of instruction used to control the connection and communication between the device and the application) in a specific order before it can respond normally. If the order in which the commands are sent is incorrect, or some necessary AT commands are missing, the device will not respond correctly. It is likely that the program will be terminated during the testing phase, and multiple commands will need to be executed to complete the test. In addition, the burning process is very slow, resulting in reduced development and debugging efficiency.

[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0005] The main purpose of the present invention is to provide a device image burning and testing method, system, development panel and computer-readable storage medium, aiming to solve the problem in the prior art that the device cannot respond immediately when the image is burned for the first time, resulting in a freeze when executing commands, and the burning process is slow, resulting in reduced development and debugging efficiency.

[0006] To achieve the above object, the present invention provides a device image burning and testing method, the device image burning and testing method comprising the following steps:

[0007] Acquire initial image information from multiple initial image disks in multiple containers, and filter multiple target image information from all the initial image information according to an image instruction input by a user, wherein each container stores multiple initial image disks;

[0008] According to all the target image information, multiple target containers are selected from all the containers, and each of the target image information is stored in a target image disk corresponding to the target container, and image burning is performed according to all the target image disks to obtain corresponding burning information;

[0009] A plurality of test instructions input by a user are obtained, and all the test instructions are input into a command line tool respectively to test all the burning information. If a plurality of preset information output by the command line tool matches the corresponding burning information, a plurality of test results are generated.

[0010] Optionally, the device image burning and testing method, wherein the initial image information in multiple initial image disks in multiple containers is obtained, and multiple target image information is screened from all the initial image information according to the image instruction input by the user, wherein each container stores multiple initial image disks, further comprises:

[0011] A container viewing instruction is obtained, and the container viewing instruction is input into a command line tool for querying to obtain container information corresponding to each connected container.

[0012] Optionally, the device image burning and testing method, wherein the obtaining of initial image information from multiple initial image disks in multiple containers, and screening multiple target image information from all the initial image information according to an image instruction input by a user, wherein each container stores multiple initial image disks, specifically includes:

[0013] Obtain a status query instruction, and input the status query instruction into the command line tool for querying, to obtain container information corresponding to multiple running containers, and initial image information corresponding to each initial image disk in the running container;

[0014] An image query instruction is obtained, and the image query instruction is input into the command line tool for querying to obtain target image information of multiple target image disks, wherein the target image information is obtained by screening the command line tool from all initial image information.

[0015] Optionally, the device image burning and testing method, wherein the obtaining status query instruction and inputting the status query instruction into the command line tool for querying, obtains container information corresponding to multiple running containers and initial image information corresponding to each initial image disk in the running container, and then further includes:

[0016] According to the container information corresponding to the running container, non-running containers are screened from all the containers, and all the non-running containers are deleted.

[0017] Optionally, the device image burning and testing method, wherein the image query instruction is obtained, the image query instruction is input into the command line tool for query, and target image information of multiple target image disks is obtained, and then the following is further included:

[0018] All the target image information are compared with each other, and if the same target image information exists, a target image disk corresponding to the same target image information is randomly deleted.

[0019] Optionally, the device image burning and testing method, wherein, according to all the target image information, multiple target containers are screened from all the containers, and each of the target image information is stored in a target image disk corresponding to the target container, and image burning is performed according to all the target image disks to obtain corresponding burning information, specifically including:

[0020] Obtaining a burning instruction input by a user, analyzing the burning instruction to obtain a plurality of target burning data, and screening out a plurality of target containers from all the containers according to all the target image information;

[0021] Each target image information is stored in a corresponding target image disk in the target container. According to each target image information, all the target burning data are respectively stored in the corresponding target image disk, and image burning is performed according to all the target image disks to obtain corresponding burning information.

[0022] Optionally, in the device image burning and testing method, the multiple test instructions include: initial test instructions, container test instructions and directory test instructions; the test results include: initial test results, container test results and directory test results;

[0023] The method of obtaining multiple test instructions input by the user, inputting all the test instructions into the command line tool to test all the burning information, and generating multiple test results if the multiple preset information output by the command line tool matches the corresponding burning information, specifically includes:

[0024] Obtaining an initial test instruction input by a user, and inputting the initial test instruction into the command line tool, and generating an initial test result indicating that the initial test of image burning is qualified if the first preset information output by the command line tool matches the corresponding burning information;

[0025] Obtaining a container test instruction input by a user, and inputting the container test instruction into the command line tool, and if the second preset information output by the command line tool matches the corresponding burning information, generating a container test result indicating that the container test of the image burning is qualified;

[0026] Create a test directory and a test file, import the test file into the test directory, and input the directory test instruction entered by the user into the command line tool to run the test file. If the third preset information output by the command line tool matches the corresponding burning information, a directory test result indicating that the directory test of the image burning is qualified is generated.

[0027] In addition, to achieve the above-mentioned purpose, the present invention also provides a device image burning and testing system, wherein the device image burning and testing system comprises:

[0028] An image information acquisition module is used to acquire initial image information from multiple initial image disks in multiple containers, and filter multiple target image information from all the initial image information according to the image instruction input by the user, wherein each container stores multiple initial image disks;

[0029] An image burning module, used for screening multiple target containers from all the containers according to all the target image information, and storing each target image information in a target image disk corresponding to the target container, and performing image burning according to all the target image disks to obtain corresponding burning information;

[0030] The burning test module is used to obtain multiple test instructions input by the user, input all the test instructions into the command line tool respectively to test all the burning information, and generate multiple test results if the multiple preset information output by the command line tool matches the corresponding burning information.

[0031] In addition, to achieve the above-mentioned purpose, the present invention also provides a development panel, wherein the development panel includes: a memory, a processor, and a device image burning and testing program stored in the memory and runnable on the processor, and when the device image burning and testing program is executed by the processor, the steps of the device image burning and testing method as described above are implemented.

[0032] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a device image burning and testing program, and when the device image burning and testing program is executed by a processor, the steps of the device image burning and testing method as described above are implemented.

[0033] In the present invention, the initial image information in multiple initial image disks in multiple containers is obtained, and multiple target image information is screened from all the initial image information according to the image instruction input by the user, wherein each container stores multiple initial image disks; multiple target containers are screened from all the containers according to all the target image information, and each target image information is stored in the target image disk corresponding to the target container, and image burning is performed according to all the target image disks to obtain corresponding burning information; multiple test instructions input by the user are obtained, and all the test instructions are input into the command line tool to test all the burning information, and if the multiple preset information output by the command line tool matches the corresponding burning information, multiple test results are generated. The present invention obtains the image disks in multiple containers and target containers, and establishes corresponding connections, which can effectively reduce the time for the device to identify, improve the efficiency of device identification, and then perform image burning, and test the burning process from multiple angles such as container, image and directory, improve the efficiency of image burning of the device, avoid data damage, and ensure the integrity of the data. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a flow chart of a preferred embodiment of the device image burning and testing method of the present invention;

[0035] Figure 2 It is a container platform query schematic diagram of a preferred embodiment of the device image burning and testing method of the present invention;

[0036] Figure 3 It is a schematic diagram of online container query of a preferred embodiment of the device image burning and testing method of the present invention;

[0037] Figure 4 It is a schematic diagram of image query of a preferred embodiment of the device image burning and testing method of the present invention;

[0038] Figure 5 It is a schematic diagram of image pulling of a preferred embodiment of the device image burning and testing method of the present invention;

[0039] Figure 6 It is a schematic diagram of image deletion of a preferred embodiment of the device image burning and testing method of the present invention;

[0040] Figure 7 It is a schematic diagram of container startup of a preferred embodiment of the device image burning and testing method of the present invention;

[0041] Figure 8 It is a schematic diagram of container stop of a preferred embodiment of the device image burning and testing method of the present invention;

[0042] Fig. 9It is a schematic diagram of container deletion of a preferred embodiment of the device image burning and testing method of the present invention;

[0043] Fig.10 It is a first image test schematic diagram of a preferred embodiment of the device image burning and testing method of the present invention;

[0044] Fig.11 It is a second image test schematic diagram of a preferred embodiment of the device image burning and testing method of the present invention;

[0045] Fig.12 It is a third image test schematic diagram of a preferred embodiment of the device image burning and testing method of the present invention;

[0046] Fig.13 It is a schematic diagram of local image import of a preferred embodiment of the device image burning and testing method of the present invention;

[0047] Fig.14 It is a structural diagram of a preferred embodiment of the device image burning and testing system of the present invention;

[0048] Fig.15 A schematic diagram of the operating environment of a preferred embodiment of the development panel of the present invention. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0050] The device image burning and testing method described in the preferred embodiment of the present invention is as follows: Figure 1 As shown, the device image burning and testing method includes the following steps:

[0051] Step S10, obtaining initial image information from multiple initial image disks in multiple containers, and screening multiple target image information from all the initial image information according to the image instruction input by the user, wherein each container stores multiple initial image disks.

[0052] Among them, a connection can be established with a preset container platform through a HDC (Hard Drive Controller) and version information of the connected container platform can be queried. Figure 2 As shown, after entering the query command of the container platform docker, the version information of docker on the client "client" and the server "server" can be obtained. Get the container viewing command, and enter the container viewing command into the command line tool for query to obtain the container information corresponding to each connected container.

[0053] Specifically, a status query instruction is obtained, and the status query instruction is input into the command line tool for query, so as to obtain container information corresponding to multiple running containers and initial image information corresponding to each initial image disk in the running containers; an image query instruction is obtained, and the image query instruction is input into the command line tool for query, so as to obtain target image information of multiple target image disks, wherein the target image information is obtained by filtering the command line tool from all the initial image information.

[0054] After querying the version information of the container platform without any error, you can further query the running containers in the container platform, such as Figure 3 As shown, by entering the obtained status query command, the container information corresponding to the running container can be output; then obtain the image query command, such as Figure 4 As shown, by entering the image query command, the target image information in the target image disk can be queried. After the target image information in the target image disk is queried, the corresponding generated image pull command can be executed, such as Figure 5 As shown, there is no error after executing the command, and there is relevant information output, and the corresponding target image information is obtained, which means that the pull operation of the target image disk is successful; according to the image disks in the multiple containers and the target container obtained, and the corresponding connections are established, the time for device identification can be effectively reduced, and the efficiency of device identification can be significantly improved.

[0055] Furthermore, for other image disks that are not selected, they can be deleted according to the pre-saved image deletion instruction, such as Figure 6 As shown in the figure, the image deletion instruction is entered, the docker command is executed without error prompt, and there is a "Deleted" prompt message. If the deleted image information is queried again, its information will not be displayed; by deleting invalid image information, the storage space of the image disk during the burning process is greatly saved, and it can effectively avoid burning invalid image information into the target device, thereby improving the accuracy and efficiency of burning.

[0056] According to the container information corresponding to the running containers, the non-running containers are filtered out from all the containers, and all the non-running containers are deleted. Figure 7 As shown, after determining the object to be burned, the invalid container query instruction can be used to query the container that has been created but not running. This instruction can query the container that the status query instruction cannot query, that is, the invalid container.

[0057] Furthermore, if the running container needs to be stopped according to user needs, such as Figure 8As shown, a container stop instruction can be generated according to user needs, first generating container information of the container to be stopped, then stopping its operation, and then querying the container information of the corresponding container again will not be displayed.

[0058] After all invalid containers have been identified, Fig. 9 As shown, all invalid containers can be deleted through the pre-existing container deletion instruction, which further simplifies the burning process, avoids the interference of invalid containers on the burning process, and improves the efficiency of the burning process.

[0059] Furthermore, all the target image information are compared with each other. If the same target image information exists, a target image disk corresponding to the same target image information is randomly deleted, thereby avoiding repeated burning of the target image information in the subsequent burning process and saving burning time.

[0060] Step S20: According to all the target image information, multiple target containers are selected from all the containers, and each target image information is stored in a target image disk corresponding to the target container, and image burning is performed according to all the target image disks to obtain corresponding burning information.

[0061] Specifically, a burning instruction input by a user is obtained, the burning instruction is analyzed to obtain a plurality of target burning data, and a plurality of target containers are screened out from all the containers according to all the target image information; each target image information is stored in a target image disk corresponding to the target container, all the target burning data are respectively stored in the corresponding target image disk according to each target image information, and image burning is performed according to all the target image disks to obtain corresponding burning information.

[0062] Among them, after determining the target image disk, the burning command input by the user is analyzed to determine the target burning data that needs to be burned, and these target burning data are stored in the target image disk according to categories. Finally, the burning is performed according to these target image disks. After the burning is completed, the burning information of each target image disk after burning is obtained, so that each burning process can be tested separately later, so as to screen out the target image disk and the corresponding target container corresponding to the burning process that may have problems, so as to prompt the administrator to make adjustments, thereby improving the performance of the burning device.

[0063] Step S30, obtaining multiple test instructions input by the user, inputting all the test instructions into the command line tool respectively to test all the burning information, and generating multiple test results if the multiple preset information output by the command line tool matches the corresponding burning information.

[0064] The test instructions include: initial test instructions, container test instructions and directory test instructions; the test results include: initial test results, container test results and directory test results.

[0065] Specifically, an initial test instruction input by a user is obtained, and the initial test instruction is input into the command line tool. If the command line tool outputs first preset information that matches the corresponding burning information, an initial test result indicating that the initial test of image burning is qualified is generated; a container test instruction input by a user is obtained, and the container test instruction is input into the command line tool. If the command line tool outputs second preset information that matches the corresponding burning information, a container test result indicating that the container test of image burning is qualified is generated; a test directory and a test file are created, the test file is imported into the test directory, and the directory test instruction input by the user is input into the command line tool to run the test file. If the command line tool outputs third preset information that matches the corresponding burning information, a directory test result indicating that the directory test of image burning is qualified is generated.

[0066] Among them, the burning process is tested according to the initial test instructions input by the user, for example Fig.10 As shown in the figure, after executing the initial test command, the output information is "Hello from Docker!", which means that the burned content comes from the Docker container platform, that is, it matches the burning information, so the initial test result of the image burning is generated. If the initial test result is qualified, the container in the burning process is tested by inputting the container test command, such as Fig.11 As shown in the figure, no error is reported after executing the container test instruction, and the output information is a string of characters representing the container ID, where the character before the "#" symbol is the container ID, indicating that the container test of the current image burning is qualified, and the container test result is obtained; finally, a test directory and a test file are created, where the test file is created in the test directory, and then the directory test instruction is used to test, and the container operation process is obtained, as shown in the figure. Fig.12 As shown in the figure, the information "Hello, World!" is output, which means that the current directory test result is qualified. By testing the burning process from multiple angles such as containers, images, and directories, the efficiency of image burning to the device is improved, data damage is avoided, and data integrity is guaranteed.

[0067] Furthermore, in addition to testing the initial test results, container test results, and directory test results, you can also test the locally imported images, such as Fig.13As shown, first execute the pull image command to switch to the current working directory, and save the image in the local container in a preset format, and delete other images pulled from the external network. Then execute the container run command to run the local container that saves the image. If no error message is output during the execution of these commands, and "Hello from Docker!" is output after running the local container, it means that the local image test is qualified.

[0068] The present invention obtains the mirror disks in multiple containers and the target container and establishes corresponding connections, which can effectively reduce the time for the device to identify and improve the efficiency of the device identification. Then the image is burned and the burning process is tested from multiple angles such as the container, the image and the directory, thereby improving the efficiency of the image burning of the device, avoiding data damage and ensuring the integrity of the data.

[0069] Furthermore, if Fig.14 As shown, based on the above-mentioned device image burning and testing method, the present invention also provides a device image burning and testing system accordingly, wherein the device image burning and testing system comprises:

[0070] The image information acquisition module 51 is used to acquire initial image information from multiple initial image disks in multiple containers, and filter multiple target image information from all the initial image information according to the image instruction input by the user, wherein each container stores multiple initial image disks;

[0071] The image burning module 52 is used to select multiple target containers from all the containers according to all the target image information, and store each of the target image information in a target image disk corresponding to the target container, and perform image burning according to all the target image disks to obtain corresponding burning information;

[0072] The burning test module 53 is used to obtain multiple test instructions input by the user, input all the test instructions into the command line tool respectively to test all the burning information, and generate multiple test results if the multiple preset information output by the command line tool matches the corresponding burning information.

[0073] Furthermore, if Fig.15 As shown, based on the above-mentioned device image burning and testing method and system, the present invention also provides a development panel accordingly, and the development panel includes a processor 10, a memory 20 and a display 30. Fig.15 Only some of the components of the development panel are shown, but it should be understood that implementation of all of the components shown is not required, and more or fewer components may be implemented instead.

[0074] In some embodiments, the memory 20 may be an internal storage unit of the development panel, such as a hard disk or memory of the development panel. In other embodiments, the memory 20 may also be an external storage device of the development panel, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the development panel. Further, the memory 20 may also include both an internal storage unit of the development panel and an external storage device. The memory 20 is used to store application software and various types of data installed on the development panel, such as the program code of the development panel installed. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a device image burning and test program 40 is stored on the memory 20, and the device image burning and test program 40 can be executed by the processor 10, thereby realizing the device image burning and test method in the present application.

[0075] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the device image burning and testing method.

[0076] The display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. in some embodiments. The display 30 is used to display information on the development panel and to display a visual user interface. The components 10-30 of the development panel communicate with each other via a system bus.

[0077] In one embodiment, when the processor 10 executes the device image burning and testing program 40 in the memory 20, the following steps are implemented:

[0078] Acquire initial image information from multiple initial image disks in multiple containers, and filter multiple target image information from all the initial image information according to an image instruction input by a user, wherein each container stores multiple initial image disks;

[0079] According to all the target image information, multiple target containers are selected from all the containers, and each of the target image information is stored in a target image disk corresponding to the target container, and image burning is performed according to all the target image disks to obtain corresponding burning information;

[0080] A plurality of test instructions input by a user are obtained, and all the test instructions are input into a command line tool respectively to test all the burning information. If a plurality of preset information output by the command line tool matches the corresponding burning information, a plurality of test results are generated.

[0081] The method further comprises obtaining initial image information from multiple initial image disks in multiple containers, and filtering multiple target image information from all the initial image information according to an image instruction input by a user, wherein each container stores multiple initial image disks, and the method further comprises:

[0082] A container viewing instruction is obtained, and the container viewing instruction is input into a command line tool for querying to obtain container information corresponding to each connected container.

[0083] The obtaining of initial image information from multiple initial image disks in multiple containers, and screening multiple target image information from all the initial image information according to the image instruction input by the user, wherein each container stores multiple initial image disks, specifically includes:

[0084] Obtain a status query instruction, and input the status query instruction into the command line tool for querying, to obtain container information corresponding to multiple running containers, and initial image information corresponding to each initial image disk in the running container;

[0085] An image query instruction is obtained, and the image query instruction is input into the command line tool for querying to obtain target image information of multiple target image disks, wherein the target image information is obtained by screening the command line tool from all initial image information.

[0086] The step of obtaining a status query instruction and inputting the status query instruction into the command line tool for querying to obtain container information corresponding to multiple running containers and initial image information corresponding to each initial image disk in the running container further includes:

[0087] According to the container information corresponding to the running container, non-running containers are screened from all the containers, and all the non-running containers are deleted.

[0088] The step of obtaining the image query instruction, inputting the image query instruction into the command line tool for querying, and obtaining target image information of multiple target image disks, further includes:

[0089] All the target image information are compared with each other, and if the same target image information exists, a target image disk corresponding to the same target image information is randomly deleted.

[0090] The step of selecting a plurality of target containers from all the containers according to all the target image information, storing each target image information in a target image disk corresponding to the target container, and performing image burning according to all the target image disks to obtain corresponding burning information specifically includes:

[0091] Obtaining a burning instruction input by a user, analyzing the burning instruction to obtain a plurality of target burning data, and screening out a plurality of target containers from all the containers according to all the target image information;

[0092] Each target image information is stored in a corresponding target image disk in the target container. According to each target image information, all the target burning data are respectively stored in the corresponding target image disk, and image burning is performed according to all the target image disks to obtain corresponding burning information.

[0093] The multiple test instructions include: initial test instructions, container test instructions and directory test instructions; the test results include: initial test results, container test results and directory test results;

[0094] The method of obtaining multiple test instructions input by the user, inputting all the test instructions into the command line tool to test all the burning information, and generating multiple test results if the multiple preset information output by the command line tool matches the corresponding burning information, specifically includes:

[0095] Obtaining an initial test instruction input by a user, and inputting the initial test instruction into the command line tool, and generating an initial test result indicating that the initial test of image burning is qualified if the first preset information output by the command line tool matches the corresponding burning information;

[0096] Obtaining a container test instruction input by a user, and inputting the container test instruction into the command line tool, and if the second preset information output by the command line tool matches the corresponding burning information, generating a container test result indicating that the container test of the image burning is qualified;

[0097] Create a test directory and a test file, import the test file into the test directory, and input the directory test instruction entered by the user into the command line tool to run the test file. If the third preset information output by the command line tool matches the corresponding burning information, a directory test result indicating that the directory test of the image burning is qualified is generated.

[0098] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a device image burning and testing program, and when the device image burning and testing program is executed by a processor, the steps of the device image burning and testing method described above are implemented.

[0099] In summary, the present invention provides a device image burning and testing method and related equipment, the method comprising: obtaining initial image information in multiple initial image disks in multiple containers, screening multiple target image information in all the initial image information according to the image instruction input by the user, wherein each container stores multiple initial image disks; screening multiple target containers in all the containers according to all the target image information, and storing each target image information in the target image disk corresponding to the target container respectively, performing image burning according to all the target image disks, and obtaining corresponding burning information; obtaining multiple test instructions input by the user, inputting all the test instructions into the command line tool respectively to test all the burning information, and generating multiple test results if the multiple preset information output by the command line tool matches the corresponding burning information. The present invention obtains the image disks in multiple containers and target containers, and establishes corresponding connections, which can effectively reduce the time for the device to identify, improve the efficiency of device identification, and then perform image burning, and test the burning process from multiple angles such as container, image and directory, improve the efficiency of image burning of the device, avoid data damage, and ensure the integrity of the data.

[0100] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or development panel including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or development panel. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or development panel including the element.

[0101] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.

[0102] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A device image burning and testing method, characterized in that: The device image burning and testing method includes: Acquire initial image information from multiple initial image disks in multiple containers, and filter multiple target image information from all the initial image information according to an image instruction input by a user, wherein each container stores multiple initial image disks; According to all the target image information, multiple target containers are selected from all the containers, and each of the target image information is stored in a target image disk corresponding to the target container, and image burning is performed according to all the target image disks to obtain corresponding burning information; A plurality of test instructions input by a user are obtained, and all the test instructions are input into a command line tool respectively to test all the burning information. If a plurality of preset information output by the command line tool matches the corresponding burning information, a plurality of test results are generated.

2. The device image burning and testing method according to claim 1, characterized in that: The method further comprises: obtaining initial image information from multiple initial image disks in multiple containers, and filtering multiple target image information from all the initial image information according to an image instruction input by a user, wherein each container stores multiple initial image disks, and the method further comprises: A container viewing instruction is obtained, and the container viewing instruction is input into a command line tool for querying to obtain container information corresponding to each connected container.

3. The device image burning and testing method according to claim 2, characterized in that: The obtaining of initial image information from multiple initial image disks in multiple containers, and screening multiple target image information from all the initial image information according to the image instruction input by the user, wherein each container stores multiple initial image disks, specifically includes: Obtain a status query instruction, and input the status query instruction into the command line tool for querying, to obtain container information corresponding to multiple running containers, and initial image information corresponding to each initial image disk in the running container; An image query instruction is obtained, and the image query instruction is input into the command line tool for querying to obtain target image information of multiple target image disks, wherein the target image information is obtained by screening the command line tool from all initial image information.

4. The device image burning and testing method according to claim 3, characterized in that: The state query instruction is obtained, and the state query instruction is input into the command line tool for querying to obtain container information corresponding to multiple running containers and initial image information corresponding to each initial image disk in the running container, and then further includes: According to the container information corresponding to the running container, non-running containers are screened from all the containers, and all the non-running containers are deleted.

5. The device image burning and testing method according to claim 3, characterized in that: The image query instruction is obtained, and the image query instruction is input into the command line tool for querying to obtain target image information of multiple target image disks, and then the following further includes: All the target image information are compared with each other, and if the same target image information exists, a target image disk corresponding to the same target image information is randomly deleted.

6. The device image burning and testing method according to claim 3, characterized in that: The step of selecting a plurality of target containers from all the containers according to all the target image information, storing each target image information in a target image disk corresponding to the target container, and performing image burning according to all the target image disks to obtain corresponding burning information specifically includes: Obtaining a burning instruction input by a user, analyzing the burning instruction to obtain a plurality of target burning data, and screening out a plurality of target containers from all the containers according to all the target image information; Each target image information is stored in a corresponding target image disk in the target container. According to each target image information, all the target burning data are respectively stored in the corresponding target image disk, and image burning is performed according to all the target image disks to obtain corresponding burning information.

7. The device image burning and testing method according to claim 6, characterized in that: The multiple test instructions include: initial test instructions, container test instructions and directory test instructions; the test results include: initial test results, container test results and directory test results; The method of obtaining multiple test instructions input by the user, inputting all the test instructions into the command line tool to test all the burning information, and generating multiple test results if the multiple preset information output by the command line tool matches the corresponding burning information, specifically includes: Obtaining an initial test instruction input by a user, and inputting the initial test instruction into the command line tool, and generating an initial test result indicating that the initial test of image burning is qualified if the first preset information output by the command line tool matches the corresponding burning information; Obtaining a container test instruction input by a user, and inputting the container test instruction into the command line tool, and if the second preset information output by the command line tool matches the corresponding burning information, generating a container test result indicating that the container test of the image burning is qualified; Create a test directory and a test file, import the test file into the test directory, and input the directory test instruction entered by the user into the command line tool to run the test file. If the third preset information output by the command line tool matches the corresponding burning information, a directory test result indicating that the directory test of the image burning is qualified is generated.

8. A device image burning and testing system, characterized in that: The device image burning and testing system includes: An image information acquisition module is used to acquire initial image information from multiple initial image disks in multiple containers, and filter multiple target image information from all the initial image information according to the image instruction input by the user, wherein each container stores multiple initial image disks; An image burning module, used for screening multiple target containers from all the containers according to all the target image information, and storing each target image information in a target image disk corresponding to the target container, and performing image burning according to all the target image disks to obtain corresponding burning information; The burning test module is used to obtain multiple test instructions input by the user, input all the test instructions into the command line tool respectively to test all the burning information, and generate multiple test results if the multiple preset information output by the command line tool matches the corresponding burning information.

9. A development panel, characterized in that: The development panel includes: a memory, a processor, and a device image burning and testing program stored in the memory and executable on the processor. When the device image burning and testing program is executed by the processor, the steps of the device image burning and testing method as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a device image burning and testing program, and when the device image burning and testing program is executed by a processor, the steps of the device image burning and testing method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method and apparatus of burning data to FAT (File Allocation Table)32 partition

    CN104572492A

  • Method and device for burning SSD (Solid State Disk) and medium

    CN115756517A

  • Data request processing method, server and system

    WO2017129106A1

  • Patching method, related apparatus, and system

    WO2022111664A1