Image forming device upgrade method, device, storage medium and computer equipment

Through the information exchange and verification mechanism between the computer equipment and the image forming device, the accuracy and integrity problems of the package during the upgrade of the image forming device are solved, and the upgrade efficiency is improved.

CN116112613BActive Publication Date: 2025-09-09ZHUHAI PANTUM ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211614395.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-13
Publication Date
2025-09-09
Estimated Expiration
2042-12-13

AI Technical Summary

Technical Problem

In the prior art, during the upgrade process of an image forming device, problems such as missed uploads, repeated uploads, missed downloads, or wrong model packages are prone to occur, resulting in low upgrade efficiency.

Method used

The computer device sends a detection message to obtain the model information of the image forming device, searches for the corresponding target model package from the upgrade package based on the model information, and sends it to the image forming device for upgrade, including legality verification and integrity verification to ensure the accuracy and integrity of the package.

Benefits of technology

This reduces the situation where computer devices repeatedly download or miss downloading model packages, avoids missed uploads, repeated uploads, or erroneous sending of other model packages, and improves the upgrade success rate and efficiency of image forming devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116112613B_ABST
    Figure CN116112613B_ABST
Patent Text Reader

Abstract

Embodiments of the present invention provide an image forming device upgrade method, device, storage medium, and computer equipment. The method includes: the computer equipment, in response to a refresh operation input by a user, sending a detection message to at least one image forming device; the at least one image forming device sending model information to the computer equipment based on the detection message; the computer equipment, in response to the upgrade operation input by the user, searching for a target model package corresponding to each image forming device from a obtained upgrade package based on the at least one model information; the computer equipment sending the target model package corresponding to each image forming device to the image forming device; and the at least one image forming device upgrading based on the target model package. This reduces the computer equipment from repeatedly downloading or missing model packages, and also reduces the computer equipment from missing, repeatedly uploading, or mistakenly sending model packages of other models to the image forming device, thereby improving the upgrade efficiency of the image forming device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical field

[0001] Embodiments of the present invention relate to the technical field of image forming devices, and more particularly to an image forming device upgrading method, device, storage medium, and computer equipment. [Background Technology]

[0002] Currently, image forming device upgrades require a corresponding model package for each model. Managing multiple model packages can lead to missed or duplicate uploads, missed or duplicate downloads of upgrade packages, and even the possibility of mistakenly sending a model package for a different model to a specific image forming device during an upgrade, resulting in upgrade failures and reduced upgrade efficiency. [Summary of the invention]

[0003] In view of this, embodiments of the present invention provide an image forming apparatus upgrade method, apparatus, storage medium, and computer device to solve the problem of reduced upgrade efficiency of image forming apparatuses in the prior art.

[0004] In a first aspect, an embodiment of the present invention provides an upgrade method for an image forming apparatus, comprising:

[0005] The computer device sends a detection message to at least one image forming device in response to a refresh operation input by a user;

[0006] At least one of the image forming devices sends model information to the computer device according to the detection message;

[0007] In response to an upgrade operation input by a user, the computer device searches for a target model package corresponding to each of the image forming devices from the acquired upgrade package according to at least one of the model information, wherein the upgrade package includes a plurality of model packages;

[0008] The computer device sends the target model package corresponding to each of the image forming devices to the image forming device;

[0009] At least one of the image forming devices is upgraded according to the target model package.

[0010] In a possible implementation, before the computer device searches for a target model package corresponding to each image forming apparatus from the acquired upgrade package based on at least one model information, the computer device further includes:

[0011] The computer device determines whether the upgrade package is a legal upgrade package;

[0012] If the computer device determines that the upgrade package is a legitimate upgrade package, the computer device executes the step of searching for a target model package corresponding to each image forming device from the acquired upgrade package based on at least one model information.

[0013] In one possible implementation, the upgrade package includes a first hash value and first data, the first data includes a plurality of the model packages, and the first hash value is located in first header information of the upgrade package. The computer device determines whether the upgrade package is a legitimate upgrade package, including:

[0014] The computer device searches for a first hash value from the first header information;

[0015] The computer device calculates a second hash value based on the first data;

[0016] The computer device determines whether the first hash value is equal to the second hash value;

[0017] If the computer device determines that the first hash value is equal to the second hash value, then the computer device determines that the upgrade package is a legitimate upgrade package;

[0018] If the computer device determines that the first hash value is not equal to the second hash value, it determines that the upgrade package is not a valid upgrade package.

[0019] In one possible implementation, the upgrade package further includes first header information, the first header information includes an offset value, and the model information includes a model name. The computer device searches for a target model package corresponding to each image forming device from the acquired upgrade package based on at least one piece of model information, including:

[0020] The computer device determines, in a traversal order and according to the offset value obtained from the first header information, a starting storage location of the model package;

[0021] The computer device obtains the model package name of the model package according to the starting storage location of the model package;

[0022] The computer device determines whether the model package name is the same as a target model name, where the target model name is a model name obtained from at least one of the model names;

[0023] If the computer device determines that the model package name is the same as the target model name, the model package containing the model package name is used as the target model package;

[0024] If the computer device determines that the model package name is different from the target model name, it executes the step of determining the starting storage position of the model package in accordance with the traversal order and the offset value obtained from the first header information until a model package name that is the same as the target model name is determined or it is determined that the multiple model package names do not include a model package name that is the same as the target model name.

