CN114281278A - Cloud printing method and device, storage medium and electronic equipment - Google Patents

Cloud printing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114281278A
CN114281278A CN202111620646.6A CN202111620646A CN114281278A CN 114281278 A CN114281278 A CN 114281278A CN 202111620646 A CN202111620646 A CN 202111620646A CN 114281278 A CN114281278 A CN 114281278A
Authority
CN
China
Prior art keywords
cloud
program
target
response
printing
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.)
Granted
Application number
CN202111620646.6A
Other languages
Chinese (zh)
Other versions
CN114281278B (en
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.)
Suzhou Brocadesoft Corp
Original Assignee
Suzhou Brocadesoft Corp
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 Suzhou Brocadesoft Corp filed Critical Suzhou Brocadesoft Corp
Priority to CN202111620646.6A priority Critical patent/CN114281278B/en
Publication of CN114281278A publication Critical patent/CN114281278A/en
Application granted granted Critical
Publication of CN114281278B publication Critical patent/CN114281278B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The embodiment of the application discloses a cloud printing method, a cloud printing device, a storage medium and electronic equipment, wherein the method comprises the steps of entering a second program under the condition of logging in a first program, wherein the second program is a subprogram of the first program; in the second program, acquiring a target account; determining at least two cloud print servers associated with the target account; performing response test on the at least two cloud print servers; determining a target print server in the at least two cloud print servers according to the response result; and transmitting the target data to the target printer to trigger the target printer to print the target data. According to the method and the device, the response rate of cloud printing can be ensured, the short-time efficient printing server is ensured, and the cloud printing bandwidth resource is saved.

Description

