CN113568590A - Remote batch printing method based on WiFi network connection - Google Patents

Remote batch printing method based on WiFi network connection Download PDF

Info

Publication number
CN113568590A
CN113568590A CN202110899171.2A CN202110899171A CN113568590A CN 113568590 A CN113568590 A CN 113568590A CN 202110899171 A CN202110899171 A CN 202110899171A CN 113568590 A CN113568590 A CN 113568590A
Authority
CN
China
Prior art keywords
wifi
preset
box
wifi box
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
CN202110899171.2A
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.)
Shanghai Zhongtongji Network Technology Co Ltd
Original Assignee
Shanghai Zhongtongji Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Zhongtongji Network Technology Co Ltd filed Critical Shanghai Zhongtongji Network Technology Co Ltd
Priority to CN202110899171.2A priority Critical patent/CN113568590A/en
Publication of CN113568590A publication Critical patent/CN113568590A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1285Remote printer device, e.g. being remote from client or server
    • G06F3/1287Remote printer device, e.g. being remote from client or server via internet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications

Abstract

The application relates to a remote batch printing method based on WiFi network connection, which comprises the following steps: the method comprises the steps that a WiFi box is preset through WebSocket communication connection, and information of the connected preset WiFi box is stored; receiving user information and printing task data sent by a user terminal; binding the user information with the information of the preset WiFi box to realize the binding of the user terminal with the preset WiFi box; and pushing the printing task data to a printer through a bound preset WiFi box for the printer to execute the printing task. So, when the user need print, can be directly print the task data through wiFi box propelling movement to printer, need not carry out other connections again, just can realize remote printing, the connection process can be realized through modes such as scanning two-dimensional code, easy operation, and it is nimble convenient, realize remote printing in batches.

Description

