CN117632803A - Method, device, equipment and storage medium for binding USB printer - Google Patents

Method, device, equipment and storage medium for binding USB printer Download PDF

Info

Publication number
CN117632803A
CN117632803A CN202311614776.8A CN202311614776A CN117632803A CN 117632803 A CN117632803 A CN 117632803A CN 202311614776 A CN202311614776 A CN 202311614776A CN 117632803 A CN117632803 A CN 117632803A
Authority
CN
China
Prior art keywords
printer
usb
operating system
binding
usb printer
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
CN202311614776.8A
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.)
Wuhan Os Easy Cloud Computing Co ltd
Original Assignee
Wuhan Os Easy Cloud Computing 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 Wuhan Os Easy Cloud Computing Co ltd filed Critical Wuhan Os Easy Cloud Computing Co ltd
Priority to CN202311614776.8A priority Critical patent/CN117632803A/en
Publication of CN117632803A publication Critical patent/CN117632803A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for binding USB printers, which relate to the technical field of VOIs, and the method comprises the steps of obtaining a USB printer connected with an operating system currently and obtaining equipment information of the connected USB printer; according to the port number of the printer, the equipment information of the USB printer is associated with the queue information of the printer, and the association relation is stored; the corresponding printer port number is obtained through the association relation by means of identification based on the equipment information of the USB printer after the operation system is restored; and installing a printer queue based on the identified printer port number, and performing drive configuration of the USB printer. The method can effectively avoid the problem of disordered printing.

Description