Cloud printing method and device, storage medium and electronic equipment
Technical Field
The embodiment of the application relates to the technical field of printers, in particular to a cloud printing method and device, a storage medium and electronic equipment.
Background
In the related art, under the condition of cloud printing, a cloud print server capable of providing services can be selected at will, but the service quality of the cloud print server is difficult to guarantee, so that the printing success rate is influenced, and the user experience is reduced.
Disclosure of Invention
In order to solve at least one technical problem, embodiments of the present application provide a cloud printing method, an apparatus, a storage medium, and an electronic device.
In one aspect, an embodiment of the present application provides a cloud printing method, which is applied to a client, and the method includes:
under the condition of logging in a first program, entering a second program, wherein the second program is a subprogram of the first program;
in the second program, acquiring a target account;
determining at least two cloud print servers associated with the target account;
performing response test on the at least two cloud print servers;
determining a target print server in the at least two cloud print servers according to the response result;
transmitting target data to the target printer to trigger the target printer to print the target data.
In one embodiment, the response testing of the at least two cloud print servers includes:
and concurrently sending a page test request to each cloud print server in the at least two cloud print servers, wherein the page test request is used for triggering a receiver to feed back a test response.
In one embodiment, the concurrently sending the page test request to each of the at least two cloud print servers includes:
and sending a page test request to each cloud print server in the at least two cloud print servers based on the Ajax asynchronous communication mode, and starting a corresponding timer aiming at each page test request.
In one embodiment, the determining, in the at least two cloud print servers, a target print server according to the response result further includes:
and under the condition that the first test response is obtained and the time interval between the first test response and the corresponding page test request is less than a preset time threshold, determining the cloud print server corresponding to the first test response as the target print server.
In one embodiment, in a case that a first test response is obtained and a time interval between the first test response and a corresponding page test request is less than a preset time threshold, determining the cloud print server corresponding to the first test response as the target print server includes:
responding to the condition of obtaining the test response for the first time, and obtaining a counting result in the corresponding timer;
in response to the counting result being smaller than the preset time interval threshold, determining the cloud print server corresponding to the first test response as the target print server;
and feeding back a printing failure response in response to the condition that the counting result in each timer exceeds the preset time threshold.
In one embodiment, a cloud printing method is further provided, which is applied to any cloud printing server, and the method includes:
responding to a page test request, and feeding back a test response to a target account included in the page test request;
under the condition that target data sent by a client corresponding to the target account are obtained, transcoding the target data into a print driving file;
printing the print driver file;
wherein the client is configured to perform the following operations:
under the condition of logging in a first program, entering a second program, wherein the second program is a subprogram of the first program;
in the second program, acquiring a target account;
determining at least two cloud print servers associated with the target account;
performing response test on the at least two cloud print servers, wherein the at least two cloud print servers comprise any cloud print server, and determining the any cloud print server as a target print server;
and transmitting the target data to any cloud printing server.
In one embodiment, there is also provided a cloud printing apparatus applied to a client, the apparatus including:
the login module is used for entering a second program under the condition of logging in a first program, wherein the second program is a subprogram of the first program;
the printing test module is used for acquiring a target account in the second program; determining at least two cloud print servers associated with the target account; performing response test on the at least two cloud print servers; determining a target print server in the at least two cloud print servers according to the response result;
and the transmission module is used for transmitting the target data to the target printer so as to trigger the target printer to print the target data.
In one embodiment, a cloud printing apparatus is further provided, which is applied to any cloud printing server, and the apparatus includes:
the test response module is used for responding to the page test request and feeding back a test response to the target account included in the page test request;
the printing module is used for transcoding the target data into a printing drive file under the condition of acquiring the target data sent by the client corresponding to the target account; printing the print driver file;
wherein the client is configured to perform the following operations:
under the condition of logging in a first program, entering a second program, wherein the second program is a subprogram of the first program;
in the second program, acquiring a target account;
determining at least two cloud print servers associated with the target account;
performing response test on the at least two cloud print servers, wherein the at least two cloud print servers comprise any cloud print server, and determining the any cloud print server as a target print server;
and transmitting the target data to any cloud printing server.
In another aspect, an embodiment of the present application provides a computer-readable storage medium, where at least one instruction or at least one program is stored in the computer-readable storage medium, and the at least one instruction or the at least one program is loaded and executed by a processor to implement a cloud printing method as described above.
In another aspect, an embodiment of the present application provides an electronic device, including at least one processor, and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the at least one processor implements one of the cloud printing methods described above by executing the instructions stored by the memory.
In another aspect, embodiments of the present application provide a computer program or instructions, which when executed by a processor, implement a cloud printing method as described above.
The embodiment of the application provides a cloud printing method, which can ensure the response rate of cloud printing, ensure a short-time efficient printing server and save cloud printing bandwidth resources.
Drawings
In order to more clearly illustrate the technical solutions and advantages of the embodiments of the present application or the related art, the drawings used in the description of the embodiments or the related art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without inventive efforts.
Fig. 1 is a schematic flowchart of a cloud printing method provided in an embodiment of the present specification;
fig. 2 is a schematic diagram of cloud printing provided by an embodiment of the present application;
fig. 3 is a schematic flow chart of another cloud printing method according to an embodiment of the present application;
FIG. 4 is a schematic illustration of the content of a page displayed by a targeted print server according to an embodiment of the present application;
fig. 5 is a block diagram of a cloud printing apparatus provided in an embodiment of the present application;
fig. 6 is a hardware structural diagram of an apparatus for implementing the method provided by the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the embodiments in the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the embodiments of the present application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In order to make the objects, technical solutions and advantages disclosed in the embodiments of the present application more clearly apparent, the embodiments of the present application are described in further detail below with reference to the accompanying drawings and the embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the embodiments of the application and are not intended to limit the embodiments of the application.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present embodiment, "a plurality" means two or more unless otherwise specified.
In the related art, when a plurality of cloud print servers are found, one cloud print server can be randomly jumped to perform a printing service, but the response speed of the jumped server cannot be guaranteed because the jumped server is random, for example, the problems of slow document uploading and slow printing may be caused. For example, if a user has branch companies in multiple cities, a mobile print server is deployed at the headquarters and each branch company for employees to use, although the headquarters and the branch companies are interconnected (e.g., based on VPN network interaction), the VPN network bandwidth is limited, and only 2-3MB bandwidth is available, which determines the network transmission speed, and if a scheme of randomly accessing the mobile print server is adopted, a cloud print server in the state of suzhou is accessed, and then the document uploading is slow, and even if the bandwidth is insufficient, the uploading fails, so that the random access is not a good solution.
The embodiment of the application provides a cloud printing method for ensuring the response rate of cloud printing, ensuring a short-time efficient printing server and saving cloud printing bandwidth resources. Fig. 1 shows a flow chart of a cloud printing method provided by an embodiment of the present application, which provides the method operation steps as described in the embodiment or the flow chart, but may include more or less operation steps based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When a practical system or server product executes, it can execute sequentially or in parallel (for example, in the context of parallel processors or multi-thread processing) according to the embodiments or methods shown in the drawings, and the methods applied to the client may include:
s101, under the condition of logging in a first program, entering a second program, wherein the second program is a subprogram of the first program.
In this embodiment of the present application, the second program is a sub program of the first program, and the first program is a host program of the second program, and the embodiment of the present application does not limit the first program, and may provide a carrier for the second program, for example, the first program may be a wechat program, a pay-for-treasure program, and the like, the second program may be a page applet or a servlet running on the first program frame, and the second program may enter into running through a subscription number or a public number, and the embodiment of the present application does not limit this.
And S102, acquiring a target account in the second program.
The target account is an account carried by the client entering the second program, and the target account may be a credential for using the cloud print service provided in the present application. For example, for enterprise a, enterprise a is deployed around the country, cloud print servers that can provide cloud print services for enterprise a are all over the country, and if the target account is an account provided by a print service manufacturer to enterprise a, the target account may have an association relationship with each of the cloud print servers that provide cloud print services for enterprise a.
S103, determining at least two cloud print servers associated with the target account.
The embodiment of the present application does not limit the determination method for at least two cloud print servers, for example, the cloud print servers providing cloud print services for the enterprise a may be all used as the two cloud print servers, the location of the client may be obtained through the second program, and the cloud print servers within a preset radius with the location as a center are determined as the at least two cloud print servers.
And S104, performing response test on the at least two cloud print servers.
According to the embodiment of the application, the response speed of each cloud print server is obtained through the response test, and the cloud print server with the highest response speed can be used as the server for providing services for the target account, so that the printing speed can be ensured.
In one embodiment, the response testing of the at least two cloud print servers includes: and concurrently sending a page test request to each cloud print server in the at least two cloud print servers, wherein the page test request is used for triggering a receiver to feed back a test response.
Specifically, a page test request may be sent to each cloud print server of the at least two cloud print servers based on Ajax asynchronous communication, and a corresponding timer may be started for each page test request. Ajax: is a technique that can update a portion of a web page without reloading the entire web page. The AJAX can realize asynchronous updating of the webpage by exchanging a small amount of data with the server in the foreground. This means that the server can be accessed and access results obtained without reloading the entire web page.
In the embodiment of the application, the cloud print servers are all mobile print servers, the mobile print servers are servers which can receive webpage servers for uploading pictures, Office documents and PDF documents, the pictures and the files in the mobile phone can be selected to be uploaded and printed after the mobile phone is opened, and the uploaded documents can be converted on the mobile print servers, so that mobile phone printing is realized.
And S105, determining a target print server in the at least two cloud print servers according to the response result.
In one embodiment, when a first test response is acquired and the time interval between the first test response and a corresponding page test request is less than a preset time threshold, the cloud print server corresponding to the first test response is fed back and determined as the target print server.
Specifically, in the case that a first test response is obtained and the time interval between the first test response and a corresponding page test request is less than a preset time threshold, determining the cloud print server corresponding to the first test response as the target print server includes: responding to the condition of obtaining the test response for the first time, and obtaining a counting result in the corresponding timer; in response to the counting result being smaller than the preset time interval threshold, determining the cloud print server corresponding to the first test response as the target print server; and feeding back a printing failure response in response to the condition that the counting result in each timer exceeds the preset time threshold.
S106, transmitting the target data to the target printer to trigger the target printer to print the target data.
In a specific embodiment, when the user clicks on the mobile print menu at WeChat (first program) public (second program), the user jumps to a probe page that first obtains I P addresses of mobile print servers in all cities of the customer (cloud print servers), then sends Ajax requests to these I P addresses to access the mobile print ports at these I P addresses, and then jumps to the mobile print page at this server I P address (target print server) immediately after waiting for the first server to return a response.
Referring to fig. 2, in an embodiment, if the mobile print is accessed by the mobile phone WeChat of the user, a probe webpage first acquires I P addresses of mobile print servers of all corresponding cities, then circularly sends Post requests to I P addresses by using the Ajax asynchronous technology, a 10s thread is started to wait after sending the requests, if no server responds within 10s, an error is reported, if a first response is received within 10s, the 10s waiting thread is immediately exited, and the uploading print webpage of the first responding server is immediately jumped to, and the first responding server is the target print server.
As shown in fig. 3, an embodiment of the present application further provides a cloud printing method, which is applied to any cloud printing server, and the method includes:
s201, responding to a page test request, and feeding back a test response to a target account included in the page test request;
s202, transcoding the target data into a print drive file under the condition of acquiring the target data sent by the client corresponding to the target account;
s203, printing the printing drive file;
wherein the client is configured to perform the following operations: under the condition of logging in a first program, entering a second program, wherein the second program is a subprogram of the first program; in the second program, acquiring a target account; determining at least two cloud print servers associated with the target account; performing response test on the at least two cloud print servers, wherein the at least two cloud print servers comprise any cloud print server, and determining the any cloud print server as a target print server; and transmitting the target data to any cloud printing server.
Specifically, the server executing steps S201 to S203 is the target print server, and for the specific operations executed by the client, reference may be made to the foregoing description, which is not repeated herein.
Please refer to fig. 4, which shows the content of a page displayed by the target print server, in which the user may be supported to send the target data by taking a picture, drawing a gallery, recording a video or browsing other file storage locations, in the case that the user triggers the "setting" control, the user may select a print parameter setting page that can be currently provided for the user, and through the print parameter setting page, the user may send specific print setting parameters to the target print server, so as to obtain the print result of the mood meter.
Based on the scheme provided by the embodiment of the application, a user can use the mobile phone WeChat for printing, when a plurality of mobile print servers are found, the Ajax detection technology is used in a mobile phone WeChat browser to request all the mobile print servers at the same time, the mobile print server which responds the first time is the server which is the current best in mobile phone network connection, and the user can directly jump to the uploading webpage of the mobile print server. The fastest mobile printing server can be automatically detected in the mobile phone WeChat, and the fastest mobile printing server is often connected with the server in the same city or the server in an adjacent city. Therefore, the method can ensure the uploading and printing experience of the user by adopting the Ajax technology and requesting all the mobile printing servers at the same time to automatically jump to the uploading and printing webpage of the mobile printing server with the first response. Therefore, the user can upload and print the image quickly, the user is transparent, and the user can finish the fastest printing experience without knowing which mobile printing server is used by the user.
In some embodiments, the print setting of the target account in the target print server may also be performed remotely through a webpage provided by the target print server, for example, adding an invisible watermark, and the following operations may also be performed through a page corresponding to the target print server in the embodiments of the present application:
and S301, transcoding the target data file to generate a universal format file.
In the embodiment of the present application, a file in a PDF format may be used as the above-mentioned file in a general format.
S302, adjusting the watermark data corresponding to the target account number, the color corresponding to the invisible watermark and the transparency to obtain the target watermark.
Specifically, the target print server may set the color of the watermark to (255, 255, 0) and the transparency to a range of 1% -10%, resulting in the target watermark.
And S303, adding the target watermark into the universal format file to obtain a target file.
In the embodiment of the application, after the color is set to be (255, 255, 0) and the target watermark with the transparency set to be in the range of 1% -10% is combined with the universal format file, the obtained target file can achieve the watermark stealth effect, and the watermark is easily restored after subsequent printing.
S304, processing the target file based on the driving file corresponding to the target printer to obtain a second target file.
S305, printing the target file to obtain a printed product carrying the invisible watermark.
In the embodiment of the application, the watermark in the target printed part can be restored, specifically, the printed part can be scanned to obtain a scanned part; and adjusting the contrast of the scanning piece and performing enhancement processing on the scanning piece after the contrast is adjusted so as to display the watermark in the scanning piece. Specifically, the contrast process may be performed using a function Mat: (Mat & m, int rtype, double alpha 1, double beta 0) const, and the optimal value may be found by continuously adjusting the alpha and beta values to confirm the different effects. And then carrying out image histogram equalization EqualizeHist enhancement on the scanning element after the contrast processing until the target watermark can be distinguished by naked eyes.
An embodiment of the present application further provides a cloud printing apparatus, which is applied to a client, and as shown in fig. 5, the apparatus includes:
the login module 101 is used for entering a second program under the condition of logging in a first program, wherein the second program is a subprogram of the first program;
the printing test module 102 is configured to obtain a target account in the second program; determining at least two cloud print servers associated with the target account; performing response test on the at least two cloud print servers; determining a target print server in the at least two cloud print servers according to the response result;
a transmission module 103, configured to transmit target data to the target printer, so as to trigger the target printer to print the target data.
An embodiment of the present application further provides a cloud printing apparatus, which is applied to any cloud print server, the apparatus includes:
the test response module is used for responding to the page test request and feeding back a test response to the target account included in the page test request;
the printing module is used for transcoding the target data into a printing drive file under the condition of acquiring the target data sent by the client corresponding to the target account; printing the print driver file;
wherein the client is configured to perform the following operations:
under the condition of logging in a first program, entering a second program, wherein the second program is a subprogram of the first program;
in the second program, acquiring a target account;
determining at least two cloud print servers associated with the target account;
performing response test on the at least two cloud print servers, wherein the at least two cloud print servers comprise any cloud print server, and determining the any cloud print server as a target print server;
and transmitting the target data to any cloud printing server.
Specifically, the embodiment of the device disclosed in the embodiment of the present application and the corresponding embodiment of the method described above are all based on the same inventive concept. For details, please refer to the method embodiment, which is not described herein.
Embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the computer device to execute the cloud printing method.
Embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium may store a plurality of instructions. The instructions may be suitable for being loaded by a processor and executing the cloud printing method in the embodiment of the application.
Further, fig. 6 shows a hardware structure diagram of an apparatus for implementing the method provided in the embodiment of the present application, and the apparatus may participate in forming or containing the device or system provided in the embodiment of the present application. As shown in fig. 6, the device 10 may include one or more (shown as 102a, 102b, … …, 102 n) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 104 for storing data, and a transmission device 106 for communication functions. Besides, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 6 is only an illustration and is not intended to limit the structure of the electronic device. For example, device 10 may also include more or fewer components than shown in FIG. 6, or have a different configuration than shown in FIG. 6.
It should be noted that the one or more processors 102 and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part as software, hardware, firmware or any combination thereof. Further, the data processing circuitry may be a single, stand-alone processing module, or incorporated in whole or in part into any of the other elements in the device 10 (or mobile device). As referred to in the embodiments of the application, the data processing circuit acts as a processor control (e.g. selection of a variable resistance termination path connected to the interface).
The memory 104 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the methods described above in the embodiments of the present application, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, so as to implement the cloud printing method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 104 may further include memory located remotely from processor 102, which may be connected to device 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of such networks may include wireless networks provided by the communication provider of the device 10. In one example, the transmission device 106 includes a network adapter (NIC) that can be connected to other network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the device 10 (or mobile device).
It should be noted that: the sequence of the embodiments of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the device and server embodiments, since they are substantially similar to the method embodiments, the description is simple, and the relevant points can be referred to the partial description of the method embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk.
The above description is only a preferred embodiment of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present application should be included in the scope of the present application.

