A device image burning and testing method, system and development panel
By filtering and burning target image information, the device image burning process is optimized, solving the problem of slow device response, improving device recognition efficiency and image burning accuracy, and ensuring data integrity.
Patent Information
- Application Number
- CN202411521683.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2044-10-29
AI Technical Summary
In existing technologies, the device cannot respond immediately when the image is burned, resulting in sluggish command execution, slow burning process, and impact on development and debugging efficiency.
By acquiring initial image information from multiple containers, filtering target image information, and burning the image into the target container, combined with test commands to generate test results, the device identification and burning process is optimized.
It improves device recognition efficiency, simplifies the burning process, ensures data integrity, and enhances the efficiency and accuracy of image burning.
Smart Images

Figure CN119668629B_ABST
Abstract
Description
Technical Field
[0001] This 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 Technology
[0002] Image burning is the process of writing an operating system or data image file to a storage device. This process plays a crucial role in many fields, especially in embedded system development and device maintenance. Image burning involves not only burning the contents of an image file to a specified partition, but also backing up the storage device to the image file and restoring the image file to a new storage device. These operations are essential for data migration, backup, and sharing data between different devices.
[0003] However, during the first image flashing, the device may require some time to recognize and respond. If the device cannot respond immediately, it will cause lag when executing commands. 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 command order is incorrect, or some necessary AT commands are missing, the device will not respond correctly, potentially causing program crashes during the testing phase. Multiple commands may need to be executed to complete the test, and the flashing process will be slow, reducing development and debugging efficiency.
[0004] Therefore, existing technologies still need to be improved and developed. Summary of the Invention
[0005] The main objective of this invention is to provide a device image burning and testing method, system, development panel, and computer-readable storage medium, aiming to solve the problems in the prior art where the device cannot respond immediately when the image is burned for the first time, resulting in lag when executing commands and slow burning process, which reduces development and debugging efficiency.
[0006] To achieve the above objectives, the present invention provides a method for device image burning and testing, the method comprising the following steps:
[0007] The system obtains initial image information from multiple initial image disks in multiple containers, and filters multiple target image information from all the initial image information according to the image instructions input by the user. Each container stores multiple initial image disks.
[0008] Based on all the target image information, multiple target containers are selected from all the containers, and the target image information of each target container is stored in the target image disk corresponding to the target container. Image burning is performed based on all the target image disks to obtain the corresponding burning information.
[0009] Multiple test commands input by the user are obtained, and all the test commands are input into the command line tool to test all the burning information. If the multiple preset information output by the command line tool matches the corresponding burning information, multiple test results are generated.
[0010] Optionally, the device image burning and testing method further includes, before the step of 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 the image command input by the user, wherein each container stores multiple initial image disks, the method further includes:
[0011] Obtain the container viewing command and input it into the command-line tool to query and obtain the container information corresponding to each connected container.
[0012] Optionally, the device image burning and testing method, wherein 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 the image command input by the user, wherein each container stores multiple initial image disks, specifically includes:
[0013] Obtain the status query command and input the status query command into the command line tool to query, and obtain the container information corresponding to multiple running containers, as well as the initial image information corresponding to each initial image disk in the running containers;
[0014] Obtain the image query command, input the image query command into the command line tool to query, and obtain the target image information of multiple target image disks, wherein the target image information is obtained by the command line tool from all the initial image information.
[0015] Optionally, the device image burning and testing method further includes, after obtaining the status query command and inputting the status query command into the command-line tool to query and obtain container information corresponding to multiple running containers, and initial image information corresponding to each initial image disk in the running containers, the method further includes:
[0016] Based on the container information corresponding to the running containers, filter out the non-running containers among all the containers, and delete all non-running containers.
[0017] Optionally, the device image burning and testing method further includes, in the step of obtaining the image query command, inputting the image query command into the command-line tool to query and obtain target image information of multiple target image disks, and then further including:
[0018] Compare all the target image information with each other. If there is a duplicate target image information, randomly delete the target image disk corresponding to the duplicate target image information.
[0019] Optionally, the device image burning and testing method, wherein the step of selecting multiple target containers from all the containers based on all the target image information, storing each target image information in the target image disk corresponding to the target container, and burning the image based on all the target image disks to obtain the corresponding burning information, specifically includes:
[0020] The system obtains the user-input burning command, analyzes the burning command to obtain multiple target burning data, and filters out multiple target containers from all the containers based on all the target image information.
[0021] Each target image information is stored in the corresponding target image disk in the target container. Based on each target image information, all target burning data are stored in the corresponding target image disk. Image burning is performed based on all target image disks to obtain the corresponding burning information.
[0022] Optionally, in the device image burning and testing method, the plurality of test commands include: an initial test command, a container test command, and a directory test command; the test results include: an initial test result, a container test result, and a directory test result.
[0023] The process involves acquiring multiple test commands input by the user, inputting all of these commands into a command-line tool to test all the burning information, and generating multiple test results if the preset information output by the command-line tool matches the corresponding burning information. These results specifically include:
[0024] Obtain the initial test command input by the user and input the initial test command into the command line tool. If the first preset information output by the command line tool matches the corresponding burning information, then generate an initial test result indicating that the initial test of image burning is qualified.
[0025] Obtain the container test command input by the user and input the container test command into the command line tool. If the second preset information output by the command line tool matches the corresponding burning information, then generate a container test result indicating that the container test of the image burning is qualified.
[0026] Create a test directory and test file, import the test file into the test directory, and input the user-inputted directory test command 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 image burning directory test is qualified is generated.
[0027] Furthermore, to achieve the above objectives, the present invention also provides a device image burning and testing system, wherein the device image burning and testing system includes:
[0028] The image information acquisition module is used to acquire the initial image information of multiple initial image disks in multiple containers, and to filter multiple target image information from all the initial image information according to the image command input by the user, wherein each container stores multiple initial image disks;
[0029] The image burning module is used to filter multiple target containers from all the containers according to all the target image information, and store the target image information of each target container in the target image disk corresponding to the target container, and burn the image according to all the target image disks to obtain the corresponding burning information;
[0030] The programming test module is used to acquire multiple test commands input by the user, and input all the test commands into the command line tool to test all the programming information. If multiple preset information output by the command line tool matches the corresponding programming information, multiple test results are generated.
[0031] In addition, to achieve the above objectives, 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 on the memory and executable on the processor, wherein when the device image burning and testing program is executed by the processor, it implements the steps of the device image burning and testing method described above.
[0032] In addition, to achieve the above objectives, 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 the device image burning and testing program, when executed by a processor, implements the steps of the device image burning and testing method described above.
[0033] In this invention, initial image information from multiple initial image disks within multiple containers is acquired. Based on user-inputted image commands, multiple target image information is filtered from all the initial image information, wherein each container stores multiple initial image disks. Based on all the target image information, multiple target containers are filtered from all the containers, and each target image information is stored in its corresponding target image disk. Image burning is performed based on all the target image disks to obtain corresponding burning information. Multiple test commands input by the user are acquired and input into a command-line tool to test all the burning information. If multiple preset information output by the command-line tool matches the corresponding burning information, multiple test results are generated. This invention acquires image disks from multiple containers and target containers and establishes corresponding connections, effectively reducing device identification time and improving device identification efficiency. Image burning is then performed, and the burning process is tested from multiple perspectives, including containers, images, and directories, improving the efficiency of image burning to devices, preventing data corruption, and ensuring data integrity. Attached Figure Description
[0034] Figure 1 This is a flowchart of a preferred embodiment of the device image burning and testing method of the present invention;
[0035] Figure 2 This is a schematic diagram of a container platform query, representing a preferred embodiment of the device image burning and testing method of the present invention.
[0036] Figure 3 This is a schematic diagram of an online container query, representing a preferred embodiment of the device image burning and testing method of the present invention.
[0037] Figure 4 This is a schematic diagram of a preferred embodiment of the device image burning and testing method of the present invention.
[0038] Figure 5 This is a schematic diagram of image extraction, representing a preferred embodiment of the device image burning and testing method of the present invention.
[0039] Figure 6 This is a schematic diagram of image deletion in a preferred embodiment of the device image burning and testing method of the present invention;
[0040] Figure 7 This is a schematic diagram of container startup, representing a preferred embodiment of the device image burning and testing method of the present invention.
[0041] Figure 8 This is a schematic diagram of a container being stopped, representing a preferred embodiment of the device image burning and testing method of the present invention.
[0042] Figure 9This is a schematic diagram of container deletion in a preferred embodiment of the device image burning and testing method of the present invention;
[0043] Figure 10 This is a schematic diagram of the first image test of a preferred embodiment of the device image burning and testing method of the present invention;
[0044] Figure 11 This is a schematic diagram of the second mirror test of a preferred embodiment of the device mirror burning and testing method of the present invention;
[0045] Figure 12 This is a schematic diagram of the third mirror test of a preferred embodiment of the device mirror burning and testing method of the present invention;
[0046] Figure 13 This is a schematic diagram of local image import, representing a preferred embodiment of the device image burning and testing method of the present invention.
[0047] Figure 14 This is a structural diagram of a preferred embodiment of the device image burning and testing system of the present invention;
[0048] Figure 15 This is a schematic diagram of the operating environment of a preferred embodiment of the development panel of the present invention. Detailed Implementation
[0049] To make the objectives, technical solutions, and advantages of this invention clearer and more explicit, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0050] The preferred embodiment of the device image burning and testing method of the present invention, such as... Figure 1 As shown, the device image burning and testing method includes the following steps:
[0051] Step S10: Obtain initial image information from multiple initial image disks in multiple containers. Based on the image command input by the user, filter multiple target image information from all the initial image information, wherein each container stores multiple initial image disks.
[0052] This allows for the establishment of a connection with a pre-defined container platform via the HDC (Hard Drive Controller), and the querying of the container platform's version information. For example... Figure 2 As shown, after entering the query command for the Docker container platform, you can obtain the version information of Docker on the client and server sides. Obtain the container viewing command and enter it into the command-line tool to query and obtain the container information corresponding to each connected container.
[0053] Specifically, a status query command is obtained and input into the command-line tool to query, thereby obtaining container information corresponding to multiple running containers and initial image information corresponding to each initial image disk in the running containers; an image query command is obtained and input into the command-line tool to query, thereby obtaining target image information for multiple target image disks, wherein the target image information is obtained by the command-line tool from all initial image information.
[0054] After finding no errors in the container platform version information, you can further query the running containers within the container platform, such as... Figure 3 As shown, by inputting the obtained status query command, the container information corresponding to the running container can be output; then, the image query command can be obtained, such as... Figure 4 As shown, by entering the image query command, you can retrieve the target image information in the target image disk. After retrieving the target image information, you can execute the corresponding generated image pull command, such as... Figure 5 As shown, if no error is reported after executing the command and relevant information is output, and the corresponding target image information is obtained, it means that the pull operation of the target image disk is successful. Based on the obtained multiple containers and the image disk in the target container, and establishing the corresponding connection, 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 were not selected, they can be deleted according to pre-saved image deletion commands, such as... Figure 6 As shown, when the image deletion command is entered, the Docker command executes without any error messages and displays a "Deleted" message. Subsequent queries for the deleted image information will not show its details. By deleting invalid image information, storage space on the image disk during the burning process is greatly saved, and invalid image information can be effectively avoided from being burned to the target device, thereby improving the accuracy and efficiency of the burning process.
[0056] Based on the container information corresponding to the running containers, filter out the non-running containers from all the containers mentioned, and delete all non-running containers. For example... Figure 7 As shown, after determining the object to be burned, the invalid container query command can be used to query containers that have been created but are not running. This command can find containers that cannot be found by the status query command, i.e. invalid containers.
[0057] Furthermore, if, based on user needs, it is necessary to stop a running container from running, such as... Figure 8As shown, a container stop command can be generated according to the user's needs. First, the container information of the container that needs to be stopped is generated, and then its operation is stopped. After that, if the container information of the corresponding container is queried again, it will not be displayed.
[0058] After identifying all invalid containers, such as Figure 9 As shown, all invalid containers can be deleted using pre-existing container deletion commands, further simplifying the burning process, avoiding interference from invalid containers, and improving the efficiency of the burning process.
[0059] Furthermore, all the target image information is compared with each other. If there is the same target image information, the target image disk corresponding to the same target image information is randomly deleted to avoid repeated burning of the target image information in the subsequent burning process, thus saving burning time.
[0060] Step S20: Based on all the target image information, select multiple target containers from all the containers, and store the target image information of each target container in the target image disk corresponding to the target container. Perform image burning based on all the target image disks to obtain the corresponding burning information.
[0061] Specifically, the system acquires the user-input burning command, analyzes the burning command to obtain multiple target burning data, and filters out multiple target containers from all the containers based on all the target image information; stores each target image information in the corresponding target image disk in the target container; stores all the target burning data into the corresponding target image disk based on each target image information; and performs image burning based on all the target image disks to obtain the corresponding burning information.
[0062] After identifying the target image disk, the user-input burning command is analyzed to determine the target burning data to be burned. This target burning data is then stored in the target image disks according to their categories. Finally, burning is performed based on these target image disks. After burning is completed, burning information for each target image disk is obtained. This information is then used to test each burning process separately, thereby identifying the target image disks and target containers corresponding to burning processes that may cause problems. This information is then used to prompt the administrator to make adjustments, thereby improving the performance of the burning device.
[0063] Step S30: Obtain multiple test commands input by the user, and input all the test commands into the command line tool to test all the burning information. If the multiple preset information output by the command line tool matches the corresponding burning information, then generate multiple test results.
[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, the system acquires an initial test command input by the user and inputs it 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 image burning initial test is successful is generated. The system also acquires a container test command input by the user and inputs it 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 image burning container test is successful is generated. Finally, the system creates a test directory and a test file, imports the test file into the test directory, and inputs a directory test command input by the user 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 image burning directory test is successful is generated.
[0066] The burning process is tested based on the initial test commands input by the user, for example... Figure 10 As shown, the output message after executing the initial test command is "Hello from Docker!", indicating that the content being burned originates from the Docker container platform, matching the burning information. Therefore, the initial test result for image burning is considered successful. If the initial test result is successful, the container during the burning process can be tested by inputting container test commands, such as... Figure 11 As shown, no errors were reported after executing the container test command, and the output information was a string of characters representing the container ID. The container ID was displayed before the "#" symbol, indicating that the container test of the current image passed, and the container test result was obtained. Finally, a test directory and test files were created. The test files were created in the test directory, and then the directory test command was used to test the container running process, as shown below. Figure 12 As shown, the output of "Hello, World!" indicates that the current directory test result is qualified. By testing the burning process from multiple perspectives, including containers, images, and directories, the efficiency of image burning to devices is improved, data corruption is avoided, and data integrity is guaranteed.
[0067] Furthermore, in addition to testing the initial test results, container test results, and directory test results, locally imported images can also be tested, such as... Figure 13As shown, first, the command to pull the image is executed to switch to the current working directory and save the image in a local container in a preset format. At the same time, other images pulled from the external network are deleted. Then, the command to run the container is executed to run the local container that contains the image. If no error messages are output during the execution of these commands and the message "Hello from Docker!" is output after running the local container, it means that the local image test is successful.
[0068] This invention acquires image disks from multiple containers and a target container, and establishes corresponding connections. This effectively reduces the time required for device identification and improves the efficiency of device identification. Then, the image is burned, and the burning process is tested from multiple perspectives, including containers, images, and directories. This improves the efficiency of image burning to devices, avoids data corruption, and ensures data integrity.
[0069] Furthermore, such as Figure 14 As shown, based on the above-described device image burning and testing method, the present invention also provides a device image burning and testing system, wherein the device image burning and testing system includes:
[0070] The image information acquisition module 51 is used to acquire the initial image information of multiple initial image disks in multiple containers, and to filter multiple target image information from all the initial image information according to the image command input by the user, wherein each container stores multiple initial image disks;
[0071] The image burning module 52 is used to filter multiple target containers from all the containers according to all the target image information, and store each target image information in the target image disk corresponding to the target container, and perform image burning according to all the target image disks to obtain the corresponding burning information;
[0072] The programming test module 53 is used to acquire multiple test commands input by the user, and input all the test commands into the command line tool to test all the programming information. If the multiple preset information output by the command line tool matches the corresponding programming information, multiple test results are generated.
[0073] Furthermore, such as Figure 15 As shown, based on the above-mentioned device image burning and testing method and system, the present invention also provides a development panel, which includes a processor 10, a memory 20 and a display 30. Figure 15 Only a portion of the components of the development panel are shown; however, it should be understood that it is not required to implement all of the components shown, 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 drive or memory of the development panel. In other embodiments, the memory 20 may be an external storage device of the development panel, such as a plug-in hard drive, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the development panel. Further, the memory 20 may include both internal storage units and external storage devices of the development panel. The memory 20 is used to store application software and various types of data installed on the development panel, such as the program code for installing the development panel. The memory 20 can also be used to temporarily store data that has been output or will be output. In one embodiment, the memory 20 stores a device image burning and testing program 40, which can be executed by the processor 10 to implement the device image burning and testing method of this 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 program code stored in the memory 20 or process data, such as executing the device image burning and testing methods.
[0076] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. 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 performed:
[0078] The system obtains initial image information from multiple initial image disks in multiple containers, and filters multiple target image information from all the initial image information according to the image instructions input by the user. Each container stores multiple initial image disks.
[0079] Based on all the target image information, multiple target containers are selected from all the containers, and the target image information of each target container is stored in the target image disk corresponding to the target container. Image burning is performed based on all the target image disks to obtain the corresponding burning information.
[0080] Multiple test commands input by the user are obtained, and all the test commands are input into the command line tool to test all the burning information. If the multiple preset information output by the command line tool matches the corresponding burning information, multiple test results are generated.
[0081] The process includes obtaining initial image information from multiple initial image disks in multiple containers, filtering multiple target image information from all the initial image information according to the image command input by the user, wherein each container stores multiple initial image disks, and further includes:
[0082] Obtain the container viewing command and input it into the command-line tool to query and obtain the container information corresponding to each connected container.
[0083] The process of 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 the image command input by the user, wherein each container stores multiple initial image disks, specifically includes:
[0084] Obtain the status query command and input the status query command into the command line tool to query, and obtain the container information corresponding to multiple running containers, as well as the initial image information corresponding to each initial image disk in the running containers;
[0085] Obtain the image query command, input the image query command into the command line tool to query, and obtain the target image information of multiple target image disks, wherein the target image information is obtained by the command line tool from all the initial image information.
[0086] The process of obtaining a status query command and inputting it into the command-line tool to query for multiple running containers, as well as the initial image information corresponding to each initial image disk in the running containers, further includes:
[0087] Based on the container information corresponding to the running containers, filter out the non-running containers among all the containers, and delete all non-running containers.
[0088] The step of obtaining the image query command involves inputting the image query command into the command-line tool to query and obtain target image information for multiple target image disks. This step further includes:
[0089] Compare all the target image information with each other. If there is a duplicate target image information, randomly delete the target image disk corresponding to the duplicate target image information.
[0090] Specifically, the step of selecting multiple target containers from all the containers based on all the target image information, storing the target image information of each target container in the target image disk corresponding to the target container, and performing image burning based on all the target image disks to obtain the corresponding burning information includes:
[0091] The system obtains the user-input burning command, analyzes the burning command to obtain multiple target burning data, and filters out multiple target containers from all the containers based on all the target image information.
[0092] Each target image information is stored in the corresponding target image disk in the target container. Based on each target image information, all target burning data are stored in the corresponding target image disk. Image burning is performed based on all target image disks to obtain the corresponding burning information.
[0093] 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.
[0094] The process involves acquiring multiple test commands input by the user, inputting all of these commands into a command-line tool to test all the burning information, and generating multiple test results if the preset information output by the command-line tool matches the corresponding burning information. These results specifically include:
[0095] Obtain the initial test command input by the user and input the initial test command into the command line tool. If the first preset information output by the command line tool matches the corresponding burning information, then generate an initial test result indicating that the initial test of image burning is qualified.
[0096] Obtain the container test command input by the user and input the container test command into the command line tool. If the second preset information output by the command line tool matches the corresponding burning information, then generate a container test result indicating that the container test of the image burning is qualified.
[0097] Create a test directory and test file, import the test file into the test directory, and input the user-inputted directory test command 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 image burning directory test 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 the device image burning and testing program, when executed by a processor, implements the steps of the device image burning and testing method described above.
[0099] In summary, this invention provides a device image burning and testing method and related equipment. The method includes: acquiring initial image information from multiple initial image disks in multiple containers; filtering multiple target image information from all the initial image information according to user-inputted image commands, wherein each container stores multiple initial image disks; filtering multiple target containers from 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; performing image burning based on all the target image disks to obtain corresponding burning information; acquiring multiple test commands input by the user, and inputting all the test commands into a command-line tool to test all the burning information; if multiple preset information output by the command-line tool matches the corresponding burning information, generating multiple test results. This invention acquires image disks in multiple containers and target containers and establishes corresponding connections, which can effectively reduce the device identification time and improve the efficiency of device identification. Furthermore, it performs image burning and tests the burning process from multiple perspectives, including containers, images, and directories, improving the efficiency of device image burning, avoiding data corruption, and ensuring data integrity.
[0100] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or development panel that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or development panel. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or development panel that includes that element.
[0101] Of course, those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware (such as a processor, controller, etc.). The program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The computer-readable storage medium can be a memory, magnetic disk, optical disk, etc.
[0102] It should be understood that the application of the present invention is not limited to the examples above. Those skilled in the art can make improvements or modifications based on the above description, and all such improvements and modifications should fall within the protection scope of the appended claims.
Claims
1. A method for image burning and testing of a device, characterized in that, The device image burning and testing method includes: The process involves acquiring initial image information from multiple initial image disks within multiple containers, and filtering multiple target image information from all the initial image information based on user-input image commands. Each container stores multiple initial image disks, specifically including: Obtain the status query command and input the status query command into the command line tool to query, and obtain the container information corresponding to multiple running containers, as well as the initial image information corresponding to each initial image disk in the running containers; Obtain the image query command, input the image query command into the command line tool to query, and obtain the target image information of multiple target image disks, wherein the target image information is obtained by the command line tool from all the initial image information; Based on all the target image information, multiple target containers are selected from all the containers, and the target image information of each target container is stored in the target image disk corresponding to the target container. Image burning is performed based on all the target image disks to obtain the corresponding burning information, specifically including: The system obtains the user-input burning command, analyzes the burning command to obtain multiple target burning data, and filters out multiple target containers from all the containers based on all the target image information. Each target image information is stored in the corresponding target image disk in the target container. Based on each target image information, all target burning data are stored in the corresponding target image disk. Image burning is performed based on all target image disks to obtain the corresponding burning information. Multiple test commands input by the user are obtained, and all the test commands are input into the command line tool to test all the burning information. If the multiple preset information output by the command line tool matches the corresponding burning information, multiple test results are generated.
2. The device image burning and testing method according to claim 1, characterized in that, The process of obtaining initial image information from multiple initial image disks in multiple containers, filtering multiple target image information from all the initial image information according to the image command input by the user, wherein each container stores multiple initial image disks, and further includes: Obtain the container viewing command and input it into the command-line tool to query and obtain the container information corresponding to each connected container.
3. The device image burning and testing method according to claim 1, characterized in that, The process of obtaining a status query command and inputting it into the command-line tool to query for multiple running containers, as well as the initial image information corresponding to each initial image disk in the running containers, further includes: Based on the container information corresponding to the running containers, filter out the non-running containers among all the containers, and delete all non-running containers.
4. The device image burning and testing method according to claim 1, characterized in that, The step of obtaining the image query command involves inputting the image query command into the command-line tool to query and obtain target image information for multiple target image disks. This is followed by: Compare all the target image information with each other. If there is a duplicate target image information, randomly delete the target image disk corresponding to the duplicate target image information.
5. The device image burning and testing method according to claim 1, characterized in that, 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. The process involves acquiring multiple test commands input by the user, inputting all of these commands into a command-line tool to test all the burning information, and generating multiple test results if the preset information output by the command-line tool matches the corresponding burning information. These results specifically include: Obtain the initial test command input by the user and input the initial test command into the command line tool. If the first preset information output by the command line tool matches the corresponding burning information, then generate an initial test result indicating that the initial test of image burning is qualified. Obtain the container test command input by the user and input the container test command into the command line tool. If the second preset information output by the command line tool matches the corresponding burning information, then generate a container test result indicating that the container test of the image burning is qualified. Create a test directory and test file, import the test file into the test directory, and input the user-inputted directory test command 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 image burning directory test is qualified is generated.
6. A device image burning and testing system based on the device image burning and testing method according to any one of claims 1-5, characterized in that, The device image burning and testing system includes: The image information acquisition module is used to acquire the initial image information of multiple initial image disks in multiple containers, and to filter multiple target image information from all the initial image information according to the image command input by the user, wherein each container stores multiple initial image disks; The image burning module is used to filter multiple target containers from all the containers according to all the target image information, and store the target image information of each target container in the target image disk corresponding to the target container, and burn the image according to all the target image disks to obtain the corresponding burning information; The programming test module is used to acquire multiple test commands input by the user, and input all the test commands into the command line tool to test all the programming information. If multiple preset information output by the command line tool matches the corresponding programming information, multiple test results are generated.
7. A development panel, characterized in that, The development panel includes: a memory, a processor, and a device image burning and testing program stored on the memory and executable on the processor. When the device image burning and testing program is executed by the processor, it implements the steps of the device image burning and testing method as described in any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a device image burning and testing program, which, when executed by a processor, implements the steps of the device image burning and testing method as described in any one of claims 1-5.
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