[0025] In a possible implementation, before the at least one image forming apparatus is upgraded according to the target model package, the method further includes:

[0026] The image forming device determines whether the target model package is a complete model package;

[0027] If the image forming apparatus determines that the target model package is a complete model package, the image forming apparatus executes the step of upgrading according to the target model package.

[0028] In a possible implementation, the target model package includes a third hash value and second data, and the third hash value is located in second header information of the target model package. The image forming apparatus determines whether the target model package is a complete model package, including:

[0029] The image forming device searches for the third hash value from the second header information;

[0030] The image forming device calculates a fourth hash value based on the second data;

[0031] The image forming device determines whether the third hash value is equal to the fourth hash value;

[0032] If the image forming apparatus determines that the third hash value is equal to the fourth hash value, then the image forming apparatus determines that the target model package is a complete model package;

[0033] If the image forming apparatus determines that the third hash value is not equal to the fourth hash value, it determines that the target model package is not a complete model package.

[0034] In a possible implementation, the upgrade package includes first header information and multiple model packages, where the first header information includes an offset value and a first hash value; or,

[0035] The upgrade package includes a first hash value and first data, the first hash value is located in the first header information of the upgrade package, and the first data includes an offset value and a plurality of the model packages.

[0036] In a possible implementation, the model package includes second header information and at least one firmware package, the second header information includes a third hash value, and the firmware package includes third header information and firmware data content; or,

[0037] The model package includes a third hash value and second data, the third hash value is located in the second header information of the model package, and the second data includes at least one firmware package.

[0038] In a second aspect, an embodiment of the present invention provides an upgrading device for an image forming device, comprising:

[0039] a first sending module, configured to send a detection message to at least one image forming device in response to a refresh operation input by a user;

[0040] a first receiving module, configured to receive model information sent by at least one of the image forming devices according to the detection message;

[0041] a search module, configured to, in response to an upgrade operation input by a user, search for a target model package corresponding to each of the image forming devices from the acquired upgrade packages based on at least one of the model information, wherein the upgrade packages include a plurality of model packages;

[0042] The first sending module is further configured to send the target model package corresponding to each of the image forming devices to the image forming devices, so that at least one of the image forming devices is upgraded according to the target model package.

[0043] In a third aspect, an embodiment of the present invention provides an upgrading device for an image forming device, comprising:

[0044] a second receiving module, configured to receive a detection message sent by the computer device in response to a refresh operation input by a user;

[0045] A second sending module, configured to send model information to the computer device according to the detection message;

[0046] The second receiving module is further configured to receive an upgrade operation input by the computer device in response to a user, and search for a target model package from the acquired upgrade packages according to the model information, wherein the upgrade package includes multiple model packages;

[0047] An upgrade module is used to upgrade according to the target model package.

[0048] In a fourth aspect, an embodiment of the present invention provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the upgrade method of the image forming device in the above-mentioned first aspect or any possible implementation of the first aspect.

[0049] In a fifth aspect, an embodiment of the present invention provides a computer device comprising a memory and a processor, wherein the memory is used to store information including program instructions, and the processor is used to control the execution of the program instructions, and when the program instructions are loaded and executed by the processor, the steps of the method for upgrading the image forming device in the above-mentioned first aspect or any possible implementation of the first aspect are implemented.

[0050] In a sixth aspect, an embodiment of the present invention provides an image forming device, comprising a memory and a processor, wherein the memory is used to store information including program instructions, and the processor is used to control the execution of the program instructions, and when the program instructions are loaded and executed by the processor, the steps of the upgrade method of the image forming device in the above-mentioned first aspect or any possible implementation of the first aspect are implemented.

[0051] In a technical solution for an image forming device upgrade method, device, storage medium and computer equipment provided by an embodiment of the present invention, the computer equipment sends a detection message to at least one image forming device in response to a refresh operation input by a user; at least one image forming device sends model information to the computer equipment based on the detection message; the computer equipment responds to the upgrade operation input by the user and, based on at least one model information, finds a target model package corresponding to each image forming device from the acquired upgrade package, the upgrade package including multiple model packages; the computer equipment sends the target model package corresponding to each image forming device to the image forming device; at least one image forming device is upgraded according to the target model package, thereby reducing the situation where the computer equipment repeatedly downloads or misses to download model packages, and also reduces the situation where model packages are missed to upload, repeatedly uploaded or model packages of other models are mistakenly sent to the image forming device, so that the image forming device can be upgraded successfully and the upgrade efficiency of the image forming device is improved.

Brief Description of the Drawings

[0052] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0053] Figure 1 A flowchart of an image forming device upgrade method provided by an embodiment of the present invention;

[0054] Figure 2 An upgrade schematic diagram provided by an embodiment of the present invention;

[0055] Figure 3 A schematic diagram of an upgrade package structure provided by an embodiment of the present invention;

[0056] Figure 4 A flowchart of determining whether an upgrade package is a legitimate upgrade package provided by an embodiment of the present invention;

[0057] Figure 5 Another flowchart for determining whether an upgrade package is a legitimate upgrade package provided by an embodiment of the present invention;

[0058] Figure 6 A schematic diagram of searching for a model package according to an embodiment of the present invention;

[0059] Figure 7 A flowchart of finding a target model package corresponding to an image forming device provided by an embodiment of the present invention;