Claims (10)

1. A cloud printing method is applied to a client, and comprises the following steps:
under the condition of logging in a first program, entering a second program, wherein the second program is a subprogram of the first program;
in the second program, acquiring a target account;
determining at least two cloud print servers associated with the target account;
performing response test on the at least two cloud print servers;
determining a target print server in the at least two cloud print servers according to the response result;
transmitting target data to the target printer to trigger the target printer to print the target data.
2. The method of claim 1, wherein the testing the responses of the at least two cloud print servers comprises:
and concurrently sending a page test request to each cloud print server in the at least two cloud print servers, wherein the page test request is used for triggering a receiver to feed back a test response.
3. The method of claim 2, wherein concurrently sending page test requests to each of the at least two cloud print servers comprises:
and sending a page test request to each cloud print server in the at least two cloud print servers based on the Ajax asynchronous communication mode, and starting a corresponding timer aiming at each page test request.
4. The method according to claim 3 or the method, wherein the determining a target print server among the at least two cloud print servers according to the response result further comprises:
and under the condition that the first test response is obtained and the time interval between the first test response and the corresponding page test request is less than a preset time threshold, determining the cloud print server corresponding to the first test response as the target print server.
5. The method according to claim 4, wherein in a case that a first test response is obtained and the time interval between the first test response and a corresponding page test request is less than a preset time threshold, determining the cloud print server corresponding to the first test response as the target print server comprises:
responding to the condition of obtaining the test response for the first time, and obtaining a counting result in the corresponding timer;
in response to the counting result being smaller than the preset time interval threshold, determining the cloud print server corresponding to the first test response as the target print server;
and feeding back a printing failure response in response to the condition that the counting result in each timer exceeds the preset time threshold.
6. A cloud printing method is applied to any cloud printing server, and comprises the following steps:
responding to a page test request, and feeding back a test response to a target account included in the page test request;
under the condition that target data sent by a client corresponding to the target account are obtained, transcoding the target data into a print driving file;
printing the print driver file;
wherein the client is configured to perform the following operations:
under the condition of logging in a first program, entering a second program, wherein the second program is a subprogram of the first program;
in the second program, acquiring a target account;
determining at least two cloud print servers associated with the target account;
performing response test on the at least two cloud print servers, wherein the at least two cloud print servers comprise any cloud print server, and determining the any cloud print server as a target print server;
and transmitting the target data to any cloud printing server.
7. A cloud printing device applied to a client, the device comprising:
the login module is used for entering a second program under the condition of logging in a first program, wherein the second program is a subprogram of the first program;
the printing test module is used for acquiring a target account in the second program; determining at least two cloud print servers associated with the target account; performing response test on the at least two cloud print servers; determining a target print server in the at least two cloud print servers according to the response result;
and the transmission module is used for transmitting the target data to the target printer so as to trigger the target printer to print the target data.
8. A cloud printing device is applied to any cloud printing server, and the device comprises:
the test response module is used for responding to the page test request and feeding back a test response to the target account included in the page test request;
the printing module is used for transcoding the target data into a printing drive file under the condition of acquiring the target data sent by the client corresponding to the target account; printing the print driver file;
wherein the client is configured to perform the following operations:
under the condition of logging in a first program, entering a second program, wherein the second program is a subprogram of the first program;
in the second program, acquiring a target account;
determining at least two cloud print servers associated with the target account;
performing response test on the at least two cloud print servers, wherein the at least two cloud print servers comprise any cloud print server, and determining the any cloud print server as a target print server;
and transmitting the target data to any cloud printing server.
9. A computer-readable storage medium, having at least one instruction or at least one program stored therein, the at least one instruction or at least one program being loaded and executed by a processor to implement a cloud printing method as claimed in any one of claims 1 to 6.
10. An electronic device comprising at least one processor, and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the at least one processor implementing a cloud printing method as claimed in any one of claims 1 to 6 by executing the instructions stored by the memory.
CN202111620646.6A 2021-12-28 2021-12-28 Cloud printing method and device, storage medium and electronic equipment Active CN114281278B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111620646.6A CN114281278B (en) 2021-12-28 2021-12-28 Cloud printing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111620646.6A CN114281278B (en) 2021-12-28 2021-12-28 Cloud printing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN114281278A true CN114281278A (en) 2022-04-05
CN114281278B CN114281278B (en) 2023-06-23

