CN116880787A - Printer management method and device, electronic equipment and storage medium - Google Patents

Printer management method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116880787A
CN116880787A CN202310851973.5A CN202310851973A CN116880787A CN 116880787 A CN116880787 A CN 116880787A CN 202310851973 A CN202310851973 A CN 202310851973A CN 116880787 A CN116880787 A CN 116880787A
Authority
CN
China
Prior art keywords
printer
connection
printers
target
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310851973.5A
Other languages
Chinese (zh)
Inventor
请求不公布姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Hanyin Electronic Technology Co Ltd
Original Assignee
Xiamen Hanyin Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Hanyin Electronic Technology Co Ltd filed Critical Xiamen Hanyin Electronic Technology Co Ltd
Priority to CN202310851973.5A priority Critical patent/CN116880787A/en
Publication of CN116880787A publication Critical patent/CN116880787A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1236Connection management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The application discloses a management method and device of a printer, electronic equipment and a storage medium, and relates to the technical field of computers. Wherein the method comprises the following steps: responding to triggering operation of communication connection of a plurality of printers, determining connection states and connection types of the printers, and acquiring attribute information of the printers; generating a printer information table based on the connection status, the connection type, and the attribute information of each of the plurality of printers; and receiving a function setting operation of the target printer, and completing a function setting task for the target printer based on the printer information table. The technical scheme provided by the application can improve the management efficiency of the printer and the experience of the user on the printer.

Description

