Printing method, communication system and related device
Establishing a remote transmission channel through cloud servers solves the control problem when the electronic device and the printer are not on the same LAN, and realizes the convenience of remote printing.
Patent Information
- Application Number
- CN202311850299.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2043-12-28
AI Technical Summary
When the electronic device and the printer are not on the same LAN, users cannot control the printer to print through short-range communication technologies such as Bluetooth or Wi-Fi, resulting in the inability to complete the printing task remotely.
The remote field transmission channel is established through the cloud server, allowing the first electronic device to send the target file to the second electronic device on the same LAN as the printer, and the second electronic device then controls the printer to print through the wireless access device.
It realizes that even if the first electronic device is not near the printer, the printer can be remotely controlled to complete the printing task, improving the convenience and flexibility of printing.
Smart Images

Figure CN120276687A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of terminals, and in particular, to a printing method, a communication system, and related devices. Background Art
[0002] Currently, if 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 a short-range communication technology such as Bluetooth or Wi-Fi. Then, the printer can be controlled to complete the printing. In this way, the electronic device needs to be near the printer for printing. If the electronic device is not near the printer, the printer cannot be controlled to print. Summary of the Invention
[0003] This 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, the target file can be given to a second electronic device that is in the same local area network as 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, this application provides a printing method, which is 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, and the identifier of the printer is sent by the second electronic device to the first electronic device through a cloud server; the first electronic device receives a printing operation 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 determining 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 this application, when the first electronic device is not connected to the wireless access device, and the second electronic device and the printer are connected to the wireless access device, the first electronic device can send the target file to the second electronic device through the cloud server. After receiving the target file of 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 complete the printing task on the first electronic device.
[0006] For example, a printer is installed in the user's home, and both the printer and the home tablet are connected to the home router. When the user is out, the user receives an electronic homework sent by the teacher on their mobile phone, requiring the user's child 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 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. The user can use their mobile phone to remotely control the home printer to complete the printing of the homework with the help of the home tablet, 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 receives target printing parameters set by the user; the first electronic device sends the target printing parameters to the second electronic device through the cloud server; after receiving the target printing parameters, the second electronic device sends the target printing parameters to the printer through the wireless access device; after receiving the target file, the printer prints the target file, including: after receiving the target file and the target printing parameters, the printer prints the target file with the target printing parameters.
[0008] In this way, the first electronic device can also send the printing parameters to the printer through the second electronic device, so as to control the printer to print according to the printing parameters 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 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, including: the first electronic device sends the target file to the second electronic device through the far-field 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 send the target file to the second electronic device by establishing a far-field transmission channel through the server.
[0011] The far-field transmission channel is a data transmission channel established between the first electronic device and the second electronic device through the cloud server.
[0012] In a possible implementation, after receiving the target file, the second electronic device sends the target file to the printer through the wireless access device, 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; the second electronic device sends the target file to the printer through the near-field transmission channel.
[0013] In this way, since the second electronic device and the printer are in the same local area network, the second electronic device can, after receiving the target file, establish a near-field transmission channel with the printer through the wireless access device, so as to 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 manner, the method further includes: the second electronic device searches for the printer through the wireless access device and sends the identifier of the printer to the first electronic device through the cloud server.
[0016] In this way, when the second electronic device searches for the printer through the wireless access device, it means that the second electronic device and the printer are in the same local area network and the printer is online. At this time, after the second electronic device sends the identifier of the printer to the first electronic device through the cloud server, the first electronic device can know that the printer is online and the printer can be called.
[0017] In a possible implementation manner, the method further includes: during the process of printing the target file, the printer sends a printing status to the second electronic device through the wireless access device; the second electronic device sends the printing status to the first electronic device through the cloud server; and the first electronic device displays the printing status after receiving the printing status.
[0018] In this way, when the first electronic device remotely calls the printer through the second electronic device, the user can instantaneously view the printing status including the printing progress on the first electronic device.
[0019] In a possible implementation manner, before the first electronic device establishes a 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; 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 first electronic device establishes a far-field transmission channel with the second electronic device through the cloud server, including: 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.
[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 established through the cloud server without the user operating on the second electronic device.
[0021] In a possible implementation manner, 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 the identifier of the printer to the second electronic device through the cloud server; after receiving the identifier of the printer, the second electronic device determines to send the target file to the printer.
[0022] Since there may 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 called to the second electronic device, so that the second electronic device can accurately control the desired printer and complete the printing task of the first electronic device.
[0023] In a possible implementation manner, the method further includes: the second electronic device determines whether one or more protocol packets on the second electronic device include a target protocol packet for controlling printing to the printer according to the identifier of the printer; the second electronic device sends the target file to the printer through the wireless access device, including: if one or more protocol packets on the second electronic device include a target protocol packet for controlling printing to the printer, the second electronic device loads the target protocol packet and uses the target protocol packet to send the target file to the printer through the wireless access device.
[0024] Since the second electronic device may have used one or more printers for printing before, there may be one or more protocol packets for controlling the printing of one or more printers 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 search for the target protocol packet from one or more protocol packets according to the identifier of the printer, so as to send the target file to the printer using the target protocol packet.
[0025] In a possible implementation manner, the method further includes: if one or more protocol packets on the second electronic device do not include a protocol packet for controlling printing to the printer, the second electronic device sends a download request to the protocol platform server, and the download request carries the device information of the printer, and the download request is used to request to download a protocol packet for controlling printing to the printer; after receiving the target protocol packet sent by the platform server, the second electronic device loads the target protocol packet and uses the target protocol packet to send the target file to the printer through the wireless access device.
[0026] In this way, when there is no protocol packet for controlling the printer to print locally on the second electronic device, the second electronic device can immediately download the target protocol packet for controlling the printer from the platform service.
[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: the second electronic device determines whether the same cloud account is logged in on both 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, including: if the same cloud account is logged in on both 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.
[0028] In this way, before sending the target file to the second electronic device, the first electronic device can perform a trust judgment on the second electronic device. If the same cloud account is logged in on both the first electronic device and the second electronic device, it means 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 both the first electronic device and the second electronic device, the first electronic device may not send the target file to the second electronic device, thereby preventing the target file from being sent to an untrusted device.
[0029] In a possible implementation, the method further includes: during the process of the printer printing the target file, the second electronic device displays a printing call prompt, and the printing call prompt is used to prompt the user that the first electronic device is using the second electronic device to call the printer for printing.
[0030] In this way, when the second electronic device is used by other devices to call the printer, the user can see the prompt information on the second electronic device, so as to know which device is using the second electronic device to call the printer.
[0031] 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 sends a print session establishment request to the first ecological access framework; after receiving the print session establishment request, the first ecological access framework sends a cloud connection request to the second ecological access framework through the device cloud server; after receiving the cloud connection request, the second electronic device establishes a connection with the cloud server, including: after receiving the cloud connection request, the second ecological access framework establishes a connection with the device cloud server; after establishing a connection with the cloud server, the second electronic device sends a cloud connection response to the first electronic device through the cloud server, including: after establishing a connection with the device cloud server, the second ecological access framework sends the cloud connection response to the first ecological access framework through the device cloud server; after receiving the cloud connection response, the first electronic device establishes a far-field transmission channel with the second electronic device through the cloud server, including: after receiving the cloud connection response, the first ecological access framework sends a first far-field connection request to the first far-field communication service; after sending the cloud connection response to the first ecological access framework through the device cloud server, the second ecological access framework sends a second far-field connection request to the second far-field communication service; after receiving the first far-field connection request, the first far-field communication service establishes a connection with the far-field cloud server; after receiving the second far-field connection request, the second far-field communication service establishes a connection with the far-field cloud server; 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 includes a first print service; the second electronic device further includes a second print service; the first electronic device sends the target file to the second electronic device through the far-field transmission channel, including: 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 during the print session; after receiving the target file, the second electronic device sends the target file to the printer through the wireless access device, including: after receiving the target file during the print session, the second print service sends the target file to the printer through the wireless access device.
[0033] Second aspect, a printing method provided in an embodiment of the present application is applied to a first electronic device. The method includes: the first electronic device displays a first interface, and the first interface includes an identifier of a printer. The identifier of the printer is sent by the second electronic device to the first electronic device through a cloud server. Among them, the second electronic device establishes a communication connection with a 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 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 determining 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, and 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 manner, the method further includes: the first electronic device receives target printing parameters set by a user; the first electronic device sends the target printing parameters to the second electronic device through the cloud server, and the target printing parameters are used to control the second electronic device to control the printer to print the target file with the target printing parameters through the wireless access device.
[0035] In a possible implementation manner, before the first electronic device sends a target file to the second electronic device through the cloud server, the method further includes: the first electronic device establishes a far-field transmission channel with the second electronic device through the cloud server; the first electronic device sending the target file to the second electronic device through the cloud server includes: the first electronic device sending the target file to the second electronic device through the far-field transmission channel.
[0036] In a possible implementation manner, the method further includes: after the first electronic device sends the target file to the second electronic device through the cloud server, it receives the printing status sent by the second electronic device through the cloud server; in response to the received printing status, the first electronic device displays the printing status.
[0037] In a possible implementation, before the first electronic device establishes a 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, and 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; the first electronic device establishes a far-field transmission channel with the second electronic device through the cloud server, including: after receiving the cloud connection response, the first electronic device establishes the far-field transmission channel with the second electronic device through the cloud server.
[0038] 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: the second electronic device determines whether the same cloud account is logged in on both 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, including: if the same cloud account is logged in on both 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 printing 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 printing assistant is used to send a printing session establishment request to the first ecological access framework; after receiving the printing session establishment request, the first ecological access framework sends the cloud connection request to the second ecological access framework through the device cloud server; 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: after receiving the cloud connection response sent by the second ecological access framework through the device cloud server, the first ecological access framework sends a first far-field connection request to the first far-field communication service; after receiving the first far-field connection request, the first far-field communication service establishes a connection with the far-field cloud server; the first far-field communication service establishes a 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; the first electronic device sends the target file to the second electronic device through the far-field transmission channel, including: the first ecological access framework and the second ecological access framework establish a printing session on the far-field transmission channel; the first printing service sends the target file to the second printing service on the second electronic device during the printing session.
[0041] In a third aspect, the present application provides a printing method applied to a second electronic device. The method includes: 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 the first electronic device through the 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 the target file sent by the first 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, 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 after the first electronic device determines that the first electronic device and the first printer are not connected to the same local area network in response to a printing operation acting on the identifier of the printer.
[0043] In a possible implementation, the method further includes: the second electronic device receives the target printing parameters sent by the first electronic device through the cloud server; 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 with 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 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, including: the second electronic device receives the target file through the far-field 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; 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; the second electronic device sends the printing status to the first electronic device through the cloud server, and the printing status is used for display on the first electronic device.
[0047] In a possible implementation, before the second electronic device establishes a far-field 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 a 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 a far-field transmission channel with the second electronic device; the second electronic device establishing a far-field transmission channel with the first electronic device through the cloud server includes: after the second electronic device sends the cloud connection response to the first electronic device through the cloud server, the second electronic device establishes a far-field 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; after receiving the 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 a target protocol packet for controlling printing to the printer is included in one or more protocol packets local to the second electronic device according to the identifier of the printer; the second electronic device sending the target file to the printer through the wireless access device includes: if a target protocol packet for controlling printing to the printer is included in one or more protocol packets local to the second electronic device, the second electronic device loads the target protocol packet and uses the target protocol packet to send the target file to the printer through the wireless access device.
[0050] In a possible implementation, the method further includes: if one or more protocol packets in the second electronic device do not include a protocol packet for controlling the printer to print, the second electronic device sends a download request to the protocol platform server, where the download request carries device information of the printer, and the download request is used to request to download a protocol packet for controlling the printer to print; after receiving the target protocol packet sent by the platform server, the second electronic device loads the target protocol packet and uses the target protocol packet to send the target file to the printer through the wireless access device.
[0051] In a possible implementation, the method further includes: during the process of the printer printing the target file, the second electronic device displays a call printing prompt, and the call printing prompt is used to prompt the user that the first electronic device is using the second electronic device to call the printer for printing.
[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; wherein, the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, and the computer program code includes computer instructions. When the one or more processors execute the computer instructions, the method in the second aspect and any possible implementation manner in the second aspect is 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; wherein, the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, and the computer program code includes computer instructions. When the one or more processors execute the computer instructions, the method in the third aspect and any possible implementation manner in the third aspect is 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, and the one or more functional modules are used to perform the method in the second aspect and any possible implementation manner in 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, and the one or more functional modules are used to perform the method in the third aspect and any possible implementation manner in the third aspect.
[0056] In an eighth aspect, the present application provides a chip system applied to a first electronic device. The chip system includes a processing circuit and an interface circuit. The interface circuit is configured to receive instructions and transmit them to the processing circuit, and the processing circuit is configured to run the instructions to execute the method in the second aspect and any possible implementation manner of the second aspect as described above.
[0057] In a ninth aspect, the present application provides a chip system applied to a second electronic device. The chip system includes a processing circuit and an interface circuit. The interface circuit is configured to receive instructions and transmit them to the processing circuit, and the processing circuit is configured to run the instructions to execute the method in the third aspect and any possible implementation manner of the third aspect as described above.
[0058] In a tenth aspect, the present application provides a computer-readable storage medium including instructions. When the instructions are run on a first electronic device, the method in the second aspect and any possible implementation manner of the second aspect as described above is executed.
[0059] In an eleventh aspect, the present application provides a computer-readable storage medium including instructions. When the instructions are run on a second electronic device, the method in the third aspect and any possible implementation manner of the third aspect as described above is executed.
[0060] In a twelfth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a computer, the computer is caused to execute the method in the first aspect and any possible implementation manner of the first aspect as described above.
[0061] In a thirteenth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a computer, the computer is caused to execute the method in the second aspect and any possible implementation manner of the second aspect as described above.
[0062] Among them, for the beneficial effects of the above second aspect to the thirteenth aspect, reference may be made to the beneficial effects in the first aspect and any possible implementation manner of the first aspect as described above, which will not be elaborated herein. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 is a schematic diagram of the architecture of a communication system provided by an embodiment of the present application;
[0064] Figures 2A - 2J is a schematic diagram of a set of interfaces for remotely invoking a printer to print in a control center provided by an embodiment of the present application;
[0065] Figures 3A - 3E is a schematic diagram of an interface for remotely invoking a printer to print in a control center provided by an embodiment of the present application;
[0066] Figures 4A - 4D Another interface schematic diagram of far-field printing provided in the embodiment of the present application;
[0067] Figure 5 A software architecture schematic diagram of an electronic device provided in the embodiment of the present application;
[0068] Figure 6 A flowchart of a printing method provided in the embodiment of the present application;
[0069] Figure 7 A flowchart of a printing method provided in another embodiment of the present application;
[0070] Figure 8A A hardware structure schematic diagram of an electronic device provided in the embodiment of the present application;
[0071] Figure 8B A hardware structure schematic diagram of a printer provided in the embodiment of the present application;
[0072] Figure 8C A hardware structure schematic diagram of a cloud server provided in the embodiment of the present application. Detailed implementation manners
[0073] Next, the technical solutions in the embodiments of the present application will be clearly and elaborately described in conjunction with the accompanying drawings. Among them, in the description of the embodiments of the present application, unless otherwise specified, " / " means "or". For example, A / B may mean A or B; "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B may mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality" means two or more than two.
[0074] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as implying or suggesting relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present application, unless otherwise specified, the meaning of "a plurality" is two or more than two.
[0075] With the development of printing requirements, such as printing children's homework, paintings, etc., printers are increasingly set to support access to a local area network, especially a local area network based on wireless fidelity (Wi-Fi), that is, it supports network access through Wi-Fi configuration, so that users can control the printer to execute printing tasks at any time and anywhere through electronic devices such as mobile phones and tablets around them without touching the printer. However, when the distance between the electronic device and the printer is relatively far 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 printing tasks.
[0076] For example, a printer is installed in a user's home. When the user is out, the user receives homework sent by the teacher on his / her mobile phone, and it is required that the user's child complete the homework on the same day. At this time, since the user is not at home, the user's mobile phone cannot access the local area network at home, and thus cannot control the printer to print out the homework sent by the teacher. Also, the children and the elderly at home 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] In view of this, in the embodiments of the present application, a printing method is provided. When the first electronic device and the printer are not in the same local area network, the first electronic device can establish a far-field transmission channel with the second electronic device that is in the same local area network as the printer through the cloud server, and the first electronic device can send the target file to the second electronic device. Since the second electronic device and the printer are in the same local area network, the second electronic device can communicate with the printer 200 through the local area network. Therefore, the second electronic device can control the printer to print the target file through the local area network. In this way, when the first electronic device is not near the printer, it can also control the printer to print.
[0078] For example, even when the user is out and receives homework sent by the teacher on his / her mobile phone, and it is required that the user's child complete the homework on the same day, the user can use his / her 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] Next, the architecture of a communication system provided in the embodiments of the present application is introduced.
[0080] Figure 1 The schematic diagram of the architecture of a communication system 10 provided in the embodiments of the present application is shown.
[0081] As Figure 1 shown, the communication system 10 may include an electronic device 101, an electronic device 102, a printer 200, a wireless access device 300, and a cloud server 400.
[0082] Among them, 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 both the electronic device 102 and the printer 200 establish Wi-Fi connections 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, since 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, the electronic device 101 cannot directly call the printer 200 in the local area network for printing.
[0085] Through a printing method provided in an 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 a target print file and target print parameters to the electronic device 102. After receiving the target print file and target print parameters, the electronic device 102 can control the printer 200 to print the target print file with the target print parameters based on the print protocol of the printer 200. In this way, when the electronic device 101 is not near the printer, it can also control the printer to print.
[0086] In an 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 following specifically introduces the printing operation process when the electronic device 101 and the printer 200 are not in the same local area network in an embodiment of the present application in combination with the interface schematic diagram.
[0088] Figures 2A - 2J Shows a set of interface schematic diagrams for remotely calling a printer for printing in the control center in an embodiment of the present application.
[0089] Such as Figure 2AAs shown, the electronic device 101 can display a desktop 310. Among them, a page with application icons is displayed on the desktop 310, and this page includes multiple application icons (for example, weather application icon, stock application icon, calculator application icon, settings application icon, mail application icon, gallery application icon, music application icon, video application icon, browser application icon, smart space application icon, etc.). In the upper part area of the desktop 310, a status bar 311 is displayed, and the status bar 311 can include: one or more signal strength indicators of mobile communication signals (also known as cellular signals), battery status indicator, time indicator, Wi-Fi signal indicator, etc.
[0090] The electronic device 101 can receive a user's swipe gesture above the screen (for example, swiping down at the top of the screen). In response to this swipe gesture, the electronic device 101 can display as Figure 2B shown in the control center interface 320.
[0091] As Figure 2B shown, the control center interface 320 can include one or more function controls (for example, wireless local area network (WLAN) switch control, Bluetooth switch control, low power mode switch control, brightness adjustment control, sound adjustment control), a music control card, and a smart interconnection control card 321.
[0092] The electronic device 101 can receive a user's operation (such as a click) on the smart interconnection control card 321. In response to this operation, the electronic device 101 can display as Figure 2C shown in the smart interconnection interface 330.
[0093] As Figure 2C shown, the smart interconnection interface 330 can include device options 331 of the electronic device 101 and an avatar 337 corresponding to a specified cloud account. Among them, the electronic device 101 is logged in to the specified cloud account.
[0094] As Figure 2DAs shown, since the electronic device 101 and the printer 200 are not in the same local area network, the electronic device 102 and the printer 200 are in the same local area network. Both the electronic device 101 and the electronic device 102 are logged in with the same designated cloud account. After the electronic device 101 and the electronic device 102 are powered on, they can both send the online status to the device cloud server. When the electronic device 101 receives the online status of the electronic device 102 through the device cloud server, it can display the device option 333 of the electronic device 102 on the intelligent interconnection interface 330. After the electronic device 102 obtains the online status of the printer 200 through the local area network, it can send the online status of the printer 200 to the electronic device 101 through the device cloud server. After the electronic device 101 receives the online status of the printer 200, it can display the device option 332 of the printer 200 on the intelligent interconnection interface 330.
[0095] Among them, the electronic device 101 can also search for nearby devices that have gone online within the local area network to which the electronic device 101 is connected. If the electronic device 101 discovers nearby devices within the local area network to which the electronic device 101 is connected, and the nearby devices are bound to the designated cloud account or logged in with the designated cloud account, the electronic device 101 can also display the device options of the nearby devices in the intelligent interconnection interface 330 ( Figure 2D not shown in the figure). Among them, the types of nearby devices can include one or more of printers, TVs, tablets, and so on. Optionally, the electronic device 101 can first search for nearby devices within the local area network to which the electronic device 101 is connected, and then search for far-field devices that have gone online (such as the electronic device 102, the printer 200) on the device cloud server. Therefore, the electronic device 101 can first display the device options of the nearby devices that have gone online on the intelligent interconnection interface 330, and then display the device options of the far-field devices that have gone online.
[0096] Optionally, in response to the above operation on the intelligent interconnection control card 321, the electronic device 101 can directly display the intelligent interconnection interface 330 as Figure 2D shown.
[0097] As Figure 2E shown, the electronic device 101 can receive a drag operation in which the user drags the device option 332 to the area where the device option 331 is located. In response to this drag operation, the electronic device 101 can display a print floating ball 334 as Figure 2F shown. Among them, the print floating ball 334 can be floatingly displayed on the upper layer of other interfaces, and the print floating ball 334 can be used to call the print assistant to print the files in the interface currently displayed by the electronic device 101. Among them, the files include any one of documents, pictures, videos, tables, PPTs, and so on.
[0098] Optionally, the electronic device 101 receives and responds to a dragging operation in which the user drags the device option 332 to the area where the device option 331 is located, and can directly return to the desktop and display the print floating ball 334 on the desktop.
[0099] As Figure 2G shown, when the electronic device 101 displays the picture browsing interface 340, the print floating ball 334 can be floatingly displayed on the upper layer of the picture browsing interface 340. Among them, the picture browsing interface 340 may include a picture 341. Optionally, the picture browsing interface 340 may further include a menu 342, and the menu 342 may include a sharing control, a favorite control, an editing control, a deletion control, and a more control.
[0100] When the electronic device 101 displays the picture browsing interface 340 and the print floating ball 334, it can receive an operation (such as a click) of the user on the print floating ball 334. In response to this operation, the electronic device 101 can display as Figure 2H shown in the print interface 350.
[0101] As Figure 2H shown, the print interface 350 may include a print preview area 351, one or more print parameter setting options, and a start printing control 356. Among them, the print preview area 351 can be used to display the printing effect of the above picture 341. One or more print parameter setting options may include a print copy number setting option 352, a single-sided / double-sided printing setting option 353, a paper size setting option 354, and a color printing setting option 355, etc. Among them, the print copy number setting option 352 can be used to set the number of copies of the picture 341 to be printed by the printer 200. The single-sided / double-sided printing setting option 353 can be used to set whether to print the picture 341 on one side or on both sides. The paper size setting option 354 can be used to set the size of the picture 341 to be printed by the printer 200. The color printing setting option 355 is used to set whether the printer 200 prints the picture 341 in color or in black and white. The start printing control 356 can be used for the electronic device 101 to trigger the printer 200 to print the picture 341 with the print parameters set by the user.
[0102] The electronic device 101 can receive an input (such as a click) of the user on the start printing control 356. In response to this input, the electronic device 101 can establish a far-field transmission channel with the electronic device 102 through the far-field cloud server, and send the picture 341 and the target print parameters set by the user (such as 5 copies, single-sided printing, paper size A4, 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 parameters.
[0103] During the process of the printer 200 printing the picture 341 with target printing parameters, the printer 200 can send the printing status to the electronic device 102. After receiving the printing status, the electronic device 102 can send the printing status to the electronic device 101 through the far-field transmission channel.
[0104] As Figure 2I shown, after receiving the printing status, the electronic device 101 can display the printing interface 360. Among them, the printing interface 360 can include a print preview area 361, a printing status prompt 362, and a stop printing control 363. The print preview area 361 can be used to display the printing effect of the above picture 341. The printing status prompt 362 can be used to prompt the printing status of the current printer. For example, the printing status prompt 362 can be "Printing the 1st copy / (total 5 copies)". The stop printing control 363 can be used to trigger the electronic device 101 to control the printer 200 to stop printing the current printing task through the electronic device 102.
[0105] After the printer 200 finishes printing the picture 341 with target printing parameters, the printer 200 can send the printing completion information to the electronic device 102. After receiving the printing completion information, the electronic device 102 can send it to the electronic device 101 through the far-field transmission channel.
[0106] As Figure 2J shown, after receiving the printing completion information, the electronic device 101 can display the printing interface 365. Among them, the printing interface 365 can include a print preview area 366, a printing completion prompt 367, and a continue printing control 368. The print preview area 366 can be used to display the printing effect of the above picture 341. The printing completion prompt 367 can be used to prompt that the printer has completed the printing task. The continue printing control 368 can be used to trigger the electronic device 101 to continue to select files for the printer 200 to print.
[0107] Figures 3A - 3E Shows another set of schematic diagrams of the interface for remotely invoking a printer for printing in the control center in the embodiments of the present application.
[0108] As Figure 3A shown, the electronic device 101 can display the intelligent interconnection interface 330. Among them, the intelligent interconnection interface 330 can include the device option 331 of the electronic device 101, the device option 332 of the printer 200, the device option 333 of the electronic device 102, and the avatar 337 corresponding to the specified cloud account. The electronic device 101 can receive the dragging operation of the user dragging the device option 332 to the area where the device option 331 is located.
[0109] As Figure 3BAs shown, in response to the user's dragging operation of dragging the device option 332 to the area where the device option 331 is located, the electronic device 101 can return to display the desktop 310 and display the printing capsule 371 on the display screen. Among them, the display screen of the electronic device 101 is a hole-punch screen. Generally, a front camera is placed at the hole-punch position of the display screen, 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 printing capsule 371 around the hole-punch position at the top of the display screen. Among them, the hole-punch position of the display screen can be located in the middle area of the printing capsule 371, and the non-middle area of the printing capsule 371 can display printing icons, printing words, and the device manufacturer, device model (for example, Printer P1) or device identifier of the printer 200, etc. Since the display color of the hole-punch position is black, the background color of the printing capsule 371 can also be adjusted to black, so that it is difficult for users to find the hole-punch position of the display screen. Among them, the printing capsule 371 can be floatingly displayed on the upper layer of other interfaces, and the printing capsule 371 can be used to call the printing assistant to print the files in the interface currently displayed on the electronic device 101. Among them, the files include any one of documents, pictures, videos, tables, PPTs, etc.
[0110] The electronic device 101 can receive the user's operation (such as clicking) on the gallery application icon 312 in the desktop 310. In response to the user's operation, the electronic device 101 can display as Figure 3C shown in the gallery application interface 380.
[0111] As Figure 3C shown, the gallery application interface 380 can include thumbnails of one or more pictures, such as the thumbnail 381. Among them, when the electronic device 101 displays the gallery application 380, it can also display the above-mentioned printing capsule 371.
[0112] The electronic device 101 can receive the user's operation on the thumbnail 381. In response to this operation, the electronic device 101 can display as Figure 3D shown in the picture browsing interface 390.
[0113] As Figure 3D shown, when the electronic device 101 displays the picture browsing interface 390, it can display the above-mentioned printing capsule 371. Among them, the picture browsing interface 390 can include a picture 391. Optionally, the picture browsing interface 390 can further include a menu 392, and the menu 392 can include sharing controls, favorite controls, editing controls, deletion controls, and more controls.
[0114] The electronic device 101 can receive the user's operation (such as clicking) on the printing capsule 371. In response to this operation, as Figure 3EAs shown, the electronic device 101 can switch the printing capsule 371 to a printing notification bar 393 and display it at the top of the display screen.
[0115] As Figure 3E shown, the printing notification bar 393 can include the file name of the file currently opened by the user and a printing control 394. Among them, the file currently opened by the user can be a picture 391. Therefore, the file name "IMG_2023 / 9 / 20_1.JPG" of the picture 391 can be displayed in the printing notification bar 393.
[0116] The electronic device 101 can receive an operation (such as a click) from the user on the printing control 394. In response to this operation, the electronic device 101 can display the printing interface 350 as Figure 2H shown above. For the subsequent printing operation process, reference can be made to the above Figures 2H to 2J shown embodiment, which will not be elaborated here.
[0117] In a possible implementation, if the electronic device 101 does not receive an operation from the user on the printing capsule 371 after a certain period of time (for example, 10 seconds) after displaying the printing capsule 371, it will exit the display of the printing capsule 371.
[0118] In a possible implementation, if the electronic device 101 receives a click from the user on an area outside the printing notification bar 393 after displaying the printing notification bar 393, the electronic device 101 can switch the printing notification bar 393 back to the printing capsule 371 and display it at the top of the display screen.
[0119] In a possible implementation, after the electronic device 101 receives an operation (such as a click) from the user on the printing control 394, it can directly send the picture 391 and printing parameters to the electronic device 102 through a cloud server. The electronic device 102 then sends the picture 391 and printing parameters to the printer 200 through a local area network for printing.
[0120] In some application scenarios, when the user is at home, the electronic device 101 and the home printer 200 can be connected to the same local area network. At this time, the electronic device 101 can add the printer 200 in the smart space application. When the user leaves home, the electronic device 101 disconnects from the home local area network. Therefore, the electronic device 101 and the printer 200 are not in the same local area network. At this time, the electronic device 101 can remotely call the printer 200 for printing in the smart space application.
[0121] Figures 4A - 4D Shows a set of interface schematic diagrams for remotely calling a printer for printing in the smart space application provided in the embodiments of the present application.
[0122] AsFigure 4A As shown in the figure, the electronic device 101 can display the intelligent space application interface 510. Among them, one or more device service cards can be displayed in the intelligent space application interface 510. Among them, a specified cloud account is logged in to the intelligent space application of the electronic device 101. Since the printer 200 has been added to the intelligent space application of the electronic device 101 before, the service card of the one or more devices bound to the specified cloud account can include the service card 511 of the printer 200. Among them, the device name of the printer 200 (for example, "XX Printer") is displayed in the service card 511. At this time, the electronic device 101 and the printer 200 are not in the same local area network, but the electronic device 102 and the printer 200 are in the same local area network.
[0123] The electronic device 101 can receive an input (such as a click) from the user for the service card 511. In response to this input, the electronic device 101 can start the print assistant and display the Figure 4B as shown in the figure, the print assistant interface 520.
[0124] As Figure 4B shown in the figure, the print assistant interface 520 can include a printer option 521 and one or more print options. Among them, the device information (for example, "XX Printer Printer P1") and status information (for example, "idle status") of the printer 200 are displayed on the printer option 521. The one or more print options can include a wrong question print option, a test paper restoration print option, a handwritten newspaper print option, an origami print option, a document print option, a picture print option 522, a scan option, a large picture print option, and a regional data print option, etc.
[0125] The electronic device 101 can receive an input (such as a click) from the user for the picture print option 522. In response to this input, the electronic device 101 can display the Figure 4C as shown in the figure, the picture selection interface 530.
[0126] As Figure 4C shown in the figure, the picture selection interface 530 can display thumbnails of one or more pictures stored locally on the electronic device 101 (including the thumbnail 531 corresponding to the above picture 341).
[0127] The electronic device 101 can receive an input (such as a click) from the user for the thumbnail 531. In response to this input, the electronic device 101 can display the above Figure 2HThe printing interface 350 shown. Among them, the electronic device 101 can determine the target printing parameters of the picture 341 according to the operations of the user in the above printing interface 350. The electronic device 101 can send the picture 341 and the target printing parameters set by the user (for example, 5 copies for printing, single-sided printing, paper size A4, 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 printing parameters.
[0128] In a possible implementation, as Figure 4D shown, when the electronic device 101 calls the printer 200 with the help of the electronic device 102 to perform a printing task, 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 calling the printer 200 with the help of the electronic device 102 to perform printing. For example, the call printing prompt 540 can be "The mobile phone Honor magic6 is calling the XX printer Printer P1 for printing with the help of your device".
[0129] Next, a software architecture of an electronic device provided in an embodiment of the present application will be introduced.
[0130] Figure 5 A schematic diagram of the software architecture of an electronic device is shown.
[0131] As Figure 5 shown, the software architecture of the electronic device may include an application layer, a business middle platform, and a basic middle platform. Among them, the application layer may include a system interaction entrance and a printing entrance. The system interaction entrance may include a control center. The printing entrance may include a printing assistant, a smart space application, system settings printing, sharing printing, and third-party applications, etc.
[0132] The business middle platform may include a smart multi-modal human-computer interaction framework and a basic service framework. Among them, the smart multi-modal human-computer interaction framework may include a shared service management framework. The basic service framework may include a printing service.
[0133] The basic middle platform may include a trust ring (MagicRing) framework. The trust ring framework may include a trust ring basic service and system software and hardware resource sharing protocol components.
[0134] The trust ring basic service may include a printing sharing service. Among them, the printing sharing service may support functions such as the printer entering and leaving the trust ring, printing device selection, printing management, and printing extension capabilities. The system software and hardware resource sharing protocol components may include a distributed printing service, a device management service, a far-field communication service, a data transmission service, an access networking (Nearby) service, a distributed call framework, and an ecological access framework (Magic Link).
[0135] The distributed printing service may include application programming interfaces (APIs) with one or more functions, a printing scheduling module, a near and far field printing management module, an authorization management module, a protocol packet shelf, a third-party printing protocol packet, and a Mopria protocol packet, etc. Among them, the one or more functions include status 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 status, online and offline status, etc. of one or more devices within the trust ring. The far field communication service can establish a communication connection with the far field cloud server, so as to establish a far field transmission channel with the far field communication services 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 nearby service can identify printers discovered through the near field and establish a near field transmission channel with the printers. The distributed call framework can implement functions that can be called by other devices. The ecological access framework (Magic Link) can establish a communication connection with the device cloud server (for example, a message queuing telemetry transport (MQTT) connection).
[0137] The system software and hardware resource sharing protocol component can provide a distributed printing protocol interface to the printing sharing service. Therefore, the printing sharing service can call the distributed printing service through the distributed printing protocol interface to complete printing functions such as printing device selection, printing management, and printing extension capabilities. The system software and hardware resource sharing protocol component can also provide call interfaces for functions such as the entry and exit of the printer from the trust ring, discovery, online and offline, etc. to the printing sharing service. Therefore, the printing sharing service can obtain the control of the printer's entry and exit from the trust ring from the distributed printing service through the call interfaces for functions such as the entry and exit of the printer from the trust ring, discovery, online and offline, etc.
[0138] The trust ring basic sharing service can provide a call interface for the trust ring basic sharing service to the printing service. The printing service can provide a call interface for the printing service to the printing entry. The printing sharing service can register the printing sharing service with the sharing service management framework. The sharing service management framework can manage the sharing services of multiple devices within the trust ring. Among them, the sharing services of multiple devices within the trust ring can include the printing sharing service. The sharing service management framework can obtain the online and offline status of the printer from the printing sharing service and send the online and offline status of the printer to the control center.
[0139] The control center can obtain the online and offline information of multiple devices within the trust ring from the shared service management framework. Among them, the online and offline information of multiple devices within the trust ring can include the online and offline information of printers. The device options of multiple devices entering the trust ring, as well as the online and offline information of these multiple devices, are displayed in the intelligent interconnection interface. Among them, the multiple devices in the trust ring can include printer 200, electronic device 101, electronic device 102, etc. Multiple devices in the same trust ring are logged in or bound to the same cloud account.
[0140] The following combines the above Figures 3A - 3E , taking the control center as the printing entry as an example to specifically introduce how to remotely call a printer for printing.
[0141] Figure 6 The flowchart of a printing method provided in another embodiment of the present application is shown.
[0142] As Figure 6 shown, this method can be applied to a communication system including electronic device 101, electronic device 102, wireless access device 300 ( Figure 6 not shown in the figure), cloud server 400, and printer 200. In a possible implementation, electronic device 101 can include control center 1011, printing assistant 1012, printing service 1013, ecological access framework 1014, and far-field communication service 1015. Cloud server 400 can include device cloud server 401 and far-field cloud server 402. Electronic device 102 can include printing service 1023, ecological access framework 1024, and far-field communication service 1025. Among them, both printer 200 and electronic device 102 establish a Wi-Fi connection with wireless access device 300. Therefore, printer 200 and electronic device 102 are in the same local area network. Electronic device 101 is not in the same local area network as electronic device 102 and printer 200.
[0143] This method can include the following steps:
[0144] S601. Printer 200 sends the online information to ecological access framework 1024.
[0145] After printer 200 is powered on and connected to the local area network, it can send the online information to ecological access framework 1024 in electronic device 102 within the same local area network. This online information is used to indicate that printer 200 has been powered on.
[0146] S602. Ecological access framework 1024 sends the online information to device cloud server 401.
[0147] Among them, 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, establishing a device cloud connection with the device cloud server 401 may keep the connection or disconnect.
[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 on the electronic device 102 sent by the ecological access framework 1014. The device cloud server 401 can determine the 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, where 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 intelligent interconnection interface.
[0151] For example, the operation of the user opening the intelligent interconnection interface can refer to the Figure 2B shown in the above embodiments, the operation of the user on the intelligent interconnection control card 321, and the specific memory can refer to the Figure 2B shown in the foregoing embodiments, which will not be elaborated here.
[0152] S605. The control center 1011 can obtain the online information of the printer 200 from the ecological access framework 1014.
[0153] Among them, after detecting the operation of the user opening the intelligent interconnection interface, the control center 1011 can directly or indirectly obtain the online information of the printer 200 from the ecological access framework 1014 through modules such as the shared service framework ( Figure 6 not shown), the print sharing service ( Figure 6 not shown), and the device management service ( Figure 6 not shown).
[0154] The online information of the printer 200 can include the identifier of the printer 200 (for example, "Printer P1") and the online status.
[0155] S606. The control center 1011 displays the intelligent interconnection interface and shows that the printer 200 has been online on the intelligent interconnection interface.
[0156] The control center 1011 can display the intelligent interconnection interface in response to the user's operation of opening the intelligent interconnection interface. The control center 1011 can show that the printer 200 has been online on the intelligent interconnection interface after obtaining the online information of the printer 200.
[0157] Among them, in the control center 1011, the device options that may include the printer 200 can be obtained in the intelligent interconnection interface, and the identifier of the printer 200 (for example, "Printer P1") can be displayed on the device options of the printer 200.
[0158] For example, as described above Figure 2D As shown, after receiving the online information of the printer 200, the control center 1011 can display the device options 332 of the printer 200 on the intelligent interconnection interface 330.
[0159] In the embodiment of the present application, this intelligent interconnection interface can be referred to as the first interface.
[0160] S607. The control center 1011 detects the user's printing operation using the printer 200.
[0161] The user's printing operation using the printer 200 can refer to the dragging operation in the above Figure 3A shown embodiment where the user drags the device option 332 in the intelligent interconnection interface 330 to the area where the device option 331 is located.
[0162] S608. After detecting the user's operation using the printer 200, the control center 1011 can start the printing assistant 1012.
[0163] S609. The printing assistant 1012 can display a printing capsule.
[0164] This printing capsule can be floatingly displayed on the upper layer of other interfaces and can be used to call the printing assistant to print the files in the interface currently displayed on the electronic device 101. Among them, the files include any one of documents, pictures, videos, tables, PPTs, etc.
[0165] For example, the printing capsule can refer to the printing capsule 371 in the above Figure 3B shown embodiment. For specific content, reference can be made to the foregoing Figure 3B shown embodiment and will not be elaborated here.
[0166] In a possible implementation manner, after the printing assistant 1012 is started, a printing floating ball can also be displayed, where the printing floating ball can refer to the above Figure 2FThe printing suspension ball 334 therein will not be elaborated herein.
[0167] S610. When the printing assistant 1012 detects that the user operates on the printing capsule while the electronic device 101 displays a file browsing interface including a target file.
[0168] The type of the target file can be a picture, a document, a link, a slide, etc.
[0169] For example, in the above Figure 3D In the illustrated embodiment, when the electronic device 101 displays the picture browsing interface 390 and the printing capsule 371, the printing assistant 1012 detects the user's operation on the printing capsule 371.
[0170] S611. The printing assistant 1012 displays a printing notification bar including printing controls.
[0171] For example, the printing notification bar can be as shown above Figure 3E and will not be elaborated herein.
[0172] S612. The printing assistant 1012 detects the user's operation on the printing controls.
[0173] S613. The printing assistant 1012 displays a printing interface.
[0174] The user can select and set printing parameters in the printing interface. The printing parameters can include the number of copies, single-sided or double-sided printing, paper size, color printing or black-and-white printing, etc. For example, the target printing parameters can be 5 copies, single-sided printing, paper size A4, color printing, etc.
[0175] Among them, the printing interface can refer to the above Figure 2H illustrated embodiment and will not be elaborated herein.
[0176] S614. The printing assistant 1012 receives the target printing parameters input by the user in the printing interface and detects the user's operation to start printing.
[0177] After the user selects and sets 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. The printing assistant 1012 sends the printing task to the printing service 1013. Among them, the printing task can carry the ID of the printer 200, the target printing parameters, and the target file.
[0179] S616. The printing service 1013 determines that the printer 200 and the electronic device 101 are not in the same local area network.
[0180] The printing service 1013 can determine whether the printer 200 and the electronic device 101 are in the same local area network according to the way of obtaining the online information of the printer 200. If the electronic device 101 obtains 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 obtains 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 obtains the online information reported by the electronic device 102 through the device cloud server 401. Therefore, the printing 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 means that the printing service 1013 needs to remotely call the printer 200 by means of other devices. Then, the printing service 1013 can determine among one or more devices bound to the specified cloud account logged in on the electronic device 101, the electronic device 102 that is in the same local area network as the printer 200. Therefore, the printing service 1013 can determine to remotely call the printer 200 by means of the electronic device 102.
[0183] S617. The printing service 1013 sends a print session establishment request to the ecological access framework 1014.
[0184] Among them, the device identifier of the electronic device 102 is carried in the print session establishment request. 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] Among them, the connection established between 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] Among them, the device identifier of the electronic device 102 is carried in the cloud connection request 1. 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 device identifier of the electronic device 101 is carried in the cloud connection request 2. 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. After receiving the cloud connection request, the ecological access framework 1024 wakes up the electronic device 102.
[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 again. 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 services or functional 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 may have already established a connection before receiving the above cloud connection request 2. In a possible implementation, the ecological access framework 1024 can establish a 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] This cloud connection response is used to indicate that the electronic device 102 has established a connection with the device cloud server 401.
[0197] S624. After receiving the cloud connection response, the ecological access framework 1014 sends a far-field connection request 1 to the far-field communication service 1015.
[0198] Among them, the far-field connection request 1 can be used to request the far-field communication service 1015 to establish a connection with the far-field cloud server 402.
[0199] S625. After receiving the far-field connection request 1, the far-field communication service 1015 establishes a connection with the far-field cloud server 402.
[0200] The above steps S624 to S625 can be executed after step S617, and the order with steps S618 to S623 is not limited.
[0201] After the ecological access framework 1024 sends a cloud connection response to the ecological access framework 1014 through the device cloud server 401, it sends a far-field connection request 2 to the far-field communication service 1025.
[0202] Among them, 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] After receiving the far-field connection request 2, the far-field communication service 1015 establishes a connection with the far-field cloud server 402.
[0204] 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] The far-field communication service 1015 and the far-field communication service 1025 complete the same-account trust authentication.
[0206] Among them, 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 successful same-account trust authentication 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 to the same cloud account, the far-field communication service 1025 can send a failed same-account trust authentication 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] The far-field communication service 1015 sends a far-field connection success response 1 to the ecological access framework 1014.
[0210] The far-field connection success response 1 is used to indicate that a far-field transmission channel has been established between the electronic device 101 and the electronic device 102.
[0211] The far-field communication service 1025 sends a far-field connection success response 2 to the ecological access framework 1024.
[0212] The far-field connection success response 2 is used to indicate that a far-field transmission channel has been established between the electronic device 101 and the electronic device 102.
[0213] The far - field communication service 1015 and the far - field communication service 1025 establish a printing session on the far - field transmission channel.
[0214] The far - field communication service 1015 sends the session information of the printing session to the printing service 1013.
[0215] The far - field communication service 1025 sends the session information of the printing session to the printing service 1023.
[0216] The printing service 1013 sends the ID of the printer 200, the target file, and the target printing parameters to the printing service 1023 through the printing session.
[0217] After obtaining the session information of the printing session, the printing service 1013 can use the session information of the printing session to send the device identifier of the printer 200, the target file, and the target printing parameters to the printing service 1023 on the printing session.
[0218] After obtaining the session information of the printing session, the printing service 1023 can use the session information of the printing session to receive the device identifier of the printer 200, the target file, and the target printing parameters on the printing session.
[0219] The printing service 1023 establishes a near - field transmission channel with the printer 200.
[0220] The printing service 1023 sends the target file and the target printing parameters to the printer 200 through the near - field transmission channel.
[0221] The printer 200 prints the target file with the target printing parameters.
[0222] Among them, the detailed processes of steps S635 to S638 can refer to the subsequent Figure 7 illustrated embodiments and will not be elaborated here.
[0223] In a possible implementation manner, when the electronic device 101 invokes the printer 200 to perform a printing task with the help of the electronic device 102, the electronic device 102 can display a printing call prompt. This printing call prompt can be used to prompt that the electronic device 101 is invoking the printer 200 to perform a printing task with the help of the electronic device 102. The specific content can refer to the foregoing Figure 4D illustrated embodiments and will not be elaborated here.
[0224] The printer 200 sends the printing status to the printing service 1023 through the near - field transmission channel.
[0225] The printing service 1023 sends the printing status to the printing service 1013 through the printing session.
[0226] S641. The printing service 1013 sends the printing status to the printing assistant 1012.
[0227] S642. The printing assistant 1012 displays the printing status.
[0228] For specific content, reference can be made to the foregoing Figures 2I to 2J illustrated embodiments, which will not be elaborated herein.
[0229] In some embodiments, the electronic device 101 can not only start the printing assistant to publish a printing task through the control center, but also start the printing assistant to publish a printing task at other entrances. For example, the intelligent space application, system settings printing, sharing printing, third-party applications, etc. on the electronic device 101 can also start the printing assistant to publish a printing task.
[0230] Through a printing method provided in an embodiment of the present application, when the electronic device 101 is far from the printer 200 and not in the same local area network as the printer 200, but the electronic device 102 is in the same local area network as the printer 200, the electronic device 101 can establish a far-field transmission channel with the electronic device 102 through the cloud server, and send the target file and target printing parameters to the electronic device 102 on the far-field transmission channel. After receiving the target file and target printing parameters of the electronic device 101, the electronic device 102 can load the target protocol packet of the printer 200. After the target protocol packet is loaded, the electronic device 102 can quickly establish a near-field transmission channel with the printer 200 through the local area network using the target protocol packet, and forward the target printing parameters and target file sent by the electronic device 101 to the printer 200 through the target protocol packet on the near-field transmission channel. In this way, even if the electronic device 101 is not near the printer 200, the printer 200 can complete the printing task on the electronic device 101.
[0231] The following introduces the Figure 6 detailed process of the electronic device 102 controlling the printer 200 to print after receiving the printing task sent by the electronic device 101 in the illustrated embodiments.
[0232] Figure 7 Shows a specific process schematic diagram of far-field printing provided in an embodiment of the present application.
[0233] As Figure 7 shown, this method can be applied to a system including an electronic device 101, an electronic device 102, a wireless access device 300, and a device cloud server 400 ( Figure 7A communication system between the printer 200 (not shown in the figure) and the electronic device 102. Among them, both the printer 200 and the electronic device 102 establish Wi-Fi connections with the wireless access device 300. Therefore, the printer 200 and the electronic device 102 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 a possible implementation, the electronic device 102 may include a print service 1023, a protocol packet shelf 1026, and one or more protocol packets. Among them, the one or more protocol packets include a target protocol packet.
[0234] Among them, the method may include the following steps:
[0235] S701. The electronic device 101 sends the device identifier of the printer 200, the target file, and the target print parameters to the print service 1023 through a print session.
[0236] Among them, for the specific process of the electronic device 101 sending the device identifier of the printer 200, the target file, and the target print parameters to the print service 1023 through a print session, reference may be made to the above Figure 6 illustrated embodiments and will not be elaborated here.
[0237] S702. The print service 1023 can determine that the printer 200 and the electronic device 102 are in the same local area network according to the device identifier of the printer 200.
[0238] Among them, since there may be printers around the electronic device 102 or around other devices within the trust ring. Therefore, after receiving the device identifier of the printer 200, the target file, and the target print parameters sent by the electronic device 101 through a print session, the print service 1023 can determine whether the printer 200 and the electronic device 102 are in the same local area network according to the device identifier of the printer 200. If the printer 200 and the electronic device 102 are in the same local area network, it means that the print service 1023 can call the printer 200 within the local area network. If the printer 200 and the electronic device 102 are not in the same local area network, the electronic device 102 can return a print failure to the electronic device 101 through the cloud server 400.
[0239] S703. The print service 1023 determines to use the target protocol packet to control the printer 200 for printing according to the device identifier of the printer 200.
[0240] S704. The print service 1023 sends the identifier of the target protocol packet to the protocol packet shelf 1026.
[0241] S705. The protocol packet shelf 1026 loads the target protocol packet.
[0242] Since the electronic device 102 may have used multiple printers before, therefore, multiple protocol packets corresponding to multiple printers can be stored on the electronic device 102, where the protocol packets adapted to different models of printers are different. The protocol packet can be used to send the print parameters and files sent 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 files sent by the print service 1023 to the printer 200, when the print service 1023 determines that the printer 200 needs to be invoked near-field, the print service 1023 can determine the target protocol packet required when controlling the printer 200 to print, and send the identifier of the target protocol packet to the protocol packet shelf 1026 to let the protocol packet shelf 1026 load the target protocol packet.
[0243] In a possible implementation manner, if the protocol packet shelf 1026 fails to find the target protocol packet locally according to the identifier of the target protocol packet, the target protocol packet cannot be directly loaded. Therefore, the protocol packet shelf 1026 can send a download request to the protocol platform server, and the device information of the printer 200 is carried in the download request, and the download request is used to request to download the protocol packet for controlling the printer to print. The platform server can determine the target protocol packet from the multiple protocol packets stored on the platform server according to the device information of the printer 200, and send the target protocol packet to the protocol packet shelf 1026. After receiving the target protocol packet, the protocol packet shelf 1026 loads the target protocol packet.
[0244] S706. Establish a near-field transmission channel between the target protocol packet and the printer 200.
[0245] After the target protocol packet is loaded, a near-field transmission channel can be established with the printer 200 through the connection mechanism set in the target protocol packet.
[0246] S707. After the target protocol packet establishes a near-field transmission channel with the printer 200, send a channel establishment success message to the protocol packet shelf 1026.
[0247] S708. The protocol packet shelf 1026 sends a channel establishment success message to the print service 1023.
[0248] S709. The print service 1023 sends the target print parameters and the target file to the protocol packet shelf 1026.
[0249] S710. The protocol packet shelf 1026 sends the target print parameters and the target file to the target protocol packet.
[0250] S711. The target protocol packet sends the target print parameters and the target file to the printer 200 in the target manner set in the target protocol packet through the near-field transmission channel.
[0251] The printer 200 prints the target file with the target printing parameters.
[0252] In the embodiments of the present application, the above-mentioned electronic device 101 may be referred to as the first electronic device, and the electronic device 102 may be referred to as the second electronic device. The printing service 1013 in the electronic device 101 may be referred to as the first printing service, and the printing service 1023 in the electronic device 102 may be referred to as the second printing service. The ecological access framework 1014 in the electronic device 101 may be referred to as the first ecological access framework, and the ecological access framework 1024 in the electronic device 102 may be referred to as the second ecological access framework. The far-field communication service 1015 in the electronic device 101 may be referred to as the first far-field communication service, and the far-field communication service 1025 in the electronic device 102 may be referred to as the second far-field communication service.
[0253] Through a printing method provided in the embodiments of the present application, the electronic device 102 can quickly load the target protocol packet of the printer 200. After the target protocol packet is loaded, the electronic device 102 can use the target protocol packet to quickly establish a near-field transmission channel with the printer 200 through the local area network, and send the target printing parameters and the target file to the printer 200 on the near-field transmission channel, thereby quickly assisting the electronic device 101 to call the printer 200 to complete the printing.
[0254] The following introduces the hardware structure of an electronic device provided in the embodiments of the present application.
[0255] Figure 8A FIG. shows a schematic diagram of the hardware structure of an electronic device 100 provided in the embodiments of the present application.
[0256] It should be understood that Figure 8A the illustrated electronic device 100 is only an example, and the electronic device 100 may have more or fewer components than Figure 8A shown in, may combine two or more components, or may have different component configurations. Figure 8A The various components shown in may 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 may 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 speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, a camera 193, and a display screen 194. Among them, the sensor module 180 may include a touch sensor 180K, etc.
[0258] It can be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than those shown in the figures, or combine certain components, or split certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0259] The processor 110 may include one or more processing units. For example, the processor 110 may 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 may be independent devices or integrated in one or more processors.
[0260] Among them, the controller may be the nerve center and command center of the electronic device 100. The controller may generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
[0261] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory may store the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0262] The wireless communication function of the electronic device 100 may be implemented by the antenna 1, 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 antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas may also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 may be multiplexed as the diversity antenna of the wireless local area network. In some other embodiments, the antenna may be used in combination with a tuning switch.
[0264] The mobile communication module 150 may provide solutions for wireless communications such as 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 may receive electromagnetic waves through the antenna 1, filter, amplify, and perform other processing on the received electromagnetic waves, and then transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least some functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be provided in the same device.
[0265] The modulation and demodulation processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Subsequently, the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, receiver 170B, etc.), or displays an image or video through the display screen 194. In some embodiments, the modulation and demodulation processor may be an independent device. In other embodiments, the modulation and demodulation processor may be independent of the processor 110 and provided in the same device as the mobile communication module 150 or other functional modules.
[0266] The wireless communication module 160 may provide solutions for wireless communications applied to the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), and so on. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive signals to be sent from the processor 110, perform frequency modulation and amplification on them, and convert them into electromagnetic waves through the antenna 2 for radiation.
[0267] The electronic device 100 implements the display function through the GPU, the display screen 194, and the application processor, etc. The GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor. The GPU is used to execute mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0268] The electronic device 100 may implement the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, and the application processor, etc. The ISP is used to process the data fed back by the camera 193. The camera 193 is used to capture static images or videos.
[0269] The electronic device 100 can implement audio functions through the audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor, etc. The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The speaker 170A, also known as the "loudspeaker", is used to convert an audio electrical signal into a sound signal. The receiver 170B, also known as the "earpiece", is used to convert an audio electrical signal into a sound signal. When the electronic device 100 answers a call or a voice message, the receiver 170B can be placed close to the human ear to receive the voice. The microphone 170C, also known as the "microphone" or "transmitter", is used to convert a sound signal into an electrical signal. The headphone jack 170D is used to connect a wired headphone. The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In some other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a different position from that of the display screen 194.
[0270] In the embodiments of the present application, the device type of the electronic device 100 can be 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 smart home devices such as a smart large screen and a smart speaker, wearable devices such as a smart bracelet, a smart watch, and smart glasses, extended reality (XR) devices such as augmented reality (AR), virtual reality (VR), and mixed reality (MR), a vehicle-mounted device, or a smart city device, etc.
[0271] It should be noted that, for the above Figure 1 structures of the electronic devices 101 and 102 in the illustrated embodiments, reference can be made to the above Figure 8A illustrated electronic device 100, which will not be elaborated herein.
[0272] Figure 8B shows a schematic hardware structure diagram of a printer in the embodiments of the present application.
[0273] Figure 8B shows a schematic hardware structure diagram of a printer 200 provided in the embodiments of the present application.
[0274] As Figure 8B shown, the printer 200 may 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 may include one or more processing units. For example, the processor 211 may 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 may be independent devices or integrated in one or more processors.
[0276] Among them, the controller may be the nerve center and command center of the printer 200. The controller may generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
[0277] A memory may also be provided in the processor 211 for storing instructions and data. In some embodiments, the memory in the processor 211 is a cache memory. This memory may store the instructions or data that the processor 211 has just used or recycled. If the processor 211 needs to use the instruction or data again, it can be directly called from the memory. This avoids repeated accesses, reduces the waiting time of the processor 211, and thus improves the efficiency of the system.
[0278] In some embodiments, the processor 211 may be used to parse the signals received by the wireless communication module 213 and demodulate the signals. The processor 211 may respond according to the parsing result and perform corresponding operations, such as performing sensing operations, etc. In some embodiments, the processor 211 may also be used to generate the signals sent out by the wireless communication module 213, such as Wi-Fi signals, Bluetooth signals, etc.
[0279] The memory 212 is coupled to the processor 211 and is used to store various software programs and / or multiple sets of instructions. In a specific implementation, the memory 212 may include a high-speed random access memory, and may 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 may store an operating system, such as an embedded operating system like uCOS, VxWorks, RTLinux, etc. The memory 212 may also store a communication program, which can be used to communicate with the wireless access device 300 or other devices.
[0280] The wireless communication module 213 may include a Wi-Fi module. The Wi-Fi module can provide a solution for Wi-Fi wireless communication applied to the printer 200. Among them, the Wi-Fi protocol used in the Wi-Fi module may be IEEE802.11a, 802.11b, 802.11n, 802.11ac, 802.11ax, and so on.
[0281] Possibly, the wireless communication module 213 may also include other communication modules to provide solutions for other wireless communications (such as 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 (such as a Bluetooth communication module). The Wi-Fi module can monitor signals transmitted by other devices, such as measurement signals, scan signals, etc., and can send response signals, such as measurement responses, scan responses, etc., so that other devices can discover the wireless access device 300 and establish a wireless communication connection with other devices through one or more of WLAN, Bluetooth, or other short-range wireless communication technologies for data transmission.
[0283] In some other embodiments, one or more of the Wi-Fi modules may also transmit signals, such as broadcast probe signals, beacon signals, so that other devices can discover the wireless access device 300 and establish a wireless communication connection with other devices through WLAN or other short-range wireless communication technologies for 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 out 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 the printer 200 may further include an audio module ( Figure 8B not shown in the figure) and a speaker ( Figure 8B not shown in the figure). The audio module is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module can also be used to encode and decode audio signals. The speaker, also known as a "loudspeaker", is used to convert an audio electrical signal into a sound signal.
[0287] In some embodiments, the hardware structure of the printer 200 may further include a microphone ( Figure 8B not shown in the figure). The microphone, also known as a "microphone" or "transmitter", is used to convert a sound signal into an electrical signal. When making a call or sending a voice message, the user can speak close to the microphone with their mouth to input the sound signal into the microphone. The printer 200 can be provided 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 figure). 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 1 or N display screens, where N is a positive integer greater than 1.
[0289] It should be noted that Figure 8B the shown printer 200 is only one implementation of the embodiments of the present application. In actual applications, the printer 200 may further include more or fewer components, which are not limited here.
[0290] Next, the hardware structure of the cloud server 400 provided by the embodiments of the present application will be introduced.
[0291] Figure 8C Shows a schematic diagram of the hardware structure of a cloud server 400 provided by the embodiments of the present application.
[0292] As Figure 8C shown, the cloud server 400 includes one or more processors 411, a communication interface 412, and a memory 413. The processors 411, the communication interface 412, and the memory 413 can be connected through a bus or other means. In the embodiments of the present application, the connection through the bus 414 is taken as an example. Among them:
[0293] The processor 411 can be composed of one or more general-purpose processors, such as a CPU. The processor 411 can be used to run the program code related to the device control method.
[0294] The communication interface 412 can be a wired interface (such as an Ethernet interface) or a wireless interface (such as a cellular network interface or a wireless local area network interface) for communicating with other nodes. In the embodiments of the present application, the communication interface 412 can be specifically used to communicate with devices such as the wireless access device 300, the electronic device 101, and the electronic device 102.
[0295] The memory 413 can include volatile memory, such as RAM; the memory can also include non-volatile memory, such as ROM, flash memory, HDD, or solid state disk (SSD); the memory 413 can also include a combination of the above types of memory. The memory 413 can be used to store a set of program codes, so that the processor 411 can call the program codes stored in the memory 413 to implement the implementation method of the present application embodiment on the server. In the embodiments of the present application, the memory 413 can also be a storage array, etc.
[0296] In some embodiments, the cloud server 400 can include multiple servers, for example, a device cloud server, a far-field cloud server, etc. The hardware structures of these multiple servers can all refer to the hardware structure of the cloud server 400 shown above Figure 8C shown in the cloud server 400.
[0297] It should be noted that Figure 8C the cloud server 400 shown above is only one implementation manner of the embodiments of the present application. In practical applications, the cloud server 400 can also include more or fewer components, which are not limited here.
[0298] The embodiments of the present application also provide a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above method embodiments can be implemented.
[0299] The embodiments of the present application also provide a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the above method embodiments.
[0300] The embodiments of the present application also provide a chip system. The chip system includes a processor, the processor is coupled to a memory, and the processor executes the computer program stored in the memory to implement the steps of any method embodiment of the present 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 this application is a media interface for interaction and information exchange between an application or an operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface of an application is source code written in specific computer languages such as Java and Extensible Markup Language (XML). The interface source code is parsed and rendered on a terminal device and finally presented as content recognizable by the user, such as controls like pictures, texts, and buttons. A control, also known as a widget, is a basic element of the user interface. Typical controls include a toolbar, a menubar, a text box, a button, a scrollbar, pictures, and texts. The attributes and content of the controls in the interface are defined through tags or nodes. For example, XML uses <textview> 、 <imgview> 、 <videoview>Nodes etc. are used to specify the controls included in the interface. One node corresponds to one control or property in the interface, and after being parsed and rendered, the node presents the content visible to the user. In addition, in the interfaces of many applications, such as hybrid applications, there are usually web pages included. A web page, also known as a page, can be understood as a special control embedded in the application interface. A web page is the 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 as content recognizable by the user by a browser or a web page display component similar to the browser function. The specific content included in the web page is also defined by tags or nodes in the web page source code. For example, HTML passes through 、 、 <video> 、 <canvas>to define the elements and attributes of a web page.
[0302] A commonly used form of the user interface is the graphical user interface (GUI), which refers to the user interface related to computer operations displayed in a graphical manner. It can be an interface element such as an icon, window, control, etc. displayed on the display screen of an electronic device, where the control can include visible interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, Widgets, etc.
[0303] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part 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, the processes or functions described in the embodiments of the present application are generated in whole or in part. 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. For example, the computer instructions can be transmitted from a website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line) or wirelessly (such as infrared, wireless, microwave, etc.). 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 or data center that integrates one or more available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state drive), etc.
[0304] Those of ordinary skill in the art can understand all or part of the processes in the methods of the above embodiments. These processes can be completed by relevant hardware instructed by a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above method embodiments. The foregoing storage medium includes: ROM or random access memory RAM, magnetic disks, or optical discs and other media that can store program codes.
[0305] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than limiting them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the various embodiments of the present application.< / canvas> < / video> < / videoview> < / imgview> < / textview>
Claims
1. A printing method, characterized in that, 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, and the identifier of the printer 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 determining 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.
2. The method according to claim 1, wherein The method further includes: The first electronic device receives target printing parameters set by a user; The first electronic device sends the target printing parameters to the second electronic device through the cloud server; After receiving the target printing parameters, the second electronic device sends the target printing parameters to the printer through the wireless access device; After receiving the target file, the printer prints the target file, including: After receiving the target file and the target printing parameters, the printer prints the target file with the target printing parameters.
3. The method according to claim 1, characterized in that, Before the first electronic device sends a target file to the second electronic device through a cloud server, the method further includes: The first electronic device establishes a far-field transmission channel with the second electronic device through the cloud server; The first electronic device sends a target file to the second electronic device through the cloud server, including: The first electronic device sends the target file to the second electronic device through the far-field transmission channel.
4. The method according to any one of claims 1 to 3, characterized in that After receiving the target file, the second electronic device sends the target file to the printer through the wireless access device, 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; 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-4, characterized in that, The method further includes: The second electronic device searches for the printer through the wireless access device and sends the identifier of the printer to the first electronic device through the cloud server.
6. The method according to any one of claims 1-5, characterized in that The method further includes: During the process of printing the target file, the printer sends a printing status to the second electronic device through the wireless access device; The second electronic device sends the printing status to the first electronic device through the cloud server; After receiving the printing status, the first electronic device displays the printing status.
7. The method according to claim 3, characterized in that, Before the first electronic device establishes a 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; After receiving the cloud connection request, the second electronic device establishes a connection with the cloud server; After establishing a connection with the cloud server, the second electronic device sends a cloud connection response to the first electronic device through the cloud server; The first electronic device establishes a far-field transmission channel with the second electronic device through the cloud server, including: After receiving the cloud connection response, the first electronic device establishes a far-field transmission channel with the second electronic device through the cloud server.
8. The method according to any one of claims 1-7, characterized in that, 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 the identifier of the printer to the second electronic device through the cloud server; After receiving the identifier of the printer, the second electronic device determines to send the target file to the printer.
9. The method according to claim 8, wherein The method further includes: The second electronic device determines whether a target protocol packet for controlling printing to the printer is included in one or more protocol packets on the local device of the second electronic device according to the identifier of the printer; The second electronic device sends the target file to the printer through the wireless access device, including: If a target protocol packet for controlling printing of the printer is included in one or more protocol packets on the local device of the second electronic device, the second electronic device loads the target protocol packet and uses the target protocol packet to send the target file to the printer through the wireless access device.
10. The method according to claim 9, wherein The method further includes: If a protocol packet for controlling printing of the printer is not included in one or more protocol packets on the local device of the second electronic device, the second electronic device sends a download request to the protocol platform server, and the download request carries the device information of the printer, and the download request is used to request to download a protocol packet for controlling printing of the printer; After receiving the target protocol packet sent by the platform server, the second electronic device loads the target protocol packet and uses the target protocol packet to send the target file to the printer through the wireless access device.
11. The method according to claim 7, wherein Before the first electronic device establishes a 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 both 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, including: If the same cloud account is logged in on both 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.
12. The method according to any one of claims 1-11, characterized in that, The method further includes: During the process of the printer printing the target file, the second electronic device displays a printing prompt for calling, which is used to prompt the user that the first electronic device is using the second electronic device to call the printer for printing.
13. The method according to claim 7 or 11, characterized in that, The first electronic device includes: a printing 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 printing assistant sends a printing session establishment request to the first ecological access framework; After receiving the printing session establishment request, the first ecological access framework sends a cloud connection request to the second ecological access framework through the device cloud server; After receiving the cloud connection request, the second electronic device establishes a connection with the cloud server, including: After receiving the cloud connection request, the second ecological access framework establishes a connection with the device cloud server; After establishing a connection with the cloud server, the second electronic device sends a cloud connection response to the first electronic device through the cloud server, including: After establishing a connection with the device cloud server, the second ecological access framework sends the cloud connection response to the first ecological access framework through the device cloud server; After receiving the cloud connection response, the first electronic device establishes a far-field transmission channel with the second electronic device through the cloud server, including: After receiving the cloud connection response, the first ecological access framework sends a first far-field connection request to the first far-field communication service; After sending the cloud connection response to the first ecological access framework through the device cloud server, the second ecological access framework sends a second far-field connection request to the second far-field communication service; After receiving the first far-field connection request, the first far-field communication service establishes a connection with the far-field cloud server; After receiving the second far-field connection request, the second far-field communication service establishes a connection with the far-field cloud server; 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.
14. The method according to claim 13, wherein The first electronic device further includes a first printing service; the second electronic device further includes a second printing service; The first electronic device sends the target file to the second electronic device through the far-field transmission channel, including: The first ecological access framework and the second ecological access framework establish a printing session on the far-field transmission channel; The first printing service sends the target file to the second printing service on the printing session; After receiving the target file, the second electronic device sends the target file to the printer through the wireless access device, including: After receiving the target file on the printing session, the second printing service sends the target file to the printer through the wireless access device.
15. A printing method, characterized in that, Applied to a first electronic device, the method includes: The first electronic device displays a first interface, and the first interface includes an identifier of a printer. The identifier of the printer is sent by a second electronic device to the first electronic device through a cloud server. Among them, the second electronic device establishes a communication connection with a 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 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 determining 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. 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.
16. The method according to claim 15, wherein The method further includes: The first electronic device receives target printing parameters set by a user; The first electronic device sends the target printing parameters to the second electronic device through the cloud server. The target printing parameters are used to control the second electronic device to control the printer to print the target file with the target printing parameters through the wireless access device.
17. The method according to claim 15, wherein Before the first electronic device sends a target file to the second electronic device through the cloud server, the method further includes: The first electronic device establishes a far-field transmission channel with the second electronic device through the cloud server; The first electronic device sending a target file to the second electronic device through the cloud server includes: The first electronic device sends the target file to the second electronic device through the far-field transmission channel.
18. The method according to any one of claims 15 - 17, characterized in that, The method further includes: After the first electronic device sends the target file to the second electronic device through the cloud server, it receives a printing status sent by the second electronic device through the cloud server; In response to the received printing status, the first electronic device displays the printing status.
19. The method according to claim 17, characterized in that, Before the first electronic device establishes a 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. 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; The first electronic device establishing a far-field transmission channel with the second electronic device through the cloud server includes: After receiving the cloud connection response, the first electronic device establishes the far-field transmission channel with the second electronic device through the cloud server.
20. The method according to claim 19, wherein 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 used to send a print session establishment request to the first ecological access framework; After receiving the print session establishment request, the first ecological access framework sends the cloud connection request to the second ecological access framework through the device cloud server; After receiving the cloud connection response, the first electronic device establishes the far-field transmission channel with the second electronic device through the cloud server, including: After receiving the cloud connection response sent by the second ecological access framework through the device cloud server, the first ecological access framework sends a first far-field connection request to the first far-field communication service; After receiving the first far-field connection request, the first far-field communication service establishes a connection with the far-field cloud server; The first far-field communication service establishes a far-field transmission channel with the second far-field communication service through the far-field cloud server.
21. The method according to claim 20, wherein The first electronic device further includes a first print service; The first electronic device sends the target file to the second electronic device through the far-field transmission channel, including: 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 second electronic device during the print session.
22. A printing method, characterized in that, Applied to the second electronic device, the method includes: After the second electronic device searches for a printer through a wireless access device, it sends the identifier of the printer to the first electronic device through the 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 the target file sent by the first 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, and the target file is used to trigger the printer to print the target file.
23. The method according to claim 22, characterized in that, The target file is sent by the first electronic device to the second electronic device through the cloud server after determining that the first electronic device and the first printer are not connected to the same local area network in response to a print operation acting on the identifier of the printer.
24. The method according to claim 22 or 23, characterized in that, The method further includes: The second electronic device receives the target print parameters sent by the first electronic device through the cloud server; 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 with the target printing parameters.
25. The method according to any one of claims 22-24, characterized in that, 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 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, including: The second electronic device sends the target file to the second electronic device through the far-field transmission channel.
26. The method according to any one of claims 22-25, characterized in that, 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; The second electronic device sends the target file to the printer through the near-field transmission channel.
27. The method according to any one of claims 22-26, characterized in that, 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 the printing status sent by the printer through the wireless access device; The second electronic device sends the printing status to the first electronic device through the cloud server, and the printing status is used to be displayed on the first electronic device.
28. The method according to claim 25, wherein Before the second electronic device establishes a far-field 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 a 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 a far-field transmission channel with the second electronic device; The second electronic device establishes a far-field transmission channel with the first electronic device through the cloud server, including: After the second electronic device sends a cloud connection response to the first electronic device through the cloud server, the second electronic device establishes a far-field transmission channel with the first electronic device through the cloud server.
29. The method according to any one of claims 22-28, characterized in that, The method further includes: The second electronic device receives the identifier of the printer sent by the first electronic device through the cloud server; After receiving the identifier of the printer, the second electronic device determines to send the target file to the printer.
30. The method according to claim 29, wherein The method further includes: The second electronic device determines whether a target protocol packet for controlling printing to the printer is included in one or more protocol packets local to the second electronic device according to the identifier of the printer; The second electronic device sends the target file to the printer through the wireless access device, including: If one or more protocol packets in the second electronic device locally include a target protocol packet for controlling the printer to print, the second electronic device loads the target protocol packet and uses the target protocol packet to send the target file to the printer through the wireless access device.
31. The method according to any one of claims 22-30, characterized in that, The method further includes: If one or more protocol packets in the second electronic device locally do not include a protocol packet for controlling the printer to print, the second electronic device sends a download request to the protocol platform server, where the download request carries device information of the printer, and the download request is used to request to download a protocol packet for controlling the printer to print; After receiving the target protocol packet sent by the platform server, the second electronic device loads the target protocol packet and uses the target protocol packet to send the target file to the printer through the wireless access device.
32. The method according to any one of claims 22-31, characterized in that, The method further includes: During the process of the printer printing the target file, the second electronic device displays a call printing prompt, and the call printing prompt is used to prompt the user that the first electronic device is using the second electronic device to call the printer for printing.
33. An electronic device, being a first electronic device, characterized in that, Comprising one or more processors and one or more memories; wherein, the one or more memories are coupled to the one or more processors, the one or more memories are used to store computer program code, the computer program code includes computer instructions, and when the one or more processors execute the computer instructions, the first electronic device is caused to execute the method according to any one of claims 15-21.
34. An electronic device, being a second electronic device, characterized in that, Comprising one or more processors and one or more memories; wherein, the one or more memories are coupled to the one or more processors, the one or more memories are used to store computer program code, the computer program code includes computer instructions, and when the one or more processors execute the computer instructions, the second electronic device is caused to execute the method according to any one of claims 22-32.
35. A computer-readable storage medium, comprising instructions, characterized in that, When the instruction runs on the processor of the first electronic device, the first electronic device is caused to execute the method according to any one of claims 15-21.
36. A computer-readable storage medium, comprising instructions, characterized in that, When the instruction runs on the processor of the second electronic device, the second electronic device is caused to execute the method according to any one of claims 22-32.
Citation Information
Patent Citations
Cross-public network equipment remote control method, system and related device
CN108632395A
Printer, program, and communication system
CN110603789A
Data cloud printing method, data cloud printing device, storage medium and data cloud printing system
CN111897501A
File printing method, device, equipment and system
CN112445433A
Printer connection and file printing method and system and storage medium
CN113986154A