Method, device, equipment and storage medium for binding USB printer
Technical Field
The present application relates to the technical field of VOIs (Virtual OS Infrastructure, i.e., virtual operating system architecture), and in particular, to a method, an apparatus, a device, and a storage medium for binding a USB printer.
Background
USB (Universal Serial Bus ) printers play an important role in modern office environments, but compatibility problems caused by USB printers are also variable due to hardware differences, manufacturing quality, and the like, for example, if a manufacturer does not burn a USB serial number for a printer, a user cannot distinguish the printer through the USB serial number.
In the use process summary, the port numbers of the printers are changed, and in the VOI recovery mode, the USB port numbers allocated to the printers by the system are affected by the starting sequence of the printer equipment, so that after the system is restarted each time, the program cannot accurately identify the USB virtual port numbers which correspond to the USB printer equipment and are reallocated by the system, and further incorrect equipment configuration is caused, and the printing result is inaccurate, even the printing result is printed in the wrong printer equipment when the printing operation is performed.
Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for binding a USB printer, which can effectively avoid the problem of disordered printing.
In a first aspect, an embodiment of the present application provides a method for binding a USB printer, where the method for binding a USB printer includes:
acquiring a USB printer connected with an operating system at present, and acquiring equipment information of the connected USB printer;
according to the port number of the printer, the equipment information of the USB printer is associated with the queue information of the printer, and the association relation is stored;
the corresponding printer port number is obtained through the association relation by means of identification based on the equipment information of the USB printer after the operation system is restored;
and installing a printer queue based on the identified printer port number, and performing drive configuration of the USB printer.
With reference to the first aspect, in one implementation manner, the acquiring the USB printer to which the operating system is currently connected and acquiring the device information of the connected USB printer include the following specific steps:
based on the setup PI of the operating system, enumerating all USB printers connected with the operating system currently;
and acquiring equipment information of the connected USB printer.
With reference to the first aspect, in one implementation manner, the enumeration, based on the setup pi of the operating system, includes the specific steps of:
based on the setup PI of the operating system, circularly traversing the printers currently connected with the operating system;
and judging whether the current printer is a USB printer according to the printer port number of the printer obtained through traversal, so as to obtain all USB printers connected with the operating system currently.
With reference to the first aspect, in one embodiment,
the device information includes a manufacturer ID, a product ID, a USB serial number, and a printer ID of the USB printer;
the printer ID is a unique identity identifier assigned to the USB printer by the operating system.
With reference to the first aspect, in one implementation manner, the associating and storing an association relationship between device information of the USB printer and printer queue information according to a printer port number includes the specific steps of:
according to the port number of the printer, the obtained equipment information of the connected USB printer is correlated with the printer queue information in the operating system;
and uploading the association relation obtained by association to a server for storage.
With reference to the first aspect, in an implementation manner, the specific steps of identifying, by the association, a corresponding printer port number based on device information of the USB printer after the operating system is restored include:
after the operating system performs the restoration operation, enumerating all the USB printers connected with the operating system through the setup PI of the operating system, and acquiring the equipment information of the currently connected USB printers;
and downloading the association relation stored by the server to the local, and obtaining the printer port number corresponding to the current connected USB printer locally based on the association relation and the acquired equipment information of the current connected USB printer.
With reference to the first aspect, in one implementation manner, the installing a printer queue based on the identified printer port number and the configuring a drive of the USB printer specifically includes:
based on the identified printer port number of the USB printer, installing a printer queue;
and performing installation configuration of the USB printer driver through the driver installation program.
In a second aspect, an embodiment of the present application provides an apparatus for binding a USB printer, where the apparatus for binding a USB printer includes:
the acquisition module is used for acquiring the USB printer connected with the operating system at present and acquiring equipment information of the connected USB printer;
the association module is used for associating the equipment information of the USB printer with the printer queue information according to the port number of the printer and storing an association relation;
the identification module is used for identifying and obtaining a corresponding printer port number based on the equipment information of the USB printer after the operation system is restored through the association relation;
and the configuration module is used for installing the printer queue based on the identified printer port number and performing drive configuration of the USB printer.
In a third aspect, an embodiment of the present application provides a device for binding a USB printer, where the device for binding a USB printer includes a processor, a memory, and a program for binding a USB printer stored on the memory and executable by the processor, where the program for binding a USB printer implements the steps of the method for binding a USB printer described above when executed by the processor.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, where a program for binding a USB printer is stored on the computer readable storage medium, where the program for binding a USB printer, when executed by a processor, implements the steps of the method for binding a USB printer described above.
The beneficial effects that technical scheme that this application embodiment provided include:
through correlating and storing the association relationship between the device information of the USB printer and the printer queue information, and then identifying the corresponding printer port number based on the device information of the USB printer according to the association relationship after the operation system is restored, the installation of the printer queue after the operation system is restored and the drive configuration restoration of the USB printer are realized, the effective distinction of the configuration of the USB printer is realized, so that the corresponding USB printer can still be correctly selected to be driven to print when the operation system is restored, and the problems of printing confusion and incompatibility of printer devices are avoided.
Drawings
FIG. 1 is a flow chart of a method of binding a USB printer according to the present application;
FIG. 2 is a schematic diagram of functional modules of a device of the present application for binding a USB printer;
fig. 3 is a schematic hardware structure of the device of the present application for binding a USB printer.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application 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. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
First, some technical terms in the present application are explained so as to facilitate understanding of the present application by those skilled in the art.
The operating system, specifically a Windows operating system, and further, the method for binding the USB printer can support Windows operating systems of Windows 7 and above. The printer queue provides a logic concept for the operating system to manage the print tasks for the user, and all local print queues can be checked in the operating system by clicking start, set, printer or scanner buttons in turn. It should be noted that, in the present invention, the local refers to the terminal where the operating system is located.
The printer port number is a port provided for the operating system to communicate with the physical device and transmit data, and the USB printer port number is generally a character string shaped like USB001 and can be checked in the printer queue attribute. The USB serial number is a string of characters burnt in the device firmware by a USB device manufacturer and is used for uniquely identifying the current USB device. The manufacturer ID, i.e., the ID number of the manufacturer to which the device corresponds, is used to distinguish the manufacturer. The printer ID, i.e., the ID number of the printer, is used to distinguish the printer.
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
In a first aspect, an embodiment of the present application provides a method for binding a USB printer.
In an embodiment, referring to fig. 1, fig. 1 is a flowchart of a first embodiment of a method for binding a USB printer according to the present application. As shown in fig. 1, a method for binding a USB printer according to the present invention specifically includes the following steps:
s1: acquiring a USB printer connected with an operating system at present, and acquiring equipment information of the connected USB printer; firstly, acquiring a USB printer connected with an operating system at present, then acquiring equipment information of the obtained connected USB printer, and finally acquiring the equipment information of the USB printer.
Further, the specific steps of obtaining the USB printer connected to the operating system currently and obtaining the device information of the connected USB printer include:
s101: based on the setup PI of the operating system, enumerating all USB printers connected with the operating system currently;
setuppi is the installer application programming interface of the operating system. The acquisition and determination of the USB printers connected with the operating system at present are specifically performed through the setup PI of the operating system, and all the USB printers connected with the operating system at present are sequentially acquired in an enumeration mode based on the setup PI.
S102: and acquiring equipment information of the connected USB printer.
After all the USB printers connected with the operating system currently are obtained, the device information of the USB printers is obtained for the obtained connected USB printers.
The device information includes a manufacturer ID, a product ID, a USB serial number, and a printer ID of the USB printer; the printer ID is a unique identity identifier assigned to the USB printer by the operating system, and does not change with the change of the version of the operating system and the power-off restart of the terminal where the operating system is located. For the USB printer connected with the operating system at present, the manufacturer ID, the product ID, the USB serial number and the printer ID information of the USB printer are acquired specifically, so that the association relationship between the USB printer and the printer queue can be established later.
Further, in the present invention, based on the setup pi of the operating system, all USB printers connected to the operating system currently are enumerated, which specifically includes the steps of:
s1011: based on the setup PI of the operating system, circularly traversing the printers currently connected with the operating system;
s1012: and judging whether the current printer is a USB printer according to the printer port number of the printer obtained through traversal, so as to obtain all USB printers connected with the operating system currently.
Specifically, after the user installs the connected USB printer on the terminal where the operating system is located, the printer on the terminal is circularly traversed through the setup PI of the operating system, then whether the current printer is the USB printer is judged according to the printer port number of the printer obtained through traversing, if yes, the acquisition of the equipment information of the current USB printer is carried out, and if not, the processing is not carried out.
S2: according to the port number of the printer, the equipment information of the USB printer is associated with the queue information of the printer, and the association relation is stored;
further, according to the port number of the printer, the device information of the USB printer is associated with the printer queue information and the association relationship is stored, and the specific steps include:
s201: according to the port number of the printer, the obtained equipment information of the connected USB printer is correlated with the printer queue information in the operating system; that is, by identifying the printer port number of the USB printer, the device information of the USB printer is associated with the printer queue, and the printer in the printer queue is associated with the corresponding USB printer.
S202: and uploading the association relation obtained by association to a server for storage. The association relation is uploaded to the server for storage, so that even if the operating system performs the restoration operation, the association relation between the device information of the USB printer and the printer queue still exists.
S3: the corresponding printer port number is obtained through the association relation by means of identification based on the equipment information of the USB printer after the operation system is restored;
further, through the association relationship, the corresponding printer port number is obtained by identifying the device information based on the USB printer after the operating system is restored, and the specific steps include:
s301: after the operating system performs the restoration operation, enumerating all the USB printers connected with the operating system through the setup PI of the operating system, and acquiring the equipment information of the currently connected USB printers;
s302: and downloading the association relation stored by the server to the local, and obtaining the printer port number corresponding to the current connected USB printer locally based on the association relation and the acquired equipment information of the current connected USB printer.
When the operating system performs the restore operation, the corresponding configuration settings of the USB printers connected to the operating system are reset, or the corresponding relationship is disordered, so that the user cannot select the correct printer to perform the print operation when performing the print operation, so that all USB printers currently connected to the operating system can be enumerated through setup pi of the operating system, device information of the currently connected USB printers is obtained, a USB serial number and a printer ID in the device information are obtained, an association relationship is downloaded from a server, and then search matching is performed in the association relationship according to the USB serial number and the printer ID in the device information of the current USB printer, so as to obtain a printer port number locally corresponding to the current USB printer.
For the search match of the USB serial number and the printer ID, specific: firstly judging whether the USB serial number of the current USB printer is the same as the USB serial number of equipment information of a certain USB printer (marked as USB printer A) in the association relation, if so, judging whether the printer ID of the current USB printer is the same as the printer ID of the equipment information of the USB printer A, if so, indicating that the current USB printer is matched with the USB printer A, wherein the printer port number of the USB printer A is the printer port number of the current USB printer, and adopting the matching mode to obtain the printer port number of the USB printer connected on the operating system after the operating system is restored.
S4: and installing the printer queue based on the identified printer port number, and performing driving configuration of the USB printer, namely performing setting configuration of the USB printer to keep consistent with the previous setting, so that when performing printing operation, the corresponding USB printer can be correctly selected to be driven to perform printing work.
Further, the method for installing the printer queue based on the identified printer port number and performing driving configuration of the USB printer comprises the following specific steps:
s401: based on the identified printer port number of the USB printer, installing a printer queue; and the printer queue in the operating system can be installed after the corresponding printer port numbers of all the USB printers which are connected with the operating system at present are obtained through searching and matching in the association relation.
S402: and performing installation configuration of the USB printer driver through the driver installation program. All the local connected USB printers are correctly restored through the configuration of the drive by the program, so that when the printing operation is carried out, the corresponding USB printer can be correctly selected to drive the printing operation.
According to the method for binding the USB printer, the device information of the USB printer and the printer queue information are associated and the association relation is stored, then the corresponding printer port number is obtained according to the association relation based on the device information identification of the USB printer after the operation system is restored, the installation of the printer queue after the operation system is restored and the drive configuration restoration of the USB printer are realized, the effective distinction of the configuration of the USB printer is realized, and the corresponding USB printer can still be correctly selected to be driven to print when the operation system is restored and the problems of printing confusion and incompatibility of printer devices are avoided.
In a second aspect, an embodiment of the present application further provides an apparatus for binding a USB printer.
Referring to fig. 2, fig. 2 is a schematic functional block diagram of an apparatus for binding a USB printer according to the present application. As shown in fig. 2, the device for binding the USB printer includes an acquisition module, an association module, an identification module, and a configuration module.
The acquisition module is used for acquiring the USB printer connected with the operating system at present and acquiring equipment information of the connected USB printer; the association module is used for associating the equipment information of the USB printer with the printer queue information according to the port number of the printer and storing an association relation; the identification module is used for obtaining a corresponding printer port number through the association relation based on the equipment information identification of the USB printer after the operation system is restored; the configuration module is used for installing a printer queue based on the identified printer port number and carrying out driving configuration of the USB printer.
Further, the specific steps of obtaining the USB printer connected to the operating system currently and obtaining the device information of the connected USB printer include:
based on the setup PI of the operating system, enumerating all USB printers connected with the operating system currently;
and acquiring equipment information of the connected USB printer.
Further, based on setup pi of the operating system, enumerating all USB printers connected to the operating system currently, including the specific steps of:
based on the setup PI of the operating system, circularly traversing the printers currently connected with the operating system;
and judging whether the current printer is a USB printer according to the printer port number of the printer obtained through traversal, so as to obtain all USB printers connected with the operating system currently.
Further, the device information includes a manufacturer ID, a product ID, a USB serial number, and a printer ID of the USB printer; the printer ID is a unique identity identifier assigned to the USB printer by the operating system.
Further, according to the port number of the printer, the device information of the USB printer is associated with the printer queue information and the association relationship is stored, and the specific steps include:
according to the port number of the printer, the obtained equipment information of the connected USB printer is correlated with the printer queue information in the operating system;
and uploading the association relation obtained by association to a server for storage.
Further, through the association relationship, the corresponding printer port number is obtained by identifying the device information based on the USB printer after the operating system is restored, and the specific steps include:
after the operating system performs the restoration operation, enumerating all the USB printers connected with the operating system through the setup PI of the operating system, and acquiring the equipment information of the currently connected USB printers;
and downloading the association relation stored by the server to the local, and obtaining the printer port number corresponding to the current connected USB printer locally based on the association relation and the acquired equipment information of the current connected USB printer.
Further, the method for installing the printer queue based on the identified printer port number and performing driving configuration of the USB printer comprises the following specific steps:
based on the identified printer port number of the USB printer, installing a printer queue;
and performing installation configuration of the USB printer driver through the driver installation program.
According to the device for binding the USB printer, provided by the embodiment of the invention, the device information of the USB printer and the printer queue information are associated and the association relation is stored, and then the corresponding printer port number is identified based on the device information of the USB printer according to the association relation after the operating system is restored, so that the installation of the printer queue after the operating system is restored and the drive configuration restoration of the USB printer are realized, the effective distinction of the configuration of the USB printer is realized, and the corresponding USB printer can still be correctly selected and driven to print when the printing operation is performed after the operating system is restored, and the problems of printing confusion and incompatibility of printer devices are avoided.
In a third aspect, an embodiment of the present application provides a device for binding a USB printer, where the device for binding a USB printer may be a device having a data processing function, such as a personal computer (personal computer, PC), a notebook computer, a server, or the like.
Referring to fig. 3, fig. 3 is a schematic hardware structure of a device for binding a USB printer according to an embodiment of the present application. In an embodiment of the present application, a device to which a USB printer is attached may include a processor, a memory, a communication interface, and a communication bus.
The communication bus may be of any type for implementing the processor, memory, and communication interface interconnections.
The communication interfaces include input/output (I/O) interfaces, physical interfaces, logical interfaces, and the like for implementing device interconnections within the USB printer-binding apparatus, and interfaces for implementing interconnection of the USB printer-binding apparatus with other apparatuses (e.g., other computing apparatuses or user apparatuses). The physical interface may be an ethernet interface, a fiber optic interface, an ATM interface, etc.; the user device may be a Display, a Keyboard (Keyboard), or the like.
The memory may be various types of storage media such as random access memory (randomaccess memory, RAM), read-only memory (ROM), nonvolatile RAM (non-volatileRAM, NVRAM), flash memory, optical memory, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (electrically erasable PROM, EEPROM), and the like.
The processor may be a general-purpose processor, and the general-purpose processor may call a program for binding a USB printer stored in the memory and execute the method for binding a USB printer provided in the embodiment of the present application. For example, the general purpose processor may be a central processing unit (central processing unit, CPU). The method executed when the program for binding the USB printer is called may refer to various embodiments of the method for binding the USB printer of the present application, which are not described herein.
Those skilled in the art will appreciate that the hardware configuration shown in fig. 3 is not limiting of the application and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
In a fourth aspect, embodiments of the present application also provide a computer-readable storage medium.
The application computer readable storage medium stores a program for binding a USB printer, wherein when the program for binding the USB printer is executed by a processor, the following steps of the method for binding the USB printer are realized:
acquiring a USB printer connected with an operating system at present, and acquiring equipment information of the connected USB printer;
according to the port number of the printer, the equipment information of the USB printer is associated with the queue information of the printer, and the association relation is stored;
the corresponding printer port number is obtained through the association relation by means of identification based on the equipment information of the USB printer after the operation system is restored;
and installing a printer queue based on the identified printer port number, and performing drive configuration of the USB printer.
The method implemented when the program for binding the USB printer is executed may refer to various embodiments of the method for binding the USB printer of the present application, which are not described herein.
Through correlating and storing the association relationship between the device information of the USB printer and the printer queue information, and then identifying the corresponding printer port number based on the device information of the USB printer according to the association relationship after the operation system is restored, the installation of the printer queue after the operation system is restored and the drive configuration restoration of the USB printer are realized, the effective distinction of the configuration of the USB printer is realized, so that the corresponding USB printer can still be correctly selected to be driven to print when the operation system is restored, and the problems of printing confusion and incompatibility of printer devices are avoided.
It should be noted that, the foregoing embodiment numbers are merely for describing the embodiments, and do not represent the advantages and disadvantages of the embodiments.
The terms "comprising" and "having" and any variations thereof in the description and claims of the present application and in the foregoing drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus. The terms "first," "second," and "third," etc. are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order, and are not limited to the fact that "first," "second," and "third" are not identical.
In the description of embodiments of the present application, "exemplary," "such as," or "for example," etc., are used to indicate an example, instance, or illustration. Any embodiment or design described herein as "exemplary," "such as" or "for example" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary," "such as" or "for example," etc., is intended to present related concepts in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise indicated, "/" means or, for example, a/B may represent a or B; the text "and/or" is merely an association relation describing the associated object, and indicates that three relations may exist, for example, a and/or B may indicate: the three cases where a exists alone, a and B exist together, and B exists alone, and in addition, in the description of the embodiments of the present application, "plural" means two or more than two.
In some of the processes described in the embodiments of the present application, a plurality of operations or steps occurring in a particular order are included, but it should be understood that these operations or steps may be performed out of the order in which they occur in the embodiments of the present application or in parallel, the sequence numbers of the operations merely serve to distinguish between the various operations, and the sequence numbers themselves do not represent any order of execution. In addition, the processes may include more or fewer operations, and the operations or steps may be performed in sequence or in parallel, and the operations or steps may be combined.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising several instructions for causing a terminal device to perform the method described in the various embodiments of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims of the present application.