Printer management method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for managing a printer, an electronic device, and a storage medium.
Background
With the continuous development of printing technology, printers on the market are all arranged in a row. There are single printer tools developed in association with printers on the market, and in order to more conveniently manage the printer tools, the corresponding printers are generally managed by setting a designated printer model. However, this management method has the disadvantage of slow printer efficiency management, such as: when the function of the printer A needs to be set, the printer A needs to be connected, and when the function of the printer B needs to be set, the printer B needs to be disconnected, and in some special cases, the printer A needs to be disconnected and then the printer B needs to be disconnected; when a plurality of printers need to be operated, efficiency may become lower, and a management method of the printers may become more troublesome due to various types of communication connection types with the printers. Therefore, how to improve the management efficiency of the printer is a problem to be solved.
Disclosure of Invention
The application provides a management method, a device, electronic equipment and a storage medium of a printer, which can improve the management efficiency of the printer and improve the experience of a user on the printer.
In a first aspect, the present application provides a method for managing a printer, applied to a management end, where the method includes:
responding to a triggering operation of communication connection of a plurality of printers, determining connection states and connection types of the printers, and acquiring attribute information of the printers;
generating a printer information table based on the connection status, the connection type, and the attribute information of each of the plurality of printers;
and receiving a function setting operation for a target printer, and completing a function setting task for the target printer based on the printer information table, wherein the target printer is at least one of the plurality of printers.
The embodiment of the application provides a management method of printers, which solves the problem that the current connected printer needs to be disconnected when the other printer is connected due to one-to-one communication connection in the prior art by connecting one terminal device with a plurality of printers (namely one-to-many), can realize that the other printers are not influenced when the communication of one printer fails, can improve the management efficiency of the printers, and improves the use experience of users on the printers. Moreover, the application can manage the function setting of a plurality of printers in batches, which is close to the time consumed by the function setting of a single printer in the prior art, and can save the management time of the printers.
Further, before the determining the connection states and the connection types with the plurality of printers, the method further includes: adopting a first connection type supported by each printer in the plurality of printers to carry out communication connection with each printer; wherein the first connection type comprises at least one of a universal serial bus, USB, connection, serial port connection, and transmission control protocol/internet protocol, TCP/IP, connection.
Further, the adopting the connection type supported by each printer in the plurality of printers to make communication connection with each printer includes: determining the number of kinds of connection types contained in the plurality of printers; determining a first connection type supported by each printer in the plurality of printers, determining a priority connection type from the first connection types, wherein one printer corresponds to at least one first connection type; starting the thread tasks with the types and the quantity, wherein one thread task corresponds to one connection type; determining corresponding thread tasks based on the priority connection types of the printers; executing each thread task according to the corresponding connection type of each thread task, thereby realizing communication connection with each printer.
Further, the completing the function setting task for the target printer based on the printer information table includes: determining whether the connection state of the target printer is successful or not based on the printer information table; if the connection is successful, determining a target function for setting the function of the target printer; determining a target connection type and the attribute information corresponding to the target printer from the printer information table; transmitting a configuration file of the target function to the target printer through the target connection type and the attribute information; and controlling the target printer to complete the function setting task of the target function based on the configuration file.
Further, the determining a target function for performing function setting on the target printer includes: displaying a plurality of candidate functions for performing function setting on the target printer; and receiving selection operation of the candidate functions, and determining the target function from the candidate functions.
Further, after the determining whether the connection state of the target printer is successful based on the printer information table, the method further includes: if the connection fails, generating a prompt message for prompting the connection failure with the target printer; and displaying the prompt message.
Further, the plurality of candidate functions includes at least one of detecting calibration, printing a self-test page, restoring factory, parameter setting, restarting the printer, tag learning, continuous paper learning, and paperless automatic learning.
In a second aspect, the present application provides a management apparatus for a printer, configured at a management end, the apparatus comprising:
a communication connection module for determining connection states and connection types with a plurality of printers in response to communication connection operations with the plurality of printers, and acquiring attribute information of the plurality of printers;
an information table generation module configured to generate a printer information table based on the connection status, the connection type, and the attribute information of each of the plurality of printers;
and the function setting module is used for receiving a function setting operation on a target printer, and completing a function setting task on the target printer based on the printer information table, wherein the target printer is at least one of the plurality of printers.
In a third aspect, the present application provides an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of managing a printer according to any of the embodiments of the present application.
In a fourth aspect, the present application provides a computer readable storage medium storing computer instructions for causing a processor to execute a method for managing a printer according to any embodiment of the present application.
It should be noted that the above-mentioned computer instructions may be stored in whole or in part on a computer-readable storage medium. The computer readable storage medium may be packaged together with the processor of the management device of the printer or may be packaged separately from the processor of the management device of the printer, which is not limited in the present application.
The description of the second, third and fourth aspects of the present application may refer to the detailed description of the first aspect; moreover, the advantages described in the second aspect, the third aspect and the fourth aspect may refer to the analysis of the advantages of the first aspect, and are not described herein.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
It can be understood that before using the technical solutions disclosed in the embodiments of the present application, the user should be informed and authorized by appropriate ways according to relevant laws and regulations for the type, usage range, usage scenario, etc. of the personal information related to the present application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a management method of a printer according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a second flow chart of a method for managing a printer according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a management device of a printer according to an embodiment of the present application;
fig. 4 is a block diagram of an electronic device for implementing a management method of a printer according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," "target," and "original," etc. in the description and claims of the present application and the above-described drawings are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be capable of executing sequences other than those illustrated or otherwise described. Furthermore, the terms "comprises," "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a schematic flow chart of a management method of a printer according to an embodiment of the present application, where the embodiment is applicable to a method for managing printers in batch to improve the management efficiency of the printers. The method for managing the printer provided by the embodiment of the application can be implemented by the device for managing the printer provided by the embodiment of the application, and the device can be implemented in a software and/or hardware mode and is integrated in an electronic device for executing the method. Preferably, the electronic device in the embodiment of the present application may be a management terminal, such as an intelligent terminal.
Referring to fig. 1, the method of the present embodiment includes, but is not limited to, the following steps:
s110, responding to triggering operation of communication connection of a plurality of printers, determining connection states and connection types of the printers, and acquiring attribute information of the printers.
The intelligent terminal refers to equipment for managing the printer, and can be a mobile phone, a tablet or a computer, etc., and application software for managing the printer can be configured in the intelligent terminal. The connection status may include one of connection success and connection failure. The connection type may include one of a universal serial bus (Universal Serial Bus, USB) connection, a serial port connection, and a transmission control protocol/internet protocol (Transmission Control Protocol/Internet Protocol, TCP/IP) connection. The attribute information may include the name and port number of the printer, and the like.
In the embodiment of the application, the display interface of the intelligent terminal can comprise an entity key or a virtual key with a communication connection function, the name of the corresponding key with the communication connection function can be a scanning printer or other names, and the communication connection function is used for enabling the terminal equipment to be in communication connection with a plurality of printers. The user clicks an entity key or a virtual key corresponding to the communication connection function in the intelligent terminal, and the intelligent terminal receives the triggering operation of the communication connection function and responds to the communication connection function. At this time, the terminal device performs communication connection with the plurality of printers, and then determines a connection state and a connection type with each of the plurality of printers, and acquires attribute information of each printer.
Further, before determining the connection states and connection types with the plurality of printers, the intelligent terminal further includes: the intelligent terminal adopts a first connection type supported by each printer in the plurality of printers to carry out communication connection with each printer; wherein the first connection type includes at least one of a USB connection, a serial connection, and a TCP/IP connection. The first connection type supported by each printer is at least one.
S120, generating a printer information table based on the connection state, the connection type and the attribute information of each of the plurality of printers.
In the embodiment of the application, after the intelligent terminal acquires the connection state, the connection type and the attribute information of each printer, a printer information table is generated based on the information, and the printer information table is used for recording the connection state, the connection type and the attribute information of each printer. Optionally, the printer information table can be displayed in a display interface of the intelligent terminal and directly fed back to the user for the user to check; the printer information table may be stored in a storage unit of the intelligent terminal, and the printer information table does not need to be directly fed back to the user, but the printer information table can be called from the storage unit when the user needs to check. A schematic table of the print information table is shown in table 1 below:
table 1 schematic form of print information table
Alternatively, the printer information table may be a table that records a connection state, a connection type, and attribute information of each of the plurality of printers; it is also possible to record only the connection status, connection type, and attribute information of the printers whose connection status is successful.
S130, receiving function setting operation of the target printer, and completing function setting tasks for the target printer based on the printer information table.
Wherein the target printer is at least one of a plurality of printers.
In the embodiment of the application, the display interface of the intelligent terminal can comprise an entity key or a virtual key which is set for the printer function, or a plurality of entity keys or virtual keys corresponding to different types of functions. The function setting function is for modifying, adding, or deleting functions in the printer.
Specifically, completing the function setting task for the target printer based on the printer information table includes: determining whether the connection state of the target printer is successful or not based on the printer information table; if the connection fails, generating a prompt message for prompting the connection failure with the target printer; and displaying the prompt message in a display interface of the intelligent terminal. If the connection is successful, determining a target function for setting the function of the target printer. The implementation can pre-configure configuration files corresponding to different functions, store the configuration files into a storage unit of the intelligent terminal, firstly acquire the configuration files corresponding to the target functions from the storage unit when the target functions are required to be set, then determine the target connection types and port numbers corresponding to the target printers from a printer information table, secondly send the configuration files of the target functions to the target printers through the target connection types and the port numbers, and finally control the target printers to finish function setting tasks of the target functions based on the configuration files. Wherein the application is not limited to the form and content of the hint message.
Further, determining a target function for performing function setting on the target printer includes: the intelligent terminal displays a plurality of candidate functions for setting the functions of the target printer in a display interface; the user can select the target function in the modes of full selection, multiple selection or single selection and the like in the interface for displaying the multiple candidate functions; the intelligent terminal receives selection operation of a plurality of candidate functions and determines a target function from the plurality of candidate functions. Wherein the target function is at least one of a plurality of candidate functions. The plurality of candidate functions includes at least one of detecting calibration, printing a self-test page, restoring factory, parameter setting, restarting the printer, label learning, continuous paper learning, and paperless automatic learning. The parameter settings may include at least settings for a printing speed, a printing density carbon ribbon, and a printing mode.
According to the technical scheme provided by the embodiment, the connection state and the connection type of the printers are determined by responding to the triggering operation of communication connection of the printers, and the attribute information of the printers is acquired; generating a printer information table based on the connection status, the connection type, and the attribute information of each of the plurality of printers; and receiving a function setting operation of the target printer, and completing a function setting task for the target printer based on the printer information table. According to the application, one terminal device is in communication connection with a plurality of printers (namely one-to-many), so that the problem that the current connected printer needs to be disconnected when the other printer is connected due to one-to-one communication connection in the prior art is solved, the use of other printers can be not influenced when the communication of one printer fails, the management efficiency of the printers can be improved, and the use experience of a user on the printers is improved. Moreover, the application can manage the function setting of a plurality of printers in batches, which is close to the time consumed by the function setting of a single printer in the prior art, and can save the management time of the printers.
The method for managing a printer according to the embodiment of the present application is further described below, and fig. 2 is a schematic second flow chart of the method for managing a printer according to the embodiment of the present application. The embodiment of the application is optimized based on the embodiments, and is specifically optimized as follows: the present embodiment explains in detail the process of communication connection between the management side and the plurality of printers.
Referring to fig. 2, the method of the present embodiment includes, but is not limited to, the following steps:
s210, determining the kinds and the numbers of the connection types contained in the printers.
In an embodiment of the present application, the first connection type supported by the printer includes at least one of a USB connection, a serial connection, and a TCP/IP connection. The first connection type supported by each printer is at least one. Illustratively, it is assumed that the kinds of connection types in the present embodiment are three in number, namely, a USB connection, a serial connection, and a TCP/IP connection, respectively.
S220, determining a first connection type supported by each printer in the plurality of printers, and determining a priority connection type from the first connection types.
In an embodiment of the present application, one printer corresponds to at least one first connection type. The user can set the priority in the first connection type in advance according to the requirement of practical application, the application is not limited to the specific setting condition of the priority, and can alternatively set the TCP/IP connection as the first priority, the serial port connection as the second priority and the USB connection as the third priority.
Illustratively, the first connection type supported by the printer a is a serial connection and a TCP/IP connection, and the management end may determine that the priority connection type of the printer a is a TCP/IP connection. The first connection type supported by the printer d is serial connection and USB connection, and then the management end may determine that the preferred connection type of the printer d is serial connection. The first connection type supported by the printer f is a USB connection, and the management end may determine that the preferred connection type of the printer f is a USB connection.
S230, starting the thread tasks with the variety number.
In the embodiment of the present application, it is assumed that the number of types of connection types in the present embodiment is three, which are USB connection, serial connection, and TCP/IP connection, respectively. Then, the intelligent terminal starts three thread tasks, each corresponding to a connection type, respectively: a thread task based on USB connection, a thread task based on serial port connection and a thread task based on TCP/IP connection. Each thread task is used for carrying out communication connection with the corresponding printer according to the corresponding connection type.
S240, determining corresponding thread tasks based on the priority connection types of the printers.
Illustratively, assume that there are six printers, printers a through f, respectively. The intelligent terminal determines that the priority connection types of the printer a, the printer b and the printer c are TCP/IP connection, and then determines that the printer a, the printer b and the printer c correspond to thread tasks based on the TCP/IP connection. If the priority connection type of the printer d and the printer e is serial connection, then it is determined that the printer d and the printer e correspond to the thread task based on serial connection. If the priority connection type of the printer f is USB connection, then determining that the printer f corresponds to a thread task based on USB connection.
S250, executing each thread task according to the corresponding connection type of each thread task, so as to realize communication connection with each printer.
In the embodiment of the application, each thread task is in communication connection with the corresponding printer according to the corresponding connection type, so that the communication connection with each printer is realized.
For example, the execution of a thread task based on a USB connection may be: and acquiring a USB port list of the printers based on the USB connection, and establishing connection with the ports of the printers based on the USB port list so as to realize communication connection between the management end and the printer with the priority connection type of USB connection in a USB connection mode. The execution process of the thread task based on the serial port connection can be as follows: and acquiring a serial port list of printers based on serial port connection, and verifying whether the serial port is a serial port of the printer, if so, establishing connection with serial ports of the printers based on the serial port list so as to realize communication connection between the management end and the printers with the priority connection type of serial port connection in a serial port connection mode. The execution of the thread tasks based on the TCP/IP connection may be: and acquiring an IP address, a port and a printer name list through broadcasting appointed broadcasting contents and corresponding broadcasting ports of the local area network, and establishing connection with the IP addresses of the printers based on the acquired information so as to realize communication connection between the management end and the printer with the priority connection type of TCP/IP connection in a TCP/IP connection mode.
According to the technical scheme provided by the embodiment, the types and the numbers of the connection types contained in the printers are determined; determining a first connection type supported by each printer in the plurality of printers, and determining a priority connection type from the first connection types; starting the thread tasks with the variety number; determining corresponding thread tasks based on the priority connection types of the printers; and executing each thread task according to the corresponding connection type of each thread task, thereby realizing communication connection with each printer. According to the application, the thread tasks with the same types and numbers of the connection types contained in the printers are started, and each thread task is controlled to be in communication connection with the corresponding printer according to the corresponding connection type, so that the intelligent terminal is in communication connection with the printers, and further, the printers can be managed in batches.
Fig. 3 is a schematic structural diagram of a management device of a printer, configured at a management end, as shown in fig. 3, in which the device 300 may include:
a communication connection module 310 for determining connection states and connection types with a plurality of printers in response to communication connection operations with the plurality of printers, and acquiring attribute information of the plurality of printers;
an information table generation module 320 for generating a printer information table based on the connection status, the connection type, and the attribute information of each of the plurality of printers;
the function setting module 330 is configured to receive a function setting operation on a target printer, and complete a function setting task on the target printer based on the printer information table, where the target printer is at least one of the plurality of printers.
Further, the communication connection module 310 may be specifically configured to: before determining the connection state and connection type with the printers, adopting a first connection type supported by each printer in the printers to carry out communication connection with each printer; wherein the first connection type comprises at least one of a universal serial bus, USB, connection, serial port connection, and transmission control protocol/internet protocol, TCP/IP, connection.
Further, the communication connection module 310 may be specifically configured to: determining the number of kinds of connection types contained in the plurality of printers; determining a first connection type supported by each printer in the plurality of printers, determining a priority connection type from the first connection types, wherein one printer corresponds to at least one first connection type; starting the thread tasks with the types and the quantity, wherein one thread task corresponds to one connection type; determining corresponding thread tasks based on the priority connection types of the printers; executing each thread task according to the corresponding connection type of each thread task, thereby realizing communication connection with each printer.
Further, the function setting module 330 may be specifically configured to: determining whether the connection state of the target printer is successful or not based on the printer information table; if the connection is successful, determining a target function for setting the function of the target printer; determining a target connection type and the attribute information corresponding to the target printer from the printer information table; transmitting a configuration file of the target function to the target printer through the target connection type and the attribute information; and controlling the target printer to complete the function setting task of the target function based on the configuration file.
Further, the function setting module 330 may be specifically configured to: displaying a plurality of candidate functions for performing function setting on the target printer; and receiving selection operation of the candidate functions, and determining the target function from the candidate functions.
Further, the function setting module 330 may be specifically configured to: after the connection state of the target printer is determined to be successful based on the printer information table, if the connection state is failed, a prompt message for prompting the connection failure with the target printer is generated; and displaying the prompt message.
Optionally, the plurality of candidate functions includes at least one of detecting calibration, printing a self-test page, restoring factory, parameter setting, restarting a printer, tag learning, continuous paper learning, and paperless automatic learning.
The management device of the printer provided by the embodiment is applicable to the management method of the printer provided by any embodiment, and has corresponding functions and beneficial effects.
Fig. 4 is a block diagram of an electronic device for implementing a management method of a printer according to an embodiment of the present application. The electronic device 10 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the applications described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the Random Access Memory (RAM) 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, read Only Memory (ROM) 12 and Random Access Memory (RAM) 13 are connected to each other by a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the respective methods and processes described above, for example, a management method of the printer.
In some embodiments, the method of managing a printer may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via Read Only Memory (ROM) 12 and/or communication unit 19. When the computer program is loaded into a Random Access Memory (RAM) 13 and executed by the processor 11, one or more steps of the above-described management method of the printer may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the printer management method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above can be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present application, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server) or that includes a middleware component (e.g., an application server) or that includes a front-end component through which a user can interact with an implementation of the systems and techniques described here, or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
Note that the above is only a preferred embodiment of the present application and the technical principle applied. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. For example, one skilled in the art may use the various forms of flow shown above to reorder, add, or delete steps; the steps recited in the present application may be performed in parallel, sequentially or in a different order, and are not limited herein as long as the desired results of the technical solution of the present application can be achieved.
The above embodiments do not limit the scope of the present application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of the present application.