[0060] Figure 8 A flowchart of an embodiment of the present invention for determining whether a target model package is a complete model package;

[0061] Figure 9 Another flowchart for determining whether a target model package is a complete model package is provided by an embodiment of the present invention;

[0062] Figure 10 Another upgrade schematic diagram provided by an embodiment of the present invention;

[0063] Figure 11 A schematic structural diagram of an image forming device upgrade device provided by an embodiment of the present invention;

[0064] Figure 12 A schematic structural diagram of another image forming device upgrade device provided by an embodiment of the present invention;

[0065] Figure 13 A schematic diagram of a computer device provided in an embodiment of the present invention;

[0066] Figure 14 A schematic diagram of an image forming device provided by an embodiment of the present invention. [Specific implementation method]

[0067] In order to better understand the technical solution of the present invention, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0068] It should be understood that the embodiments described are only a portion of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative work are within the scope of protection of the present invention.

[0069] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "an", "the" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise.

[0070] It should be understood that the term "and / or" as used herein is merely a description of the relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.

[0071] It should be understood that although the terms first, second, third, etc. may be used to describe numbers in embodiments of the present invention, these numbers should not be limited to these terms. These terms are merely used to distinguish numbers from each other. For example, a first number may also be referred to as a second number, and similarly, a second number may also be referred to as a first number without departing from the scope of embodiments of the present invention.

[0072] The word "if," as used herein, may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to the determination" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)," depending on the context.

[0073] Figure 1 A flowchart of a method for upgrading an image forming device provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method includes:

[0074] Step 101: A computer device sends a detection message to at least one image forming apparatus in response to a refresh operation input by a user.

[0075] In the embodiments of the present invention, computer devices include, but are not limited to, mobile phones, tablet computers, portable PCs, desktop computers, wearable devices, and the like. Image forming devices include printers, copiers, photocopiers, scanners, fax machines, and the like. The computer device and at least one image forming device are connected via a Universal Serial Bus (USB).

[0076] Figure 2 An upgrade schematic diagram provided by an embodiment of the present invention, such as Figure 2 As shown, Figure 2The figure shows a user, a computer device, and an image forming device. The computer device displays a refresh button, and the user clicks the refresh button; in response to the user clicking the refresh button, the computer device sends a detection message to the image forming device; the image forming device returns model information based on the detection message. The user imports the upgrade package to the computer device, and the computer device verifies and parses the upgrade package. The computer device displays a start button, and the user clicks the start button. In response to the user clicking the start button, the computer device sends a specified model package to the image forming device, and the image forming device returns information about the upgrade process based on the specified model package. Figure 2 As shown, the refresh operation is an operation in which the user clicks the refresh button.

[0077] Step 201: At least one image forming device sends model information to a computer device according to a detection message.

[0078] In the embodiment of the present invention, the model information includes the model name of the image forming apparatus.

[0079] Step 103 : In response to the upgrade operation input by the user, the computer device searches for a target model package corresponding to each image forming apparatus from the acquired upgrade package according to at least one model information, where the upgrade package includes multiple model packages.

[0080] In the embodiment of the present invention, the computer device stores the model information sent by at least one image forming device. Figure 2 As shown, the upgrade operation input by the user is the operation of the user clicking the start button.

[0081] Figure 3 A schematic diagram of an upgrade package structure provided by an embodiment of the present invention, such as Figure 3 As shown, the upgrade package has an upgrade package structure, which is composed of the first header information, model package A, model package B, ..., and N model packages. The number of model packages is an integer greater than 1. Each model package has a model package structure, which is composed of the second header information, table information, firmware package a, firmware package b, ..., and firmware package n. The number of firmware packages is an integer greater than or equal to 1. Each firmware package has a firmware package structure, which is composed of the third header information and firmware data content.

[0082] The computer equipment includes an upgrade package. Figure 3As shown, the upgrade package includes first header information and multiple model packages; the model package includes second header information, table information, and at least one firmware package; and the firmware package includes third header information and firmware data content. This allows a computer device to simply download the upgrade package from an official website server over the network or copy it from a USB flash drive, eliminating the need to pre-search and download model packages corresponding to different image forming device models. This reduces the likelihood of the computer device repeatedly downloading or missing model packages. Furthermore, based on the model information of each image forming device, the computer device can determine the target model package corresponding to each image forming device, reducing the likelihood of missing, duplicate, or incorrectly sending model packages to the image forming device, thereby improving the upgrade efficiency of the image forming device.

[0083] Step 105 : The computer device sends the target model package corresponding to each image forming device to the image forming device.

[0084] Step 203: At least one image forming device is upgraded according to the target model package.

[0085] In an embodiment of the present invention, an image forming device can perform a full package upgrade or a differential upgrade based on a target model package. If the image forming device receives the target model package while it is in the boot phase, the image forming device performs a full package upgrade based on the target model package. For example, if the target model package is received within 3 seconds of the image forming device being booted, the image forming device performs a full package upgrade based on the target model package. The image forming device finds the partition location corresponding to each firmware package based on at least one firmware package; the firmware package includes a burned image file, and the image forming device burns the image file to the partition location, thereby completing the full package upgrade of the image forming device. If the image forming device is in a booted-up and ready state, the computer device can decide whether to perform a full package upgrade or a differential upgrade based on the target model package and the model information.