Claims (10)

1. A method of binding a USB printer, the method of binding a USB printer comprising:
acquiring a USB printer connected with an operating system at present, and acquiring equipment information of the connected USB printer;
according to the port number of the printer, the equipment information of the USB printer is associated with the queue information of the printer, and the association relation is stored;
the corresponding printer port number is obtained through the association relation by means of identification based on the equipment information of the USB printer after the operation system is restored;
and installing a printer queue based on the identified printer port number, and performing drive configuration of the USB printer.
2. The method for binding a USB printer according to claim 1, wherein the step of obtaining the USB printer to which the operating system is currently connected and obtaining the device information of the connected USB printer includes:
based on the setup PI of the operating system, enumerating all USB printers connected with the operating system currently;
and acquiring equipment information of the connected USB printer.
3. The method for binding USB printers according to claim 2, wherein the operating system based setup api enumerates all USB printers to which the operating system is currently connected, and the specific steps include:
based on the setup PI of the operating system, circularly traversing the printers currently connected with the operating system;
and judging whether the current printer is a USB printer according to the printer port number of the printer obtained through traversal, so as to obtain all USB printers connected with the operating system currently.
4. A method of binding a USB printer as claimed in claim 2, wherein:
the device information includes a manufacturer ID, a product ID, a USB serial number, and a printer ID of the USB printer;
the printer ID is a unique identity identifier assigned to the USB printer by the operating system.
5. The method for binding a USB printer according to claim 1, wherein the step of associating the device information of the USB printer with the printer queue information and storing the association according to the printer port number comprises the steps of:
according to the port number of the printer, the obtained equipment information of the connected USB printer is correlated with the printer queue information in the operating system;
and uploading the association relation obtained by association to a server for storage.
6. The method for binding a USB printer according to claim 5, wherein the step of obtaining the corresponding printer port number based on the device information identification of the USB printer after the operating system is restored by using the association relation comprises the following specific steps:
after the operating system performs the restoration operation, enumerating all the USB printers connected with the operating system through the setup PI of the operating system, and acquiring the equipment information of the currently connected USB printers;
and downloading the association relation stored by the server to the local, and obtaining the printer port number corresponding to the current connected USB printer locally based on the association relation and the acquired equipment information of the current connected USB printer.
7. The method for binding a USB printer according to claim 1, wherein the installing of the printer queue and the driving configuration of the USB printer are performed based on the identified printer port number, and the specific steps include:
based on the identified printer port number of the USB printer, installing a printer queue;
and performing installation configuration of the USB printer driver through the driver installation program.
8. An apparatus for binding a USB printer, the apparatus for binding a USB printer comprising:
the acquisition module is used for acquiring the USB printer connected with the operating system at present and acquiring equipment information of the connected USB printer;
the association module is used for associating the equipment information of the USB printer with the printer queue information according to the port number of the printer and storing an association relation;
the identification module is used for identifying and obtaining a corresponding printer port number based on the equipment information of the USB printer after the operation system is restored through the association relation;
and the configuration module is used for installing the printer queue based on the identified printer port number and performing drive configuration of the USB printer.
9. A device for binding a USB printer, wherein the device for binding a USB printer comprises a processor, a memory, and a program for binding a USB printer stored on the memory and executable by the processor, wherein the program for binding a USB printer, when executed by the processor, implements the steps of the method for binding a USB printer according to any one of claims 1 to 7.
10. A computer readable storage medium, wherein a program for binding a USB printer is stored on the computer readable storage medium, wherein the program for binding a USB printer, when executed by a processor, implements the steps of the method for binding a USB printer according to any one of claims 1 to 7.
CN202311614776.8A 2023-11-28 2023-11-28 Method, device, equipment and storage medium for binding USB printer Pending CN117632803A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311614776.8A CN117632803A (en) 2023-11-28 2023-11-28 Method, device, equipment and storage medium for binding USB printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311614776.8A CN117632803A (en) 2023-11-28 2023-11-28 Method, device, equipment and storage medium for binding USB printer