Family

ID=80876738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111620646.6A Active CN114281278B (en) 2021-12-28 2021-12-28 Cloud printing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114281278B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023231347A1 (en) * 2022-05-30 2023-12-07 北京京东振世信息技术有限公司 Network printing management method, apparatus and system, and electronic device, medium and program

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951198A (en) * 2017-03-03 2017-07-14 华中科技大学 A kind of mobile cloud Method of printing and system
CN107797779A (en) * 2017-10-27 2018-03-13 南京信安宝信息科技有限公司 A kind of cloud Method of printing based on temporary account
CN109445722A (en) * 2018-09-17 2019-03-08 珠海奔图电子有限公司 Cloud Method of printing, device, terminal device and computer readable storage medium
CN110888613A (en) * 2019-11-28 2020-03-17 北京中启智源数字信息技术有限责任公司 Printing method, printing device, printing system and electronic equipment
CN111813349A (en) * 2020-05-27 2020-10-23 厦门汉印电子技术有限公司 Method, device and equipment for scheduling equipment of cloud print server and storage medium
CN112764696A (en) * 2021-01-22 2021-05-07 广州快批信息科技有限公司 Cloud printing server, and intelligent printing method and system of remote printing equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951198A (en) * 2017-03-03 2017-07-14 华中科技大学 A kind of mobile cloud Method of printing and system
CN107797779A (en) * 2017-10-27 2018-03-13 南京信安宝信息科技有限公司 A kind of cloud Method of printing based on temporary account
CN109445722A (en) * 2018-09-17 2019-03-08 珠海奔图电子有限公司 Cloud Method of printing, device, terminal device and computer readable storage medium
CN110888613A (en) * 2019-11-28 2020-03-17 北京中启智源数字信息技术有限责任公司 Printing method, printing device, printing system and electronic equipment
CN111813349A (en) * 2020-05-27 2020-10-23 厦门汉印电子技术有限公司 Method, device and equipment for scheduling equipment of cloud print server and storage medium
CN112764696A (en) * 2021-01-22 2021-05-07 广州快批信息科技有限公司 Cloud printing server, and intelligent printing method and system of remote printing equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023231347A1 (en) * 2022-05-30 2023-12-07 北京京东振世信息技术有限公司 Network printing management method, apparatus and system, and electronic device, medium and program