Remote batch printing method based on WiFi network connection
Technical Field
The application relates to the technical field of logistics printing, in particular to a remote batch printing method based on WiFi network connection.
Background
In the field of logistics, a common printing mode is that a portable printer is connected through a mobile phone Bluetooth or a desktop printer is connected through a computer USB, and printing is performed through mobile phone app or pc printing software, however, the connection mode is complicated, and the cost of one mobile phone or one computer is high, and printer sharing can only be local area network sharing generally, and cannot be shared by multiple people in a long distance.
Disclosure of Invention
The application provides a long-distance batch printing method based on WiFi network connection, and aims to solve the problems that in the prior art, a printer can be connected through Bluetooth or a USB (universal serial bus) to print only by taking a mobile phone or a computer as a terminal, the connection is complex, and long-distance multi-person sharing cannot be performed.
The above object of the present application is achieved by the following technical solutions:
the embodiment of the application provides a remote batch printing method based on WiFi network connection, which comprises the following steps:
the method comprises the steps that a WiFi box is preset through WebSocket communication connection, and information of the connected preset WiFi box is stored; the information of the preset WiFi box comprises a unique id of the preset WiFi box;
receiving user information and printing task data submitted by a user terminal;
binding the user information with the information of the preset WiFi box to realize the binding of the user terminal with the preset WiFi box;
pushing the printing task data to a printer through a preset WiFi box bound with the user terminal, so that the printer can execute a printing task; and the preset WiFi box is connected with the printer through a USB or a low-power Bluetooth.
And further, generating a two-dimensional code corresponding to each preset WiFi box based on the unique id of the preset WiFi box, so that a user can bind or share with the WiFi box through scanning of the user terminal.
Further, the information of the preset WiFi box includes:
the method comprises the steps of presetting a unique id, a two-dimensional code address, a WiFi-SSID, a WiFi password, an IP address of a WiFi box and a printer name of a printer connected with the WiFi box.
Further, the method also comprises the following steps:
and when the user scans the two-dimensional code, binding the user terminal with a preset WiFi box through a preset applet.
Further, the method also comprises the following steps:
and judging the connection state of the preset WiFi box through timing heartbeat check, marking the preset WiFi box with the heartbeat-free time exceeding the preset time as an offline state, and actively disconnecting the connection.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
in the technical scheme provided by the embodiment of the application, the printer is connected with the WiFi box through the USB or the low-power-consumption Bluetooth, then the WiFi box is connected with the preset system or the server through the WebSocket communication technology, and the traditional printer is connected to the Internet through the WiFi box. When a user needs to print, the printer can be controlled to print only by pushing the print task data to the WiFi box through a preset system or a server side after the WiFi box is connected, so that low-cost multi-user remote sharing is realized, and the user terminal is not limited. After the user terminal is connected with the WiFi box, when a printing task exists, remote printing can be achieved without other connections, and the printing terminal is simple to operate, flexible, convenient and low in cost.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic flowchart of a remote batch printing method based on WiFi network connection according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a remote batch printing method based on WiFi network connection according to another embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
In the commodity circulation field, the printing mode commonly used is through cell-phone bluetooth connection portable printer or connect desktop printer through computer USB, when relevant staff need print the task, can only print through cell-phone app or pc printing software, the process connection mode is loaded down with trivial details, heavy, and because can only print through cell-phone and computer, so with high costs, on the other hand, print through this kind of printing mode, the printer sharing is the LAN sharing usually, can not remote many people share.
In order to solve the problems, the application provides a remote batch printing method based on WiFi network connection, and aims to solve the problems that in the prior art, a printer can be connected through Bluetooth or a USB for printing only by taking a mobile phone or a computer as a terminal, the connection is complex and tedious, and long-distance multi-user sharing cannot be performed. Specific embodiments are illustrated in detail by the following examples.
Examples
Referring to fig. 1, fig. 1 is a schematic flowchart of a remote batch printing method based on WiFi network connection according to an embodiment of the present application, and as shown in fig. 1, the method at least includes the following steps:
s101, connecting a preset WiFi box through WebSocket communication, and storing information of the connected preset WiFi box; and the information of the preset WiFi box comprises the unique id of the preset WiFi box.
Specifically, each box has a unique id, and a communication protocol between the WiFi box and the server adopts Websocket communication and is connected with the server through the Websocket communication. When the box is connected with the server, the id of the equipment can be carried, the server can store the information of the connected WIFI box, the information comprises the unique id of the box, the WiFi-ssid, the WiFi password, the ip address and the like, and the server stores the information after the box is connected with the server.
In practical application, after the server is connected with the WIFI box, the WIFI box or the server can perform timed heartbeat check for judging the connection state of the server and the WIFI box. Specifically, when the WIFI box is started, the WIFI box can be connected with the server for a long time, meanwhile, heartbeat can be carried out with the service every 5 seconds, and when the heartbeat failure times reach the upper limit or the connection is disconnected, the WIFI box can be connected with the server again. Meanwhile, the server side can detect all connected WIFI box devices, and when the connection exceeds a certain time and no heartbeat occurs, the corresponding devices can be marked as offline and disconnected actively.
And S102, receiving user information and print job data submitted by a user terminal.
S103, binding the user information with the information of the preset WiFi box to realize binding the user terminal with the preset WiFi box.
Specifically, the user information received by the server includes a user id, a user name, and the like, and the print job data is a print job and print data that need to be performed. The user terminal can be connected with the server side through the internet and transmits data, and it needs to be explained that the user terminal can be all devices capable of being connected with the internet, is not limited to a mobile phone and a computer and can print, so that the application range is expanded, and the problems that in the prior art, the printing can be performed only through the mobile phone or the computer, and the printing cost is high are solved.
After receiving user information, the server binds the user terminal or information based on user id and user name with stored WIFI box information, so that the WIFI box can be bound with the user or the user terminal, the server also can maintain the binding relationship between the information of the equipment and the user, and thus, the user can bind with the WIFI box through the user terminal, a printing task is pushed to the WIFI box through the server, the WIFI box controls a printer connected with the WIFI box, and printing is completed.
In some specific implementation processes, the user can also finish the binding of the user or the user terminal and the WIFI box in a mode of directly scanning the two-dimensional code. The service terminal generates a two-dimensional code corresponding to each preset WiFi box on the basis of the unique id of the preset WiFi box, when a user needs to print, the two-dimensional code can be directly scanned through a user terminal, the user can jump to a preset applet after scanning the two-dimensional code, the WiFi box is automatically bound through the preset applet, meanwhile, the two-dimensional code can also be passed through, or the equipment can be directly shared with other people in the applet, and the WIFI box is bound to print by other people through scanning the two-dimensional code or in the applet.
S104, pushing the printing task data to a printer through a preset WiFi box bound with the user terminal, so that the printer can execute a printing task; and the preset WiFi box is connected through a USB or a low-power Bluetooth.
Specifically, adopt usb or low-power consumption bluetooth to be connected between wiFi box and the printer, can pull the printing template local when the box starts. When the WiFi box receives the printing tasks pushed by the server, the printing tasks are analyzed locally, then the printing tasks are pushed to the printer according to the protocol corresponding to the printer, the printer receipt of the printer is received by the WiFi box after printing is completed, and the printing state is returned to the server by the WiFi box for the server to record and manage the printing tasks.
According to the remote batch printing method based on WiFi network connection, the service end is connected with the preset WiFi box through WebSocket communication, when a user needs to print, the user can bind the user terminal and the WiFi box through scanning the two-dimensional code of the WiFi box generated by the service end, and then a printing task can be pushed to the WiFi box through the service end, so that the printer connected with the WiFi box is controlled to print. Adopt the wiFi box to connect the printer, nimble convenient with low costs to the wiFi box can carry out local analytic template, thereby the different printer of adaptation, the wiFi box can be directly shared through mode such as believe a little, two-dimensional code, increases the flexibility that equipment is connected moreover. On the other hand, the printing task is stably and reliably transmitted to the WiFi box and the printer by the server side in a pushing mode through the communication between the WebSocket and the server side, so that stable remote printing is realized, and low-cost multi-user remote sharing is realized.
Fig. 2 is a schematic flowchart of a remote batch printing method based on WiFi network connection according to another embodiment of the present application, and as shown in fig. 2, the remote batch printing method based on WiFi network connection according to this embodiment includes:
firstly, a user terminal is connected with a server through the Internet, a printing task is submitted to the server, then the server transmits the printing task to a WIFI box connected with the server in a mode of pushing the printing task, so that the connection between the user terminal and the WIFI box is realized, and a printer is controlled to print through the WIFI box; and the printer can also write back the printing state through the WIFI box, thereby the relevant personnel supervise and manage the printing state through the service end. User terminal passes through the WIFI box and connects the printer, and the control printer prints, easy operation, and is nimble convenient, easily realizes remote batch printing.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present application, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (5)