Claims (10)

1. A method for managing a printer, applied to a management end, the method comprising:
responding to a triggering operation of communication connection of a plurality of printers, determining connection states and connection types of the printers, and acquiring attribute information of the printers;
generating a printer information table based on the connection status, the connection type, and the attribute information of each of the plurality of printers;
and receiving a function setting operation for a target printer, and completing a function setting task for the target printer based on the printer information table, wherein the target printer is at least one of the plurality of printers.
2. The method of managing printers according to claim 1, characterized by further comprising, before said determining of the connection status and connection type with said plurality of printers:
adopting a first connection type supported by each printer in the plurality of printers to carry out communication connection with each printer; wherein the first connection type comprises at least one of a universal serial bus, USB, connection, serial port connection, and transmission control protocol/internet protocol, TCP/IP, connection.
3. The method according to claim 2, wherein said adopting the connection type supported by each of the plurality of printers to make a communication connection with each of the printers, comprises:
determining the number of kinds of connection types contained in the plurality of printers;
determining a first connection type supported by each printer in the plurality of printers, determining a priority connection type from the first connection types, wherein one printer corresponds to at least one first connection type;
starting the thread tasks with the types and the quantity, wherein one thread task corresponds to one connection type;
determining corresponding thread tasks based on the priority connection types of the printers;
executing each thread task according to the corresponding connection type of each thread task, thereby realizing communication connection with each printer.
4. The method of managing a printer according to claim 1, wherein the performing a function setting task on the target printer based on the printer information table comprises:
determining whether the connection state of the target printer is successful or not based on the printer information table;
if the connection is successful, determining a target function for setting the function of the target printer;
determining a target connection type and the attribute information corresponding to the target printer from the printer information table;
transmitting a configuration file of the target function to the target printer through the target connection type and the attribute information;
and controlling the target printer to complete the function setting task of the target function based on the configuration file.
5. The method of managing a printer according to claim 4, wherein the determining a target function for performing function setting on the target printer includes:
displaying a plurality of candidate functions for performing function setting on the target printer;
and receiving selection operation of the candidate functions, and determining the target function from the candidate functions.
6. The method according to claim 4, further comprising, after the determining whether the connection state of the target printer is successful based on the printer information table:
if the connection fails, generating a prompt message for prompting the connection failure with the target printer;
and displaying the prompt message.
7. The method of managing a printer of claim 5, wherein the plurality of candidate functions includes at least one of detecting calibration, printing a self-test page, restoring factory, parameter setting, restarting a printer, tag learning, continuous paper learning, and paperless automatic learning.
8. A management apparatus for a printer, the apparatus being configured at a management end, the apparatus comprising:
a communication connection module for determining connection states and connection types with a plurality of printers in response to communication connection operations with the plurality of printers, and acquiring attribute information of the plurality of printers;
an information table generation module configured to generate a printer information table based on the connection status, the connection type, and the attribute information of each of the plurality of printers;
and the function setting module is used for receiving a function setting operation on a target printer, and completing a function setting task on the target printer based on the printer information table, wherein the target printer is at least one of the plurality of printers.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of managing a printer according to any one of claims 1 to 7.
10. A computer-readable storage medium storing computer instructions for causing a processor to execute the method of managing a printer according to any one of claims 1 to 7.
CN202310851973.5A 2023-07-12 2023-07-12 Printer management method and device, electronic equipment and storage medium Pending CN116880787A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310851973.5A CN116880787A (en) 2023-07-12 2023-07-12 Printer management method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310851973.5A CN116880787A (en) 2023-07-12 2023-07-12 Printer management method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116880787A true CN116880787A (en) 2023-10-13