Also Published As

Publication number Publication date
CN114281278B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
US9779369B2 (en) Process flow definition creating system, process flow definition creating device, and a method of creating process flow definition
US20150294022A1 (en) Terminal device, system for providing picture and method for transmitting picture
US20230252043A1 (en) Method, terminal and system for transmitting file between multiple terminals
KR102110741B1 (en) How to recommend Wi-Fi hotspot, terminal and graphical user interface
US11909847B2 (en) Information processing apparatus, information processing system, information processing method and recording medium
US11032683B2 (en) Method and apparatus for publishing cloud resource
CN104023021A (en) File transfer method and file transfer device
US20120209977A1 (en) Program Update Management Server And Program Update Management Method
US20150161407A1 (en) Information processing apparatus and information management method
US20150324159A1 (en) Image forming device and web application system
US9990166B2 (en) Information processing system in which connection for job transmission is established, processing apparatus, and server
CN111106983B (en) Method and device for detecting network connectivity
CN115004673A (en) Message pushing method and device, electronic equipment and computer readable medium
CN113312013A (en) Printing method, printing system and storage medium
CN114281278B (en) Cloud printing method and device, storage medium and electronic equipment
US20160255022A1 (en) Method and Apparatus for Displaying Image
RU2665240C2 (en) Method and device for page insertion
CN103905496A (en) Picture downloading method and device
CN104281661A (en) Data downloading method
CN105991616B (en) Information processing apparatus, communication system, and communication method
US20160072967A1 (en) Information processor creating communication application, and computer-readable non-transitory recording medium storing application creation program for creating communication application
US20160274753A1 (en) Information processing apparatus, information processing method and storage medium
CN109218402A (en) Hold cloud integrative solution
CN110166835B (en) Page display method and device and storage medium
CN106716983B (en) Communication terminal device and communication system

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
GR01 Patent grant
GR01 Patent grant