1. A remote batch printing method based on WiFi network connection is characterized by comprising the following steps:
the method comprises the steps that a WiFi box is preset through WebSocket communication connection, and information of the connected preset WiFi box is stored; the information of the preset WiFi box comprises a unique id of the preset WiFi box;
receiving user information and printing task data submitted by a user terminal;
binding the user information with the information of the preset WiFi box to realize the binding of the user terminal with the preset WiFi box;
pushing the printing task data to a printer through a preset WiFi box bound with the user terminal, so that the printer can execute a printing task; and the preset WiFi box is connected with the printer through a USB or a low-power Bluetooth.
2. The WiFi network connection-based remote batch printing method according to claim 1, further comprising generating a two-dimensional code corresponding to each preset WiFi box based on the unique id of the preset WiFi box, so that a user can bind or share with the WiFi boxes through scanning of a user terminal.
3. The WiFi network connection based remote batch printing method of claim 2, wherein the information of the preset WiFi box comprises:
the method comprises the steps of presetting a unique id, a two-dimensional code address, a WiFi-SSID, a WiFi password, an IP address of a WiFi box and a printer name of a printer connected with the WiFi box.
4. The WiFi network connection based remote batch printing method of claim 2, further comprising:
and when the user scans the two-dimensional code, binding the user terminal with a preset WiFi box through a preset applet.
5. The WiFi network connection based remote batch printing method of claim 2, further comprising:
and judging the connection state of the preset WiFi box through timing heartbeat check, marking the preset WiFi box with the heartbeat-free time exceeding the preset time as an offline state, and actively disconnecting the connection.
CN202110899171.2A 2021-08-06 2021-08-06 Remote batch printing method based on WiFi network connection Pending CN113568590A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110899171.2A CN113568590A (en) 2021-08-06 2021-08-06 Remote batch printing method based on WiFi network connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110899171.2A CN113568590A (en) 2021-08-06 2021-08-06 Remote batch printing method based on WiFi network connection