Family

ID=88267515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310851973.5A Pending CN116880787A (en) 2023-07-12 2023-07-12 Printer management method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116880787A (en)

Similar Documents

Publication Publication Date Title
KR102323333B1 (en) Application data processing method and apparatus, and storage medium
US11907728B2 (en) Bios-based multi-user management method and system
CN109948332A (en) A kind of physical machine login password remapping method and device
CN116301676A (en) Printing equipment connection method, device, equipment and storage medium
CN115905322A (en) Service processing method and device, electronic equipment and storage medium
CN113986135B (en) Method, device, equipment and storage medium for processing request
CN116880787A (en) Printer management method and device, electronic equipment and storage medium
CN113641688B (en) Node updating method, related device and computer program product
CN107729136B (en) Processing priority configuration method and device based on FPGA
CN114817134A (en) Snapshot task monitoring method, device, equipment and medium
WO2023010918A1 (en) Information processing method, terminal device, cloud server, and storage medium
CN115525415B (en) Data processing method, device, equipment and medium
CN112291329B (en) Information display method, device and equipment
CN115277652B (en) Streaming media processing method and device based on reasoning service and electronic equipment
CN117785413A (en) Task forwarding method, device, equipment and storage medium
CN115686911A (en) Server-side self-checking method and device, electronic equipment and storage medium
CN116402079A (en) Card sender control method, device, equipment and storage medium
CN117081939A (en) Traffic data processing method, device, equipment and storage medium
CN115658341A (en) Method, device, equipment and medium for reading and writing data by Freeswitch
CN115168767A (en) Voucher uploading method, device, system, equipment and storage medium
CN117271398A (en) Low-power interface control method, device, equipment and storage medium
CN117762694A (en) Data backup method and device, electronic equipment and storage medium
CN116521739A (en) Data processing method and device and electronic equipment
CN115587119A (en) Database query method and device, electronic equipment and storage medium
CN117857574A (en) Interactive message processing method, device, system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination