CN116820355A - Printing method, electronic equipment and system - Google Patents

Printing method, electronic equipment and system Download PDF

Info

Publication number
CN116820355A
CN116820355A CN202210283787.1A CN202210283787A CN116820355A CN 116820355 A CN116820355 A CN 116820355A CN 202210283787 A CN202210283787 A CN 202210283787A CN 116820355 A CN116820355 A CN 116820355A
Authority
CN
China
Prior art keywords
electronic device
printing
message
print
electronic equipment
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
CN202210283787.1A
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202210283787.1A priority Critical patent/CN116820355A/en
Priority to PCT/CN2023/082581 priority patent/WO2023179561A1/en
Publication of CN116820355A publication Critical patent/CN116820355A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer

Abstract

The application provides a printing method, electronic equipment and a system, and relates to the technical field of terminals. The application can reduce the networking complexity of the printing system. The method is applied to a second electronic device, and comprises the following steps: receiving a print message from a first electronic device; and sending the printing message to a third electronic device, wherein the printing message is used for controlling the third electronic device to execute a printing task, and the second electronic device and the third electronic device belong to the same local area network.

Description

Printing method, electronic equipment and system
Technical Field
The embodiment of the application relates to the technical field of terminals, in particular to a printing method, electronic equipment and a system.
Background
Currently, printers are increasingly used by users. The user can control the networked printer to execute the print job through electronic equipment such as a mobile phone. The current printing scene can be divided into local printing and remote printing according to whether the mobile phone and the printer are in the same local area network. The local printing means that the mobile phone and the printer are located in the same local area network, for example, the mobile phone and the printer are connected with the same router. Remote printing means that the mobile phone and the printer are located in different networks, for example, the mobile phone is located in a company, connected to the company's network, the printer is located in a home, and connected to the home network.
For a remote printing scenario, in some current schemes, as shown in fig. 1A, a printer in a user's home is connected to the internet (internet) through a router, and a mobile phone in a company may send a file to be printed (such as a picture or a document) to the printer in the home through a cloud (which may be called a printing cloud). However, this solution requires that the printer support the remote printing function, otherwise the mobile phone cannot send the file to be printed to the remote printer.
In other arrangements, if the printer does not support the remote printing function, the user may effect remote printing by purchasing a print cartridge (also referred to as a print cloud cartridge). As shown in fig. 1B, in order to enable a printer that does not support the remote printing function to implement remote printing, a print cloud box may be added to the network, and the print cloud box controls the printer to implement printing. However, in this scheme, networking is complicated.
Disclosure of Invention
In order to solve the technical problems, the embodiment of the application provides a printing method, electronic equipment and a system. The technical scheme provided by the embodiment of the application can reduce the networking complexity of the printing system.
In order to achieve the technical purpose, the embodiment of the application provides the following technical scheme:
In a first aspect, a printing method is provided, applied to a second electronic device, the method including:
receiving a print message from a first electronic device;
and sending the printing message to a third electronic device, wherein the printing message is used for controlling the third electronic device to execute a printing task, and the second electronic device and the third electronic device belong to the same local area network. In the scheme, the remote printing function can be realized without an additional independently arranged printing cloud box in networking, and the networking complexity is reduced.
In addition, the printing cloud box is not needed, which means that in the embodiment of the application, the first electronic device and the second electronic device of the printing report Wen Jingyou can reach the third electronic device, the number of devices passing through the communication path is less, the transmission time delay is smaller, the transmission efficiency is higher, and the efficiency of the printing task is improved.
In one possible design, sending the print message to a third electronic device includes:
and transmitting and forwarding the printing message to the third electronic equipment. In the scheme, after the second electronic equipment receives the printing message from the mobile phone, the printing message can be directly forwarded without storing the printing message, so that the consumption of storage resources can be reduced, the storage space is saved, and the printing efficiency is improved.
In one possible design, after sending the print message to the third electronic device, the method further includes:
receiving a response message from the third electronic device, wherein the response message is used for indicating that the printing task is completed;
and sending the response message to the first electronic equipment.
In one possible design, the method further comprises: establishing a channel between the first electronic device and the first electronic device;
receiving a print message from the first electronic device, including: and receiving the printing message from the first electronic equipment through the channel.
In one possible design, the method further comprises: establishing a channel between the first electronic device and the first electronic device;
the response message is sent to the first electronic equipment, and the response message comprises the following components: and sending the response message to the first electronic equipment through the channel.
In one possible design, the receiving, from a remote first electronic device, a print message includes: and receiving the printing message from the first electronic device through a fourth electronic device.
In one possible design, sending the response message to the first electronic device includes: and sending the response message to the first electronic equipment through fourth electronic equipment.
In one possible design, sending the response message to the first electronic device includes:
and determining the identification of the response message, and sending the response message to the first electronic equipment according to the identification of the response message.
In a second aspect, a printing method is provided, applied to a first electronic device, the method including:
receiving a printing instruction, wherein the printing instruction is used for indicating to execute a printing task;
responding to the printing instruction, and acquiring a printing message corresponding to the printing task;
and sending the printing message to a remote second electronic device, wherein the printing message is used for controlling a third electronic device to execute the printing task, and the second electronic device and the third electronic device belong to the same local area network.
In one possible design, before receiving the print instruction, the method further includes:
displaying a first interface; the first interface comprises one or more cards corresponding to the electronic equipment, and the one or more cards of the electronic equipment comprise the card of the second electronic equipment;
detecting operation of a user on a card of the second electronic equipment, and displaying a second interface; the second interface includes an option for a print function associated with the second electronic device.
In the scheme, the option of the printing function can be designed in the management interface (such as the second interface) of the electronic equipment, so that the management and control of the electronic equipment are associated with the printing function, and the function that the second electronic equipment controls the third electronic equipment to execute printing is realized in the management process of the second electronic equipment.
It should be noted that, the card of the electronic device may also be replaced by other UI modes, for example, may be replaced by an icon of the electronic device.
In one possible design, after displaying the second interface, the method further includes:
detecting operation of a user on options of the printing function, and displaying information of one or more files; the one or more files include at least one of a file local to the first electronic device and a file backed up by the first electronic device on other devices;
determining that a user selects one or more target print files from the one or more files; the receiving a print instruction includes: an operation instruction of a user on a print control associated with the one or more target print files is received.
In this scenario, the user may choose to print files local to the first electronic device and/or print files backed up by the first electronic device on other devices (e.g., servers).
In some examples, when a user selects to print a file local to the first electronic device, the first electronic device obtains a print message and sends the print message to the second electronic device.
In some examples, when a user selects a backup file on a print server, a print instruction is sent by a first electronic device to the server, after which a print message is obtained by the server and sent to a second electronic device. Or when the user selects the backup file on the print server, the first electronic device acquires the print message and sends the print message to the second electronic device.
In one possible design, after displaying the second interface, the method further includes:
detecting operation of the user on the option of the printing function, and displaying a third interface; the third interface includes information of one or more files; the one or more files include at least one of a file local to the first electronic device and a file backed up by the first electronic device on other devices;
detecting an operation of selecting one or more target printing files from the one or more files by a user, and displaying a fourth interface, wherein the fourth interface comprises a printing control for indicating to start the printing task;
Receiving a print instruction, comprising: and receiving the operation of the user on the printing control.
In one possible design, the first electronic device is a server;
the receiving a print instruction includes: and receiving operation instructions related to one or more target print files stored on the server by a user. The scheme can be suitable for a backup scene, for example, the server receives a printing instruction, and can acquire a printing message corresponding to a local file of the server, so that the printing message is sent to the second electronic device, the second electronic device sends the printing message to a third electronic device in the same local area network, and further the third electronic device executes a printing task.
As one possible implementation, the user selects one or more target print files through the terminal, where the one or more target print files are files stored by the server after the terminal uploads to the server.
In one possible design, the method further comprises: and establishing a channel between the second electronic device and the second electronic device.
In one possible design, in the process of establishing the channel, the method further comprises: and displaying a fifth interface, wherein the fifth interface is used for indicating that the channel is being established.
And sending the printing message to second electronic equipment, wherein the printing message comprises the following steps: and sending the printing message to the second electronic equipment through the channel. In the scheme, the first electronic device can send the printing message to the remote second electronic device by establishing the channel between the first electronic device and the second electronic device, and the second electronic device can control the third device to execute the printing task through the printing message.
In one possible design, after sending the print message to the second electronic device, the method further includes:
and receiving a response message from the second electronic equipment, wherein the response message is used for indicating that the printing task is completed.
In one possible design, the sending the print message to the remote second electronic device includes:
and sending the printing message to the remote second electronic equipment through fourth electronic equipment.
In one possible design, the responding to the printing instruction, obtaining the printing message corresponding to the printing task, includes:
responding to the printing instruction, and determining the identification of the printing message;
and acquiring the printing message according to the identification of the printing message.
In a third aspect, there is provided a printing apparatus, which may be a second electronic device or a component (such as a chip system) for implementing a function of the second electronic device, the apparatus comprising:
the communication unit is used for receiving the printing message from the first remote electronic equipment; and sending the printing message to a third electronic device, wherein the printing message is used for controlling the third electronic device to execute a printing task, and the second electronic device and the third electronic device belong to the same local area network.
In one possible design, sending the print message to a third electronic device includes:
and transmitting and forwarding the printing message to the third electronic equipment.
In one possible design, the communication unit is further configured to receive a response packet from the third electronic device, where the response packet is used to indicate that the print job is completed;
the communication unit is further configured to send the response packet to the first electronic device.
In one possible design, the apparatus further comprises a processing unit; the processing unit is used for establishing a channel between the processing unit and the first electronic equipment;
receiving a print message from the first electronic device, including: and receiving the printing message from the first electronic equipment through the channel.
In one possible design, sending the response message to the first electronic device includes: and sending the response message to the first electronic equipment through the channel.
In one possible design, the receiving, from a remote first electronic device, a print message includes: and receiving the printing message from the first electronic device through a fourth electronic device.
In one possible design, sending the response message to the first electronic device includes: and sending the response message to the first electronic equipment through fourth electronic equipment.
In one possible design, sending the response message to the first electronic device includes:
and determining the identification of the response message, and sending the response message to the first electronic equipment according to the identification of the response message.
In a fourth aspect, there is provided a printing apparatus, which may be a first electronic device or a component (such as a chip system) implementing a function of the first electronic device, the apparatus comprising:
a communication unit that receives a print instruction for instructing execution of a print job;
the processing unit is used for responding to the printing instruction and acquiring a printing message corresponding to the printing task;
The communication unit is further configured to send the print message to a remote second electronic device, where the print message is used to control a third electronic device to execute the print task, and the second electronic device and the third electronic device belong to the same local area network.
In one possible design, the device further comprises a display unit;
the display unit is used for displaying a first interface; the first interface comprises one or more cards corresponding to the electronic equipment, and the one or more cards of the electronic equipment comprise the card of the second electronic equipment;
the display unit is further used for displaying a second interface when the processing unit detects the operation of the user on the card of the second electronic device; the second interface includes an option for a print function associated with the second electronic device.
In one possible design, the display unit is further configured to display information of one or more files when the processing unit detects an operation of the option of the printing function by the user; the one or more files include at least one of a file local to the first electronic device and a file backed up by the first electronic device on other devices;
The processing unit is further used for determining that a user selects one or more target printing files from the one or more files;
the receiving a print instruction includes: an operation instruction of a user on a print control associated with the one or more target print files is received.
In one possible design, the display unit is further configured to display a third interface when the processing unit detects an operation of the option of the print function by the user; the third interface includes information of one or more files; the one or more files include at least one of a file local to the first electronic device and a file backed up by the first electronic device on other devices;
the display unit is further configured to, when the processing unit detects that a user selects one or more target print files from the one or more files, display a fourth interface, where the fourth interface includes a print control for indicating to open the print job;
receiving a print instruction, comprising: and receiving the operation of the user on the printing control.
In one possible design, the first electronic device is a server;
the receiving a print instruction includes: and receiving operation instructions related to one or more target print files stored on the server by a user.
In one possible design, the processing unit is further configured to establish a channel with the second electronic device.
In a possible design, the display unit is further configured to display a fifth interface during the establishment of the channel, the fifth interface being configured to indicate that the channel is being established.
And sending the printing message to second electronic equipment, wherein the printing message comprises the following steps: and sending the printing message to the second electronic equipment through the channel.
In one possible design, the communication unit is further configured to receive a response message from the second electronic device, where the response message is used to indicate that the print job is completed.
In one possible design, the sending the print message to the remote second electronic device includes:
and sending the printing message to the remote second electronic equipment through fourth electronic equipment.
In one possible design, the responding to the printing instruction, obtaining the printing message corresponding to the printing task, includes:
responding to the printing instruction, and determining the identification of the printing message;
and acquiring the printing message according to the identification of the printing message.
In a fifth aspect, there is provided a printing system comprising:
The first electronic equipment is used for receiving a printing instruction and responding to the printing instruction to acquire a printing message corresponding to the printing task; the printing message is used for controlling a third electronic device to execute the printing task, and the second electronic device and the third electronic device belong to the same local area network; the printing instruction is used for indicating to execute a printing task;
the second electronic device is configured to receive a print message from the first electronic device and send the print message to the third electronic device.
In one possible design, the second electronic device is configured to send the print message to a third electronic device, including:
and the printing message is transmitted and forwarded to the third electronic equipment.
In one possible design, the first electronic device is further configured to:
displaying a first interface; the first interface comprises one or more cards corresponding to the electronic equipment, and the one or more cards of the electronic equipment comprise the card of the second electronic equipment;
detecting operation of a user on a card of the second electronic equipment, and displaying a second interface; the second interface includes an option for a print function associated with the second electronic device.
In one possible design, the first electronic device is further configured to:
detecting operation of a user on options of the printing function, and displaying information of one or more files; the one or more files include at least one of a file local to the first electronic device and a file backed up by the first electronic device on other devices;
determining that a user selects one or more target print files from the one or more files;
the first electronic device is configured to receive a print instruction, and includes: and the operation instruction of a user on the printing control associated with the one or more target printing files is received.
In one possible design, the first electronic device is a server;
the first electronic device is configured to receive a print instruction, and includes: and receiving operation instructions related to one or more target print files stored on the server by a user.
In one possible design, the second electronic device is further configured to receive a response packet from the third electronic device, and send the response packet to the first electronic device; the response message is used for indicating that the printing task is completed;
The first electronic device is further configured to receive a response message from the second electronic device.
In one possible design, the second electronic device is further configured to establish a channel with the first electronic device; the first electronic device is further used for establishing a channel with the second electronic device;
the second electronic device is configured to receive a print packet from the first electronic device, and includes: the printing message receiving module is used for receiving the printing message from the first electronic equipment through the channel;
the first electronic device is configured to send the print message to a second electronic device, and includes: and the printing message is sent to the second electronic equipment through the channel.
In one possible design, the print messages include print control messages and print data messages.
In one possible design, the first electronic device is configured to send the print message to a remote second electronic device, including: sending a printing message to the second electronic equipment at a remote place through fourth electronic equipment;
the second electronic device is configured to receive a print message from a first remote electronic device, and includes: and receiving the printing message from the first electronic device through a fourth electronic device.
In one possible design, the second electronic device is configured to send the response packet to the first electronic device, including:
and determining the identification of the response message, and sending the response message to the first electronic equipment according to the identification of the response message.
In one possible design, the first electronic device is configured to obtain, in response to the print instruction, a print packet corresponding to the print job, including:
the identification method comprises the steps of responding to the printing instruction, and determining the identification of the printing message;
and acquiring the printing message according to the identification of the printing message.
In a possible design of any of the above aspects, the print message includes a print control message and a print data message.
In a possible design of any of the above aspects, the identification of the print message may be, but is not limited to, a service name of the print message.
In a possible design of any of the above aspects, the channel comprises an end-to-end P2P channel.
In a sixth aspect, an embodiment of the present application provides an electronic device having a function of implementing the printing method described in any of the above aspects and any one of possible implementations thereof; alternatively, the electronic device has the functionality to implement the printing method as described in any of the aspects and any one of the possible implementations. The functions may be implemented by hardware, or by corresponding software executed by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
In a seventh aspect, embodiments of the present application provide a computer-readable storage medium. The computer readable storage medium stores a computer program (which may also be referred to as instructions or code) which, when executed by an electronic device, causes the electronic device to perform the method of the first aspect or any implementation of the first aspect; or a party causing an electronic device to perform the second aspect or any one of the embodiments of the second aspect.
In an eighth aspect, embodiments of the present application provide a computer program product for, when run on an electronic device, causing the electronic device to perform the method of the first aspect or any of the embodiments of the first aspect; or cause the electronic device to perform the method of the second aspect or any of the embodiments of the second aspect.
In a ninth aspect, an embodiment of the present application provides a circuit system comprising a processing circuit configured to perform the method of the first aspect or any implementation of the first aspect; alternatively, the processing circuitry is configured to perform the second aspect or a method of any one of the embodiments of the second aspect.
In a tenth aspect, an embodiment of the present application provides a chip system, including at least one processor and at least one interface circuit, where the at least one interface circuit is configured to perform a transceiver function and send an instruction to the at least one processor, and when the at least one processor executes the instruction, the at least one processor performs the method of the first aspect or any implementation manner of the first aspect; alternatively, at least one processor, when executing instructions, performs the method of the second aspect or any of the embodiments of the second aspect.
Drawings
FIG. 1A is a schematic diagram of a system architecture according to an embodiment of the present application;
FIG. 1B is a schematic diagram of a system architecture according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a system architecture according to an embodiment of the present application;
fig. 3 is a schematic hardware structure of an electronic device according to an embodiment of the present application;
fig. 4 is a schematic software structure of an electronic device according to an embodiment of the present application;
fig. 5A is a schematic hardware structure of an electronic device according to an embodiment of the present application;
FIG. 5B is a diagram of a user interface according to an embodiment of the present application;
FIGS. 6A and 6B are diagrams illustrating user interfaces according to embodiments of the present application;
FIG. 6C is a diagram of a user interface provided by an embodiment of the present application;
FIG. 7 is a schematic flow chart of a printing method according to an embodiment of the present application;
FIG. 8A is a schematic flow chart of a printing method according to an embodiment of the present application;
FIG. 8B is a flowchart of a printing method according to an embodiment of the present application;
FIG. 9A is a schematic flow chart of a printing method according to an embodiment of the present application;
FIG. 9B is a diagram of a user interface provided by an embodiment of the present application;
FIG. 10 is a schematic flow chart of a printing method according to an embodiment of the present application;
FIG. 11 is a schematic flow chart of a printing method according to an embodiment of the present application;
Fig. 12 is a schematic structural diagram of a printing apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application are described below with reference to the accompanying drawings in the embodiments of the present application. In the description of embodiments of the application, the terminology used in the embodiments below is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include, for example, "one or more" such forms of expression, unless the context clearly indicates to the contrary. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" means one or more than two (including two).
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise. The term "coupled" includes both direct and indirect connections, unless stated otherwise. The terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
In embodiments of the application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" 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" or "such as" is intended to present related concepts in a concrete fashion.
In the embodiments of the present application, the "user" is not limited to the owner of the electronic device or a particular user, but may be an animal, hard object, or other object. The user's manipulation of the electronic device may also be manipulation of the electronic device by an animal, hard object, or other object. The use of words "user" or "user action" and the like are intended to be illustrative of, and in particular, who performs the action, and embodiments of the present application are not limited.
The printing method of the embodiment of the application can be applied to a printing system. An example of a printing system to which the technical solution of the embodiment of the present application is applied is shown in fig. 2. The system comprises a first electronic device 100, a second electronic device 200 and a third electronic device 300.
Wherein the first electronic device 100 may be located within a first network. Alternatively, the first network may be any network that may be used. Such as a cellular network, or a wireless high-fidelity (wireless fidelity, wi-Fi) network.
An application (may be simply referred to as a print application) for controlling a print job may be installed in the first electronic device 100, and the application may interact with a message (may be simply referred to as a print protocol message, or a print service message, or a print message) related to a print protocol with the second electronic device 200 through the third network. Alternatively, the first electronic device 100 may be, but is not limited to being: electronic devices such as cell phones, tablet computers, notebook computers, ultra-mobile personal computer (UMPC), handheld computers, netbooks, personal digital assistants (personal digital assistant, PDA), etc., as embodiments of the present application are not limited in this respect.
In some embodiments, the first electronic device 100 may also be a server.
Optionally, the third network comprises a wide area network. Optionally, a server may be disposed in the third network. The server may be the same as or different from the manufacturer of the first electronic device 100 and the second electronic device 200. In some examples, the user may backup portions of the data in the first electronic device 100, upload to a server, and the server may store the backup data. Subsequently, when the first electronic device 100 receives a print instruction for the target data input by the user, the server may be instructed to transfer the target data stored by the server to a remote printer, so as to implement remote printing of the printer. In other examples, after receiving a print instruction for target data input by a user, the first electronic device 100 sends print data (such as a picture to be printed) to a server in the third network, and the server does not store the print data, but directly sends the print data to the printer through the router. Alternatively, in some possible scenarios, the server for holding the user print data and the server for sending the print data to the printer via the router may be different.
Optionally, the printing protocol includes, but is not limited to, internet printing protocol/multicast Domain name System (internet printing protocol/multicast domain name system, IPP/mDNS).
The second electronic device 200, the third electronic device 300 are located within a second network. Alternatively, the second network may be any local area network that may be used, such as a Wi-Fi network.
The second electronic device 200 may be a device that provides networking functionality for the third electronic device 300. In some examples, the second electronic device 200 is configured to receive a related message of a printing protocol (which may be simply referred to as a printing protocol message, or a printing service message, or a printing message) from the printing application, and send the printing message to the third electronic device 300. Alternatively, the second electronic device 200 may be, for example, a wireless router, a customer premises equipment (Customer Premise Equipment, CPE), or the like.
Optionally, the print message includes a message corresponding to the print instruction (may be simply referred to as a print control message), and/or a message of print data. The message corresponding to the print instruction may also be referred to as a print control message, and may be used to set a print parameter of the third electronic device 300. The message of the printing data is the message of the file to be printed.
The third electronic device 300 is configured to receive a print message from the first electronic device 100 through the second electronic device 200, and execute a print job of a document to be printed according to the print message. Optionally, the third electronic device 300 is a printer, which may or may not support the remote printing function.
The printer supports a remote printing function, namely the printer supports to directly acquire the file to be printed from the printing cloud. For example, in the printing scenario shown in fig. 1A, if the printer supports the remote printing function, the printer may directly obtain the file to be printed from the printing cloud, and then the printer performs a print job for the file to be printed.
The printer does not support the remote printing function, which means that the printer does not support directly acquiring the file to be printed from the printing cloud. As one solution, as in fig. 1B, a print cloud box is introduced in the networking, and a file to be printed is acquired and stored from the print cloud by the print cloud box and forwarded to the printer. The print cloud box needs to register with the print cloud, and the registration modes include, but are not limited to, code scanning registration and the like. In this way, the operation complexity of the user is improved and the user experience is poor in the process of realizing remote printing by means of the printing cloud box.
Alternatively, the first network and the second network may be networks supporting the same or different protocols. Illustratively, the first network is a cellular data network and the second network is a Wi-Fi network.
By way of example, fig. 3 shows a schematic structural diagram of the first electronic device 100. The first electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, a subscriber identity module (subscriber identification module, SIM) card interface 195, and the like.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to a touch sensor, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor through an I2C interface, so that the processor 110 and the touch sensor communicate through an I2C bus interface to implement a touch function of the electronic device.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing function of the electronic device. The processor 110 and the display screen 194 communicate via a DSI interface to implement the display functionality of the electronic device.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge an electronic device, or may be used to transfer data between the electronic device and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the connection relationship between the modules illustrated in the embodiments of the present application is only illustrative, and does not limit the structure of the electronic device. In other embodiments of the present application, the electronic device may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied on an electronic device. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device or displays images or video through a display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc. for application on an electronic device. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device can communicate with the network and other devices through wireless communication technology. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device implements display functions via a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device may include 1 or N display screens 194, N being a positive integer greater than 1.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the electronic device may include 1 or N cameras 193, N being a positive integer greater than 1.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device (e.g., audio data, phonebook, etc.), and so forth. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110. The electronic device may be capable of playing, recording, etc., via the audio module 170, such as music. The audio module 170 may include a speaker, a receiver, a microphone, a headphone interface, an application processor, etc. to implement audio functions.
The sensor module 180 may include a pressure sensor, a gyroscope sensor, a barometric sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device. The electronic device may support 1 or N SIM card interfaces, N being a positive integer greater than 1.
The above-described fig. 3 is merely a possible example of the structure of the electronic device, and does not constitute a limitation on the structure of the electronic device. In other embodiments of the application, the electronic device may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. Embodiments of the application are configured in a layered mannerThe system is an example illustrating the software architecture of the electronic device 100.
Fig. 4 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of applications.
As shown in fig. 4, the application program may include APP (application) for a call, a memo, a browser, a contact, a camera, a gallery, a calendar, a map, bluetooth, music, video, a short message, and the like.
In some embodiments of the application, the applications may also include applications related to print jobs, such as applications for controlling execution of print jobs. Alternatively, the application for controlling the print job may be pre-installed when the first electronic device 100 leaves the factory, or may be downloaded and installed from an application market when the user uses the first electronic device 100, which is not limited in the embodiment of the present application.
Illustratively, in an embodiment of the present application, the application for controlling execution of the print job includes, but is not limited to, a smart life application. The smart life application may provide a related interface through which a user may select a file (e.g., a picture/document) to be printed, and after the user selects the picture/document to be printed, the first electronic device 100 may control the printer to perform remote printing.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 4, the application framework layer may include a window manager, a content provider, a view system, a resource manager, a notification manager, and the like.
Wherein the window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views.
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
In embodiments of the present application, the framework layer may include a print service. The smart life application may invoke a print service, which generates a print message (including a message corresponding to a print instruction and/or a message of a document to be printed) according to a print protocol (such as IPP), where the print message may be transferred to the kernel layer through the frame layer, etc.
Each print service has a corresponding service name (or package name), e.g., forSystem, print service name is hwprintservice, for native +.>The name of the print service is builintin printservice. The implementation protocol of the print service may be, but is not limited to, IPP/mDNS.
The framework layer may also provide virtual private network (virtual private network) services (or VPN tunnels). The application program can call VPN service to intercept print message from kernel layer. The application may then send the intercepted print message to the second electronic device 200 to cause the second electronic device 200 (e.g., a router) to forward the print message to the third electronic device 300 (e.g., a printer).
Alternatively, the print message may be a message based on any print protocol (such as IPP).
It is understood that fig. 4 is only one example of a software architecture to which the first electronic device 100 is applicable, and that some modules or functions of a layer may be implemented by one or more other layers when actually implemented. For example, VPN service may be implemented by a kernel layer, VPN service may be provided externally by a framework layer, or partial functions of VPN service may be implemented by a plurality of layers, respectively.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications. Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc. The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like. The 2D graphics engine is a drawing engine for 2D drawing.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The kernel layer is a layer between hardware and software. The kernel layer at least comprises display drive, camera drive, audio drive, sensor drive, etc., which is not limited in this embodiment of the present application.
The structure of the second electronic device 200 may also refer to the structure of the first electronic device 100 shown in fig. 3, and the second electronic device 200 may have more or fewer components than the structure shown in fig. 3, or may combine certain components, or may split certain components, or may have a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
For example, when the second electronic device 200 is a router, as in fig. 5A, the second electronic device 200 may include a processor 501, a memory 502, a transceiver 503, and the like. Wherein the transceiver 503 is used to communicate with other devices. Please refer to the description of the related structure in the first electronic device 100 of fig. 3 for other components of the second electronic device 200, which is not described herein.
The technical solution of the embodiment of the present application is described below by taking the first electronic device 100 as a mobile phone and the second electronic device 200 as a router, and taking the mobile phone and the router being located in different local area networks as an example.
Illustratively, taking an application for controlling a print job as a smart life application as an example, in response to an operation of opening the smart life application by a user, the mobile phone displays an interface 601 as shown in fig. 5B (a). Wherein interface 601 includes a card for each electronic device in the home. Wherein the card of router AA is labeled 602. If it is detected that the user clicks on card 602, the handset may jump to interface 603 as shown in fig. 5B (B). Optionally, the interface 603 may expose an access device for router AA. Optionally, the interface 603 may also include a remote print option 604. If it is detected that the user clicks on the remote print option 604, the handset may jump to the remote print interface 605 as shown in fig. 5B (c). Optionally, the interface 605 includes a local photo option 606 and a local document option 607. The local photo option 606 is used for selecting a local photo to be printed by a user, and the local document option 607 is used for selecting a local document to be printed by the user.
In some examples, if the handset detects that the user clicks on the local photo option 606 shown in fig. 5B (c), the handset may jump to the album interface 608 shown in fig. 5B (d) and the user may select a local photo to be printed from the album. In response to a user selecting a photograph to be printed, such as clicking on the photograph as shown in fig. 5B (d), the handset may jump to the remote printing interface 605 as shown in fig. 6A (a), and the handset begins to establish a remote channel (e.g., a peer-to-peer (P2P) channel) with the router. Alternatively, the handset may display a "remote channel being established …" message 609 to alert the user that a remote channel is currently being established with the router. After the handset establishes a remote channel with the router, an interface 610 as shown in fig. 6A (b) may be displayed.
Optionally, the interface may include a hint information 612 to hint that the user is currently established a remote channel with the router.
Optionally, the interface 610 may also include preview information 611 of the photograph to be printed.
Optionally, the interface 610 also includes options related to the printing function. Optionally, the printing function related options include, but are not limited to: an option 619 for selecting a printer, an option for selecting the number of print copies, an option for selecting a paper type, an option for selecting a print mode (black-and-white, color printing), an option for selecting a paper size.
Wherein, as shown in fig. 6B (a), in response to the user clicking on the option 619, the handset may display a printer selection interface 617 as shown in fig. 6B (B). If the user is detected clicking on control 618 on interface 617, the handset determines that the user wants to perform the print job this time using printer XX. Upon detecting a user clicking on control 618 on interface 617, the handset can jump back to interface 610 as shown in fig. 6B (a).
Optionally, interface 610 also includes a start print button 613. In response to the user clicking the start print button 613, the mobile phone invokes the print service provided by the system, and the print service generates a print message according to the print protocol. The handset may also invoke a VPN interface provided by the system to intercept and send the print message to the router. The printing message comprises a message corresponding to the printing instruction and a message of the file to be printed.
After receiving the print message, the router can forward the print message to the connected printer. Optionally, the message corresponding to the print instruction may carry one or more print parameters as shown in fig. 6A (b). For example, the number of copies to be printed, the paper type (plain paper), the print mode (black and white), the paper size (A4) are carried. The handset may set the one or more printing parameters for the printer via a print message.
After the printer receives the printing message from the mobile phone through the router, the printer can execute the printing task according to the printing message. Illustratively, the printer sets the paper type according to the printing parameters carried in the message corresponding to the printing instruction, and starts to print the file to be printed after the printing parameters are set.
Alternatively, in response to the user clicking the start print button 613 as shown in fig. 6A (b), the handset may jump to the remote print interface 605 and display a prompt 614 to prompt the user that a print job is currently being performed as shown in fig. 6A (c).
Optionally, after the printer finishes the print job, the printer may send a job completion response to the mobile phone through the router, to indicate that the print job has been executed. In the case where the mobile phone knows that the print job has been executed, as shown in fig. 6A (d), the mobile phone may display a prompt 615 in the interface 605 to prompt the user that the print job has been executed.
In the above technical solution of the embodiment of the present application, after receiving a print instruction input by a user, a mobile phone may establish a remote channel between the mobile phone and a router, and send a message corresponding to the print instruction and a file to be printed to a printer through the router via the remote channel. Thus, the printer can execute the print task according to the message corresponding to the print instruction and the file to be printed. Therefore, under the condition that the printer does not support the remote printing function or supports the remote printing function, the printer can receive the message corresponding to the printing instruction from the mobile phone and the file to be printed through the router and execute the printing task, so that the execution success rate of the remote printing task is improved.
In addition, in the technical scheme, under the condition that the printer does not support the remote printing function, the mobile phone can intercept the printing message and send the intercepted printing message to the printer through the router, and in the process, a printing cloud box is not required to be additionally introduced, so that the networking complexity of the home network is reduced, and the high operation complexity caused by the registration of the printing cloud box can be avoided.
It should be noted that, in fig. 6A, the remote channel with the router is set up by the mobile phone before the user clicks the "start print" button 613, and in other embodiments, the mobile phone may set up the remote channel after detecting that the user clicks the "start print" button 613, which is not limited by the embodiment of the present application.
For example, if it is detected that the user selects (e.g., clicks on) a picture to be printed in the interface 608 shown in fig. 5B (d), the mobile phone may display an interface 610 shown in fig. 6C (a), which includes a start print button 613. Upon detecting that the user clicks the start print button 613, the handset may display an interface 616 as shown in fig. 6C (b). Optionally, interface 616 may include prompt 612 for prompting the user that the handset is currently establishing a remote channel and/or that the remote channel has been established successfully. After the remote channel is established successfully, the handset may display a prompt 614 in interface 616 to prompt the user that the printer is currently printing, as shown in fig. 6C (C). After the printer has finished printing, as shown in fig. 6C (d), the mobile phone may display a prompt 615 in the interface 616 for prompting the user that the printer has finished printing.
The interaction between the above-mentioned electronic devices during printing is described below. For example, taking the first electronic device 100 as a mobile phone, the second electronic device 200 as a router, and the third electronic device 300 as a printer, the first electronic device 100, the second electronic device 200, and the third electronic device 300 satisfy the system architecture shown in fig. 2, and as shown in fig. 7, the printing method provided in the embodiment of the application includes:
s101, the mobile phone receives a printing instruction input by a user.
As one possible implementation, as shown in fig. 8a, s101 may be implemented as: s101a, the mobile phone receives a printing instruction input by a user through a printing application. Print applications include, but are not limited to, applications such as smart life related to print jobs.
In the embodiment of the application, the user can input the printing instruction in any available mode, and the printing instruction is used for instructing the mobile phone to remotely control the printer to execute the printing task. Optionally, the printing instruction may be an instruction input by a user through an interface, or may be a voice instruction input by the user, and the embodiment of the present application does not limit the form of the printing instruction.
For example, the user may input a voice "let a printer at home print a picture a in a album of a mobile phone" through a voice assistant, and the voice may be used as a print instruction.
As further illustrated in fig. 6A (b), the smart life application receives an operation instruction by which the user clicks the "start print" button 613, which may be a print instruction.
S102, the mobile phone generates and intercepts the printing message.
After the mobile phone detects the printing instruction, a printing message can be generated so as to control the remote printer to execute the printing task. The print message includes a message corresponding to the print instruction (i.e., a print control message) and a message of the document to be printed (i.e., a print data message). Alternatively, a file to be printed may be encapsulated into one or more messages according to a printing protocol.
As one possible implementation, as shown in fig. 8A, S102 may be implemented as: s102a, the printing application calls the printing service provided by the mobile phone system, and S102b, the printing service generates a printing message. After that, the print service may also execute step S102c to transfer the print message to the kernel. In the related art, the handset may forward the print message to other devices through the kernel (such as forwarding based on the print protocol in the mDNS local area network), but the forwarding process is generally limited to forwarding in the same local area network. That is, the handset needs to be within the same local area network as the receiving device. In the embodiment of the application, in order to enable the mobile phone to send the printing message to the remote equipment, the mobile phone can intercept the printing message generated by the kernel into the printing application and establish the remote channel between the printing application and the remote router, so that the printing message can be sent to the remote router through the printing application, and the remote printing is realized.
As a possible implementation manner, as shown in fig. 8A, the mobile phone intercepts the print message generated by the kernel, which may be implemented as the following steps S102d-S102g:
s102d, the printing application calls VPN service;
s102e, the VPN service sends an interception request to the kernel, wherein the interception request is used for requesting interception of the printing message.
After receiving the interception request, the kernel determines that one or more printing messages in the current printing task need to be sent to the VPN service. Then, after the kernel receives the print message of the current print job from the print service, the print message needs to be forwarded to the VPN service.
S102f, the kernel sends a printing message to the VPN service, and the VPN service intercepts the printing message from the kernel.
As a possible implementation manner, after the kernel receives a certain type of message from the print service, the kernel can identify that the message is a print message through the service name (or packet name) of the message. And then, the kernel intercepts the printing message and sends the printing message to VPN service.
S102g, the VPN service transmits the intercepted printing message to the printing application.
Alternatively, the VPN service may be implemented by a related technology. Exemplary, for installation ofThe VPN service can be realized based on the vpnservice interface of the mobile phone of the system.
It should be noted that, the embodiment of the present application is not limited to the execution sequence of generating and intercepting the message of the print instruction and the message of the file to be printed.
S103, a remote channel is established between the mobile phone and the router.
As one possible implementation, as shown in fig. 8a, s103 may be implemented as: s103a, the mobile phone establishes a remote channel between the printing application and the router. Optionally, the remote channel is used to transmit print messages between the printing application and the router.
Optionally, the remote channel includes, but is not limited to, a P2P channel. Optionally, the P2P channels include, but are not limited to, P2P channels based on network address translation (session traversal utilities for nat, stun) technology of session traversal application, P2P channels based on network address translation (traversal using relays around nat, turn) technology of relay traversal.
For example, if a P2P channel based on turn technology is established, the P2P channel may include a server for relay service. If a P2P channel based on stun technology is established, the P2P channel may not include a server for relay service, i.e. the handset and the router may be directly connected, and no other relay node exists between the handset and the router.
It should be noted that, after receiving the print command input by the user, the mobile phone may establish a remote channel with the router. For example, the mobile phone establishes a remote channel after detecting that the user clicks the start print button 613 as shown in (a) of fig. 6C. Alternatively, the handset may pre-establish a remote channel with the router prior to receiving the print instructions entered by the user. For example, the mobile phone establishes a remote channel in advance before detecting that the user clicks the start print button 613 as shown in (b) of fig. 6A. The embodiment of the application does not limit the establishment time and the specific establishment mode of the remote channel.
S104, the mobile phone sends a printing message to the router through the remote channel.
As one possible implementation, as shown in fig. 8a, s104 may be implemented as: and S104a, the printing application sends a printing message to the communication module of the router through the remote channel. Wherein the print message is intercepted by the print service into the print application. Alternatively, if the remote channel includes a server for the relay service, the print application may send the print message to the server first, and then the server (one example of a fourth electronic device) sends the print message to the router.
It should be noted that, the message of the print instruction and the message of the file to be printed may be sent by the same message, or may be sent by different messages. For the case of sending a message through a plurality of messages, the message of the printing instruction may be sent first, or the message of the file to be printed may be sent first, or the message of the printing instruction and the message of the file to be printed may be sent simultaneously.
Illustratively, the handset begins sending print messages to the router upon detecting a user clicking on the start print button 613 as shown in fig. 6C (a). The print message includes a print control message and a message of a document to be printed. The print control message may carry one or more print parameters (such as, but not limited to, paper type, paper size, etc.) as shown in fig. 6C (a). The message of the file to be printed may be, for example, one or more messages formed by encapsulating the picture 611 to be printed as shown in fig. 6C (a).
S105, the router sends a printing message to the printer.
As one possible implementation, as shown in fig. 8a, s105 may be implemented as: s105a, the communication module analyzes and transmits a printing message to VPN service of the router; s105b, the VPN service of the router transmits a printing message to the kernel; and S105c, the kernel calls the communication module through the corresponding drive to send a printing message to the printer.
Alternatively, the VPN service of the router may be based onIs realized by a tun interface.
S106, the printer executes the print task.
For example, as shown in fig. 6A (c), during execution of a print job by the printer, the handset may display a prompt 614 to prompt the user that the printer is printing.
And S107, the printer sends a response message to the mobile phone.
The response message is used for indicating that the printing task is completed.
As one possible implementation, the printer sends the response message to the handset through the router.
Alternatively, because the printer and router are within the same local area network, the router may interact with the printer through a kernel. Alternatively, the interaction flow between the router and the printer may follow a printing protocol (such as mDNS protocol) within the local area network.
After the router receives the response message from the printer through the kernel (corresponding to step S107a shown in fig. 8A), the router determines the identifier (such as the service name) of the response message, and sends the response message to the first electronic device according to the identifier of the response message. After receiving the response message, the router determines that the response message is a message of the printing service according to the service name of the response message, and may call the VPN service to intercept the response message (corresponding to step S107b shown in fig. 8A), where the VPN service transmits the intercepted response message to the communication module (corresponding to step S107c shown in fig. 8A), and the communication module sends the response message to the mobile phone through the remote channel (corresponding to step S107d shown in fig. 8A). Wherein the interaction between the communication module and the handset may follow IPP.
For example, after the printer has performed the print job, the instruction information may be sent to the mobile phone, and after the mobile phone receives the instruction information, and knows that the printer has performed the print job, the prompt information 615 as shown in (d) of fig. 6A may be displayed to prompt the user that the printer has completed the print job.
In the above embodiment, in the remote printing scenario, the mobile phone establishes a channel between the printing application such as smart life and the router, and transmits a printing message (including a message corresponding to a printing instruction and a message of a file to be printed) between the printing application and the router, so that the router can send the printing message to the printer, thereby realizing the function of the printer to print remote files (i.e. to print files in devices not in the same local area network). Compared with the scheme shown in fig. 1B, when the printer does not support the remote function, the file to be printed can be received from the printing cloud only by means of the printing cloud box, and networking is relatively complex, the technical scheme of the embodiment of the application can realize the remote printing function without additionally and independently setting the printing cloud box in networking, and reduces networking complexity.
In addition, in the embodiment of the application, the printing message can reach the printer through the mobile phone and the router, the number of the devices passing through the communication path is less, the transmission time delay is smaller, the transmission efficiency is higher, and the efficiency of the printing task is improved.
In addition, after the router receives the printing message from the mobile phone, the router does not need to store the printing message, so that the consumption of storage resources can be reduced.
By way of example, fig. 8B illustrates yet another method flow of an embodiment of the present application. In the process, the mobile phone sends a printing control message through the router, and then sends a file to be printed to the printer so as to control the printer to execute remote printing. As shown in fig. 8B, the method includes:
s401, the mobile phone receives a printing instruction input by a user.
S402, the mobile phone generates and intercepts a printing control message.
S403, a remote channel is established between the mobile phone and the router.
S404, the mobile phone sends a printing control message to the router through the remote channel.
Illustratively, the print control message carries one or more print parameters.
S405, the router sends a printing control message to the printer.
S406, the printer sends a first response message aiming at the printing message to the mobile phone.
Optionally, after receiving the print control message, the printer sets the print parameters according to the print control message. After the printing parameters are set, the printer can send the first response message to the mobile phone through the router, wherein the first response message is used for representing that the printing parameters are set.
This step S406 is an optional step.
S407, the mobile phone sends the file to be printed to the printer.
In some embodiments, after receiving the first response message from the printer, the mobile phone knows that the printer has set the corresponding printing parameters, and then the mobile phone issues the file to be printed to the printer.
As one possible implementation, the handset sends the file to be printed to the printer via the router. Optionally, if the remote channel between the mobile phone and the router includes a server, the mobile phone may first send the file to be printed to the server, and then the server sends the file to be printed to the printer via the router.
The process of sending the file to be printed to the printer by the mobile phone can be referred to as the process of sending the printing control message to the printer by the mobile phone. The mobile phone calls VPN service to intercept the file to be printed, and sends the intercepted file to be printed to the router through the remote channel, and the router forwards the file to be printed to the printer.
S408, the printer executes the print task.
After receiving the file to be printed, the printer executes a print job for the file to be printed.
S409, the printer sends a second response message to the mobile phone.
The second response message is used for indicating that the printing task is completed.
It should be noted that, in the embodiment shown in fig. 8B, only the mobile phone is used to send the print control message first and then send the file to be printed for illustration, and in other embodiments, the sending timing of the print control message and the file to be printed may be determined according to the need, which is not limited herein.
The embodiment of the application also provides a printing method, wherein when a user expects a remote printer to execute a printing task, a server generates a printing message to control the printer to execute the remote printing task (such as a printer in home to print a file in a remote mobile phone). For example, in some scenarios, a user selects a file (such as a photograph or document) that has been uploaded to a cloud server through a terminal, and instructs the terminal to print the selected file. In such a scenario, the terminal may instruct the server storing the file to generate a print message to control the printer to execute the print job. The flow of the method is illustrated in fig. 9A, and the method includes the following steps:
s201, the mobile phone receives a printing instruction input by a user.
The specific implementation of S201 may refer to step S101, which is not described herein.
S202, the mobile phone sends a printing instruction to a server (first electronic equipment).
Optionally, the print instruction carries an identification of the file to be printed.
As one possible implementation manner, the mobile phone detects a print instruction of a user on a target file, and if it is determined that the target file is a file that has been backed up to the server, the mobile phone sends the print instruction to the server. Optionally, the print command sent by the mobile phone may carry the identifier of the target file.
Or after detecting the printing instruction of the user on the target file, the mobile phone sends the printing instruction to the server, and the server inquires whether the target file is backed up to the server. In the case where the target file has been backed up to the server, the server may perform the following step S203. In the case where the target file is not backed up to the server, the server acquires the target file from the cellular phone and performs the following step S203.
Illustratively, as in (a) of fig. 9B, the handset displays a remote printing interface 903, the interface 903 including a "cloud photo" option 901. Upon detecting the user clicking on option 901, the handset may jump to interface 902 as shown in fig. 9B (B). The interface 902 may include pictures stored in a cloud server and uploaded by the cell phone or co-account device. Optionally, after detecting the operation of selecting one or more pictures from the cloud image library by the user, the mobile phone may jump to the interface 904 as shown in fig. 9B (c). After detecting the operation of the user clicking the start print button 613, the mobile phone transmits a print instruction to the server.
Optionally, the interface 903 may further include options for other cloud files (such as documents uploaded to a cloud server), which is not limited by the embodiment of the present application.
S203, the server generates and intercepts the printing message.
As a possible implementation, after receiving the print instruction, the server invokes a print service, and the print service generates a print message according to a print protocol (such as IPP). The server, upon receiving a print instruction (which may carry an identification of the file to be printed) from the cell phone, determines the file that the user wants to print, and encapsulates the file into one or more messages. The server may also encapsulate the print instructions into corresponding print control messages.
S204, a remote channel is established between the server and the router.
The process of establishing a remote channel between the server and the router can be referred to as a process of establishing a remote channel between the mobile phone and the router. Optionally, the remote channels between the server and the router include, but are not limited to, P2P channels.
The embodiment of the application does not limit the time for establishing the remote channel. The server may establish the remote channel after receiving the print instruction, or after the user selects the cloud file to be printed and before receiving the print instruction. Alternatively, in other embodiments, the server and router have established a remote channel prior to the current print job, and no remote channel need be established for the current print job.
S205, the server sends the printing message to the router through the remote channel.
S206, the router sends the printing message to the printer.
The specific implementation of S206 may refer to step S105, which is not described herein.
S207, the printer executes the print task.
In the implementation manner, the server and the router are used for interactively printing the message (including the printing control message and the file to be printed), so that the communication path is shortened, and the efficiency of the printing process is improved.
S208, the printer sends a response message to the server, wherein the response message is used for indicating that printing is completed.
S209, the server sends a response message to the mobile phone, wherein the response message is used for indicating that printing is completed.
The embodiment of the application also provides a printing method, wherein when a user expects a remote printer to execute a printing task, a router (such as a home) generates a printing message to control the printer to execute the remote printing task (such as a file in a mobile phone of a printing company). The flow of the method is illustrated in fig. 10, and the method comprises the following steps:
s301, the mobile phone receives a printing instruction input by a user.
The specific implementation of S301 may refer to step S101, which is not described herein.
S302, a remote channel is established between the mobile phone and the router.
The specific implementation of S302 may refer to step S103, which is not described herein.
S303, the mobile phone sends the file to be printed to the router through the remote channel.
The specific implementation of S302 may refer to step S104, which is not described herein.
S304, the router generates a printing message.
As one possible implementation, after receiving the file to be printed, the router invokes a print service that generates a print message according to a print protocol (such as IPP).
S305, the router sends a printing message to the printer.
S306, the printer executes the print task.
Therefore, according to the technical scheme of the embodiment, the printed message only needs to be interacted between the router and the printer, and is not required to be transmitted between the mobile phone and the router, so that the signaling overhead required for transmitting the message is further reduced.
It should be noted that the interface provided in the foregoing embodiments is merely exemplary, and the interface may have other designs, which are not limited in this respect.
Also, the types of files to be printed provided in the above embodiments are merely exemplary, and in other embodiments, other types of files, such as credential printing, web page printing, etc., may be included in the interface 605 shown in fig. 5B (c).
In addition, in consideration of information security, the interactive data between the electronic devices according to the embodiment of the application can be transmitted in an encryption mode or the like. For example, when the mobile phone uploads the backup data to the server, the desensitized backup data is uploaded.
S307, the printer sends a response message to the router, wherein the response message is used for indicating that the printing task is completed.
And S308, the router sends a response message to the mobile phone.
Fig. 11 shows still another flow of the printing method of the embodiment of the present application. Applied to a second electronic device, the method comprising:
s501, the first electronic equipment receives a printing instruction.
The printing instruction is used for indicating to execute a printing task.
In some examples, if the first electronic device is a device such as a terminal, the terminal receives a print instruction, which may be an operation instruction that a user clicks a "start print" button.
Optionally, before the terminal receives the print instruction, the terminal may further display a first interface; the first interface comprises one or more cards corresponding to the electronic equipment, and the one or more cards of the electronic equipment comprise the card of the second electronic equipment; detecting operation of a user on a card of the second electronic equipment, and displaying a second interface; the second interface includes an option for a print function associated with the second electronic device.
Illustratively, as in (a) of fig. 5B, the terminal may display an interface 601 (one example of a first interface), the interface 601 including a card for an electronic device such as a television, a speaker, and a card 602 for a router (a second electronic device). Upon detecting the user's operation on the router's card 602, the terminal displays an interface 603 (one example of a second interface) shown in fig. 5B (B), the interface 603 including an option 604 of a router-associated print function.
Optionally, after displaying the second interface, as in (B) of fig. 5B, if the user's operation of the option 604 of the printing function is detected, the mobile phone may display information of one or more files shown in (c) of fig. 5B. The one or more files include at least one of files local to the terminal and files backed up by the terminal on other devices, such as servers. The user may select one or more target print files from among the one or more files shown in fig. 5B (c).
The receiving a print instruction includes: an operation instruction of a user on a print control associated with the one or more target print files is received. For example, as in (b) of fig. 6A, the terminal may receive a click instruction of the start print button 613 by the user and take the click instruction as a print instruction associated with the target print file selected by the user.
In other examples, in the cloud backup scenario, if the first electronic device is a server, the first electronic device receives the print instruction, which may be that the server receives the print instruction from the terminal. The print instruction is an operation instruction associated with one or more target print files stored on the server.
Illustratively, as shown in fig. 9B, the user may select a cloud photo (one or more target print files) through the terminal and click on the start print button to trigger this print job.
S502, the first electronic device responds to the printing instruction to obtain a printing message corresponding to the printing task.
As a possible implementation manner, the first electronic device determines the identifier of the print message in response to the print instruction, and obtains the print message according to the identifier of the print message.
Alternatively, the identification of the print message may be, but is not limited to, the name of the service of the print message. After receiving the print instruction, the first electronic device may encapsulate print data (such as a picture to be printed, a document, etc.) into one or more print data packets, and encapsulate the print instruction into one or more print control packets. Optionally, the print instruction carries one or more print parameters.
S503, the first electronic device sends the printing message to a remote second electronic device.
Correspondingly, the second electronic device receives the printing message from the first electronic device at a remote location.
The printing message is used for controlling the third electronic device to execute a printing task, and the second electronic device and the third electronic device belong to the same local area network.
S504, the second electronic equipment sends the printing message to the third electronic equipment.
As a possible implementation manner, sending the print message to the third electronic device may be implemented as: and directly transmitting and forwarding the printing message to the third electronic equipment. That is, the second electronic device does not need to store the printing message, but directly forwards the printing message, so that the consumption of storage resources can be reduced, the storage space can be saved, and the printing efficiency can be improved.
S505, the third electronic device executes the printing task.
The embodiment of the application also provides a printing method, wherein the first electronic device can acquire whether the third electronic device supports the remote printing function, if the third electronic device supports the remote printing function, the printing task can be executed along the related technology, and if the third electronic device does not support the remote printing function, the printing task is executed by adopting the technical scheme of the embodiment of the application. Taking the first electronic device as a terminal, the second electronic device as a router and the third electronic device as a printer as an example, if the terminal knows that the printer supports a remote printing task, the terminal can send a printing data message to the printer through a printing cloud. If the terminal knows that the printer does not support the remote printing task, the terminal sends the printing message to the router through a remote channel between the terminal and the router.
The above-mentioned one or more interfaces are all exemplary, and other interface design manners are also possible, and the specific design manner of the interfaces is not limited by the present application, and the switching manner between the interfaces (for example, the interface may be switched by sliding up and down in the interfaces, or the interface may be switched by pressing a specific key). For example, the interface forms and operational flows presented in fig. 6A, 6B, 6C, and 9B are not limited. For example, in other embodiments, card mode may not be used. For another example, the third interface and the fourth interface may be displayed as long as the file can be selected and the print job triggered.
In some aspects, various embodiments of the application may be combined and the combined aspects implemented. Optionally, some operations in the flow of method embodiments are optionally combined, and/or the order of some operations is optionally changed. The order of execution of the steps in each flow is merely exemplary, and is not limited to the order of execution of the steps, and other orders of execution may be used between the steps. And is not intended to suggest that the order of execution is the only order in which the operations may be performed. Those of ordinary skill in the art will recognize a variety of ways to reorder the operations described herein. In addition, it should be noted that details of processes involved in a certain embodiment herein apply to other embodiments as well in a similar manner, or that different embodiments may be used in combination.
Illustratively, in fig. 7, there is no limitation on the execution order between step S102 and step S105.
Moreover, some steps in method embodiments may be equivalently replaced with other possible steps. Alternatively, some steps in method embodiments may be optional and may be deleted in some usage scenarios. Alternatively, other possible steps may be added to the method embodiments.
Moreover, the method embodiments may be implemented alone or in combination.
It will be appreciated that, in order to implement the above-mentioned functions, the electronic device in the embodiment of the present application includes corresponding hardware structures and/or software modules for performing the respective functions. The various illustrative units and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application, but such implementation is not to be considered as beyond the scope of the embodiments of the present application.
The embodiment of the application can divide the functional units of the electronic device according to the method example, for example, each functional unit can be divided corresponding to each function, and two or more functions can be integrated in one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
Fig. 12 shows a schematic block diagram of an intelligent device control apparatus provided in an embodiment of the present application, where the apparatus may be the first electronic device or a component with a corresponding function. The apparatus 1700 may exist in the form of software or as a chip that may be used in a device. The apparatus 1700 includes: a processing unit 1702 and a communication unit 1703. Alternatively, the communication unit 1703 may be further divided into a transmission unit (not shown in fig. 12) and a reception unit (not shown in fig. 12). The sending unit is configured to enable the apparatus 1700 to send information to other electronic devices. A receiving unit for supporting the apparatus 1700 to receive information from other electronic devices.
Optionally, the apparatus 1700 may further include a storage unit 1701 for storing program codes and data of the apparatus 1700, and the data may include, but is not limited to, raw data or intermediate data, etc.
If the apparatus 1700 is a first electronic device or related apparatus, the processing unit 1702 may be configured to support a receiving device to perform processes such as S502 in fig. 11, and/or other processes for the schemes described herein. The communication unit 1703 is configured to support communication between the apparatus 1700 and other electronic devices (e.g., the second electronic device described above, etc.), for example, to support execution of S503 in fig. 11, etc.
If the apparatus 1700 is a second electronic device or related apparatus, the processing unit 1702 may be configured to support a receiving device to intercept a response message, etc., and/or other processes for the schemes described herein. The communication unit 1703 is configured to support communication between the apparatus 1700 and other electronic devices (e.g., the second electronic device described above, etc.), for example, to support execution of S503 in fig. 11, etc.
Optionally, in some examples, the communication unit is further configured to receive input information of a user, for example, receive a print instruction (such as clicking a start print button) input by the user, and so on.
Optionally, the apparatus 1700 may further comprise a display unit (not shown in fig. 12) for displaying an interface and/or other information.
In one possible implementation, the processing unit 1702 may be a controller or the processor 501 shown in fig. 5A, such as a central processing unit (Central Processing Unit, CPU), general purpose processor, digital signal processing (Digital Signal Processing, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with this disclosure. A processor may also be a combination that performs computing functions, e.g., including one or more microprocessors, a combination of a DSP and a microprocessor, and so forth.
In one possible implementation, the communication unit 1703 may include the transceiver 503 shown in fig. 5A, and may further include a transceiver circuit, a radio frequency device, and so on.
In one possible approach, the memory location 1701 may be the memory 502 shown in FIG. 5A.
The embodiment of the application also provides electronic equipment which comprises one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, the one or more memories being configured to store computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform the related method steps described above to implement the smart device control method of the above embodiments.
The embodiment of the application also provides a chip system, which comprises: a processor coupled to a memory for storing programs or instructions which, when executed by the processor, cause the system-on-a-chip to implement the method of any of the method embodiments described above.
Alternatively, the processor in the system-on-chip may be one or more. The processor may be implemented in hardware or in software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, or the like. When implemented in software, the processor may be a general purpose processor, implemented by reading software code stored in a memory.
Alternatively, the memory in the system-on-chip may be one or more. The memory may be integral with the processor or separate from the processor, and the application is not limited. The memory may be a non-transitory processor, such as a ROM, which may be integrated on the same chip as the processor, or may be separately provided on different chips, and the type of memory and the manner of providing the memory and the processor are not particularly limited in the present application.
The system-on-chip may be, for example, a field programmable gate array (field programmable gatearray, FPGA), an application specific integrated chip (application specific integrated circuit, ASIC), a system on chip (SoC), a central processing unit (central processorunit, CPU), a network processor (network processor, NP), a digital signal processing circuit (digital signal processor, DSP), a microcontroller (micro controller unit, MCU), a programmable controller (programmable logic device, PLD) or other integrated chip.
It should be understood that the steps in the above-described method embodiments may be accomplished by integrated logic circuitry in hardware in a processor or instructions in the form of software. The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution.
The embodiment of the application also provides a computer readable storage medium, wherein computer instructions are stored in the computer readable storage medium, and when the computer instructions run on the electronic device, the electronic device is caused to execute the related method steps to realize the intelligent device control method in the embodiment.
The embodiment of the application also provides a computer program product, which when run on a computer, causes the computer to execute the related steps to realize the intelligent device control method in the embodiment.
In addition, embodiments of the present application also provide an apparatus, which may be a component or module in particular, which may include a processor and a memory connected; the memory is configured to store computer-executable instructions, and when the apparatus is running, the processor may execute the computer-executable instructions stored in the memory, so that the apparatus executes the intelligent device control method in the above method embodiments.
The electronic device, the computer readable storage medium, the computer program product or the chip provided by the embodiments of the present application are used to execute the corresponding method provided above, so that the beneficial effects thereof can be referred to the beneficial effects in the corresponding method provided above, and will not be described herein.
It will be appreciated that in order to achieve the above-described functionality, the electronic device comprises corresponding hardware and/or software modules that perform the respective functionality. The present application can be implemented in hardware or a combination of hardware and computer software, in conjunction with the example algorithm steps described in connection with the embodiments disclosed herein. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application in conjunction with the embodiments, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The present embodiment may divide the functional modules of the electronic device according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated modules described above may be implemented in hardware. It should be noted that, in this embodiment, the division of the modules is schematic, only one logic function is divided, and another division manner may be implemented in actual implementation.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above. The specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which are not described herein.
In the several embodiments provided in the present application, it should be understood that the disclosed method may be implemented in other manners. For example, the above-described embodiments of the terminal device are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via interfaces, modules or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in whole or in part in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) or a processor to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic or optical disk, and the like.
The foregoing is merely illustrative of specific embodiments of the present application, and the scope of the present application is not limited thereto, but any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (31)

