A printing method, communication system and related devices
By establishing a far-field transmission channel through a cloud server, the problem of users being unable to remotely control printing when electronic devices and printers are not on the same local area network is solved, enabling remote printing control of electronic devices and improving the controllability and flexibility of printers.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2023-12-28
- Publication Date
- 2026-04-10
AI Technical Summary
When the electronic device and the printer are not on the same local area network, the user cannot control the printer to print, resulting in the inability to complete the printing task remotely.
A far-field transmission channel is established through a cloud server, allowing the first electronic device to send target files to devices in the same local area. The far-field transmission channel between the second and third electronic devices allows communication between the first and second electronic devices, enabling remote control of the printer by the first electronic device.
This allows printers to be remotely controlled via a second electronic device to complete printing tasks even when the first electronic device is not near the printer, thus improving the printer's controllability and flexibility.
Smart Images

Figure CN120276687B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of terminals, and in particular to a printing method, a communication system and related devices. BACKGROUND
[0002] At present, when a user wants to control a printer to print a file through an electronic device, the electronic device needs to establish a communication connection with the printer through Bluetooth, Wi-Fi or other short-distance communication technologies, and then the printer can be controlled to complete printing. In this way, the electronic device needs to be near the printer to print, and if the electronic device is not near the printer, the printer cannot be controlled to print. SUMMARY
[0003] The present application provides a printing method, a communication system and related devices, which can realize that when a first electronic device and a printer are not in the same local area network, a target file can be sent to a second electronic device in the same local area network with the printer through a cloud server, and the second electronic device can control the printer to print the target file in the local area network.
[0004] In a first aspect, the present application provides a printing method applied to a communication system including a first electronic device, a second electronic device, a wireless access device and a printer; wherein the second electronic device establishes a communication connection with the wireless access device, the printer establishes a communication connection with the wireless access device, and the first electronic device does not establish a communication connection with the wireless access device; the method includes: the first electronic device displays a first interface, and the first interface includes an identifier of the printer, which is sent by the second electronic device to the first electronic device through a cloud server; the first electronic device receives a printing operation acting on the identifier of the printer; in response to the printing operation, it is determined that the first electronic device and the first printer are not connected to the same local area network; after it is determined that the first electronic device and the first printer are not connected to the same local area network, the first electronic device sends a target file to the second electronic device through the cloud server; after receiving the target file, the second electronic device sends the target file to the printer through the wireless access device; after receiving the target file, the printer prints the target file.
[0005] Through the printing method provided by the present application, when the first electronic device is not connected with the wireless access device, and the second electronic device and the printer are connected with the wireless access device, the first electronic device can send a target file to the second electronic device through a cloud server. After receiving the target file from the first electronic device, the second electronic device can send the target file sent by the first electronic device to the printer through the wireless access device, and control the printer to print the target file. In this way, even if the first electronic device is not near the printer, the printer can also complete the printing task on the first electronic device.
[0006] For example, a printer is installed in a user's home, and the printer and a tablet computer at home are connected to a home router. When the user is away from home, the user receives an electronic file of homework sent by a teacher on his mobile phone, and the user's child needs to complete the homework on the same day. At this time, the user's mobile phone cannot be connected to the home router, that is, the printer and the tablet computer are in the same local area network, and the mobile phone is not in the same local area network as the printer and the tablet computer. The user can use his mobile phone to remotely control the printer at home through the tablet computer at home to complete the printing of the homework, so that the user's child can complete the homework assigned by the teacher in time.
[0007] In a possible implementation, the method further includes: the first electronic device receiving a target printing parameter set by a user; the first electronic device sending the target printing parameter to the second electronic device through the cloud server; the second electronic device sending the target printing parameter to the printer through the wireless access device after receiving the target printing parameter; and the printer printing the target file after receiving the target file, including: the printer printing the target file according to the target printing parameter after receiving the target file and the target printing parameter.
[0008] In this way, the first electronic device can also send the printing parameter to the printer through the second electronic device, so as to control the printer to print according to the printing parameter set by the user on the first electronic device.
[0009] In a possible implementation, before the first electronic device sends the target file to the second electronic device through the cloud server, the method further includes: the first electronic device establishing a long-range transmission channel with the second electronic device through the cloud server; and the first electronic device sending the target file to the second electronic device through the cloud server, including: the first electronic device sending the target file to the second electronic device through the long-range transmission channel.
[0010] In this way, since the first electronic device and the second electronic device are not in the same local area network, the first electronic device can establish a long-range transmission channel through the server to send the target file to the second electronic device.
[0011] The long-range transmission channel is a data transmission channel established by the first electronic device and the second electronic device through the cloud server.
[0012] In a possible implementation, the second electronic device sends the target file to the printer through the wireless access device after receiving the target file, including: in response to receiving the target file, the second electronic device establishes a near-field transmission channel with the printer through the wireless access device; and the second electronic device sends the target file to the printer through the near-field transmission channel.
[0013] Thus, since the second electronic device and the printer are in the same local area network, after receiving the target file, the second electronic device can establish a near field transmission channel with the printer through the wireless access device, and thus send the target file to the printer.
[0014] The near field transmission channel is a data transmission channel established between the second electronic device and the printer through the wireless access device.
[0015] In a possible implementation, the method further includes: searching, by the second electronic device, for the printer through the wireless access device, and sending, by the second electronic device, an identifier of the printer to the first electronic device through the cloud server.
[0016] Thus, when the second electronic device searches for the printer through the wireless access device, it indicates that the second electronic device and the printer are in the same local area network, and the printer is online. At this time, after sending the identifier of the printer to the first electronic device through the cloud server, the second electronic device can let the first electronic device know that the printer is online and can be invoked.
[0017] In a possible implementation, the method further includes: sending, by the printer, a printing status to the second electronic device through the wireless access device during printing of the target file; sending, by the second electronic device, the printing status to the first electronic device through the cloud server; and displaying, by the first electronic device, the printing status after receiving the printing status.
[0018] Thus, when the first electronic device remotely invokes the printer through the second electronic device, the user can view the printing status including the printing progress on the first electronic device in real time.
[0019] In a possible implementation, before the first electronic device establishes the far field transmission channel with the second electronic device through the cloud server, the method further includes: sending, by the first electronic device, a cloud connection request to the second electronic device through the cloud server; establishing, by the second electronic device, a connection with the cloud server after receiving the cloud connection request; sending, by the second electronic device, a cloud connection response to the first electronic device through the cloud server after establishing the connection with the cloud server; and establishing, by the first electronic device, the far field transmission channel with the second electronic device through the cloud server, including: establishing, by the first electronic device, the far field transmission channel with the second electronic device through the cloud server after receiving the cloud connection response.
[0020] In this way, the first electronic device can first request the second electronic device to establish a connection with the cloud server through the cloud server, so that the transmission channel between the first electronic device and the second electronic device can be opened through the cloud server without the user operating the second electronic device.
[0021] In a possible implementation, before the second electronic device sends the target file to the printer through the wireless access device, the method further includes: the first electronic device sends an identifier of the printer to the second electronic device through the cloud server; and the second electronic device determines to send the target file to the printer after receiving the identifier of the printer.
[0022] Since there can be multiple printers in the local area network where the second electronic device is located, the first electronic device can send the identifier of the printer to be invoked to the second electronic device, so that the second electronic device can accurately control the desired printer to complete the printing task of the first electronic device.
[0023] In a possible implementation, the method further includes: the second electronic device determines whether the one or more protocol packages locally of the second electronic device include a target protocol package for controlling the printer to print according to the identifier of the printer; and the second electronic device sends the target file to the printer through the wireless access device, including: if the one or more protocol packages locally of the second electronic device include the target protocol package for controlling the printer to print, the second electronic device loads the target protocol package, and uses the target protocol package to send the target file to the printer through the wireless access device.
[0024] Since the second electronic device can have used one or more printers to print before, there can be one or more protocol packages for controlling one or more printers to print on the second electronic device. Therefore, after the second electronic device receives the identifier of the printer sent by the first electronic device, the second electronic device can find a target protocol package from the one or more protocol packages according to the identifier of the printer, so as to send the target file to the printer using the target protocol package.
[0025] In a possible implementation, the method further includes: if the one or more protocol packages locally of the second electronic device do not include a protocol package for controlling the printer to print, the second electronic device sends a download request to a protocol platform server, the download request carrying device information of the printer, the download request being used to request to download a protocol package for controlling the printer to print; and the second electronic device loads the target protocol package after receiving the target protocol package sent by the platform server, and uses the target protocol package to send the target file to the printer through the wireless access device.
[0026] In this way, when the second electronic device does not have a protocol package locally for controlling the printer to print, the second electronic device can download a target protocol package for controlling the printer to print from the platform service in time.
[0027] In a possible implementation, when the first electronic device establishes a far-field transmission channel with the second electronic device through the cloud server, the method further includes: determining, by the second electronic device, whether the same cloud account is logged in on the first electronic device and the second electronic device; and sending, by the first electronic device, the target file to the second electronic device through the far-field transmission channel, including: if the same cloud account is logged in on the first electronic device and the second electronic device, sending, by the first electronic device, the target file to the second electronic device through the far-field transmission channel.
[0028] In this way, the first electronic device can perform trust judgment on the second electronic device before sending the target file to the second electronic device. If the same cloud account is logged in on the first electronic device and the second electronic device, it indicates that the first electronic device and the second electronic device are mutually trustworthy. At this time, the first electronic device can send the target file to the second electronic device. If the same cloud account is not logged in on the first electronic device and the second electronic device, the first electronic device can not send the target file to the second electronic device, thereby preventing the target file from being sent to an untrustworthy device.
[0029] In a possible implementation, the method further includes: displaying, by the second electronic device, a call printing prompt during printing of the target file by the printer, the call printing prompt being used to prompt a user that the first electronic device is calling the printer for printing by means of the second electronic device.
[0030] In this way, when the second electronic device is called by other devices to call the printer, the user can see prompt information on the second electronic device, so as to know which device is calling the second electronic device to use the printer.
[0031] In a possible implementation, the first electronic device comprises a print assistant, a first eco-access framework and a first far-field communication service; the cloud server comprises a device cloud server and a far-field cloud server; the second electronic device comprises a second eco-access framework and a second far-field communication service; the first electronic device sends a cloud connection request to the second electronic device through the cloud server, comprising: the print assistant sends a print session establishment request to the first eco-access framework; the first eco-access framework sends a cloud connection request to the second eco-access framework through the device cloud server after receiving the print session establishment request; the second electronic device establishes a connection with the cloud server after receiving the cloud connection request, comprising: the second eco-access framework establishes a connection with the device cloud server after receiving the cloud connection request; the second electronic device sends a cloud connection response to the first electronic device through the cloud server after establishing a connection with the cloud server, comprising: the second eco-access framework sends the cloud connection response to the first eco-access framework through the device cloud server after establishing a connection with the device cloud server; the first electronic device establishes a far-field transmission channel with the second electronic device through the cloud server after receiving the cloud connection response, comprising: the first eco-access framework sends a first far-field connection request to the first far-field communication service after receiving the cloud connection response; the second eco-access framework sends a second far-field connection request to the second far-field communication service after sending the cloud connection response to the first eco-access framework through the device cloud server; the first far-field communication service establishes a connection with the far-field cloud server after receiving the first far-field connection request; the second far-field communication service establishes a connection with the far-field cloud server after receiving the second far-field connection request; the first far-field communication service establishes the far-field transmission channel with the second far-field communication service through the far-field cloud server.
[0032] In a possible implementation, the first electronic device further comprises a first print service; the second electronic device further comprises a second print service; the first electronic device sends the target file to the second electronic device through the far-field transmission channel, comprising: the first eco-access framework and the second eco-access framework establish a print session on the far-field transmission channel; the first print service sends the target file to the second print service on the print session; the second electronic device sends the target file to the printer through the wireless access device after receiving the target file, comprising: the second print service sends the target file to the printer through the wireless access device after receiving the target file on the print session.
[0033] In a second aspect, the embodiments of the present application provide a printing method, applied to a first electronic device, the method comprising: displaying, by the first electronic device, a first interface, wherein the first interface comprises an identifier of a printer, and the identifier of the printer is sent by a second electronic device to the first electronic device through a cloud server, wherein the second electronic device is in communication connection with a wireless access device, the printer is in communication connection with the wireless access device, and the first electronic device is not in communication connection with the wireless access device; receiving, by the first electronic device, a printing operation acting on the identifier of the printer; in response to the printing operation, determining that the first electronic device and the first printer are not connected to the same local area network; after determining that the first electronic device and the first printer are not connected to the same local area network, sending, by the first electronic device, a target file to the second electronic device through the cloud server, wherein the target file is used to trigger the second electronic device to control the printer to print the target file through the wireless access device.
[0034] In a possible implementation, the method further comprises: receiving, by the first electronic device, a target printing parameter set by a user; and sending, by the first electronic device, the target printing parameter to the second electronic device through the cloud server, wherein the target printing parameter is used to control the second electronic device to control the printer to print the target file with the target printing parameter through the wireless access device.
[0035] In a possible implementation, before the first electronic device sends the target file to the second electronic device through the cloud server, the method further comprises: establishing, by the first electronic device, a far-field transmission channel with the second electronic device through the cloud server; and sending, by the first electronic device, the target file to the second electronic device through the cloud server, comprising: sending, by the first electronic device, the target file to the second electronic device through the far-field transmission channel.
[0036] In a possible implementation, the method further comprises: after the first electronic device sends the target file to the second electronic device through the cloud server, receiving, by the first electronic device, a printing status sent by the second electronic device through the cloud server; and in response to the received printing status, displaying, by the first electronic device, the printing status.
[0037] In a possible implementation, before the first electronic device establishes the far-field transmission channel with the second electronic device through the cloud server, the method further includes: the first electronic device sends a cloud connection request to the second electronic device through the cloud server, where the cloud connection request is used to request the second electronic device to establish a connection with the cloud server; the first electronic device receives a cloud connection response sent by the second electronic device through the cloud server; and the first electronic device establishes the far-field transmission channel with the second electronic device through the cloud server, including: the first electronic device establishes the far-field transmission channel with the second electronic device through the cloud server after receiving the cloud connection response.
[0038] In a possible implementation, after the first electronic device establishes the far-field transmission channel with the second electronic device through the cloud server, the method further includes: the second electronic device determines whether the same cloud account is logged in on the first electronic device and the second electronic device; and the first electronic device sends the target file to the second electronic device through the far-field transmission channel, including: if the same cloud account is logged in on the first electronic device and the second electronic device, the first electronic device sends the target file to the second electronic device through the far-field transmission channel.
[0039] In a possible implementation, the first electronic device includes a print assistant, a first ecological access framework, and a first far-field communication service; the cloud server includes a device cloud server and a far-field cloud server; the second electronic device includes a second ecological access framework and a second far-field communication service; the first electronic device sends a cloud connection request to the second electronic device through the cloud server, including: the print assistant is configured to send a print session establishment request to the first ecological access framework; the first ecological access framework sends the cloud connection request to the second ecological access framework through the device cloud server after receiving the print session establishment request; the first electronic device establishes the far-field transmission channel with the second electronic device through the cloud server after receiving the cloud connection response, including: the first ecological access framework sends a first far-field connection request to the first far-field communication service after receiving the cloud connection response sent by the second ecological access framework through the device cloud server; the first far-field communication service establishes a connection with the far-field cloud server after receiving the first far-field connection request; and the first far-field communication service establishes the far-field transmission channel with the second far-field communication service through the far-field cloud server.
[0040] In a possible implementation, the first electronic device further includes a first printing service; and the first electronic device sends the target file to the second electronic device through the long-range transmission channel, including: the first ecological access framework and the second ecological access framework establish a printing session on the long-range transmission channel; and the first printing service sends the target file to a second printing service on the second electronic device on the printing session.
[0041] In a third aspect, the present application provides a printing method applied to a second electronic device, including: after the second electronic device searches for a printer through a wireless access device, the second electronic device sends an identifier of the printer to a first electronic device through a cloud server; wherein the second electronic device establishes a communication connection with the wireless access device, the printer establishes a communication connection with the wireless access device, and the first electronic device does not establish a communication connection with the wireless access device; the second electronic device receives a target file sent by the first electronic device through the cloud server; and after receiving the target file, the second electronic device sends the target file to the printer through the wireless access device, and the target file is used to trigger the printer to print the target file.
[0042] In a possible implementation, the target file is sent by the first electronic device to the second electronic device through the cloud server in response to receiving a printing operation on the identifier of the printer, and after determining that the first electronic device and the first printer are not connected to the same local area network.
[0043] In a possible implementation, the method further includes: the second electronic device receives target printing parameters sent by the first electronic device through the cloud server; and after receiving the target printing parameters, the second electronic device sends the target printing parameters to the printer through the wireless access device, and the target printing parameters are used to instruct the printer to print the target file according to the target printing parameters.
[0044] In a possible implementation, before the second electronic device receives the target file sent by the first electronic device through the cloud server, the method further includes: the second electronic device establishes a long-range transmission channel with the first electronic device through the cloud server; and the second electronic device receives the target file sent by the first electronic device through the cloud server, including: the second electronic device sends the target file to the second electronic device through the long-range transmission channel.
[0045] In a possible implementation, after receiving the target printing parameters, the second electronic device sends the target printing parameters to the printer through the wireless access device, including: the second electronic device establishes a near-field transmission channel with the printer through the wireless access device; and the second electronic device sends the target file to the printer through the near-field transmission channel.
[0046] In a possible implementation, the method further includes: after the second electronic device sends the target file to the printer through the wireless access device, the second electronic device receives a printing status sent by the printer through the wireless access device; and the second electronic device sends the printing status to the first electronic device through the cloud server, and the printing status is used to display on the first electronic device.
[0047] In a possible implementation, before the second electronic device establishes the long-range transmission channel with the first electronic device through the cloud server, the method further includes: the second electronic device receives a cloud connection request sent by the first electronic device through the cloud server; after receiving the cloud connection request, the second electronic device establishes a connection with the cloud server; after establishing the connection with the cloud server, the second electronic device sends a cloud connection response to the first electronic device through the cloud server, and the cloud connection response is used to instruct the first electronic device to establish the long-range transmission channel with the second electronic device; and the second electronic device establishes the long-range transmission channel with the first electronic device through the cloud server, including: after the second electronic device sends the cloud connection response to the first electronic device through the cloud server, the second electronic device establishes the long-range transmission channel with the first electronic device through the cloud server.
[0048] In a possible implementation, the method further includes: the second electronic device receives a device identifier of the printer sent by the first electronic device through the cloud server; and after receiving the device identifier of the printer, the second electronic device determines to send the target file to the printer.
[0049] In a possible implementation, the method further includes: the second electronic device determines whether one or more protocol packages locally stored in the second electronic device include a target protocol package for controlling printing of the printer according to the device identifier of the printer; and the second electronic device sends the target file to the printer through the wireless access device, including: if the one or more protocol packages locally stored in the second electronic device include the target protocol package for controlling printing of the printer, the second electronic device loads the target protocol package, and sends the target file to the printer through the wireless access device by using the target protocol package.
[0050] In a possible implementation, the method further includes: if the second electronic device does not include the protocol package for controlling the printer to print in the one or more protocol packages locally, the second electronic device sends a download request to the protocol platform server, the download request carrying device information of the printer, and the download request being used to request to download the protocol package for controlling the printer to print; and after receiving the target protocol package sent by the platform server, the second electronic device loads the target protocol package, and uses the target protocol package to send the target file to the printer through the wireless access device.
[0051] In a possible implementation, the method further includes: during printing of the target file by the printer, the second electronic device displays a call printing prompt, the call printing prompt being used to prompt a user that the first electronic device is calling the printer to print by means of the second electronic device.
[0052] In a fourth aspect, the present application provides an electronic device, which is a first electronic device, and includes one or more processors and one or more memories; the one or more memories are coupled to the one or more processors, and are used to store computer program codes, the computer program codes including computer instructions, which, when executed by the one or more processors, cause the method in the second aspect and any possible implementation of the second aspect to be performed.
[0053] In a fifth aspect, the present application provides an electronic device, which is a second electronic device, and includes one or more processors and one or more memories; the one or more memories are coupled to the one or more processors, and are used to store computer program codes, the computer program codes including computer instructions, which, when executed by the one or more processors, cause the method in the third aspect and any possible implementation of the third aspect to be performed.
[0054] In a sixth aspect, the present application provides another electronic device, which is a first electronic device, and includes one or more functional modules, the one or more functional modules being used to perform the method in the second aspect and any possible implementation of the second aspect.
[0055] In a seventh aspect, the present application provides another electronic device, which is a second electronic device, and includes one or more functional modules, the one or more functional modules being used to perform the method in the third aspect and any possible implementation of the third aspect.
[0056] In an eighth aspect, the present application provides a chip system applied to the first electronic device, the chip system comprising a processing circuit and an interface circuit, the interface circuit being configured to receive instructions and transmit the instructions to the processing circuit, and the processing circuit being configured to execute the instructions to perform the method in the second aspect and any possible implementation of the second aspect.
[0057] In a ninth aspect, the present application provides a chip system applied to the second electronic device, the chip system comprising a processing circuit and an interface circuit, the interface circuit being configured to receive instructions and transmit the instructions to the processing circuit, and the processing circuit being configured to execute the instructions to perform the method in the third aspect and any possible implementation of the third aspect.
[0058] In a tenth aspect, the present application provides a computer-readable storage medium comprising instructions, which, when executed on a first electronic device, cause the method in the second aspect and any possible implementation of the second aspect to be performed.
[0059] In an eleventh aspect, the present application provides a computer-readable storage medium comprising instructions, which, when executed on a second electronic device, cause the method in the third aspect and any possible implementation of the third aspect to be performed.
[0060] In a twelfth aspect, the present application provides a computer program product, which, when executed on a computer, causes the computer to perform the method in the first aspect and any possible implementation of the first aspect.
[0061] In a thirteenth aspect, the present application provides a computer program product, which, when executed on a computer, causes the computer to perform the method in the second aspect and any possible implementation of the second aspect.
[0062] The beneficial effects of the second aspect to the thirteenth aspect can refer to the beneficial effects of the first aspect and any possible implementation of the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0063] Figure 1 A schematic diagram of an architecture of a communication system provided by an embodiment of the present application is shown in the figure;
[0064] Figures 2A-2J A schematic diagram of a group of interfaces for calling a printer to print in a far field of a control center provided by an embodiment of the present application is shown in the figure;
[0065] Figures 3A-3E A schematic diagram of an interface for calling a printer to print in a far field of a control center provided by an embodiment of the present application is shown in the figure;
[0066] Figures 4A-4D An interface diagram of another set of far-field printing provided in an embodiment of the present application;
[0067] Figure 5 A software architecture diagram of an electronic device provided in an embodiment of the present application;
[0068] Figure 6 A flow diagram of a printing method provided in an embodiment of the present application;
[0069] Figure 7 A flow diagram of a printing method provided in another embodiment of the present application;
[0070] Figure 8A A hardware structure diagram of an electronic device provided in an embodiment of the present application;
[0071] Figure 8B A hardware structure diagram of a printer provided in an embodiment of the present application;
[0072] Figure 8C A hardware structure diagram of a cloud server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0073] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings. In the description of the embodiments of the present application, unless otherwise specified, “ / ” represents or, for example, A / B can represent A or B; the “and / or” in the text only describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which means that there are three cases of A alone, A and B together, and B alone. In addition, in the description of the embodiments of the present application, “multiple” means two or more than two.
[0074] Hereinafter, the terms “first” and “second” are only used for descriptive purposes, and cannot be understood as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with “first” and “second” can explicitly or implicitly include one or more features. In the description of the embodiments of the present application, unless otherwise specified, the meaning of “multiple” is two or more than two.
[0075] With the development of printing needs, such as printing children's homework, painting works, etc., printers are also increasingly set to support access to a local area network, especially a wireless fidelity (Wi-Fi) based local area network, that is, support for configuring network access through Wi-Fi, so that users can control the printer to perform a printing task at any time and anywhere through an electronic device such as a mobile phone or a tablet computer around them without touching the printer. However, when the electronic device is far away from the printer and the electronic device and the printer are not in the same local area network, the electronic device cannot discover the printer and cannot control the printer to perform a printing task.
[0076] For example, a user's home is installed with a printer. When the user is out, the user receives a homework sent by a teacher on his own mobile phone, and the user's child needs to complete the homework on the same day. At this time, the user cannot access the local area network at home through his mobile phone because the user is not at home, and the user's mobile phone cannot control the printer to print the homework sent by the teacher. The children and the elderly at home also do not know how to operate the printer to print, which will cause the user's child to be unable to complete the homework in time.
[0077] Therefore, in the embodiments of the present application, a printing method is provided, which can realize that when a first electronic device and a printer are not in the same local area network, the first electronic device can establish a long-range transmission channel with a second electronic device in the same local area network as the printer through a cloud server, and the first electronic device can send a target file to the second electronic device. Since the second electronic device is in the same local area network as the printer, the second electronic device can communicate with the printer 200 through the local area network, and thus the second electronic device can control the printer to print the target file through the local area network. In this way, the first electronic device can control the printer to print even when it is not near the printer.
[0078] For example, even if the user receives a homework sent by a teacher on his own mobile phone when he is out, and the user's child needs to complete the homework on the same day, the user can use his own mobile phone to remotely control the printer at home to complete the printing of the homework with the help of the tablet computer at home, so that the user's child can complete the homework assigned by the teacher in time.
[0079] The architecture of a communication system provided in the embodiments of the present application is introduced below.
[0080] Figure 1 An architecture schematic diagram of a communication system 10 provided in the embodiments of the present application is shown.
[0081] As shown in Figure 1 The communication system 10 can include an electronic device 101, an electronic device 102, a printer 200, a wireless access device 300, and a cloud server 400.
[0082] The electronic device 101 can establish a connection with the cloud server 400. The electronic device 102 can establish a connection with the cloud server 400. Therefore, the electronic device 101 can communicate through the cloud server 400.
[0083] The electronic device 102 can also establish a Wi-Fi connection with the wireless access device 300. The printer 200 can establish a Wi-Fi connection with the wireless access device 300. Therefore, the electronic device 102 can communicate with the printer 200 through the wireless access device 300.
[0084] Since the electronic device 102 and the printer 200 both establish a Wi-Fi connection with the wireless access device 300, the electronic device 102 and the printer 200 are in the same local area network. The electronic device 102 can call the printer 200 in the local area network for printing. However, the electronic device 101 does not establish a Wi-Fi connection with the wireless access device 300, and the electronic device 101 and the printer 200 are not in the same local area network. Therefore, the electronic device 101 cannot directly call the printer 200 in the local area network for printing.
[0085] Through the printing method provided in the embodiment of the present application, when the electronic device 101 and the printer are not in the same local area network and the electronic device 102 and the printer 200 are in the same local area network, the electronic device 101 can establish a far-field connection with the electronic device 102 through the cloud server 400. Then, the electronic device 101 can send the target print file and the target print parameter to the electronic device 102. After receiving the target print file and the target print parameter, the electronic device 102 can control the printer 200 to print the target print file with the target print parameter based on the print protocol of the printer 200. In this way, the electronic device 101 can control the printer to print even when it is not near the printer.
[0086] In the embodiment of the present application, the electronic device 101 can be referred to as a first electronic device, and the electronic device 102 can be referred to as a second electronic device.
[0087] The printing operation process when the electronic device 101 and the printer 200 are not in the same local area network in the embodiment of the present application will be described in detail below in conjunction with the interface schematic diagram.
[0088] Figures 2A-2J A set of interface schematic diagrams for controlling the printer to print in the control center provided in the embodiment of the present application are shown.
[0089] As Figure 2AAs shown, the electronic device 101 can display a desktop 310. Among them, the desktop 310 displays a page on which application icons are placed, and the page includes a plurality of application icons (e.g., a weather application icon, a stock application icon, a calculator application icon, a settings application icon, a mail application icon, a gallery application icon, a music application icon, a video application icon, a browser application icon, a smart home application icon, etc.). A status bar 311 is displayed in an upper portion area of the desktop 310, and the status bar 311 can include one or more signal strength indicators of a mobile communication signal (also referred to as a cellular signal), a battery status indicator, a time indicator, a Wi-Fi signal indicator, etc.
[0090] The electronic device 101 can receive a swipe gesture (e.g., swipe down at the top of the screen) of the user above the screen, and in response to the swipe gesture, the electronic device 101 can display a control center interface 320 as shown. Figure 2B
[0091] As shown, the control center interface 320 can include one or more function controls (e.g., a wireless local area network (WLAN) switch control, a Bluetooth switch control, a low power mode switch control, a brightness adjustment control, a sound adjustment control), a music control card, and a smart home control card 321. Figure 2B
[0092] The electronic device 101 can receive an operation (e.g., a single tap) of the user on the smart home control card 321, and in response to the operation, the electronic device 101 can display a smart home interface 330 as shown. Figure 2C
[0093] As shown, the smart home interface 330 can include a device option 331 of the electronic device 101, and a head portrait 337 corresponding to a specified cloud account. Among them, the electronic device 101 is logged in with the specified cloud account. Figure 2C
[0094] As shown, the smart home interface 330 can include a device option 331 of the electronic device 101, and a head portrait 337 corresponding to a specified cloud account. Among them, the electronic device 101 is logged in with the specified cloud account. Figure 2D As shown, electronic device 101 and printer 200 are not on the same local area network (LAN), while electronic device 102 and printer 200 are on the same LAN. Both electronic devices 101 and 102 are logged into the same designated cloud account. After powering on, both electronic devices 101 and 102 can send their online status to the device cloud server. When electronic device 101 receives the online status of electronic device 102 from the device cloud server, it can display the device option 333 of electronic device 102 on the smart interconnection interface 330. After obtaining the online status of printer 200 through the LAN, electronic device 102 can send the online status of printer 200 to electronic device 101 through the device cloud server. After receiving the online status of printer 200, electronic device 101 can display the device option 332 of printer 200 on the smart interconnection interface 330.
[0095] Among them, electronic device 101 can also search for nearby online devices within the local area network to which electronic device 101 is connected. If electronic device 101 discovers a nearby device within the local area network to which it is connected, and the nearby device is bound to or logged into a specified cloud account, electronic device 101 can also display the device option of the nearby device in the smart interconnection interface 330. Figure 2D (Not shown in the image). The types of nearby devices can include one or more of the following: printer, television, tablet, etc. Optionally, electronic device 101 can first search for nearby devices within the local area network to which it is connected, and then search for online remote devices (e.g., electronic device 102, printer 200) through the device cloud server. Therefore, electronic device 101 can first display the device options of online nearby devices on the smart interconnection interface 330, and then display the device options of online remote devices.
[0096] Optionally, in response to the above-described operation on the smart interconnection control card 321, the electronic device 101 can directly display, as shown below. Figure 2D The smart interconnected interface 330 shown.
[0097] like Figure 2E As shown, electronic device 101 can receive a drag operation from a user, whereby device option 332 is dragged to the area where device option 331 is located. In response to this drag operation, electronic device 101 can display as shown... Figure 2F The illustrated printing floating ball 334 can float on top of other interfaces and can be used to invoke the printing assistant to print files currently displayed on the interface of the electronic device 101. These files include any of the following: documents, images, videos, tables, PowerPoint presentations, etc.
[0098] Optionally, when the electronic device 101 receives and responds to the user's dragging operation of the device option 332 to the area where the device option 331 is located, it can directly return to the desktop and display the printing floating ball 334 on the desktop.
[0099] like Figure 2G As shown, when the electronic device 101 displays the image browsing interface 340, the printed floating ball 334 can be displayed floating on top of the image browsing interface 340. The image browsing interface 340 may include an image 341. Optionally, the image browsing interface 340 may also include a menu 342, which may include share controls, favorite controls, edit controls, delete controls, and more controls.
[0100] When displaying the image browsing interface 340 and the printing floating ball 334, the electronic device 101 can receive user operations (e.g., clicks) on the printing floating ball 334. In response to the operation, the electronic device 101 can display, as shown in the image browsing interface 340 and the printing floating ball 334. Figure 2H The printing interface shown is 350.
[0101] like Figure 2H As shown, the printing interface 350 may include a print preview area 351, one or more print parameter setting options, and a start print control 356. The print preview area 351 can be used to display the printed effect of the aforementioned image 341. The one or more print parameter setting options may include a print count setting option 352, a single / double-sided printing setting option 353, a paper size setting option 354, and a color printing setting option 355. The print count setting option 352 can be used to set the number of copies of the image 341 that the printer 200 will print. The single / double-sided printing setting option 353 can be used to set whether the image 341 is printed on one side or two sides. The paper size setting option 354 can be used to set the size of the image 341 printed by the printer 200. The color printing setting option 355 can be used to set whether the printer 200 prints the image 341 in color or in black and white. The start print control 356 can be used by the electronic device 101 to trigger the printer 200 to print the image 341 with the user-set print parameters.
[0102] Electronic device 101 can receive user input (e.g., a click) to the start printing control 356. In response to this input, electronic device 101 can establish a far-field transmission channel with electronic device 102 via a far-field cloud server and send image 341 and user-set target printing parameters (e.g., 5 copies, single-sided printing, A4 paper size, black and white printing, etc.) to electronic device 102. Electronic device 102 can establish a near-field transmission channel with the printer and control printer 200 to print image 341 according to the target printing parameters.
[0103] During the printing of image 341 by printer 200 with target printing parameters, printer 200 can send the printing status to electronic device 102. After receiving the printing status, electronic device 102 can send the printing status to electronic device 101 via the far-field transmission channel.
[0104] like Figure 2I As shown, after receiving the printing status, the electronic device 101 can display a printing interface 360, which may include a print preview area 361, a print status prompt 362, and a stop printing control 363. The print preview area 361 can be used to display the printing effect of the aforementioned image 341. The print status prompt 362 can be used to indicate the current printing status of the printer. For example, the print status prompt 362 could be "Printing copy 1 / (out of 5)". The stop printing control 363 can be used to trigger the electronic device 101 to control the printer 200 to stop printing the current print job via the electronic device 102.
[0105] After printer 200 finishes printing image 341 with the target printing parameters, printer 200 can send printing completion information to electronic device 102. After receiving the printing completion information, electronic device 102 can send it to electronic device 101 via the far-field transmission channel.
[0106] like Figure 2J As shown, after receiving the print completion information, the electronic device 101 can display a print interface 365, which may include a print preview area 366, a print completion notification 367, and a continue printing control 368. The print preview area 366 can be used to display the print effect of the aforementioned image 341. The print completion notification 367 can be used to notify the printer that the print job has been completed. The continue printing control 368 can be used to trigger the electronic device 101 to continue selecting files for printing by the printer 200.
[0107] Figures 3A-3E This illustration shows another set of interface diagrams for remotely calling a printer from the control center, as provided in an embodiment of this application.
[0108] like Figure 3A As shown, electronic device 101 can display a smart interconnection interface 330. The smart interconnection interface 330 may include device options 331 for electronic device 101, device options 332 for printer 200, device options 333 for electronic device 102, and an avatar 337 corresponding to a specified cloud account. Electronic device 101 can receive drag operations from the user, such as dragging device option 332 to the area where device option 331 is located.
[0109] like Figure 3BAs shown, in response to the user dragging the device option 332 to the area where the device option 331 is located, the electronic device 101 can display the desktop 310 again, and display the print capsule 371 on the display screen. Wherein, the display screen of the electronic device 101 is a hole-punch screen, the hole-punch position of the display screen is generally placed with a front camera, and the front camera of the display screen can be at the top of the display screen. In order to make full use of the display area of the display screen, the electronic device 101 displays the print capsule 371 around the hole-punch position at the top of the display screen, wherein the hole-punch position of the display screen can be located in the middle area of the print capsule 371, and the non-middle area of the print capsule 371 can display a print icon, a print label, and a device manufacturer, a device model (for example, Printer P1) or a device identification of the printer 200, etc. Since the display color of the hole-punch position is black, the background color of the print capsule 371 can also be adjusted to black, so that the user is difficult to find the hole-punch position of the display screen. Wherein, the print capsule 371 can be displayed on the upper layer of other interfaces, and the print capsule 371 can be used to call the print assistant to print the files in the interface currently displayed by the electronic device 101. Wherein, the files include any one of a document, a picture, a video, a table, a PPT, etc.
[0110] The electronic device 101 can receive a user operation (for example, a single click) on the gallery application icon 312 in the desktop 310, and in response to the user operation, the electronic device 101 can display the gallery application interface 380 as shown in Figure 3C
[0111] As shown in Figure 3C , the gallery application interface 380 can include one or more thumbnails of pictures, such as thumbnail 381. Wherein, the electronic device 101 can also display the print capsule 371 when displaying the gallery application 380.
[0112] The electronic device 101 can receive a user operation on the thumbnail 381, and in response to the operation, the electronic device 101 can display the picture browsing interface 390 as shown in Figure 3D
[0113] As shown in Figure 3D , the electronic device 101 can display the print capsule 371 when displaying the picture browsing interface 390. Wherein, the picture browsing interface 390 can include a picture 391. Optionally, the picture browsing interface 390 can also include a menu 392, which can include a share control, a collection control, an edit control, a delete control, and a more control.
[0114] The electronic device 101 can receive a user operation (for example, a single click) on the print capsule 371, and in response to the operation, the electronic device 101 can display the picture browsing interface 390 as shown in Figure 3E As shown, the electronic device 101 can switch the printing capsule 371 to a printing notification bar 393, which is displayed at the top of the screen.
[0115] like Figure 3E As shown, the print notification bar 393 may include the filename of the currently opened file and the print control 394. The currently opened file may be image 391; therefore, the print notification bar 393 may display the filename of image 391, "IMG_2023 / 9 / 20_1.JPG".
[0116] Electronic device 101 can receive user actions (e.g., clicks) on the printing control 394, and in response to such actions, electronic device 101 can display the above. Figure 2H The print interface shown is 350. Subsequent printing procedures can be referenced above. Figures 2H-2J The embodiments shown are not described in detail here.
[0117] In one possible implementation, if the electronic device 101 displays the printing capsule 371 but does not receive any user operation on the printing capsule 371 for a certain period of time (e.g., 10 seconds), then it exits the display of the printing capsule 371.
[0118] In one possible implementation, if the electronic device 101 receives a user's click on an area outside the print notification bar 393 after displaying the print notification bar 393, the electronic device 101 can switch the print notification bar 393 back to the print capsule 371 displayed at the top of the screen.
[0119] In one possible implementation, after receiving a user's operation (e.g., a click) on the print control 394, electronic device 101 can directly send image 391 and print parameters to electronic device 102 via a cloud server. Electronic device 102 then sends image 391 and print parameters to printer 200 for printing via a local area network.
[0120] In some application scenarios, when a user is at home, electronic device 101 can connect to the same local area network (LAN) as printer 200. In this case, electronic device 101 can add printer 200 in the smart space application. When the user leaves home, the LAN connection to electronic device 101 is lost, and therefore, electronic device 101 and printer 200 are no longer on the same LAN. At this time, electronic device 101 can remotely call printer 200 to print in the smart space application.
[0121] Figures 4A-4D This document illustrates a set of interface diagrams for far-field printer invocation in smart space applications, provided in an embodiment of this application.
[0122] likeFigure 4A As shown, electronic device 101 can display a smart space application interface 510. This smart space application interface 510 can display service cards for one or more devices. A designated cloud account is logged into the smart space application on electronic device 101. Since electronic device 101 has previously added printer 200 to the smart space application, the service cards for the one or more devices bound to the designated cloud account can include a service card 511 for printer 200. This service card 511 displays the device name of printer 200 (e.g., "XX printer"). At this time, electronic device 101 and printer 200 are not on the same local area network (LAN), but electronic device 102 and printer 200 are on the same LAN.
[0123] Electronic device 101 can receive user input (e.g., a click) on the service card 511. In response to this input, electronic device 101 can activate the printing assistant and display, as shown below. Figure 4B The printing assistant interface shown is 520.
[0124] like Figure 4B As shown, the printing assistant interface 520 may include a printer option 521 and one or more printing options. The printer option 521 displays device information (e.g., "XX printer P1") and status information (e.g., "Idle"). The one or more printing options may include options for printing incorrect answers, restoring test papers, printing handwritten newspapers, printing origami, printing documents, printing images 522, scanning, printing large images, and printing regional data, etc.
[0125] Electronic device 101 can receive user input (e.g., a click) on the image printing option 522, and in response to this input, electronic device 101 can display, as shown below. Figure 4C The image selection interface shown is 530.
[0126] like Figure 4C As shown, the image selection interface 530 can display thumbnails of one or more images stored locally on the electronic device 101 (including thumbnail 531 corresponding to the image 341 mentioned above).
[0127] Electronic device 101 can receive user input (e.g., a click) on the thumbnail 531, and in response to the input, electronic device 101 can display the above-mentioned thumbnail. Figure 2HThe print interface 350 is shown. Among them, the electronic device 101 can determine the target print parameter of the picture 341 according to the operation of the user in the above print interface 350. The electronic device 101 can send the picture 341 and the target print parameter set by the user (for example, 5 copies of print, single-sided printing, A4 paper size, black and white printing, etc.) to the electronic device 102. The electronic device 102 can establish a near field transmission channel with the printer, and control the printer 200 to print the picture 341 with the target print parameter.
[0128] In a possible implementation, as Figure 4D shown, when the electronic device 101 invokes the printer 200 for a printing task through the electronic device 102, the electronic device 102 can display a call printing prompt 540. The call printing prompt 540 can be used to prompt that the electronic device 101 is invoking the printer 200 for printing through the electronic device 102. For example, the call printing prompt 540 can be “Honor magic6 mobile phone is invoking XX printer Printer P1 for printing through your device”.
[0129] The following describes a software architecture of an electronic device provided in an embodiment of the present application.
[0130] Figure 5 A software architecture diagram of an electronic device is shown.
[0131] As Figure 5 shown, the software architecture of the electronic device can include an application layer, a business middle platform, and a basic middle platform. Among them, the application layer can include a system interaction entrance and a print entrance. The system interaction entrance can include a control center. The print entrance can include a print assistant, a smart space application, a system setting print, a shared print, and a three-party application, etc.
[0132] The business middle platform can include a smart multi-modal human-computer interaction framework and a basic service framework. Among them, the smart multi-modal human-computer interaction framework can include a shared service management framework. The basic service framework can include a print service.
[0133] The basic middle platform can include a trust ring (MagicRing) framework. The trust ring framework can include a trust ring basic service and a system software and hardware resource sharing protocol component.
[0134] The trust ring basic service can include a print sharing service. Among them, the print sharing service can support functions such as printer access to the trust ring, print device selection, print management, and print expansion capability. The system software and hardware resource sharing protocol component can include a distributed print service, a device management service, a far field communication service, a data transmission service, an access networking (Nearby) service, a distributed invocation framework, and an ecological access framework (Magic Link).
[0135] The distributed printing service can include one or more functional application programming interfaces (APIs), a print scheduling module, a near field printing management module, an authorization management module, a protocol package shelf, a three-party printing protocol package, and a Mopria protocol package, etc. The one or more functions include state management, task management, device information management, device discovery, near field connection, device authentication, and device configuration, etc.
[0136] The device management service can manage the device state, online and offline state, etc. of one or more devices in the trust circle. The far field communication service can establish a communication connection with the far field cloud server, thereby establishing a far field transmission channel with the far field communication service of other devices. The data transmission service can be called by the printing service to send file data on the far field transmission channel or the near field transmission channel. The access networking (nearby) service can identify the printer through the near field discovery, and establish a near field transmission channel with the printer. The distributed calling framework can implement the functions called by other devices. The ecological access framework (Magic Link) can establish a communication connection (for example, a message queuing telemetry transport (MQTT) connection) with the device cloud server.
[0137] The system software and hardware resource sharing protocol component can provide a distributed printing protocol interface to the printing sharing service, so that the printing sharing service can call the distributed printing service through the distributed printing protocol interface to complete the printing functions such as printing device selection, printing management, and printing expansion capability. The system software and hardware resource sharing protocol component can also provide a calling interface of the functions such as the entry and exit of the trust circle, discovery, and online and offline of the printer to the printing sharing service, so that the printing sharing service can obtain the management and control of the entry and exit of the trust circle of the printer from the distributed printing service through the calling interface of the functions such as the entry and exit of the trust circle, discovery, and online and offline of the printer.
[0138] The trust circle basic sharing service can provide a calling interface of the trust circle basic sharing service to the printing service. The printing service can provide a calling interface of the printing service to the printing portal. The printing sharing service can register the printing sharing service to the sharing service management framework. The sharing service management framework can manage the sharing services of multiple devices in the trust circle. The sharing services of multiple devices in the trust circle can include the printing sharing service. The sharing service management framework can obtain the online and offline of the printer from the printing sharing service, and send the online and offline of the printer to the control center.
[0139] The control center can obtain online / offline information for multiple devices within the trust ring from the shared service management framework. This information may include printer online / offline status. The smart interconnection interface displays device options for multiple devices entering the trust ring, along with their online / offline information. These devices may include printer 200, electronic device 101, and electronic device 102, among others. Multiple devices within the same trust ring are logged in or bound to the same cloud account.
[0140] The following is in conjunction with the above. Figures 3A-3E Using the control center as the printing entry point as an example, this section specifically explains how to remotely invoke a printer for printing.
[0141] Figure 6 A flowchart illustrating a printing method provided in another embodiment of this application is shown.
[0142] like Figure 6 As shown, this method can be applied to devices including electronic device 101, electronic device 102, and wireless access device 300. Figure 6 The communication system of the electronic device 101 (not shown), cloud server 400, and printer 200. In one possible implementation, electronic device 101 may include a control center 1011, a printing assistant 1012, a printing service 1013, an ecosystem access framework 1014, and a far-field communication service 1015. Cloud server 400 may include device cloud server 401 and far-field cloud server 402. Electronic device 102 may include printing service 1023, ecosystem access framework 1024, and far-field communication service 1025. Both printer 200 and electronic device 102 establish Wi-Fi connections with wireless access device 300; therefore, printer 200 and electronic device 102 are on the same local area network (LAN). Electronic device 101 is not on the same LAN as electronic device 102 and printer 200.
[0143] The method may include the following steps:
[0144] S601. Printer 200 sends online information to the ecosystem access framework 1024.
[0145] After the printer 200 is powered on and connected to the local area network, it can send online information to the ecosystem access framework 1024 in the electronic device 102 on the same local area network. This online information is used to indicate that the printer 200 has been powered on.
[0146] S602. The ecosystem access framework 1024 sends the online information to the device cloud server 401.
[0147] The ecological access framework 1024 can establish a device cloud connection with the device cloud server 401 and send the online information to the device cloud server 401. The device cloud connection can be an MQTT connection. After the ecological access framework 1024 sends the online information to the device cloud server 401, the device cloud connection established between the ecological access framework 1024 and the device cloud server 401 can be maintained or disconnected.
[0148] S603. The device cloud server 401 sends the online information of the printer 200 to the ecological access framework 1014.
[0149] When receiving the online information, the device cloud server 401 can also receive the specified cloud account logged in the electronic device 102 sent by the ecological access framework 1014. The device cloud server 401 can determine a device list bound to the specified cloud account according to the specified cloud account. The device list bound to the specified cloud account can include the electronic device 102 and one or more other devices, wherein the one or more other devices can include the electronic device 101. The device cloud server 401 can send the online information to the one or more other devices. Therefore, the device cloud server 401 can send the online information of the printer 200 to the ecological access framework 1014 of the electronic device 101.
[0150] S604. The control center 1011 can detect the operation of the user opening the smart interconnection interface.
[0151] For example, the operation of the user opening the smart interconnection interface can refer to the operation of the user opening the smart interconnection interface in the above-mentioned Figure 2B In the embodiment shown in the above-mentioned Figure 2B , the operation of the user on the smart interconnection control card 321 can refer to the operation of the user on the smart interconnection control card 321 in the above-mentioned
[0152] S605. The control center 1011 can obtain the online information of the printer 200 from the ecological access framework 1014.
[0153] The control center 1011 can obtain the online information of the printer 200 from the ecological access framework 1014 directly or indirectly through the sharing service framework (not shown in Figure 6 ), the print sharing service (not shown in Figure 6 ), the device management service (not shown in Figure 6 ), and the like after detecting the operation of the user opening the smart interconnection interface.
[0154] The online information of the printer 200 can include the identification (for example, “Printer P1”) and the online state of the printer 200.
[0155] S606. The control center 1011 displays the smart interconnection interface, and displays that the printer 200 has been online on the smart interconnection interface.
[0156] The control center 1011 can display the smart interconnection interface in response to the user opening the smart interconnection interface. The control center 1011 can display that the printer 200 has been online on the smart interconnection interface after obtaining the online information of the printer 200.
[0157] For example, as shown in the above , the control center 1011 can display the device option 332 of the printer 200 on the smart interconnection interface 330 after receiving the online information of the printer 200.
[0158] Figure 2D For example, as shown in the above , the control center 1011 can display the device option 332 of the printer 200 on the smart interconnection interface 330 after receiving the online information of the printer 200.
[0159] In the embodiments of the present application, the smart interconnection interface can be referred to as a first interface.
[0160] S607. The control center 1011 detects that the user uses the printing operation of the printer 200.
[0161] Figure 3A The user uses the printing operation of the printer 200 can refer to the above , the user drags the device option 332 in the smart interconnection interface 330 to the area where the device option 331 is located.
[0162] S608. After detecting that the user uses the operation of the printer 200, the control center 1011 can start the print assistant 1012.
[0163] S609. The print assistant 1012 can display the print capsule.
[0164] The print capsule can be displayed on the upper layer of other interfaces, and the print capsule can be used to call the print assistant to print the file in the interface currently displayed by the electronic device 101. The file includes any one of a document, a picture, a video, a table, a PPT, etc.
[0165] Figure 3B For example, the print capsule can refer to the print capsule 371 in the above Figure 3B , and the specific content can refer to the foregoing , which will not be described here.
[0166] Figure 2F In a possible implementation manner, the print assistant 1012 can also display a print floating ball after being started, and the print floating ball can refer to the aboveThe printed floating ball 334 in the example will not be described in detail here.
[0167] S610. Printing Assistant 1012 detects user operation on the printing capsule when the electronic device 101 displays a file browsing interface including the target file.
[0168] The target file can be of various types, such as images, documents, links, and slideshows.
[0169] For example, the above Figure 3D In the illustrated embodiment, when the electronic device 101 displays the image browsing interface 390 and the printing capsule 371, it detects the user's operation on the printing capsule 371.
[0170] S611. Print Assistant 1012 displays a print notification bar that includes print controls.
[0171] For example, the print notification bar can be as described above. Figure 3E As shown, it will not be elaborated further here.
[0172] S612. Print Assistant 1012 detected the user's operation on the print control.
[0173] S613. Print Assistant 1012 displays the printing interface.
[0174] Users can select and set printing parameters in the printing interface. These parameters can include the number of copies, single-sided or double-sided printing, paper size, color or black-and-white printing, etc. For example, the target printing parameters could be 5 copies, single-sided printing, A4 paper size, and color printing.
[0175] The printing interface can be referenced from the above. Figure 2H The embodiments shown are not described in detail here.
[0176] S614. Print Assistant 1012 receives the target printing parameters entered by the user in the printing interface and detects the user's start printing operation.
[0177] After the user selects to set the printing parameters as the target printing parameters, the user can click the start printing control in the printing interface to trigger the printing assistant 1012 to issue a printing task.
[0178] S615. Print Assistant 1012 sends a print job to Print Service 1013. The print job may carry the printer ID 200, target print parameters, and target file.
[0179] S616. Print service 1013 determines that printer 200 and electronic device 101 are not on the same local area network.
[0180] The print service 1013 can determine whether the printer 200 and the electronic device 101 are in the same local area network according to the manner in which the online information of the printer 200 is acquired. If the electronic device 101 acquires the online information of the printer 200 through the connected local area network, it is determined that the printer 200 and the electronic device 101 are in the same local area network. If the electronic device 101 acquires the online information of the printer 200 through the device cloud server 401, it is determined that the printer 200 and the electronic device 101 are not in the same local area network.
[0181] Since the electronic device 101 acquires the online information reported by the electronic device 102 through the device cloud server 401, the print service 1013 can determine that the printer 200 and the electronic device 101 are not in the same local area network.
[0182] If the printer 200 is not in the same local area network as the electronic device 101, it indicates that the print service 1013 needs to remotely invoke the printer 200 through other devices. Then, the print service 1013 can determine that the electronic device 102 in the one or more devices bound to the specified cloud account logged in on the electronic device 101 is in the same local area network as the printer 200. Therefore, the print service 1013 can determine that the printer 200 is remotely invoked through the electronic device 102.
[0183] S617. The print service 1013 sends a print session establishment request to the ecological access framework 1014.
[0184] The print session establishment request carries the device identifier of the electronic device 102. The print session establishment request is used to request the ecological access framework 1014 to establish a print session with the electronic device 102.
[0185] S618. After receiving the print session establishment request, the ecological access framework 1014 establishes a connection with the device cloud server 401.
[0186] The connection established by the ecological access framework 1014 and the device cloud server 401 can be an MQTT connection.
[0187] S619. The ecological access framework 1014 sends a cloud connection request 1 to the device cloud server 401.
[0188] The cloud connection request 1 carries the device identifier of the electronic device 102. The cloud connection request 1 is used to request the cloud server 401 to establish a device cloud connection with the electronic device 102.
[0189] S620. The device cloud server 401 pushes a cloud connection request 2 to the ecological access framework 1024.
[0190] The cloud connection request 2 carries the device identifier of the electronic device 101. The cloud connection request 2 is used to request the electronic device 102 to establish a connection with the device cloud server 401.
[0191] S621. The ecological access framework 1024 wakes up the electronic device 102 after receiving the cloud connection request.
[0192] If the electronic device 102 is already in the wake-up state after the ecological access framework 1024 receives the cloud connection request, the ecological access framework 1024 does not need to wake up the electronic device 102. If the electronic device 102 is in the wake-up state after the ecological access framework 1024 receives the cloud connection request, the ecological access framework 1024 wakes up the electronic device 102. After the electronic device 102 is woken up, the electronic device 102 can run service modules such as the far-field communication service 1025 and the printing service 1023.
[0193] S622. The ecological access framework 1024 establishes a connection with the device cloud server 401.
[0194] The connection established by the ecological access framework 1024 with the device cloud server 401 can be an MQTT connection. In a possible implementation, the ecological access framework 1024 can have established the connection before receiving the cloud connection request 2. In a possible implementation, the ecological access framework 1024 can establish the connection with the device cloud server 401 after receiving the push cloud connection request 2 and waking up the electronic device 102.
[0195] S623. The ecological access framework 1024 sends a cloud connection response to the ecological access framework 1014 through the device cloud server 401.
[0196] The cloud connection response is used to indicate that the electronic device 102 has established a connection with the device cloud server 401.
[0197] S624. The ecological access framework 1014 sends a far-field connection request 1 to the far-field communication service 1015 after receiving the cloud connection response.
[0198] The far-field connection request 1 is used to request the far-field communication service 1015 to establish a connection with the far-field cloud server 402.
[0199] S625. The far-field communication service 1015 establishes a connection with the far-field cloud server 402 after receiving the far-field connection request 1.
[0200] The steps S624 to S625 can be executed after the step S617, and the sequence of the steps S618 to S623 is not limited.
[0201] S626. After the eco-access framework 1024 sends the cloud connection response to the eco-access framework 1014 through the device cloud server 401, the eco-access framework 1024 sends a far-field connection request 2 to the far-field communication service 1025.
[0202] The far-field connection request 2 can be used to request the far-field communication service 1025 to establish a connection with the far-field cloud server 402.
[0203] S627. After the far-field communication service 1015 receives the far-field connection request 2, the far-field communication service 1015 establishes a connection with the far-field cloud server 402.
[0204] S628. The far-field communication service 1015 and the far-field communication service 1025 establish a far-field transmission channel through the far-field cloud server 402.
[0205] S629. The far-field communication service 1015 and the far-field communication service 1025 complete the same account trust authentication.
[0206] The far-field communication service 1015 can send the cloud account logged in by the electronic device 101 to the far-field communication service 1025, and the far-field communication service 1025 can determine whether the cloud account logged in by the electronic device 101 is the same as the cloud account logged in by the electronic device 102.
[0207] If the cloud account logged in by the electronic device 101 is the same as the cloud account logged in by the electronic device 102, the far-field communication service 1025 can send a same account trust authentication success to the far-field communication service 1015, and the far-field communication service 1015 and the far-field communication service 1025 can continue to trigger the subsequent steps S630 to S642.
[0208] If the electronic device 101 and the electronic device 102 do not log in the same cloud account, the far-field communication service 1025 can send a same account trust authentication failure to the far-field communication service 1015, and the far-field communication service 1015 and the far-field communication service 1025 can not trigger the subsequent steps.
[0209] S630. The far-field communication service 1015 sends a far-field connection success response 1 to the eco-access framework 1014.
[0210] The far-field connection success response 1 is used to indicate that the electronic device 101 and the electronic device 102 have established a far-field transmission channel.
[0211] S631. The far-field communication service 1025 sends a far-field connection success response 2 to the eco-access framework 1024.
[0212] The far-field connection success response 2 is used to indicate that the electronic device 101 and the electronic device 102 have established a far-field transmission channel.
[0213] S632. The far-field communication service 1015 establishes a print session with the far-field communication service 1025 over the far-field transmission channel.
[0214] S633. The far-field communication service 1015 sends session information of the print session to the print service 1013.
[0215] S634. The far-field communication service 1025 sends session information of the print session to the print service 1023.
[0216] S635. The print service 1013 sends the ID of the printer 200, the target file and the target print parameters to the print service 1023 over the print session.
[0217] After obtaining the session information of the print session, the print service 1013 can send the device identification of the printer 200, the target file and the target print parameters to the print service 1023 over the print session using the session information of the print session.
[0218] After obtaining the session information of the print session, the print service 1023 can receive the device identification of the printer 200, the target file and the target print parameters over the print session using the session information of the print session.
[0219] S636. The print service 1023 establishes a near-field transmission channel with the printer 200.
[0220] S637. The print service 1023 sends the target file and the target print parameters to the printer 200 over the near-field transmission channel.
[0221] S638. The printer 200 prints the target file with the target print parameters.
[0222] The detailed processes of steps S635 to S638 can refer to the subsequent embodiments shown in the following Figure 7 and will not be described here again.
[0223] In a possible implementation, when the electronic device 101 invokes the printer 200 for a printing task with the aid of the electronic device 102, the electronic device 102 can display a call printing prompt. The call printing prompt can be used to prompt that the electronic device 101 is invoking the printer 200 for printing with the aid of the electronic device 102. The specific content can refer to the foregoing Figure 4D and will not be described here again.
[0224] S639. The printer 200 sends the print status to the print service 1023 over the near-field transmission channel.
[0225] S640. The print service 1023 sends the print status to the print service 1013 over the print session.
[0226] S641. Print service 1013 sends the printing status to print assistant 1012.
[0227] S642. Print Assistant 1012 displays the printing status.
[0228] For details, please refer to the above. Figures 2I-2J The embodiments shown are not described in detail here.
[0229] In some embodiments, the electronic device 101 can launch the printing assistant to publish printing tasks not only through the control center, but also through other entry points. For example, the smart space application, system settings printing, shared printing, and third-party applications on the electronic device 101 can also launch the printing assistant to publish printing tasks.
[0230] In the printing method provided in this application embodiment, when electronic device 101 is far from printer 200 and not on the same local area network (LAN), but electronic device 102 is on the same LAN as printer 200, electronic device 101 can establish a far-field transmission channel with printer 202 through a cloud server and send the target file and target printing parameters to electronic device 102 via the far-field transmission channel. After receiving the target file and target printing parameters from electronic device 101, electronic device 102 can load the target protocol packet from printer 200. After the target protocol packet is loaded, electronic device 102 can use the target protocol packet to quickly establish a near-field transmission channel with printer 200 via the LAN, and forward the target printing parameters and target file sent by electronic device 101 to printer 200 via the target protocol packet on the near-field transmission channel. Thus, even if electronic device 101 is not near printer 200, printer 200 can still complete the printing task on electronic device 101.
[0231] The above is introduced below. Figure 6 In the illustrated embodiment, the detailed process of the electronic device 102 controlling the printer 200 to print after receiving the print job sent by the electronic device 101 is described.
[0232] Figure 7 A schematic diagram illustrating a specific process of far-field printing provided in an embodiment of this application is shown.
[0233] like Figure 7 As shown, this method can be applied to devices including electronic device 101, electronic device 102, wireless access device 300, and device cloud server 400. Figure 7The communication system between the electronic device 102 and the printer 200 is shown in FIG. 1. In the example shown in FIG. 1, the printer 200 and the electronic device 102 are both connected to the wireless access device 300 via Wi-Fi, and thus are in the same local area network. The electronic device 101 is not in the same local area network as the electronic device 102 and the printer 200. In one possible implementation, the electronic device 102 can include a print service 1023, a protocol package shelf 1026, and one or more protocol packages. The one or more protocol packages include a target protocol package.
[0234] The method can include the following steps:
[0235] S701. The electronic device 101 sends the device identification of the printer 200, the target file, and the target print parameters to the print service 1023 via a print session.
[0236] The specific process of sending the device identification of the printer 200, the target file, and the target print parameters to the print service 1023 via a print session by the electronic device 101 can refer to the above description of the example shown in FIG. 1, and thus will not be described here again. Figure 6
[0237] S702. The print service 1023 can determine, according to the device identification of the printer 200, that the printer 200 is in the same local area network as the electronic device 102.
[0238] In this example, since there can be a printer around the electronic device 102 or around other devices in the trust circle, the print service 1023 can determine, according to the device identification of the printer 200, whether the printer 200 is in the same local area network as the electronic device 102 after receiving the device identification of the printer 200, the target file, and the target print parameters sent by the electronic device 101 via a print session. If the printer 200 is in the same local area network as the electronic device 102, the print service 1023 can call the printer 200 in the local area. If the printer 200 is not in the same local area network as the electronic device 102, the electronic device 102 can return a print failure to the electronic device 101 via the cloud server 400.
[0239] S703. The print service 1023 determines to use the target protocol package to control the printer 200 to print according to the device identification of the printer 200.
[0240] S704. The print service 1023 sends the identification of the target protocol package to the protocol package shelf 1026.
[0241] S705. The protocol package shelf 1026 loads the target protocol package.
[0242] Since the electronic device 102 can have used multiple printers before, the electronic device 102 can store multiple protocol packages corresponding to the multiple printers, wherein the protocol packages adapted by different models of printers are different. The protocol package can be used to send the print parameters and the file issued by the print service 1023 in the electronic device 102 to the printer in a protocol format recognizable by the printer. In order to correctly send the print parameters and the file issued by the print service 1023 to the printer 200, when the print service 1023 determines that the printer 200 needs to be called by the near field, the print service 1023 can determine the target protocol package needed when the printer 200 is controlled to print, and send the identification of the target protocol package to the protocol package shelf 1026, so that the protocol package shelf 1026 loads the target protocol package.
[0243] In a possible implementation, if the protocol package shelf 1026 cannot find the target protocol package locally according to the identification of the target protocol package, the target protocol package cannot be directly loaded. Therefore, the protocol package shelf 1026 can send a download request to the protocol platform server, wherein the download request carries the device information of the printer 200, and the download request is used to request to download the protocol package for controlling the printer to print. The platform server can determine the target protocol package from multiple protocol packages stored on the platform server according to the device information of the printer 200, and send the target protocol package to the protocol package shelf 1026. The protocol package shelf 1026 loads the target protocol package again after receiving the target protocol package.
[0244] S706. The target protocol package establishes a near field transmission channel with the printer 200.
[0245] After the target protocol package is loaded, the target protocol package can establish a near field transmission channel with the printer 200 through the connection mechanism set in the target protocol package.
[0246] S707. After the target protocol package establishes the near field transmission channel with the printer 200, the target protocol package sends channel establishment success information to the protocol package shelf 1026.
[0247] S708. The protocol package shelf 1026 sends the channel establishment success information to the print service 1023.
[0248] S709. The print service 1023 sends the target print parameters and the target file to the protocol package shelf 1026.
[0249] S710. The protocol package shelf 1026 sends the target print parameters and the target file to the target protocol package.
[0250] S711. The target protocol package sends the target print parameters and the target file to the printer 200 in a target manner set in the target protocol package through the near field transmission channel.
[0251] S712. The printer 200 prints the target file with the target print parameter.
[0252] In the embodiments of the present application, the electronic device 101 can be referred to as a first electronic device, and the electronic device 102 can be referred to as a second electronic device. The print service 1013 in the electronic device 101 can be referred to as a first print service, and the print service 1023 in the electronic device 102 can be referred to as a second print service. The ecological access framework 1014 in the electronic device 101 can be referred to as a first ecological access framework, and the ecological access framework 1024 in the electronic device 102 can be referred to as a second ecological access framework. The long-range communication service 1015 in the electronic device 101 can be referred to as a first long-range communication service, and the long-range communication service 1025 in the electronic device 102 can be referred to as a second long-range communication service.
[0253] Through the print method provided in the embodiments of the present application, the electronic device 102 can quickly load the target protocol package of the printer 200. After the target protocol package is loaded, the electronic device 102 can use the target protocol package to quickly establish a near-field transmission channel with the printer 200 through the local area network, and send the target print parameter and the target file to the printer 200 on the near-field transmission channel, thereby quickly helping the electronic device 101 to call the printer 200 to complete printing.
[0254] The hardware structure of an electronic device provided in the embodiments of the present application is introduced below.
[0255] Figure 8A A hardware structure schematic diagram of an electronic device 100 provided in the embodiments of the present application is shown.
[0256] It should be understood that, Figure 8A The electronic device 100 shown is only an example, and the electronic device 100 can have more or fewer components than those shown in Figure 8A two or more components can be combined, or can have a different component configuration. Figure 8A The various components shown in the embodiments of the present application can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.
[0257] The electronic device 100 can include a processor 110, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a loudspeaker 170A, a receiver 170B, a microphone 170C, a headset jack 170D, a sensor module 180, a camera 193, and a display screen 194. The sensor module 180 can include a touch sensor 180K and the like.
[0258] It can be understood that the structural schematic of the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can include more or fewer components than those shown, or combine certain components, or split certain components, or different arrangement of components. The components shown can be implemented in hardware, software, or a combination of software and hardware.
[0259] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices, or can be integrated in one or more processors.
[0260] Among them, the controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to instruction operation codes and timing signals to complete the control of fetching instructions and executing instructions.
[0261] The memory in the processor 110 can also be provided for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can save instructions or data that the processor 110 has just used or repeatedly uses. If the processor 110 needs to use the instructions or data again, it can be directly called from the memory. This avoids repeated access and reduces the waiting time of the processor 110, thus improving the efficiency of the system.
[0262] The wireless communication function of the electronic device 100 can be realized through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, etc.
[0263] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example: the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0264] The mobile communication module 150 can provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the electronic device 100. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transfer the same to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and radiate the same as electromagnetic waves through the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 can be disposed in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 can be disposed in the same device as at least part of the modules of the processor 110.
[0265] The modem processor can include a modulator and a demodulator. The modulator is configured to modulate a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is configured to demodulate a 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 processed by the baseband processor is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the microphone 170B, etc.), or displays an image or a video through the display screen 194. In some embodiments, the modem processor can be a separate device. In other embodiments, the modem processor can be independent of the processor 110, and disposed in the same device as the mobile communication module 150 or other functional modules.
[0266] The wireless communication module 160 can provide a solution for wireless communication, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, and the like, which are applied on the electronic device 100. The wireless communication module 160 can 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, frequency-modulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 can also receive signals to be transmitted from the processor 110, frequency-modulate them, amplify them, and radiate them as electromagnetic waves via the antenna 2.
[0267] The electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs that execute program instructions to generate or change display information.
[0268] The electronic device 100 can implement a photographing function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like. The ISP is used to process data fed back by the camera 193. The camera 193 is used to capture still images or videos.
[0269] The electronic device 100 can implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. The audio module 170 is configured to convert digital audio information into an analog audio signal for output, and to convert an analog audio input into a digital audio signal. The speaker 170A, also referred to as a “loudspeaker”, is configured to convert an audio electrical signal into a sound signal. The receiver 170B, also referred to as a “earpiece”, is configured to convert an audio electrical signal into a sound signal. When the electronic device 100 is engaged in a call or a voice message, the receiver 170B can be held close to a human ear to listen to the voice. The microphone 170C, also referred to as a “microphone”, “transducer”, is configured to convert a sound signal into an electrical signal. The earphone interface 170D is configured to connect a wired earphone. The touch sensor 180K is configured to detect a touch operation acting on or near the touch sensor 180K. The touch sensor 180K can transmit the detected touch operation to the application processor to determine a touch event type. A visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, which is different from the position where the display screen 194 is disposed.
[0270] In the embodiments of the present application, the device type of the electronic device 100 can be any one of a mobile phone, a tablet computer, a handheld computer, a desktop computer, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), and a smart large screen, a smart sound box, and the like smart home device, a smart bracelet, a smart watch, smart glasses, and the like wearable device, an augmented reality (AR), a virtual reality (VR), a mixed reality (MR), and the like extended reality (XR) device, a vehicle-mounted device or a smart city device, and the like.
[0271] It should be noted that the above Figure 1 The structures of the electronic devices 101 and 102 in the embodiments shown in FIGS. 1A and 1B can both refer to the electronic device 100 shown in FIG. 1C, and details are not described herein. Figure 8A
[0272] Figure 8B A hardware structure schematic diagram of a printer in the embodiments of the present application is shown.
[0273] Figure 8B A hardware structure schematic diagram of a printer 200 provided in the embodiments of the present application is shown.
[0274] As shown in Figure 8B The printer 200 can include a processor 211, a memory 212, a wireless communication module 213, a power switch 214, and a printing module 215. Among them:
[0275] The processor 211 can include one or more processing units, for example: the processor 211 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices, or can be integrated in one or more processors.
[0276] Among them, the controller can be the nerve center and command center of the printer 200. The controller can generate operation control signals according to instruction operation codes and timing signals to complete the control of instruction fetching and instruction execution.
[0277] The memory in the processor 211 can also be configured to store instructions and data. In some embodiments, the memory in the processor 211 is a cache memory. The memory can save instructions or data that the processor 211 has just used or repeatedly uses. If the processor 211 needs to use the instructions or data again, it can directly call from the memory. Avoid repeated access and reduce the waiting time of the processor 211, thus improving the efficiency of the system.
[0278] In some embodiments, the processor 211 can be used to analyze the signal received by the wireless communication module 213 and demodulate the signal. The processor 211 can respond according to the analysis result and perform corresponding operations, such as performing sensing operations, etc. In some embodiments, the processor 211 can also be used to generate signals such as Wi-Fi signals, Bluetooth signals, etc. transmitted by the wireless communication module 213.
[0279] The memory 212 is coupled to the processor 211 and stores various software programs and / or sets of instructions. In particular implementations, the memory 212 can include a high-speed random access memory and can also include a non-volatile memory such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory 212 can store an operating system such as an embedded operating system such as uCOS, VxWorks, RTLinux, etc. The memory 212 can also store a communication program that can be used to communicate with the wireless access device 300 or other devices.
[0280] The wireless communication module 213 can include a Wi-Fi module. The Wi-Fi module can provide a solution for Wi-Fi wireless communication implemented on the printer 200. The Wi-Fi protocol used in the Wi-Fi module can be IEEE 802.11a, 802.11b, 802.11n, 802.11ac, 802.11ax, etc.
[0281] Possibly, the wireless communication module 213 can also include other communication modules to provide solutions for other wireless communication (e.g., Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR)).
[0282] Possibly, the Wi-Fi module can be integrated with other communication modules (e.g., a Bluetooth communication module). The Wi-Fi module can listen to signals transmitted by other devices such as measurement signals, scanning signals, etc., and can transmit response signals such as measurement responses, scanning responses, etc., so that other devices can discover the wireless access device 300 and establish a wireless communication connection with the other devices through one or more of WLAN, Bluetooth, or other near field wireless communication technologies to perform data transmission.
[0283] In other embodiments, one or more of the Wi-Fi modules can also transmit signals such as broadcast probe signals, beacon signals, etc., so that other devices can discover the wireless access device 300 and establish a wireless communication connection with the other devices through WLAN or other near field wireless communication technologies to perform data transmission.
[0284] The power switch 214 can be used to turn off or turn on the printer 200.
[0285] The printing module 215 can be used to print paper documents. In one possible implementation, the printing module 215 can also copy paper documents or scan electronic documents from paper documents.
[0286] In some embodiments, the hardware structure of printer 200 may further include an audio module. Figure 8B (not shown in the image) and loudspeaker ( Figure 8B (Not shown in the image). The audio module is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module can also be used for encoding and decoding audio signals. The loudspeaker, also called a "horn," is used to convert audio electrical signals into sound signals.
[0287] In some embodiments, the hardware structure of the printer 200 may also include a microphone. Figure 8B (Not shown in the image). A microphone, also called a "voice transducer" or "microphone," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to the microphone, inputting the sound signal into the microphone. The printer 200 can be equipped with at least one microphone.
[0288] In some embodiments, the hardware structure of the printer 200 may further include a display screen. Figure 8B (Not shown in the image). The display screen is used to display images, videos, etc. The display screen includes a display panel. In some embodiments, the printer 200 may include one or N display screens, where N is a positive integer greater than 1.
[0289] It should be noted that, Figure 8B The printer 200 shown is merely one implementation of an embodiment of this application. In actual applications, the printer 200 may include more or fewer components, which is not limited here.
[0290] The hardware structure of the cloud server 400 provided in this application embodiment is described below.
[0291] Figure 8C This document shows a schematic diagram of the hardware structure of a cloud server 400 provided in an embodiment of this application.
[0292] like Figure 8C As shown, the cloud server 400 includes one or more processors 411, a communication interface 412, and a memory 413. The processors 411, communication interface 412, and memory 413 can be connected via a bus or other means; this embodiment uses a connection via bus 414 as an example. Wherein:
[0293] The processor 411 may consist of one or more general-purpose processors, such as a CPU. The processor 411 can be used to run the relevant program code for the device control method.
[0294] The communication interface 412 can be a wired interface (e.g., an Ethernet interface) or a wireless interface (e.g., a cellular network interface or a wireless LAN interface) for communicating with other nodes. In this embodiment, the communication interface 412 can specifically be used to communicate with devices such as the wireless access device 300, electronic device 101, and electronic device 102.
[0295] Memory 413 may include volatile memory, such as RAM; memory may also include non-volatile memory, such as ROM, flash memory, HDD, or solid-state disk (SSD); memory 413 may also include combinations of the above types of memory. Memory 413 can be used to store a set of program code so that processor 411 can call the program code stored in memory 413 to implement the server implementation method of the embodiments of this application. In the embodiments of this application, memory 413 may also be a storage array, etc.
[0296] In some embodiments, the cloud server 400 may include multiple servers, such as a device cloud server, a remote field cloud server, etc. The hardware structure of these multiple servers can refer to the above description. Figure 8C The hardware structure of the cloud server 400 is shown.
[0297] It needs to be explained that, Figure 8C The cloud server 400 shown is merely one implementation of the embodiment of this application. In actual applications, the cloud server 400 may include more or fewer components, which is not limited here.
[0298] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can implement the steps in the above-described method embodiments.
[0299] This application also provides a computer program product that, when run on an electronic device, enables the electronic device to perform the steps described in the various method embodiments above.
[0300] This application also provides a chip system, which includes a processor coupled to a memory. The processor executes a computer program stored in the memory to implement the steps of any method embodiment of this application. The chip system can be a single chip or a chip module composed of multiple chips.
[0301] The term "user interface (UI)" in the specification and drawings of the present application is a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form that the user can accept. The user interface of an application is source code written in a specific computer language such as Java, extensible markup language (XML), etc. The interface source code is parsed, rendered on a terminal device, and finally presented as content that the user can recognize, such as pictures, text, buttons, etc. controls. Controls, also known as widgets, are the basic elements of the user interface. Typical controls include toolbars, menu bars, text boxes, buttons, scrollbars, pictures, and text. The properties and content of the controls in the interface are defined by tags or nodes, such as XML <textview> 、 <imgview> 、 <videoview>The interface is defined by nodes that specify the controls contained in the interface. One node corresponds to one control or property in the interface, and the nodes are parsed and rendered to present the content visible to the user. In addition, many applications, such as hybrid applications, also contain web pages in the interface. A web page, also referred to as a page, can be understood as a special control embedded in the interface of an application. The web page is a source code written in a specific computer language, such as hyper text markup language (HTML), cascading style sheets (CSS), JavaScript (JS), etc. The web page source code can be loaded and displayed by a browser or a web page display component similar to the function of a browser to present content recognizable to the user. The specific content contained in the web page is also defined by tags or nodes in the web page source code, such as HTML defines the content of the web page by tags such as 、 、 <video> 、 <canvas>to define the elements and attributes of a web page.
[0302] A common form of user interface is a graphical user interface (GUI), which refers to a user interface that displays in a graphical manner. It can be an icon, window, control, etc. interface element displayed in the display screen of an electronic device, wherein the control can include an icon, button, menu, tab, text box, dialog box, status bar, navigation bar, Widget, and other visible interface elements.
[0303] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) manner. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes one or more available media sets. The available media can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state disk), etc.
[0304] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by a computer program to instruct the relevant hardware to complete, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes ROM or random access memory (RAM), magnetic disk or optical disk, and various media that can store program codes.
[0305] The above-described embodiments are only used to illustrate the technical solutions of the present application, but not limit the present application; although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.< / canvas> < / video> < / videoview> < / imgview> < / textview>
Claims
1. A printing method characterized by, The application is applied to a communication system comprising a first electronic device, a second electronic device, a wireless access device and a printer, wherein the second electronic device establishes a communication connection with the wireless access device, the printer establishes a communication connection with the wireless access device, and the first electronic device does not establish a communication connection with the wireless access device; The method comprises: The first electronic device displays a first interface, and the first interface comprises an identifier of the printer, which is sent by the second electronic device to the first electronic device through a cloud server; The first electronic device receives a print operation acting on the identifier of the printer; In response to the print operation, it is determined that the first electronic device and the printer are not connected to the same local area network; After it is determined that the first electronic device and the printer are not connected to the same local area network, the first electronic device sends a target file to the second electronic device through the cloud server; After receiving the target file, if one or more protocol packages in the second electronic device do not comprise a target protocol package for controlling the printer to print, the second electronic device sends a download request to a protocol platform server, and the download request carries device information of the printer, and the download request is used to request to download the target protocol package for controlling the printer to print; After receiving the target protocol package sent by the platform server, the second electronic device loads the target protocol package, and uses the target protocol package to send the target file to the printer through the wireless access device; The printer prints the target file after receiving the target file.
2. The method of claim 1, wherein, The method further comprises: The first electronic device receives a target print parameter set by a user; The first electronic device sends the target print parameter to the second electronic device through the cloud server; The second electronic device sends the target print parameter to the printer through the wireless access device after receiving the target print parameter; The printer prints the target file after receiving the target file and the target print parameter. Before the first electronic device sends the target file to the second electronic device through the cloud server, the method further comprises:
3. The method of claim 1, wherein, The first electronic device establishes a far-field transmission channel with the second electronic device through the cloud server; The first electronic device sends the target file to the second electronic device through the cloud server, comprising: The first electronic device sends the target file to the second electronic device through the far-field transmission channel. The second electronic device sends the target file to the printer through the wireless access device after receiving the target file, comprising:
4. The method according to any one of claims 1-3, characterized in that, In response to receiving the target file, the second electronic device establishes a near-field transmission channel with the printer through the wireless access device; The second electronic device sends the target file to the printer through the near-field transmission channel. 5. The method according to any one of claims 1-3, characterized in that, The method further comprises: The second electronic device searches for the printer through the wireless access device, and sends the identification of the printer to the first electronic device through the cloud server.
6. The method according to any one of claims 1-3, characterized in that, The method further comprises: The printer sends a printing status to the second electronic device through the wireless access device during printing of the target file; The second electronic device sends the printing status to the first electronic device through the cloud server; The first electronic device displays the printing status after receiving the printing status.
7. The method of claim 3, wherein, Before the first electronic device establishes a long-range transmission channel with the second electronic device through the cloud server, the method further comprises: The first electronic device sends a cloud connection request to the second electronic device through the cloud server; The second electronic device establishes a connection with the cloud server after receiving the cloud connection request; The second electronic device sends a cloud connection response to the first electronic device through the cloud server after establishing a connection with the cloud server; The first electronic device establishes a long-range transmission channel with the second electronic device through the cloud server, comprising: The first electronic device establishes a long-range transmission channel with the second electronic device through the cloud server after receiving the cloud connection response.
8. The method of any one of claims 1-3, wherein, Before the second electronic device sends the target file to the printer through the wireless access device, the method further comprises: The first electronic device sends the identification of the printer to the second electronic device through the cloud server; The second electronic device determines to send the target file to the printer after receiving the identification of the printer.
9. The method of claim 8, wherein, The method further comprises: The second electronic device determines whether one or more protocol packages locally stored in the second electronic device include a target protocol package for controlling the printer to print according to the identification of the printer; If one or more protocol packages locally stored in the second electronic device include a target protocol package for controlling the printer to print, the second electronic device loads the target protocol package and uses the target protocol package to send the target file to the printer through the wireless access device.
10. The method of claim 7, wherein, After the first electronic device establishes a long-range transmission channel with the second electronic device through the cloud server, the method further comprises: The second electronic device determines whether the same cloud account is logged in on the first electronic device and the second electronic device; The first electronic device sends the target file to the second electronic device through the long-range transmission channel, comprising: If the same cloud account is logged in on the first electronic device and the second electronic device, the first electronic device sends the target file to the second electronic device through the long-range transmission channel.
11. The method of any one of claims 1-3, wherein, The method further comprises: The second electronic device displays a call printing prompt during printing of the target file by the printer, and the call printing prompt is used to prompt a user that the first electronic device is calling the printer for printing by means of the second electronic device.
12. The method of claim 7, wherein, The first electronic device comprises a print assistant, a first ecological access framework and a first far-field communication service; the cloud server comprises a device cloud server and a far-field cloud server; the second electronic device comprises a second ecological access framework and a second far-field communication service; The first electronic device sends a cloud connection request to the second electronic device through the cloud server, comprising: The print assistant sends a print session establishment request to the first ecological access framework; The first ecological access framework sends a cloud connection request to the second ecological access framework through the device cloud server after receiving the print session establishment request; The second electronic device establishes a connection with the cloud server after receiving the cloud connection request, comprising: The second ecological access framework establishes a connection with the device cloud server after receiving the cloud connection request; The second electronic device sends a cloud connection response to the first electronic device through the cloud server after establishing a connection with the cloud server, comprising: The second ecological access framework sends the cloud connection response to the first ecological access framework through the device cloud server after establishing a connection with the device cloud server; The first electronic device establishes a far-field transmission channel with the second electronic device through the cloud server after receiving the cloud connection response, comprising: The first ecological access framework sends a first far-field connection request to the first far-field communication service after receiving the cloud connection response; The second ecological access framework sends a second far-field connection request to the second far-field communication service after sending the cloud connection response to the first ecological access framework through the device cloud server; The first far-field communication service establishes a connection with the far-field cloud server after receiving the first far-field connection request; The second far-field communication service establishes a connection with the far-field cloud server after receiving the second far-field connection request; The first far-field communication service establishes the far-field transmission channel with the second far-field communication service through the far-field cloud server.
13. The method of claim 12, wherein, The first electronic device further comprises a first print service; the second electronic device further comprises a second print service; The first electronic device sends the target file to the second electronic device through the far-field transmission channel, comprising: The first ecological access framework and the second ecological access framework establish a print session on the far-field transmission channel; The first print service sends the target file to the second print service on the print session; The second electronic device sends the target file to the printer through the wireless access device after receiving the target file, comprising: The second print service sends the target file to the printer through the wireless access device after receiving the target file on the print session.
14. A printing method characterized by, Applied to the second electronic device, the method comprises: The second electronic device sends the identification of the printer to the first electronic device through the cloud server after searching for the printer through the wireless access device; wherein the second electronic device establishes a communication connection with the wireless access device, the printer establishes a communication connection with the wireless access device, and the first electronic device does not establish a communication connection with the wireless access device; The second electronic device receives the target file sent by the first electronic device through the cloud server; After receiving the target file, if the second electronic device does not include a target protocol package for controlling the printer to print in one or more protocol packages locally, the second electronic device sends a download request to the protocol platform server, the download request carrying the device information of the printer, and the download request being used to request to download the target protocol package for controlling the printer to print; After receiving the target protocol package sent by the platform server, the second electronic device loads the target protocol package and sends the target file to the printer through the wireless access device using the target protocol package, the target file being used to trigger the printer to print the target file.
15. The method of claim 14, wherein, The target file is sent by the second electronic device to the first electronic device through the cloud server in response to receiving a print operation acting on the identification of the printer, after determining that the first electronic device and the printer are not connected to the same local area network.
16. The method of claim 14, wherein, The method further comprises: The second electronic device receives the target print parameter sent by the first electronic device through the cloud server; After receiving the target print parameter, the second electronic device sends the target print parameter to the printer through the wireless access device, the target print parameter being used to instruct the printer to print the target file with the target print parameter.
17. The method according to any one of claims 14-16, characterized by, Before the second electronic device receives the target file sent by the first electronic device through the cloud server, the method further comprises: The second electronic device establishes a far-field transmission channel with the first electronic device through the cloud server; The second electronic device receives the target file sent by the first electronic device through the cloud server, comprising: The second electronic device sends the target file to the second electronic device through the far-field transmission channel.
18. The method of claim 16, wherein, After receiving the target print parameter, the second electronic device sends the target print parameter to the printer through the wireless access device, comprising: The second electronic device establishes a near-field transmission channel with the printer through the wireless access device; The second electronic device sends the target file to the printer through the near-field transmission channel.
19. The method of any one of claims 14-16, wherein, The method further comprises: After the second electronic device sends the target file to the printer through the wireless access device, the second electronic device receives the print status sent by the printer through the wireless access device; The second electronic device sends the print status to the first electronic device through the cloud server, the print status being used to display on the first electronic device.
20. The method of claim 17, wherein, Before the second electronic device establishes the far-field transmission channel with the first electronic device through the cloud server, the method further includes: The second electronic device receives the cloud connection request sent by the first electronic device through the cloud server; The second electronic device establishes a connection with the cloud server after receiving the cloud connection request; The second electronic device sends a cloud connection response to the first electronic device through the cloud server after establishing a connection with the cloud server, and the cloud connection response is used to instruct the first electronic device to establish a far-field transmission channel with the second electronic device; The second electronic device establishes the far-field transmission channel with the first electronic device through the cloud server, including: After the second electronic device sends the cloud connection response to the first electronic device through the cloud server, the second electronic device establishes the far-field transmission channel with the first electronic device through the cloud server.
21. The method of any one of claims 14-16, wherein, The method further includes: The second electronic device receives the identification of the printer sent by the first electronic device through the cloud server; The second electronic device determines to send the target file to the printer after receiving the identification of the printer.
22. The method of claim 21, wherein, The method further includes: The second electronic device determines whether the second electronic device locally has one or more protocol packages that control the printer to print according to the identification of the printer; If the second electronic device locally has one or more protocol packages that control the printer to print, the second electronic device loads the target protocol package and sends the target file to the printer through the wireless access device using the target protocol package.
23. The method of any one of claims 14-16, wherein, The method further includes: The second electronic device displays a call printing prompt during the process of the printer printing the target file, and the call printing prompt is used to prompt the user that the first electronic device is calling the printer to print by means of the second electronic device.
24. An electronic device, being a second electronic device, characterized in that One or more processors and one or more memories; wherein the one or more memories are coupled with the one or more processors, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, when the one or more processors execute the computer instructions, the second electronic device executes the method as claimed in any one of claims 14-23.
25. A computer-readable storage medium comprising instructions, wherein: When the instructions run on the processor of the second electronic device, the second electronic device executes the method as claimed in any one of claims 14-23.
Citation Information
Patent Citations
File printing method, device, equipment and system
CN112445433A
Printing method, electronic equipment and system
CN116820355A