[0086] An embodiment of the present invention provides an upgrade method for an image forming device, wherein a computer device sends a detection message to at least one image forming device in response to a refresh operation input by a user; at least one image forming device sends model information to the computer device based on the detection message; the computer device responds to the upgrade operation input by the user and, based on at least one model information, finds a target model package corresponding to each image forming device from an acquired upgrade package, wherein the upgrade package includes multiple model packages; the computer device sends the target model package corresponding to each image forming device to the image forming device; at least one image forming device is upgraded based on the target model package, thereby reducing the situation where the computer device repeatedly downloads or misses to download model packages, and also reducing the situation where model packages are missed to be uploaded, repeatedly uploaded, or model packages of other models are mistakenly sent to the image forming device, so that the image forming device can be successfully upgraded and the upgrade efficiency of the image forming device is improved.

[0087] In one possible implementation, Figure 4 A flowchart of determining whether an upgrade package is a legitimate upgrade package is provided in an embodiment of the present invention. Figure 4 As shown, before step 103, the following steps are also included:

[0088] Step 1021 , the computer device determines whether the upgrade package is a legitimate upgrade package. If so, execute step 103 ; if not, execute step 1022 .

[0089] In this embodiment of the present invention, the upgrade package includes a first hash value and first data. The first data includes multiple model packages. The first hash value is located in the first header information of the upgrade package. The upgrade package includes the first header information, which includes the first hash value. The first data is the data in the upgrade package excluding the first hash value. The first data includes the data in the first header information excluding the first hash value and the multiple model packages.

[0090] Figure 5 Another flow chart for determining whether an upgrade package is a legitimate upgrade package is provided in an embodiment of the present invention. Figure 5 As shown, step 1021 may specifically include:

[0091] Step 1021a: The computer device searches for a first hash value from the first header information.

[0092] In the embodiment of the present invention, Figure 6 A schematic diagram of a search model package provided by an embodiment of the present invention, such as Figure 6 As shown, the computer device extracts the legitimacy information of the package from the header of the upgrade package; determines whether the upgrade package is legal; if not, the process ends; if so, performs Message Digest Algorithm 5 (MD5) calculation on the entire upgrade package; determines whether the calculated MD5 value is the same as the MD5 value in the first header information; if not, the process ends; if so, finds the starting position of the model package through the offset in the first header information; cyclically compares whether the name of the model package is consistent with the model name returned by the printer; if not, finds the starting position of the next model package through the offset in the first header information; if so, finds the consistent model package and ends the process. Figure 6 As shown, the first hash value is the MD5 value in the first header information.

[0093] Step 1021b: The computer device calculates a second hash value based on the first data.

[0094] In the embodiment of the present invention, the computer device calculates the first data using a message digest algorithm to calculate a second hash value.

[0095] Step 1021c: The computer device determines whether the first hash value is equal to the second hash value. If so, execute step 1021d; if not, execute step 1021e.

[0096] In the embodiment of the present invention, Figure 6 As shown, the computer device determines whether the calculated MD5 value is the same as the MD5 value in the first header information.

[0097] Step 1021d: The computer device determines that the upgrade package is a legitimate upgrade package.

[0098] Step 1021e: The computer device determines that the upgrade package is not a legitimate upgrade package.

[0099] When the computer device executes step 1021, step 1021 includes: the computer device finds the validity information from the first header information of the upgrade package; and determines whether the upgrade package is valid according to the validity information. Alternatively, step 1021 includes Figure 5 Alternatively, step 1021 includes: the computer device searches for the validity information from the first header information of the upgrade package; determines whether the upgrade package is preliminarily valid based on the validity information; and if so, executes steps 1021a to 1021e.

[0100] Step 103 : In response to the upgrade operation input by the user, the computer device searches for a target model package corresponding to each image forming apparatus from the acquired upgrade package according to at least one model information, where the upgrade package includes multiple model packages.

[0101] In the embodiment of the present invention, the computer device executes the following Figure 1 Step 103 is shown.

[0102] Step 1022: The computer device ends the process.

[0103] In a possible implementation, the upgrade package further includes first header information, the first header information includes an offset value, and the model information includes a model name. Figure 7 A flowchart of finding a target model package corresponding to an image forming device provided by an embodiment of the present invention is shown as follows: Figure 7 As shown, step 103 may specifically include:

[0104] Step 1031: The computer device determines the starting storage location of the model package according to the traversal order and the offset value obtained from the first header information.

[0105] In the embodiment of the present invention, the traversal order is the storage order of the model package. The computer device can determine the starting storage position of the model package through the offset value. Figure 3As shown, the storage order of the model packages is A model package, B model package, ..., N model package. The computer device determines the starting storage position of A model package, the starting storage position of B model package, ..., the starting storage position of N model package one by one according to the traversal order.

[0106] Step 1032: The computer device obtains the model package name of the model package according to the initial storage location of the model package.

[0107] In the embodiment of the present invention, the model package includes the model package name. For example, Figure 3 As shown, the model package name of model package A is model A.

[0108] Step 1033 , the computer device determines whether the model package name is the same as the target model name. If so, execute step 1034 ; if not, execute step 1031 .

[0109] In an embodiment of the present invention, the target model name is a model name obtained from at least one model name. The computer device may obtain the model names one by one from the at least one model name in the order in which the model information was received or in a random order. That is, the target model name is the model name of the image forming device for which a corresponding model package is currently being searched.

