Interface customization method, image forming device and storage medium
By obtaining user-defined target media data and generating system interfaces and/or application interfaces, the problem that users cannot customize the device display interface by themselves is solved, personalized interface customization is realized, and product competitiveness is enhanced.
Patent Information
- Application Number
- CN202411554661.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-01
- Publication Date
- 2025-02-28
AI Technical Summary
In the prior art, equipment manufacturers can only customize the display interfaces of printers and other devices, and users cannot customize by themselves, which limits personalized needs and product competitiveness.
An interface customization method is provided, by acquiring user-defined target media data, generating a system interface and/or application interface, to realize interface customization of the image forming device.
Users can customize the interface of the image forming device according to their own needs to meet personalized needs and enhance product competitiveness.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image forming technology, and in particular to an interface customization method, an image forming device and a storage medium. Background Art
[0002] Printers and other devices are equipped with a variety of display interfaces. However, currently only device manufacturers can customize the display content of various display interfaces of the device, and companies or individuals who purchase the device cannot customize the device display interface. Summary of the invention
[0003] In view of this, the present application provides an interface customization method, an image forming device and a storage medium, which can realize personalized customization of the system interface and application program interface of the image forming device, thereby meeting the personalized needs of users and improving product competitiveness.
[0004] In a first aspect, an embodiment of the present application provides an interface customization method, which is applied to an image forming device, and the method includes: acquiring target media data, wherein the target media data is obtained based on user settings, and the target media data includes data for system display and / or application display; in response to a target trigger operation, reading the target media data; and generating at least one system interface and / or application interface based on the target media data.
[0005] In a possible implementation, the system interface includes a system startup interface, and the application interface includes at least one of an application startup interface, a graphical user interface, an application icon, and a real-time operation animation.
[0006] In a possible implementation, the acquiring of the target media data includes: receiving the target media data obtained by a user's setting operation on a terminal device; or acquiring the target media data obtained by a user's setting operation on a setting interface in the image forming apparatus.
[0007] In a possible implementation manner, after acquiring the target media data, the method further includes: storing the target media data.
[0008] In one possible implementation, when the target media data includes data for system display, storing the target media data includes: reading a first flag bit, where the first flag bit is used to identify the read / write status of a preset storage area; determining whether the preset storage area is in a writable state based on the first flag bit; and when it is determined that the preset storage area is in a writable state, writing the target media data into the preset storage area.
[0009] In one possible implementation, when it is determined that the preset storage area is in a writable state, writing the target media data to the preset storage area includes: when it is determined that the preset storage area is in a writable state, reading a second flag bit, the second flag bit being used to identify whether there is a write event in the preset storage area; determining whether there is a write event in the current preset storage area based on the second flag bit; and when it is determined that there is no write event in the current preset storage area, writing the target media data to the preset storage area.
[0010] In one possible implementation, when it is determined that there is no write event in the preset storage area, the value of the second flag bit is set from a first target value to a second target value, wherein the first target value is used to indicate that there is no write event and the second target value is used to indicate that there is a write event; the target media data is written to the preset storage area; and the value of the second flag bit is reset from the second target value to the first target value.
[0011] In a possible implementation, when it is determined that a write event exists in the current preset storage area, the method further includes: determining to abandon writing the target media data to the preset storage area; or, waiting for no write event to exist in the preset storage area, writing the target media data to the preset storage area.
[0012] In one possible implementation, when the target media data includes data for system display, reading the target media data in response to a target trigger operation includes: after detecting the target trigger operation, reading a first flag bit, the first flag bit being used to identify a state of a preset storage area; determining whether the preset storage area is in a readable state based on the first flag bit; and reading the target media data from the preset storage area when it is determined that the preset storage area is in a readable state.
[0013] In one possible implementation, when it is determined that the preset storage area is in a readable state, the target media data is read from the preset storage area, including: when it is determined that the preset storage area is in a readable state, determining whether there is a write event in the preset storage area based on a second flag bit, the second flag bit being used to identify whether there is a write event in the preset storage area; when it is determined that there is no write event in the preset storage area, reading the target media data from the preset storage area.
[0014] In a possible implementation, when the target media data includes data for display by an application, storing the target media data includes: determining whether a size of the target media data is consistent with a preset size; when the size of the target media data is inconsistent with the preset size, adjusting the size of the target media data to be consistent with the preset size, and storing the adjusted target media data; or, when the size of the target media data is consistent with the preset size, directly storing the target media data.
[0015] In a possible implementation manner, storing the target media data includes: storing the target media data in a target file.
[0016] In a possible implementation, storing the target media data in the target file includes: deleting the original media data in the target file and then storing the target media data in the target file, wherein the original media data and the target media data are used for display in the same application interface.
[0017] In a possible implementation, before deleting the original media data in the target file, the method further includes: backing up the original media data in the target file.
[0018] In one possible implementation, when the target media data includes data for application display, the reading of the target media data in response to a target trigger operation includes at least one of the following: reading the target media data in response to a start operation of a target application; reading the target media data in response to a trigger operation of a target icon in the target application; reading the target media data in response to a call operation of a target graphical user interface in the target application; reading the target media data in response to a job trigger operation.
[0019] In one possible implementation, receiving target media data obtained by a user's setting operation on a terminal device includes: receiving a target data packet sent by the terminal device; performing a first check on the target data packet, the first check including at least an integrity check and a version check; and obtaining the target media data from the target data packet when it is determined that the first check passes.
[0020] In one possible implementation, when it is determined that the first verification passes, the target media data is obtained from the target data packet, including: when it is determined that the first verification passes, obtaining an interface packet from the target data packet; decompressing the interface packet to obtain a decompressed interface packet; performing a second verification on the decompressed interface packet, the second verification at least including an integrity verification; when it is determined that the second verification passes, obtaining the target media data from the decompressed interface packet.
[0021] In one possible implementation, receiving target media data obtained by a user's setting operation on a terminal device includes: receiving a real-time job animation obtained by a user's setting operation on the terminal device, wherein the setting operation includes a setting operation on the job animation in a print setting interface displayed on the terminal device.
[0022] In one possible implementation, receiving a real-time job animation obtained by a user's setting operation on a terminal device includes: receiving a print job and a job animation data packet sent by the terminal device, wherein the job animation data packet is obtained according to the user's setting operation on the terminal device; performing a third check on the job animation data packet, wherein the third check at least includes an integrity check; and obtaining the real-time job animation from the job animation data packet when it is determined that the third check passes.
[0023] In a possible implementation, after acquiring the real-time job animation from the job animation data packet, the method further includes: executing the print job, and playing the real-time job animation during the execution of the print job.
[0024] In a second aspect, an embodiment of the present application provides an image forming device, comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the image forming device is triggered to execute any one of the methods described in the first aspect.
[0025] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any method described in the first aspect.
[0026] In a fourth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the method described in any one of the first aspects is implemented.
[0027] The present application provides an interface customization method, an image forming device, and a storage medium, which have at least the following technical effects:
[0028] Through the method provided in the embodiment of the present application, the user can upload customized target media data to the image forming device, so that the image forming device displays the interface according to the user-defined target media data. In this way, it can help individual or corporate users to customize the system interface or application program interface of the purchased image forming device and other equipment, which is conducive to meeting the user's personalized preferences and needs, thereby enhancing the competitiveness of the product. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0030] Figure 1 A flowchart of the interface customization method provided in the embodiment of the present application;
[0031] Figure 2 A schematic diagram of a scenario of the interface customization method provided in an embodiment of the present application;
[0032] Figure 3 A schematic diagram of a processing flow of an interface packet provided in an embodiment of the present application;
[0033] Figure 4 A schematic diagram of another processing flow of an interface packet provided in an embodiment of the present application;
[0034] Figure 5 A schematic diagram of a flag bit provided in an embodiment of the present application;
[0035] Figure 6 Another flowchart of the interface customization method provided in the embodiment of the present application;
[0036] Figure 7 Another flowchart of the interface customization method provided in the embodiment of the present application;
[0037] Figure 8 A schematic diagram of another scenario of the interface customization method provided in an embodiment of the present application;
[0038] Fig. 9 A schematic diagram of a processing flow of a job animation provided in an embodiment of the present application;
[0039] Fig.10 A schematic diagram of another scenario of the interface customization method provided in an embodiment of the present application;
[0040] Fig.11 A schematic diagram of another scenario of the interface customization method provided in an embodiment of the present application;
[0041] Fig.12 A schematic diagram of another scenario of the interface customization method provided in an embodiment of the present application;
[0042] Fig.13 A schematic diagram of another scenario of the interface customization method provided in an embodiment of the present application;
[0043] Fig.14 A schematic diagram of another scenario of the interface customization method provided in an embodiment of the present application;
[0044] Fig.15 A schematic diagram of the structure of an image forming device provided in an embodiment of the present application;
[0045] Fig.16 A schematic diagram of the structure of another image forming device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0047] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0048] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0049] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0050] Printers and other devices are equipped with a variety of display interfaces. However, currently only device manufacturers can customize the display content of various display interfaces of the device, and companies or individuals who purchase the device cannot customize the device display interface.
[0051] In view of the above practical problems, embodiments of the present application are proposed.
[0052] The embodiment of the present application may provide an interface customization system, including an image forming apparatus and a terminal device. The interface customization system provided by the embodiment of the present application may be used to execute the interface customization method provided by the embodiment of the present application.
[0053] In a possible implementation, the terminal device may include an application, applet or web page for interface customization, and the application, applet or web page may be used for users to upload target media data, and the target media data may include, for example, picture data and / or video data, and the target media data may include data for system display and / or application display. Among them, the system display includes the display of the boot interface, the display of the boot animation, etc., and the application display may include, for example, the display of the application startup animation, the display of the application icon, the display of the graphical user interface (GUI) of the application, the animation display during the execution of the printing job, the animation display of the application operation, etc. The terminal device may be used to send the above-mentioned target media data uploaded by the user to the image forming device. Furthermore, the image forming device may be used to store the received target media data, and generate at least one system interface and / or application interface according to the target media data. Among them, the system interface may include, for example, the system startup interface. The application interface may include, for example, at least one of the application startup interface, the graphic user interface, the application icon, and the real-time operation animation.
[0054] In another possible implementation, the image forming device may include a web page for interface customization, and the user may directly upload the target media data to the image forming device based on the web page on the image forming device. Then, the image forming device may directly perform system display and / or application display based on the target media data uploaded by the user. In this implementation, it is not necessary to send data to the image forming device through other devices, so the data sending and receiving process can be avoided, which is more efficient.
[0055] The device forms of the above-mentioned image forming apparatus include, but are not limited to: inkjet printers, laser printers, light emitting diode (LED) printers, copiers or multifunction machines, and multifunction peripherals (MFP) that perform the above functions in a single device, etc. The device forms of the above-mentioned terminal devices include, but are not limited to: mobile phones, computers, tablet computers, etc.
[0056] Alternatively, in another implementation, the method provided in the embodiment of the present application can also be applied to other devices besides the image forming device, such as a projector, a computer, etc.
[0057] Through the method provided in the embodiment of the present application, the user can upload customized target media data to the image forming device, so that the image forming device displays an interface according to the user-defined target media data. In this way, the user can realize personalized customization of the system interface and application program interface of the purchased image forming device and other equipment.
[0058] The interface customization method provided in this application is described in detail in the following embodiments.
[0059] See also Figure 1 , is a flow chart of an interface customization method provided in an embodiment of the present application. Figure 1 As shown, the method includes:
[0060] S101. The terminal device sends target media data to the image forming apparatus.
[0061] In an embodiment of the present application, first, the image forming device may obtain target media data, the target media data is obtained based on user settings, and the target media data includes data for system display and / or application display. The image forming device may obtain the target media data by receiving the target media data obtained by the user's setting operation on the terminal device, or may obtain the target media data obtained by the user's setting operation on the setting interface in the image forming device. Furthermore, the image forming device may read the acquired target media data in response to a target trigger operation initiated by the user, and generate at least one system interface and / or application interface based on the target media data.
[0062] The following describes in detail the interface customization method provided in the embodiment of the present application by taking the implementation manner in which the image forming apparatus obtains the target media data through the terminal device as an example.
[0063] In an embodiment of the present application, the terminal device may include, for example, a dedicated application, applet or webpage for interface customization, and the user may log in through a personal account and perform setting operations based on the setting interface of the target media data provided by the dedicated application, applet or webpage to upload the target media data. Among them, the setting operations performed by the user on the terminal device may include template selection operations, data upload operations, etc., and specific reference may be made to the subsequent embodiments of the present application. Furthermore, after receiving the target media data uploaded by the user, the terminal device may send the target media data to the image forming device.
[0064] In one possible implementation, the terminal device may first establish a wireless connection or a wired connection with the image forming device, and then, after the connection is successfully established, the terminal device may directly send the received target media data to the image forming device, wherein the target media data may include picture data and / or video data, and the target media data may be used for system display and / or application display of the image forming device.
[0065] In another possible implementation, Figure 2 As shown, the terminal device may first package the received target media data into an interface package. Figure 2 , the target media data may include data for system display and data for application display. The data for system display may include image files displayed in the boot phase of system startup, image files displayed in the kernel phase of system startup, animation files displayed in the kernel phase of system startup, etc. The data for application display may include animation files displayed in the application startup phase, image files for application icon display, image files for graphical user interface display, etc.
[0066] Furthermore, the terminal device may perform data processing on the obtained interface packet to obtain a target data packet. Furthermore, the terminal device may establish a wireless connection or a wired connection with the image forming device, wherein the wired connection mode may be, for example, a Universal Serial Bus (USB) mode, etc. The wireless connection mode may be, for example, Bluetooth, Wi-Fi, Near Field Communication (NFC), Ethernet, File Transfer Protocol (FTP), QR Code (Quick Response Code) transmission, etc. Furthermore, after the connection is successfully established, the terminal device may send the target data packet to the image forming device, specifically, the compressed target data packet may be sent to the image forming device.
[0067] The above data processing of the interface package can refer to Figure 3 ,like Figure 3 As shown, the terminal device can generate a corresponding first check value based on the message digest algorithm (MD5) according to the interface packet. Furthermore, the terminal device can compress the interface packet and generate a corresponding second check value based on MD5 according to the compressed interface packet, version information, and the first check value. Then, the terminal device can generate a target data packet according to the compressed interface packet, version information, the first check value, and the second check value.
[0068] S102: The image forming device receives and stores target media data.
[0069] In an embodiment of the present application, the background system program of the image forming device can automatically detect whether data is received. In an implementation method in which the terminal device directly sends the target media data, the image forming device can directly store the received target media data after detecting the target media data. In an implementation method in which the terminal device sends a target data packet, after receiving the target data packet sent by the terminal device, the image forming device can first perform a first check on the target data packet, and the first check at least includes an integrity check and a version check. When it is determined that the first check passes, the image forming device can obtain the target media data from the target data packet. Specifically, when it is determined that the first check passes, the image forming device can obtain an interface package from the target data packet. Furthermore, the image forming device can decompress the interface package to obtain a decompressed interface package. Further, the image forming device can perform a second check on the decompressed interface package, and the second check at least includes an integrity check. When it is determined that the second check passes, the image forming device can obtain the target media data from the decompressed interface package.
[0070] For ease of understanding, the following is a detailed description with reference to the accompanying drawings. Figure 4 As shown, after receiving the target data packet, the image forming device may first perform an integrity check on the target data packet. In one possible implementation, the image forming device may use the MD5 algorithm to calculate a check value corresponding to the target data packet, and compare the check value with a second check value contained in the target data packet. When it is determined that the comparison results are consistent, it can be determined that the check is passed. At this time, the image forming device can perform version verification on the target data packet based on the version information contained in the target data packet. On the contrary, when the comparison results are inconsistent, it is determined that the check fails. At this time, it can be determined that the data reception fails, and the method flow can be terminated.
[0071] Furthermore, when performing version verification, if the version verification fails, the method flow can also be terminated. If the version verification passes, the image forming device can perform integrity verification on the interface package included in the target data package.
[0072] In a possible implementation, the image forming device may first decompress the interface packet, and then, based on the MD5 algorithm, calculate the check value corresponding to the interface packet, and compare the check value with the first check value contained in the target data packet. If the comparison results are determined to be consistent, it can be determined that the check is passed, and the image forming device can store the target media data contained in the interface packet. If the comparison results are determined to be inconsistent, it can be determined that the check fails, and the method flow can be terminated.
[0073] The specific implementation method of storing the target media data in the image forming apparatus is described below.
[0074] In the present application examples, reference Figure 2 After the image forming device preprocesses the target data packet, the target media data therein can be obtained, including data for system display and data for application display. In the embodiment of the present application, the storage methods corresponding to the two types of data can be different. The storage methods of the two types of data are described below.
[0075] For data used for system display, the image forming device may include a preset storage area, which may be, for example, a portion of memory addresses in the flash, and the starting physical address and size of the memory address may be modified, for example, by modifying environment variables. After acquiring the data used for system display, the image forming device may store the data into a structure, and then write the structure into the preset storage area, thereby realizing the storage of the data used for system display.
[0076] In some implementation scenarios, if a power outage occurs during the process of writing data to a preset storage area, the written data will be incomplete. When the image forming device displays an interface based on the incomplete data, a display error will occur. In other implementation scenarios, if concurrent writing occurs during the process of writing data to a preset storage area, a write error will easily occur. When the current image forming device displays an interface based on erroneous data, a display error will occur.
[0077] In view of the above scenario, in order to prevent the target image forming device from displaying an interface based on incomplete or erroneous data, in an embodiment of the present application, a protection flag may be stored in the image forming device, and the image forming device may write and read data based on the protection flag. The protection flag may be located at a preset position of the memory, such as the first 256 bytes of the memory.
[0078] Specifically, the protection flag may include a first flag bit and a second flag bit. The first flag bit may be used to identify the current read / write state of the preset storage area, including a writable state, a readable state, and a readable / writable state. The second flag bit may be used to identify whether there is a write event in the preset storage area, including whether there is no write event or there is a write event.
[0079] Figure 5 The states represented by the first flag bit and the second flag bit under different values are given. Figure 5As shown, when the first flag bit is set to 1, it can indicate that the preset storage area is currently only writable, when the value is 0, it can indicate that the preset storage area is currently only readable, and when the value is 2, it can indicate that the preset storage area is currently readable and writable. When the second flag bit is set to 1, it can indicate that there is a write event in the preset storage area, and when the second flag bit is set to 0, it can indicate that there is no write event in the preset storage area.
[0080] In the embodiment of the present application, any picture data or video data used for system display may correspond to a first flag bit and a second flag bit, which are used by the image forming device to determine whether the picture data or video data can be written or read from the preset storage area. For ease of description and understanding, the data writing process is described below using any picture data or video data as an example.
[0081] like Figure 6 As shown, the image forming device may first determine whether the preset storage area is in a writable state according to the first flag. When it is determined that the value of the first flag is 1 or 2, the image forming device may determine that the preset storage area is in a writable state, and at this time, the image forming device may write data into the preset storage area. Otherwise, it is determined that the preset storage area is in a non-writable state, and at this time, writing data may be abandoned.
[0082] In a specific implementation, after determining that the preset storage area is in a writable state, the image forming device may further determine whether there is a write event in the preset storage area based on the second flag. When the value of the second flag is 0, it indicates that there is no write event at present, and the image forming device may write data to the preset storage area. When the value of the second flag is 1, it indicates that there is a write event at present. To prevent concurrent writes from causing data write errors, the image forming device may abandon writing data at this time, or the image forming device may wait until the current write event in the preset storage area ends before writing the target media data to the preset storage area. Specifically, when the value of the second flag switches from 1 to 0, the image forming device may determine that the current write event ends, and at this time, the image forming device may write data.
[0083] Further, in the case where it is determined that there is no write event in the preset storage area, the image forming device may first set the value of the second flag bit from the first target value to the second target value before writing the target media data into the preset storage area. The first target value is used to indicate that there is no write event, and the first target value may be 0. The second target value is used to indicate that there is a write event, and the second target value is, for example, 1. This can prevent subsequent concurrent writes. After writing the target media data into the preset storage area, the image forming device may reset the value of the second flag bit from the second target value to the first target value, for example, from 1 to 0. At this time, subsequent write events can be executed normally.
[0084] For data used for application display, the image forming device may store the data in a target file, where the target file is a file used to store original media data, and the original media data and the target media data are used for displaying the same application interface. Specifically, the image forming device may compare the size of the received target media data with a preset size to determine whether the size of the target media data is consistent with the preset size. The preset size refers to a standard size, which can be set in advance. In the case where the size of the target media data is inconsistent with the preset size, the image forming device may first perform algorithm re-sampling on the target media data to achieve reduction or enlargement processing, thereby adjusting the size of the target media data to be consistent with the preset size, and then store the adjusted target media data. This implementation method can prevent application display errors caused by non-standard sizes of files uploaded by users. In the case where the size of the target media data is consistent with the preset size, the image forming device may directly store the target media data. In some embodiments, the preset size may correspond to the size of the original media data. The image forming device may compare the size of the received target media data with the size of the original media data, so as to ensure that the size of the target media data stored in the target file is consistent with the size of the original media data.
[0085] In the embodiment of the present application, storing the target media data in the target file may specifically be storing the target media data in the target file after deleting the original media data in the target file. In a further implementation, before deleting the original media data, the image forming device may first back up the original media data. This implementation may prevent the original media data from being lost.
[0086] S103 . In response to the target triggering operation, the image forming apparatus reads target media data.
[0087] S104: The image forming device displays at least one target interface generated by the target media data.
[0088] In an embodiment of the present application, the image forming device may read the target media data in response to a target trigger operation. The target interface may include a system interface and / or an application interface. The target trigger operation for triggering the image forming device to read the target media data may be different for data for system display and data for application display.
[0089] Specifically, for data used for system display, the target trigger operation that triggers the image forming device to read the target media data may be a trigger operation for system startup. Specifically, after the image forming device stores the data uploaded by the user for system display, it may read the corresponding data after detecting the trigger operation for system startup next time, thereby displaying the user-defined system startup interface. In the embodiment of the present application, during the system startup process of the image forming device, the user-defined image or animation for each stage may be displayed in the display interface at different stages of the system startup. For example, the user-defined image for each stage may be displayed at the boot stage of the system startup, and the user-defined image and animation for each stage may be displayed in sequence at the kernel stage of the system startup.
[0090] For data for application display, the target triggering operation that triggers the image forming device to read the target media data may be a startup operation of the target application, a triggering operation of the target icon in the target application, a calling operation of the target graphical user interface in the target application, a job triggering operation, etc. Specifically, after the image forming device stores the data uploaded by the user for application display, the image forming device may read the target media data after detecting the startup operation of the target application next time, thereby displaying the user-defined application startup interface, application icon, graphical user interface, etc. Alternatively, the target media data may be read when the triggering operation of the target icon in the target application is detected next time, thereby displaying the user-defined application icon. Alternatively, the target media data may be read when the calling operation of the target graphical user interface in the target application is detected next time, thereby displaying the user-defined graphical user interface. Alternatively, the target media data may be read when the job triggering operation initiated by the user in the application is detected next time, thereby displaying the user-defined real-time job animation.
[0091] The following describes the data reading process by taking any picture data or video data among the data used for system display as an example.
[0092] like Figure 7 As shown, the image forming device may first determine whether the preset storage area is in a readable state according to the first flag bit. For example, when the value of the first flag bit is 0 or 2, it is determined that the preset storage area is in a readable state. At this time, the image forming device may read data from the preset storage area. When it is determined that the preset storage area is in an unreadable state, the image forming device may terminate the process of the method and display the default system startup interface.
[0093] In a specific implementation, when determining that the preset storage area is in a readable state, the image forming device may also determine whether there is a write event in the preset storage area according to the second flag. Exemplarily, when the value of the second flag is 0, it is determined that there is no write event currently, which means that the data currently written in the preset storage area is complete data. At this time, the image forming device may read data from the preset storage area. When the value of the second flag is 1, it means that there is a write event currently, which means that the data currently written in the preset storage area is incomplete data. At this time, in order to prevent the interface display error caused by reading incomplete data, the image forming device may abandon reading the data in the preset storage area and directly display the default system startup interface.
[0094] The above technical solution can help individuals or enterprises customize the system startup interface or application startup interface of purchased printing devices, etc., which is conducive to meeting the personalized preferences and needs of users.
[0095] Alternatively, in another implementation, the image forming device may display a setting interface for the target media data, and the user may perform setting operations based on the setting interface of the image forming device, and directly upload the target media data through the image forming device without sending it to the image forming device through the terminal device. The setting operations performed by the user on the setting interface of the image forming device may include, for example, template selection operations or data upload operations, and the details may refer to the subsequent embodiments of the present application. With this implementation, there is no need to send and receive the target media data, and higher efficiency is achieved.
[0096] In another embodiment of the present application, the user-customizable application interface may also include real-time job animations displayed by the image forming device during the execution of the print job, that is, when the image forming device is executing the print job, the interface may display animations or images customized by the user.
[0097] Specifically, in the printing scenario, the terminal device may display the following Figure 8The print setting interface shown in the figure may include a switch button 81 for the job animation setting function. The terminal device may determine whether to turn on or off the job animation setting function in response to the user's triggering operation on the switch button. When the job animation setting function is turned on, a job animation setting button 82 and an edit job animation button 83 may be displayed in the print setting interface. In response to the triggering operation on the job animation setting button 82, the terminal device may display a job animation setting interface, and the user may reselect the job animation in the job animation setting interface, or upload the job animation. In response to the triggering operation on the job animation editing button 83, the terminal device may display a job animation editing interface, and the user may edit the selected job animation in the job animation editing interface.
[0098] Furthermore, the terminal device may generate a job animation data packet according to the job animation selected by the user in response to the user's triggering operation on the print button, and send the job animation data packet and the job to be printed to the image forming device respectively. It is understandable that, if the user does not set the job animation, the data packet generated according to the default job animation may be sent to the image forming device. Fig. 9 As shown, similar to the aforementioned target data packet, the operation animation data packet may include data information such as the operation animation verification value, data format, size, name, etc. generated according to the real-time operation animation, as well as the whole package verification value generated according to the real-time operation animation, the real-time operation animation verification value, and the data information.
[0099] After receiving the complete job animation data packet, the image forming device may first perform a third check on the job animation data packet, and the third check may include an integrity check. When it is determined that the third check passes, the real-time job animation may be obtained from the job data packet. Further, after starting to execute the print job, the image forming device may play the real-time job animation during the execution of the print job. Wherein, when it is determined that the third check passes, the specific process of obtaining the real-time job animation from the job data packet may be that when the third check passes, the integrity check may be performed on the real-time job animation in the job data packet, and after it is determined that the check passes, the real-time job animation may be obtained from the job data packet.
[0100] In the following embodiments, a method for a user to perform setting operations in a terminal device or an image forming apparatus to upload target media data is described.
[0101] The terminal device or image forming apparatus may display a setting interface of the target media data, which may be provided by a web page, a dedicated application, or a small program, etc. The terminal device or image forming apparatus may obtain the target media data selected or uploaded by the user according to the setting operation of the user on the setting interface of the target media data. The following is a detailed description.
[0102] like Fig.10 As shown, first, the account login interface can be displayed, and the device options can be displayed in the account login interface, including non-printer devices and printer devices. When the user logs in using a terminal device such as a computer or a mobile phone, a non-printer device can be selected, and when the user logs in using a printer device, a printer device can be selected.
[0103] Further, in response to the user's login operation, the following information may be displayed: Fig.11 The mode selection interface shown in the figure can be used by the user to select a customization method for the personalized interface customization, including a theme template method and a private customization method. Among them, the theme template method can be used to provide a variety of theme templates for users to choose from, and display the interface according to the template selected by the user. The private customization method can be used to display the interface based on pictures or animations uploaded by the user.
[0104] In response to the user's selection of a theme template option, the following may be displayed: Fig.12 The display interface of multiple theme modes shown in the figure. The theme modes include but are not limited to the small fresh mode, black and white mode, elegant mode, cartoon mode, flower mode, sunshine mode, Chinese red mode, business style mode, mountain and water mode, and you can click the "more" button to get other modes. Further, in response to the user's selection operation of any of the theme modes, the following display interface can be displayed: Fig.13 The browsing interface of the theme pictures shown in the figure may include display windows of each theme picture included in the corresponding theme mode, and may also include an apply button. In response to the user's triggering operation of the apply button, the corresponding theme mode may be applied. At the same time, it may also include a return button, which may return to the previous state in response to the user's triggering operation of the return button. Fig.12 The display interface of multiple theme modes is shown.
[0105] In response to the user's selection of the customized option, a media data upload interface may be displayed. Fig.14 As shown, the media data upload interface may include multiple media data upload options, for example, may include upload options for the system startup interface at the boot stage of the system startup, upload options for the system startup interface at the kernel stage of the system startup, upload options for the system startup animation, upload options for application icons, upload options for the application startup interface, and upload options for the application's graphical user interface and icon. Among them, the upload options for the application's graphical user interface and icon can be set by the user by inputting the identification information of the graphical user interface or icon to be set.
[0106] Furthermore, each media data upload option may correspond to an upload button and a selection button. In response to the triggering operation of the selection button, multiple media data provided by the device itself may be displayed, including pictures, animations, etc. The user may select any media data from the displayed media data for generating a personalized interface, including a system interface and / or an application program interface. In response to the triggering operation of the upload button, local data or network data uploaded by the user may be received for generating a personalized interface, that is, the target media data uploaded by the user may be obtained for generating a system interface and / or an application program interface.
[0107] See also Fig.15 Schematic diagram of the structure of an image forming device provided in an embodiment of the present application. Fig.15 As shown, the device includes: a receiving unit 31, a reading unit 32, and an executing unit 33.
[0108] The receiving unit 31 is used to obtain target media data, where the target media data is obtained based on user settings, and the target media data includes data for system display and / or application display.
[0109] The reading unit 32 is used for reading target media data in response to a target trigger operation.
[0110] The execution unit 33 is used to generate at least one system interface and / or application program interface according to the target media data.
[0111] As a possible implementation manner, the system interface includes a system startup interface, and the application interface includes at least one of an application startup interface, a graphical user interface, an application icon, and a real-time operation animation.
[0112] As a possible implementation manner, the receiving unit 31 is specifically used to receive the target media data obtained by the user's setting operation on the terminal device; or, to obtain the target media data obtained by the user's setting operation on the setting interface in the image forming apparatus.
[0113] As a possible implementation manner, the receiving unit 31 is further configured to store the target media data.
[0114] As a possible implementation method, when the target media data includes data for system display, the receiving unit 31 is specifically used to read a first flag bit, where the first flag bit is used to identify the read and write status of a preset storage area; determine whether the preset storage area is in a writable state based on the first flag bit; and when it is determined that the preset storage area is in a writable state, write the target media data into the preset storage area.
[0115] As a possible implementation method, the receiving unit 31 is specifically used to, when determining that the preset storage area is in a writable state, read a second flag bit, the second flag bit being used to identify whether there is a write event in the preset storage area; based on the second flag bit, determine whether there is a write event in the current preset storage area; and when determining that there is no write event in the current preset storage area, write the target media data into the preset storage area.
[0116] As a possible implementation method, the receiving unit 31 is specifically used to, when it is determined that there is currently no write event in the preset storage area, set the value of the second flag bit from the first target value to the second target value, the first target value being used to indicate that there is no write event, and the second target value being used to indicate that there is a write event; write the target media data to the preset storage area; and reset the value of the second flag bit from the second target value to the first target value.
[0117] As a possible implementation method, the receiving unit 31 is also used to, when it is determined that a write event exists in the current preset storage area, determine to abandon writing the target media data into the preset storage area; or, after waiting for no write event to exist in the preset storage area, write the target media data into the preset storage area.
[0118] As a possible implementation method, in the case where the target media data includes data for system display, the reading unit 32 is specifically used to, after detecting the target trigger operation, read a first flag bit, the first flag bit being used to identify the read / write status of a preset storage area; determine whether the preset storage area is in a readable state based on the first flag bit; and read the target media data from the preset storage area when it is determined that the preset storage area is in a readable state.
[0119] As a possible implementation method, the reading unit 32 is specifically used to, when it is determined that the preset storage area is in a readable state, determine whether there is a write event in the preset storage area based on a second flag bit, and the second flag bit is used to identify whether there is a write event in the preset storage area; when it is determined that there is no write event in the preset storage area, read the target media data from the preset storage area.
[0120] As a possible implementation method, when the target media data includes data for application display, the receiving unit 31 is specifically used to determine whether the size of the target media data is consistent with a preset size; when the size of the target media data is inconsistent with the preset size, adjust the size of the target media data to be consistent with the preset size, and store the adjusted target media data; or, when the size of the target media data is consistent with the preset size, directly store the target media data.
[0121] As a possible implementation method, the reading unit 32 is specifically used to read the target media data in response to a startup operation on the target application; read the target media data in response to a trigger operation on a target icon in the target application; read the target media data in response to a call operation on a target graphical user interface in the target application; and read the target media data in response to a job trigger operation.
[0122] As a possible implementation method, the receiving unit 31 is specifically used to receive a target data packet sent by a terminal device; perform a first check on the target data packet, the first check at least including an integrity check and a version check, and obtain target media data from the target data packet when it is determined that the first check passes.
[0123] As a possible implementation method, the receiving unit 31 is specifically used to, when it is determined that the first check passes, obtain the interface packet from the target data packet; decompress the interface packet to obtain a decompressed interface packet; perform a second check on the decompressed interface packet, the second check at least includes an integrity check; and when it is determined that the second check passes, obtain the target media data from the decompressed interface packet.
[0124] As a possible implementation manner, the receiving unit 31 is further used to receive a real-time job animation obtained by a setting operation performed by a user on a terminal device, where the setting operation includes a setting operation on the job animation in a print setting interface displayed on the terminal device.
[0125] As a possible implementation method, the receiving unit 31 is specifically used to receive a print job and a job animation data packet sent by a terminal device, where the job animation data packet is obtained according to the setting operation of the user on the terminal device; perform a third check on the job animation data packet, where the third check at least includes an integrity check; and when it is determined that the third check passes, obtain real-time job animation from the job animation data packet.
[0126] In some embodiments, the receiving unit 31 , the reading unit 32 , and the executing unit 33 are disposed in a processor of the image forming device.
[0127] The above-mentioned image forming device provided in the embodiment of the present application can meet the customization of the system startup interface or application startup interface by individual or corporate users, which is conducive to meeting the personalized preferences and needs of users.
[0128] Corresponding to the above embodiment, Fig.16Another structural diagram of an image forming device provided in an embodiment of the present invention is shown, and the image forming device 400 may include: a processor 401, a memory 402, and a communication unit 403. These components communicate via one or more buses, and those skilled in the art may understand that the structure of the image forming device shown in the figure does not constitute a limitation on the embodiment of the present invention, and it may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0129] The communication unit 403 is used to establish a communication channel so that the image forming apparatus can communicate with other devices, receive user data sent by other devices or send user data to other devices.
[0130] The processor 401 is the control center of the image forming device. It uses various interfaces and lines to connect various parts of the entire image forming device. It runs or executes software programs, instructions, and / or modules stored in the memory 402, and calls data stored in the memory to perform various functions of the image forming device and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of a plurality of packaged ICs with the same or different functions. For example, the processor 401 can only include a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.
[0131] The memory 402 is used to store the execution instructions of the processor 401. The memory 402 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0132] When the execution instructions in the memory 402 are executed by the processor 401 , the image forming apparatus 400 is enabled to execute part or all of the steps in the embodiments of the present application.
[0133] In a specific implementation, the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the interface customization method provided by the present invention. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0134] In a specific implementation, the present invention also provides a computer program product, wherein the computer program product includes executable instructions, and when the executable instructions are executed on a computer, the computer executes part or all of the steps in each embodiment of the interface customization method provided by the present invention.
[0135] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present invention or certain parts of the embodiments.
[0136] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0137] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0138] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0139] 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 determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0140] In the several embodiments provided in the present application, 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 only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0141] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0142] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
[0143] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
Claims
1. An interface customization method, characterized in that: Applied to an image forming device, the method comprises: Acquire target media data, where the target media data is obtained based on user settings, and the target media data includes data for system display and / or application display; In response to a target trigger operation, reading the target media data; At least one system interface and / or application program interface is generated according to the target media data.
2. The method according to claim 1, characterized in that The system interface includes a system startup interface, and the application interface includes at least one of an application startup interface, a graphical user interface, an application icon, and a real-time operation animation.
3. The method according to claim 1, characterized in that The obtaining of target media data includes: Receiving target media data obtained by a user's setting operation on a terminal device; or, Target media data obtained by a setting operation performed by a user on a setting interface in the image forming device is acquired.
4. The method according to claim 1, characterized in that: After acquiring the target media data, the method further includes: storing the target media data.
5. The method according to claim 4, characterized in that In the case where the target media data includes data for system display, storing the target media data includes: Reading a first flag bit, where the first flag bit is used to identify a read / write status of a preset storage area; Determining whether the preset storage area is in a writable state according to the first flag bit; When it is determined that the preset storage area is in a writable state, the target media data is written into the preset storage area.
6. The method according to claim 5, characterized in that When determining that the preset storage area is in a writable state, writing the target media data into the preset storage area comprises: When it is determined that the preset storage area is in a writable state, reading a second flag bit, where the second flag bit is used to identify whether there is a write event in the preset storage area; Determining, according to the second flag bit, whether there is a write event in the current preset storage area; When it is determined that there is no write event in the preset storage area, the target media data is written into the preset storage area.
7. The method according to claim 6, characterized in that The step of writing the target media data into the preset storage area when it is determined that there is no write event in the preset storage area currently includes: When it is determined that there is no write event in the preset storage area, the value of the second flag bit is set from a first target value to a second target value, wherein the first target value is used to indicate that there is no write event, and the second target value is used to indicate that there is a write event; Writing the target media data into the preset storage area; The value of the second flag bit is reset from the second target value to the first target value.
8. The method according to claim 6, characterized in that In the case where it is determined that a write event occurs in the current preset storage area, the method further includes: Determine to abandon writing the target media data into the preset storage area; or, After waiting for no write event to occur in the preset storage area, the target media data is written into the preset storage area.
9. The method according to claim 1, characterized in that: In a case where the target media data includes data for system display, the step of reading the target media data in response to the target trigger operation includes: After detecting the target trigger operation, reading a first flag bit, the first flag bit is used to identify the read and write status of the preset storage area; Determining whether the preset storage area is in a readable state according to the first flag bit; When it is determined that the preset storage area is in a readable state, the target media data is read from the preset storage area.
10. The method according to claim 9, characterized in that In the case where it is determined that the preset storage area is in a readable state, reading the target media data from the preset storage area includes: In the case where it is determined that the preset storage area is in a readable state, determining whether there is a write event in the preset storage area according to a second flag bit, where the second flag bit is used to identify whether there is a write event in the preset storage area; When it is determined that there is no write event in the preset storage area, the target media data is read from the preset storage area.
11. The method according to claim 4, characterized in that In a case where the target media data includes data for display by an application, storing the target media data includes: Determining whether the size of the target media data is consistent with a preset size; When the size of the target media data is inconsistent with the preset size, adjusting the size of the target media data to be consistent with the preset size, and storing the adjusted target media data; or When the size of the target media data is consistent with the preset size, the target media data is directly stored.
12. The method according to claim 4, characterized in that In a case where the target media data includes data for display by an application, storing the target media data includes: The target media data is stored in a target file.
13. The method according to claim 12, characterized in that The storing the target media data into a target file comprises: After deleting the original media data in the target file, the target media data is stored in the target file, and the original media data and the target media data are used for display in the same application program interface.
14. The method according to claim 13, characterized in that Before deleting the original media data in the target file, the method further includes: Back up the original media data in the target file.
15. The method according to claim 1, characterized in that In the case where the target media data includes data for display by an application, the step of reading the target media data in response to the target trigger operation includes at least one of the following: In response to a start operation on a target application, reading the target media data; In response to a triggering operation on a target icon in the target application, reading the target media data; In response to a call operation on a target graphical user interface in the target application, reading the target media data; In response to the job triggering operation, the target media data is read.
16. The method according to claim 3, characterized in that Receiving target media data obtained by a user's setting operation on a terminal device, including: Receive target data packets sent by terminal equipment; Performing a first check on the target data packet, the first check at least comprising an integrity check and a version check; When it is determined that the first verification passes, target media data is obtained from the target data packet.
17. The method according to claim 16, characterized in that When it is determined that the first verification passes, obtaining target media data from the target data packet includes: When it is determined that the first verification passes, obtaining an interface packet from the target data packet; Decompressing the interface package to obtain a decompressed interface package; Performing a second check on the decompressed interface packet, wherein the second check at least includes an integrity check; When it is determined that the second verification passes, the target media data is obtained from the decompressed interface package.
18. The method according to claim 3, characterized in that Receiving target media data obtained by a user's setting operation on a terminal device, including: A real-time job animation is received as a result of a setting operation performed by a user on a terminal device, wherein the setting operation includes a setting operation on the job animation in a print setting interface displayed on the terminal device.
19. The method according to claim 18, characterized in that Receive real-time operation animations obtained from user settings on the terminal device, including: Receiving a print job and a job animation data packet sent by a terminal device, wherein the job animation data packet is obtained according to a setting operation performed by a user on the terminal device; Performing a third check on the operation animation data packet, wherein the third check at least includes an integrity check; When it is determined that the third verification passes, the real-time operation animation is obtained from the operation animation data packet.
20. The method according to claim 19, characterized in that After acquiring the real-time operation animation from the operation animation data packet, the method further includes: Execute the print job, and play the real-time job animation during the execution of the print job.
21. An image forming device, characterized in that: include: A memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the image forming apparatus is caused to execute the method according to any one of claims 1 to 20.
22. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 20.
23. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 20 is implemented.