1. A printing method, applied to a second electronic device, the method comprising:
receiving a print message from a first electronic device;
and sending the printing message to a third electronic device, wherein the printing message is used for controlling the third electronic device to execute a printing task, and the second electronic device and the third electronic device belong to the same local area network.
2. The method of claim 1, wherein sending the print message to a third electronic device comprises:
and transmitting and forwarding the printing message to the third electronic equipment.
3. The method according to claim 1 or 2, wherein after sending the print message to a third electronic device, the method further comprises:
receiving a response message from the third electronic device, wherein the response message is used for indicating that the printing task is completed;
And sending the response message to the first electronic equipment.
4. A method according to any one of claims 1-3, characterized in that the method further comprises: establishing a channel between the first electronic device and the first electronic device;
receiving a print message from the first electronic device, including: and receiving the printing message from the first electronic equipment through the channel.
5. A method according to claim 3, characterized in that the method further comprises: establishing a channel between the first electronic device and the first electronic device;
the response message is sent to the first electronic equipment, and the response message comprises the following components: and sending the response message to the first electronic equipment through the channel.
6. The method of any of claims 1-5, wherein the print messages comprise print control messages and print data messages.
7. The method of any of claims 1-6, wherein the receiving a print message from a remote first electronic device comprises: and receiving the printing message from the first electronic device through a fourth electronic device.
8. The method of claim 3, wherein sending the response message to the first electronic device comprises: and sending the response message to the first electronic equipment through fourth electronic equipment.
9. The method of claim 3, wherein sending the response message to the first electronic device comprises:
and determining the identification of the response message, and sending the response message to the first electronic equipment according to the identification of the response message.
10. A printing method, applied to a first electronic device, the method comprising:
receiving a printing instruction, wherein the printing instruction is used for indicating to execute a printing task;
responding to the printing instruction, and acquiring a printing message corresponding to the printing task;
and sending the printing message to a remote second electronic device, wherein the printing message is used for controlling a third electronic device to execute the printing task, and the second electronic device and the third electronic device belong to the same local area network.
11. The method of claim 10, wherein prior to receiving the print instructions, the method further comprises:
displaying a first interface; the first interface comprises one or more cards corresponding to the electronic equipment, and the one or more cards of the electronic equipment comprise the card of the second electronic equipment;
detecting operation of a user on a card of the second electronic equipment, and displaying a second interface; the second interface includes an option for a print function associated with the second electronic device.
12. The method of claim 11, wherein after displaying the second interface, the method further comprises:
detecting operation of a user on options of the printing function, and displaying information of one or more files; the one or more files include at least one of a file local to the first electronic device and a file backed up by the first electronic device on other devices;
determining that a user selects one or more target print files from the one or more files; the receiving a print instruction includes: an operation instruction of a user on a print control associated with the one or more target print files is received.
13. The method of any one of claims 10-12, wherein the first electronic device is a server;
the receiving a print instruction includes: and receiving operation instructions related to one or more target print files stored on the server by a user.
14. The method according to any one of claims 10-13, further comprising: establishing a channel with the second electronic device;
and sending the printing message to second electronic equipment, wherein the printing message comprises the following steps: and sending the printing message to the second electronic equipment through the channel.
15. The method according to any one of claims 10-14, wherein after sending the print message to a second electronic device, the method further comprises:
and receiving a response message from the second electronic equipment, wherein the response message is used for indicating that the printing task is completed.
16. The method according to any one of claims 10-15, wherein the print messages comprise print control messages and print data messages.
17. The method of any of claims 10-16, wherein the sending the print message to a remote second electronic device comprises:
and sending the printing message to the remote second electronic equipment through fourth electronic equipment.
18. The method according to any one of claims 10-17, wherein the obtaining, in response to the print instruction, a print message corresponding to the print job includes:
responding to the printing instruction, and determining the identification of the printing message;
and acquiring the printing message according to the identification of the printing message.
19. A printing system, comprising:
the first electronic equipment is used for receiving a printing instruction and responding to the printing instruction to acquire a printing message corresponding to the printing task; the printing message is used for controlling a third electronic device to execute the printing task, and the second electronic device and the third electronic device belong to the same local area network; the printing instruction is used for indicating to execute a printing task;
The second electronic device is configured to receive a print message from the first electronic device and send the print message to the third electronic device.
20. The system of claim 19, wherein the second electronic device configured to send the print message to a third electronic device comprises:
and the printing message is transmitted and forwarded to the third electronic equipment.
21. The system of claim 19 or 20, wherein the first electronic device is further configured to:
displaying a first interface; the first interface comprises one or more cards corresponding to the electronic equipment, and the one or more cards of the electronic equipment comprise the card of the second electronic equipment;
detecting operation of a user on a card of the second electronic equipment, and displaying a second interface; the second interface includes an option for a print function associated with the second electronic device.
22. The system of claim 21, wherein the first electronic device is further configured to:
detecting operation of a user on options of the printing function, and displaying information of one or more files; the one or more files include at least one of a file local to the first electronic device and a file backed up by the first electronic device on other devices;
Determining that a user selects one or more target print files from the one or more files;
the first electronic device is configured to receive a print instruction, and includes: and the operation instruction of a user on the printing control associated with the one or more target printing files is received.
23. The system of any one of claims 19-22, wherein the first electronic device is a server;
the first electronic device is configured to receive a print instruction, and includes: and receiving operation instructions related to one or more target print files stored on the server by a user.
24. The system of any one of claims 19-23, wherein,
the second electronic device is further configured to receive a response message from the third electronic device, and send the response message to the first electronic device; the response message is used for indicating that the printing task is completed;
the first electronic device is further configured to receive a response message from the second electronic device.
25. The system of any of claims 19-24, wherein the second electronic device is further configured to establish a channel with the first electronic device; the first electronic device is further used for establishing a channel with the second electronic device;
The second electronic device is configured to receive a print packet from the first electronic device, and includes: the printing message receiving module is used for receiving the printing message from the first electronic equipment through the channel;
the first electronic device is configured to send the print message to a second electronic device, and includes: and the printing message is sent to the second electronic equipment through the channel.
26. The system of any of claims 19-25, wherein the print messages include print control messages and print data messages.
27. The system of any one of claims 19-26, wherein,
the first electronic device is configured to send the print message to a remote second electronic device, and includes: sending a printing message to the second electronic equipment at a remote place through fourth electronic equipment;
the second electronic device is configured to receive a print message from a first remote electronic device, and includes: and receiving the printing message from the first electronic device through a fourth electronic device.
28. The system of claim 24, wherein the second electronic device configured to send the response message to the first electronic device comprises:
And determining the identification of the response message, and sending the response message to the first electronic equipment according to the identification of the response message.
29. The system of any one of claims 19-28, wherein the first electronic device, configured to obtain, in response to the print instruction, a print message corresponding to the print job, includes:
the identification method comprises the steps of responding to the printing instruction, and determining the identification of the printing message;
and acquiring the printing message according to the identification of the printing message.
30. An electronic device, comprising: a processor and a memory coupled to the processor, the memory for storing computer program code comprising computer instructions that, when read from the memory by the processor, cause the electronic device to perform the method of any one of claims 1-9 or the method of any one of claims 10-18.
31. A computer readable storage medium, characterized in that the computer readable storage medium comprises a computer program which, when run on an electronic device, causes the electronic device to perform the method of any one of claims 1-9 or to perform the method of any one of claims 10-18.
CN202210283787.1A 2022-03-21 2022-03-21 Printing method, electronic equipment and system Pending CN116820355A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210283787.1A CN116820355A (en) 2022-03-21 2022-03-21 Printing method, electronic equipment and system
PCT/CN2023/082581 WO2023179561A1 (en) 2022-03-21 2023-03-20 Printing method, electronic device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210283787.1A CN116820355A (en) 2022-03-21 2022-03-21 Printing method, electronic equipment and system