Publications (1)

Publication Number Publication Date
CN117632803A true CN117632803A (en) 2024-03-01

Family

ID=90021006

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311614776.8A Pending CN117632803A (en) 2023-11-28 2023-11-28 Method, device, equipment and storage medium for binding USB printer

Country Status (1)

Country Link
CN (1) CN117632803A (en)

Similar Documents

Publication Publication Date Title
EP2598991B1 (en) Method of usb device enumeration including detecting operating system type of usb host
US8243294B2 (en) Simplified walk-up print driver installation
US8132055B2 (en) Operating system-firmware interface update recovery
CN107463345B (en) Control method and storage medium
US11169820B1 (en) Managing an operating system to set up a computer association tool
JP6816360B2 (en) Management equipment, management system and management program
US10089102B2 (en) Information processing apparatus, method, and program
JP5370265B2 (en) Common printer driver and print port management method
KR20180018351A (en) Information processing apparatus, information processing method, and storage medium
CN111638916B (en) General android mobile terminal driving system and method for data forensics
US20180146110A1 (en) Information processing apparatus, control method, and storage medium
JP2006202117A (en) Processor and its firmware download method
US20090300659A1 (en) Device Managing System and Program
CN108932134B (en) Remote updating method for server BIOS
CN113867743A (en) Network operating system loading burning method and device, electronic equipment and storage medium
CN117632803A (en) Method, device, equipment and storage medium for binding USB printer
CN106484442B (en) Server system and method for updating startup mapping file
US11907375B2 (en) System and method for signing and interlocking a boot information file to a host computing system
JP4891107B2 (en) Computer system and file system automatic setting OS startup method used in the computer system
JP6331505B2 (en) Startup control device, startup control method, and startup control program
CN102819443A (en) Method and device for compatible operation of PCI (peripheral component interconnection) hardware applications
JP2016207123A (en) Application package and electronic apparatus
JP2009015604A (en) Installation system of information processor
CN117573054A (en) Display control method, electronic equipment and computer readable storage medium
JP4659686B2 (en) Product registration processing device and peripheral device recognition program

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