[0110] If the computer device determines that the model package name is the same as the target model name, step 1034 is executed; if the computer device determines that the model package name is different from the target model name, step 1031 is executed until a model package name that is the same as the target model name is determined or a model package name that is the same as the target model name is not included in the multiple model package names. Figure 6 As shown, the computer device cyclically compares whether the name of the model package is consistent with the model name returned by the printer; if not, the starting position of the next model package is found through the offset in the first header information; if so, it indicates that the computer device has found the model package corresponding to the image forming device.

[0111] Step 1034: The computer device uses the model package containing the model package name as the target model package.

[0112] In one possible implementation, Figure 8 A flowchart of determining whether a target model package is a complete model package is provided in an embodiment of the present invention. Figure 8 As shown, for any image forming device, before step 203, the following steps are further included:

[0113] Step 2021 : The image forming apparatus determines whether the target model package is a complete model package. If so, step 203 is executed; if not, step 2022 is executed.

[0114] In the embodiment of the present invention, the target model package includes a third hash value and second data, and the third hash value is located in the second header information of the target model package. Figure 3 As shown, the target model package includes second header information, which includes the third hash value. The second data is the data in the target model package excluding the third hash value, and includes the data in the second header information excluding the third hash value and at least one firmware package.

[0115] Figure 9 Another flow chart for determining whether a target model package is a complete model package is provided in an embodiment of the present invention. Figure 9 As shown, step 2021 may specifically include:

[0116] Step 2021a: The image forming apparatus searches for a third hash value from the second header information.

[0117] In the embodiment of the present invention, Figure 10 Another upgrade schematic diagram provided by an embodiment of the present invention is as follows: Figure 10 As shown, the image forming device is in a dormant state, or in an operating state and determines whether a model package has been received. If not, the device state is switched to a dormant state; if so, the model package is verified; if the verification is successful, the model package is parsed; the parsed model package is burned and the process ends. The third hash value is the MD5 value in the second header information.

[0118] Step 2021b: The image forming apparatus calculates a fourth hash value based on the second data.

[0119] In the embodiment of the present invention, the computer device uses a message digest algorithm to calculate the second data to calculate a fourth hash value.

[0120] Step 2021c: The image forming apparatus determines whether the third hash value is equal to the fourth hash value. If so, step 2021d is executed; if not, step 2021e is executed.

[0121] In the embodiment of the present invention, if it is determined that the third Hash value is equal to the fourth Hash value, step 2021d is executed; if it is determined that the third Hash value is not equal to the fourth Hash value, step 2021e is executed. Figure 10 As shown, the image forming apparatus verifies the model package.

[0122] Step 2021d: The image forming apparatus determines that the target model package is a complete model package.

[0123] Step 2021e: The image forming apparatus ends the process.

[0124] Step 203: The image forming apparatus is upgraded according to the target model package.

[0125] Step 2022: The image forming apparatus ends the process.

[0126] In a possible implementation, after step 203, the method further includes: the image forming apparatus generating upgrade information according to the target model package; the image forming apparatus displaying the upgrade information; and / or sending the upgrade information to a computer device so that the computer device displays the upgrade information.

[0127] In the embodiment of the present invention, Figure 2 As shown, the image forming device returns information about the upgrade process to the computer device. For example, the upgrade process information is the upgrade progress. The image forming device displays the upgrade progress; and / or the image forming device sends the upgrade progress to the computer device; and the computer device displays the upgrade progress.

[0128] An embodiment of the present invention provides an upgrade method for an image forming device, wherein a computer device sends a detection message to at least one image forming device in response to a refresh operation input by a user; at least one image forming device sends model information to the computer device based on the detection message; the computer device responds to the upgrade operation input by the user and, based on at least one model information, finds a target model package corresponding to each image forming device from an acquired upgrade package, wherein the upgrade package includes multiple model packages; the computer device sends the target model package corresponding to each image forming device to the image forming device; at least one image forming device is upgraded based on the target model package, thereby reducing the situation where the computer device repeatedly downloads or misses to download model packages, and also reducing the situation where model packages are missed to be uploaded, repeatedly uploaded, or model packages of other models are mistakenly sent to the image forming device, so that the image forming device can be successfully upgraded and the upgrade efficiency of the image forming device is improved.

[0129] An embodiment of the present invention provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the various steps of the embodiment of the upgrade method of the above-mentioned image forming device. For a specific description, please refer to the embodiment of the upgrade method of the above-mentioned image forming device.

[0130] An embodiment of the present invention provides a computer device including a memory and a processor, wherein the memory is used to store information including program instructions, and the processor is used to control the execution of the program instructions. When the program instructions are loaded and executed by the processor, the steps of the embodiment of the upgrade method of the above-mentioned image forming device are implemented. For a specific description, please refer to the embodiment of the upgrade method of the above-mentioned image forming device.

[0131] Figure 11 A schematic structural diagram of an image forming device upgrade device provided by an embodiment of the present invention is shown in FIG. Figure 11As shown, the device includes: a first sending module 11, a first receiving module 12 and a search module 13. The first sending module 11 is connected to the first receiving module 12 and the search module 13, and the first receiving module 12 is connected to the search module 13.