Publications (1)

Publication Number Publication Date
CN116820355A true CN116820355A (en) 2023-09-29

Family

ID=88099946

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210283787.1A Pending CN116820355A (en) 2022-03-21 2022-03-21 Printing method, electronic equipment and system

Country Status (2)

Country Link
CN (1) CN116820355A (en)
WO (1) WO2023179561A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6958824B2 (en) * 2001-01-31 2005-10-25 Hewlett-Packard Development Company, L.P. System and method for accessing and using a commercial print service
CN105005455B (en) * 2015-06-26 2017-12-08 丁四涛 The print control program and device of intelligent terminal
CN109388357A (en) * 2018-11-05 2019-02-26 用友网络科技股份有限公司 Print control program, server and computer readable storage medium
CN109582256B (en) * 2018-11-29 2022-04-26 珠海奔图电子有限公司 Printing method, device and system
CN114115756A (en) * 2020-08-31 2022-03-01 华为终端有限公司 Data sharing method, graphical user interface, related equipment and system

Also Published As

Publication number Publication date
WO2023179561A1 (en) 2023-09-28

Similar Documents

Publication Publication Date Title
WO2021023220A1 (en) Content continuation method and system, and electronic device
WO2021121052A1 (en) Multi-screen cooperation method and system, and electronic device
US20230422154A1 (en) Method for using cellular communication function, and related apparatus and system
CN110730448A (en) Method for establishing connection between devices and electronic device
CN111954283A (en) Method and terminal for accessing wireless local area network
WO2021017894A1 (en) Method for using remote sim module, and electronic apparatus
EP4240034A1 (en) Communication method and system, and electronic device
WO2023284650A1 (en) Communication method and electronic device
WO2022179443A1 (en) Nfc method and system, and electronic device
WO2021233159A1 (en) Sim management method and electronic device
CN113395364B (en) Access method of application server and terminal
CN113472477B (en) Wireless communication system and method
CN116886810A (en) Camera calling method, system and electronic equipment
CN114928898B (en) Method and device for establishing session based on WiFi direct connection
CN114928900B (en) Method and apparatus for transmission over a WiFi direct connection
EP4287048A1 (en) Login authentication method and electronic device
EP4293997A1 (en) Display method, electronic device, and system
WO2023179561A1 (en) Printing method, electronic device and system
CN113709720B (en) SIM dual-mode card abnormity optimization method and electronic equipment
CN115033295A (en) Peripheral control method, electronic equipment and system
WO2024001812A1 (en) Message management method, electronic device and system
CN115087134B (en) Bluetooth connection method and electronic equipment
WO2022194105A1 (en) Device connection method, terminal device and distributed system
CN115857746A (en) Distributed data management method, electronic device and system
CN115150753A (en) Bluetooth communication method and 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