Publications (1)

Publication Number Publication Date
CN113568590A true CN113568590A (en) 2021-10-29

Family

ID=78170605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110899171.2A Pending CN113568590A (en) 2021-08-06 2021-08-06 Remote batch printing method based on WiFi network connection

Country Status (1)

Country Link
CN (1) CN113568590A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040001342A (en) * 2002-06-27 2004-01-07 주식회사 케이티 Apparatus and method of remote printing service between internet and VPN
CN103995680A (en) * 2014-05-29 2014-08-20 深圳市移联网络科技有限公司 Terminal remote communication printing method and printing system thereof
CN108509162A (en) * 2018-02-27 2018-09-07 宁波阿祖拉信息技术有限公司 A kind of intelligent remote print system and operation method
CN109741585A (en) * 2018-12-12 2019-05-10 青岛海尔科技有限公司 A kind of communication control system and method
CN110750222A (en) * 2019-09-19 2020-02-04 益萃网络科技(中国)有限公司 Printing method, printing device, computer equipment and storage medium
CN111290719A (en) * 2020-01-21 2020-06-16 澳克多普有限公司 Intelligent printing control method and system and printing device
CN111552446A (en) * 2020-04-29 2020-08-18 厦门汉印电子技术有限公司 Portable printer and active connection method, device and storage medium thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040001342A (en) * 2002-06-27 2004-01-07 주식회사 케이티 Apparatus and method of remote printing service between internet and VPN
CN103995680A (en) * 2014-05-29 2014-08-20 深圳市移联网络科技有限公司 Terminal remote communication printing method and printing system thereof
CN108509162A (en) * 2018-02-27 2018-09-07 宁波阿祖拉信息技术有限公司 A kind of intelligent remote print system and operation method
CN109741585A (en) * 2018-12-12 2019-05-10 青岛海尔科技有限公司 A kind of communication control system and method
CN110750222A (en) * 2019-09-19 2020-02-04 益萃网络科技(中国)有限公司 Printing method, printing device, computer equipment and storage medium
CN111290719A (en) * 2020-01-21 2020-06-16 澳克多普有限公司 Intelligent printing control method and system and printing device
CN111552446A (en) * 2020-04-29 2020-08-18 厦门汉印电子技术有限公司 Portable printer and active connection method, device and storage medium thereof

Similar Documents

Publication Publication Date Title
CN100430881C (en) Distributed peripheral device control system and method
CN202394219U (en) Printer and system convenient for non-driven printing
US7685257B2 (en) Portable thin client for the enterprise workspace
CN103795571A (en) Binding method and device between equipment
CN103916560A (en) Image forming apparatus supporting near field communication (nfc) function and method of setting an image job
CN102789374A (en) Multifunctional image processing apparatus
CN103338276B (en) A kind of method transmitting data between the network terminal
JP5945916B2 (en) Information processing system, information processing method, portable terminal, server, control method and control program thereof
US9158480B2 (en) Printer application states
CN103618710A (en) Individual processing method and device of file between mobile device and computing device
CN104391664A (en) Self-service print system for realizing cross-segment communication between printer and print server
US20030217186A1 (en) Apparatus for and method of seamless wireless multimedia download path to peer networked appliances
CN102693101A (en) Information processing apparatus
CN103685332A (en) File transfer method, client, server and system
JP4708664B2 (en) Peripheral device, peripheral device control method, peripheral device control program, and storage medium
CN109274726B (en) Binding method, migration method, binding device, migration device, computing equipment and storage medium
US20090066991A1 (en) System and method for cloning document processing devices via simple network management protocol
CN215646815U (en) WiFi Wireless network adapter
CN113347318B (en) Scanning control system and method and computing device
CN103197902B (en) Information handling system, signal conditioning package and information processing method
US8264725B1 (en) Providing printable content
CN103248654A (en) Negotiation method, device and system for virtual desktop service parameters
CN113568590A (en) Remote batch printing method based on WiFi network connection
CN102236613A (en) Control system and control docking
CN208722177U (en) Cloud printing equipment

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