[0132] The first sending module 11 is used to send a detection message to at least one image forming device in response to a refresh operation input by the user; the first receiving module 12 is used to receive model information sent by at least one image forming device based on the detection message; the search module 13 is used to respond to an upgrade operation input by the user, and according to at least one model information, find the target model package corresponding to each image forming device from the acquired upgrade package, and the upgrade package includes multiple model packages; the first sending module 11 is also used to send the target model package corresponding to each image forming device to the image forming device, so that at least one image forming device is upgraded according to the target model package.

[0133] In the embodiment of the present invention, the device further includes a first judgment module 14 . The first judgment module 14 is connected to the search module 13 .

[0134] The first judgment module 14 is used to determine whether the upgrade package is a legal upgrade package; the search module 13 is also used to execute the step of searching for the target model package corresponding to each image forming device from the acquired upgrade package based on at least one model information if the first judgment module 14 determines that the upgrade package is a legal upgrade package.

[0135] In an embodiment of the present invention, the upgrade package includes a first hash value and first data, the first data includes multiple model packages, the first hash value is located in the first header information of the upgrade package, and the first judgment module 14 is specifically used to find the first hash value from the first header information; calculate the second hash value based on the first data; judge whether the first hash value and the second hash value are equal; if the first hash value and the second hash value are equal, then the upgrade package is judged to be a legal upgrade package; if the first hash value and the second hash value are not equal, then the upgrade package is judged to be not a legal upgrade package.

[0136] In an embodiment of the present invention, the upgrade package also includes first header information, the first header information includes an offset value, and the model information includes a model name. The search module 13 is specifically used to determine the starting storage position of the model package according to the offset value obtained from the first header information in a traversal order; obtain the model package name of the model package according to the starting storage position of the model package; determine whether the model package name is the same as the target model name, and the target model name is the model name obtained from at least one model name; if it is determined that the model package name is the same as the target model name, the model package where the model package name is located is used as the target model package; if it is determined that the model package name is different from the target model name, the step of determining the starting storage position of the model package according to the offset value obtained from the first header information in a traversal order is executed until a model package name that is the same as the target model name is determined or it is determined that the multiple model package names do not include a model package name that is the same as the target model name.

[0137] In an embodiment of the present invention, the upgrade package includes first header information and multiple model packages, the first header information includes an offset value and a first hash value; or, the upgrade package includes a first hash value and first data, the first hash value is located in the first header information of the upgrade package, and the first data includes an offset value and multiple model packages.

[0138] In an embodiment of the present invention, the model package includes second header information and at least one firmware package, the second header information includes a third hash value, and the firmware package includes the third header information and firmware data content; or, the model package includes the third hash value and second data, the third hash value is located in the second header information of the model package, and the second data includes at least one firmware package.

[0139] An embodiment of the present invention provides an upgrade device for an image forming device, which sends a detection message to at least one image forming device in response to a refresh operation input by a user; receives model information sent by at least one image forming device based on the detection message; in response to an upgrade operation input by the user, finds a target model package corresponding to each image forming device from the acquired upgrade package according to at least one model information, the upgrade package including multiple model packages; sends the target model package corresponding to each image forming device to the image forming device, so that at least one image forming device is upgraded according to the target model package, thereby reducing the situation where the computer device repeatedly downloads or misses to download the model package, and also reduces the situation where the model package is missed to upload, repeatedly uploaded, or the model package of other models is mistakenly sent to the image forming device, so that the image forming device can be successfully upgraded and the upgrade efficiency of the image forming device is improved.

[0140] Figure 12 A schematic structural diagram of another image forming device upgrade device provided by an embodiment of the present invention, such as Figure 12As shown, the device includes: a second receiving module 21, a second sending module 22 and an upgrading module 23. The second receiving module 21 is connected to the second sending module 22 and the upgrading module 23.

[0141] The second receiving module 21 is used to receive the detection message sent by the computer device in response to the refresh operation input by the user; the second sending module 22 is used to send model information to the computer device according to the detection message; the second receiving module 21 is also used to receive the upgrade operation of the computer device in response to the user input, and according to the model information, find the target model package from the obtained upgrade package, and the upgrade package includes multiple model packages; the upgrade module 23 is used to upgrade according to the target model package.

[0142] In the embodiment of the present invention, the device further includes a second judgment module 24 . The second judgment module 24 is connected to the upgrade module 23 .

[0143] The second judgment module 24 is used to judge whether the target model package is a complete model package; the upgrade module 23 is also used for the second judgment module 24 to judge whether the target model package is a complete model package, then execute the step of upgrading according to the target model package.

[0144] In an embodiment of the present invention, the target model package includes a third hash value and second data, and the third hash value is located in the second header information of the target model package. The second judgment module 24 is specifically used to find the third hash value from the second header information; calculate the fourth hash value based on the second data; judge whether the third hash value is equal to the fourth hash value; if the third hash value is equal to the fourth hash value, it is judged that the target model package is a complete model package; if the third hash value is not equal to the fourth hash value, it is judged that the target model package is not a complete model package.

[0145] In an embodiment of the present invention, the upgrade package includes first header information and multiple model packages, the first header information includes an offset value and a first hash value; or, the upgrade package includes a first hash value and first data, the first hash value is located in the first header information of the upgrade package, and the first data includes an offset value and multiple model packages.

[0146] In an embodiment of the present invention, the model package includes second header information and at least one firmware package, the second header information includes a third hash value, and the firmware package includes the third header information and firmware data content; or, the model package includes the third hash value and second data, the third hash value is located in the second header information of the model package, and the second data includes at least one firmware package.

[0147] An embodiment of the present invention provides an upgrading device for an image forming apparatus, which receives a detection message sent by a computer device in response to a refresh operation input by a user; sends model information to the computer device according to the detection message; receives the upgrade operation input by the computer device in response to the user, and searches for a target model package from the acquired upgrade package according to the model information, wherein the upgrade package includes multiple model packages; and performs an upgrade according to the target model package, thereby reducing the situation where the computer device repeatedly downloads or misses to download the model package, and also reduces the situation where the model package is missed to be uploaded, repeatedly uploaded, or the model package of other models is mistakenly sent to the image forming apparatus, so that the image forming apparatus can be successfully upgraded and the upgrade efficiency of the image forming apparatus is improved.

[0148] Figure 13 Schematic diagram of a computer device provided by an embodiment of the present invention. Figure 13 As shown, the computer device 30 of this embodiment includes: a processor 31, a memory 32, and a computer program 33 stored in the memory 32 and executable by the processor 31. When executed by the processor 31, the computer program 33 implements the upgrade method for an image forming apparatus according to the embodiment. To avoid repetition, a detailed description thereof is omitted here. Alternatively, when executed by the processor 31, the computer program implements the functions of each model / unit in the upgrade apparatus for an image forming apparatus according to the embodiment. To avoid repetition, a detailed description thereof is omitted here.

[0149] The computer device 30 includes, but is not limited to, a processor 31 and a memory 32. Those skilled in the art will understand that Figure 13 This is merely an example of the computer device 30 and does not constitute a limitation of the computer device 30 . The computer device 30 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device 30 may also include input and output devices, network access devices, buses, etc.

[0150] The processor 31 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0151] The memory 32 can be an internal storage unit of the computer device 30, such as a hard drive or memory of the computer device 30. The memory 32 can also be an external storage device of the computer device 30, such as a plug-in hard drive, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card, etc. equipped on the computer device 30. Furthermore, the memory 32 can include both an internal storage unit of the computer device 30 and an external storage device. The memory 32 is used to store computer programs and other programs and data required by the computer device 30. The memory 32 can also be used to temporarily store data that has been output or is about to be output.

[0152] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0153] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, which may be electrical, mechanical or other forms.

[0154] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0155] In addition, the functional units in various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or hardware plus software functional units.

[0156] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform some steps of the method described in various embodiments of the present invention. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., various media that can store program code.

[0157] An embodiment of the present invention provides an image forming device, including a memory and a processor, wherein the memory is used to store information including program instructions, and the processor is used to control the execution of the program instructions. When the program instructions are loaded and executed by the processor, the steps of the embodiment of the upgrade method of the above-mentioned image forming device are implemented. For a specific description, please refer to the embodiment of the upgrade method of the above-mentioned image forming device.

[0158] Figure 14 Schematic diagram of an image forming device provided by an embodiment of the present invention. Figure 14 As shown, the image forming device 40 of this embodiment includes: a processor 41, a memory 42, and a computer program 43 stored in the memory 42 and executable by the processor 41. When executed by the processor 41, the computer program 43 implements the upgrade method for the image forming device of the embodiment. To avoid repetition, a detailed description is omitted here. Alternatively, when executed by the processor 41, the computer program implements the functions of each model / unit in the upgrade device for the image forming device of the embodiment. To avoid repetition, a detailed description is omitted here.

[0159] The image forming device 40 includes, but is not limited to, a processor 41 and a memory 42. Those skilled in the art will understand that Figure 14 It is merely an example of the image forming device 40 and does not constitute a limitation of the image forming device 40. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the image forming device 40 may also include input and output devices, network access devices, buses, etc.

[0160] The processor 41 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0161] The memory 42 may be an internal storage unit of the image forming device 40, such as the hard disk or memory of the image forming device 40. The memory 42 may also be an external storage device of the image forming device 40, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card, etc. equipped on the image forming device 40. Furthermore, the memory 42 may include both the internal storage unit of the image forming device 40 and an external storage device. The memory 42 is used to store computer programs and other programs and data required by the image forming device 40. The memory 42 may also be used to temporarily store data that has been output or is about to be output.

[0162] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0163] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, which may be electrical, mechanical or other forms.

[0164] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0165] In addition, the functional units in various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or hardware plus software functional units.

[0166] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform some steps of the method described in various embodiments of the present invention. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., various media that can store program code.

[0167] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for upgrading an image forming apparatus, characterized in that: include: The computer device sends a detection message to at least one image forming device in response to a refresh operation input by a user; At least one of the image forming devices sends model information to the computer device according to the detection message; In response to an upgrade operation input by a user, the computer device searches for a target model package corresponding to each of the image forming devices from the acquired upgrade package according to at least one of the model information, wherein the upgrade package includes a plurality of model packages; The computer device sends the target model package corresponding to each of the image forming devices to the image forming device; At least one of the image forming devices is upgraded according to the target model package; The upgrade package includes first header information and multiple model packages, and the first header information includes an offset value and a first hash value; or The upgrade package includes a first hash value and first data, the first hash value is located in the first header information of the upgrade package, and the first data includes an offset value and a plurality of the model packages; The model package includes second header information and at least one firmware package, the second header information includes a third hash value, and the firmware package includes third header information and firmware data content; or The model package includes a third hash value and second data, the third hash value is located in the second header information of the model package, and the second data includes at least one firmware package; The image forming apparatus is upgraded according to the target model package, comprising: if the image forming apparatus receives the target model package during a startup phase, the image forming apparatus performs a full package upgrade according to the target model package; Before at least one of the image forming devices is upgraded according to the target model package, it also includes: the image forming device is in a dormant state, or the image forming device is in a running state and determines whether the target model package is received. If not, the device state is switched to a dormant state; if so, the target model package is verified.

2. The method according to claim 1, characterized in that Before the computer device searches for a target model package corresponding to each of the image forming devices from the acquired upgrade package based on at least one of the model information, the computer device further includes: The computer device determines whether the upgrade package is a legal upgrade package; If the computer device determines that the upgrade package is a legitimate upgrade package, the computer device executes the step of searching for a target model package corresponding to each image forming device from the acquired upgrade package based on at least one model information.

3. The method according to claim 2, characterized in that The upgrade package includes a first hash value and first data, the first data includes a plurality of the model packages, the first hash value is located in first header information of the upgrade package, and the computer device determines whether the upgrade package is a legitimate upgrade package, including: The computer device searches for a first hash value from the first header information; The computer device calculates a second hash value based on the first data; The computer device determines whether the first hash value is equal to the second hash value; If the computer device determines that the first hash value is equal to the second hash value, then the computer device determines that the upgrade package is a legitimate upgrade package; If the computer device determines that the first hash value is not equal to the second hash value, it determines that the upgrade package is not a valid upgrade package.

4. The method according to claim 1, wherein The upgrade package further includes first header information including an offset value, and the model information includes a model name. The computer device searches for a target model package corresponding to each image forming device from the acquired upgrade package based on at least one piece of model information, including: The computer device determines, in a traversal order and according to the offset value obtained from the first header information, a starting storage location of the model package; The computer device obtains the model package name of the model package according to the starting storage location of the model package; The computer device determines whether the model package name is the same as a target model name, where the target model name is a model name obtained from at least one of the model names; If the computer device determines that the model package name is the same as the target model name, the model package containing the model package name is used as the target model package; If the computer device determines that the model package name is different from the target model name, it executes the step of determining the starting storage position of the model package in accordance with the traversal order and the offset value obtained from the first header information until a model package name that is the same as the target model name is determined or it is determined that the multiple model package names do not include a model package name that is the same as the target model name.

5. The method according to claim 1, wherein Before the at least one image forming device is upgraded according to the target model package, the method further includes: The image forming device determines whether the target model package is a complete model package; If the image forming apparatus determines that the target model package is a complete model package, the image forming apparatus executes the step of upgrading according to the target model package.

6. The method according to claim 5, characterized in that The target model package includes a third hash value and second data, and the third hash value is located in second header information of the target model package. The image forming apparatus determines whether the target model package is a complete model package, including: The image forming device searches for the third hash value from the second header information; The image forming device calculates a fourth hash value based on the second data; The image forming device determines whether the third hash value is equal to the fourth hash value; If the image forming apparatus determines that the third hash value is equal to the fourth hash value, then the image forming apparatus determines that the target model package is a complete model package; If the image forming apparatus determines that the third hash value is not equal to the fourth hash value, it determines that the target model package is not a complete model package.

7. An upgrading device for an image forming device, characterized in that: include: a second receiving module, configured to receive a detection message sent by the computer device in response to a refresh operation input by a user; A second sending module, configured to send model information to the computer device according to the detection message; The second receiving module is further configured to receive an upgrade operation input by the computer device in response to a user, and search for a target model package from the acquired upgrade packages according to the model information, wherein the upgrade package includes multiple model packages; An upgrade module, configured to perform an upgrade according to the target model package; The upgrade package includes first header information and multiple model packages, and the first header information includes an offset value and a first hash value; or The upgrade package includes a first hash value and first data, the first hash value is located in the first header information of the upgrade package, and the first data includes an offset value and a plurality of the model packages; The model package includes second header information and at least one firmware package, the second header information includes a third hash value, and the firmware package includes third header information and firmware data content; or The model package includes a third hash value and second data, the third hash value is located in the second header information of the model package, and the second data includes at least one firmware package; The upgrade module is specifically configured to upgrade the image forming apparatus according to the target model package if the image forming apparatus receives the target model package during startup; The second receiving module is further used to determine whether the target model package is received when the image forming device is in a dormant state or in a running state. If not, the device state is switched to a dormant state; if so, the target model package is verified.

8. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the method for upgrading an image forming apparatus according to any one of claims 1 to 6.

9. A computer device comprising a memory and a processor, wherein the memory is used to store information including program instructions, and the processor is used to control the execution of the program instructions, characterized in that: When the program instructions are loaded and executed by the processor, the steps of the image forming device upgrade method according to any one of claims 1 to 6 are implemented.

10. An image forming apparatus comprising a memory and a processor, wherein the memory is used to store information including program instructions, and the processor is used to control the execution of the program instructions, wherein: When the program instructions are loaded and executed by the processor, the steps of the image forming device upgrade method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Method and apparatus for upgrading projector

    CN108279913A

  • Multi-model software synchronous upgrading method and device and terminal equipment

    CN109819286A