CN-122002265-A - Communication method and related equipment
Abstract
A communication method and related equipment are used for realizing the internet surfing function of lightweight equipment and improving user experience. For example, the communication system includes a first chip, a second chip, and a network module distributed on the first chip and the second chip, the network module for networking, the first chip generating a first request for requesting network content, the first chip sending the first request to a server through the network module distributed on the first chip and the second chip, the first chip receiving a first response from the server through the network module distributed on the first chip and the second chip, the first response including the network content.
Inventors
- WANG XINGANG
- XU BEI
- ZHENG GUOLIN
Assignees
- 华为技术有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241105
Claims (20)
- 1. A communication method, characterized by being applied to a communication system, the communication system including a first chip, a second chip, and a network module, the network module being distributed on the first chip and the second chip, the network module being for networking, the method comprising: The first chip generates a first request, wherein the first request is used for requesting network content; the first chip sends the first request to a server through the network modules distributed on the first chip and the second chip; The first chip receives a first response from the server through the network modules distributed on the first chip and the second chip, the first response including the network content.
- 2.A method of communication, applied to a first chip, the method comprising: The first chip generates a first request, wherein the first request is used for requesting network content; the first chip sends the first request to a server through a network module, and the network module is distributed on the first chip and the second chip; The first chip receives a first response from the server through the network module, the first response including the network content.
- 3. A method of communication, applied to a second chip, the method comprising: the second chip acquires a third request, wherein the third request is used for requesting network content, and the third request is processed by a network module which is distributed and deployed on the first chip and the second chip; the second chip sends the third request to a server; The second chip receives a third response from the server, the third response including the web content; the second chip determines a second response according to the third response; the second chip sends the second response to the first chip.
- 4. A method according to any of claims 1-3, wherein the network module is distributed across the first chip and the second chip, comprising: the network module comprises a processing module, the processing module is used for processing data according to a protocol stack, the protocol stack is a communication protocol stack supported by the server, and the processing module is distributed on the first chip and the second chip.
- 5. The method of claim 4, wherein the processing module is distributed on the first chip and the second chip, comprising: The protocol stacks in the processing module are distributed and deployed on the first chip and the second chip.
- 6. The method of claim 5, wherein the protocol stack is distributed across the first chip and the second chip, comprising: The M layer protocol in the protocol stack is deployed on the first chip, the N-M layer protocol in the protocol stack is deployed on the second chip, the N-M layer protocol is other layer protocols except the M layer in the protocol stack, and N is the total layer number of the protocol stack.
- 7. The method of claim 6, wherein the M-layer protocol is located at an upper layer of the N-M layer protocol.
- 8. The method of claim 6 or 7, wherein the M-layer protocol comprises an application layer and the N-M layer protocol comprises a transport layer, a network layer, a data link layer, and a physical layer.
- 9. The method of any of claims 6-8, wherein the first chip sends the first request to a server through a network module, comprising: The first chip encapsulates the first request according to the M-layer protocol to obtain a second request; The first chip sends the second request to the second chip, the second chip is configured to encapsulate the second request according to the N-M layer protocol, obtain a third request, and send the third request to the server, where the third request is used to request the network content.
- 10. The method of any of claims 6-9, wherein the first chip receives, via a network module, a first response from the server, comprising: The first chip receives a second response sent by the second chip, wherein the second response is obtained by deblocking a third response according to the N-M layer protocol after the second chip receives the third response from the server, and the third response comprises the network content; and the first chip unpacks the second response according to the M-layer protocol to obtain the first response.
- 11. The method of any of claims 6-8, wherein the second chip obtaining the third request comprises: the second chip receives a second request sent by the first chip, the second request is obtained by packaging the first request according to the M layer protocol after generating a first request for the first chip, and the first request is used for requesting the network content; And the second chip encapsulates the second request according to the N-M layer protocol to obtain the third request.
- 12. The method of any of claims 6-8, 11, wherein the second chip determining a second response from the third response comprises: The second chip is used for deblocking the third response according to the N-M layer protocol to obtain a second response, and the first chip is used for deblocking the second response according to the M layer protocol to obtain a first response, wherein the first response comprises the network content.
- 13. The method of any of claims 4-12, wherein the network module further comprises a transceiver module for receiving data from or transmitting data to the server, the transceiver module being disposed on the second chip.
- 14. The method of any of claims 1-13, wherein the second chip is located on the same device as the first chip or on a different device.
- 15. The method of claim 14, wherein the first chip and the second chip are located on different devices, the first chip further comprising, prior to sending the first request to a server via a network module: Determining that the first chip meets a first condition and/or the second chip meets a second condition; wherein the first condition includes one or more of: the current residual electric quantity of the equipment where the first chip is located is smaller than the first electric quantity; The current operation load of the equipment where the first chip is located is larger than the first load; The current operation mode of the equipment where the first chip is located is a power saving mode; wherein the second condition comprises one or more of: The current residual electric quantity of the equipment where the second chip is located is larger than or equal to a second electric quantity, and the second electric quantity is larger than or equal to the first electric quantity; the current running load of the equipment where the second chip is located is smaller than or equal to a second load, and the second load is smaller than or equal to the first load; the current operation mode of the equipment where the second chip is located is a non-power-saving mode; The current network signal strength of the equipment where the second chip is located is higher than the first strength.
- 16. The method of claim 14, wherein the first chip and the second chip are located on the same device, the first chip further comprising, prior to sending the first request to a server via a network module: Determining that the first chip meets a first condition and/or the second chip meets a second condition; The first condition includes that a current operation load of the first chip is larger than a third load, and a current operation mode of the first chip is at least one of power saving modes; The second condition includes that the current operation load of the second chip is smaller than or equal to a fourth load, the current operation mode of the second chip is at least one of non-power-saving modes, and the fourth load is smaller than or equal to the third load.
- 17. The method of any of claims 1-16, wherein the first chip comprises an MCU and the second chip comprises an AP.
- 18. An electronic device is characterized by comprising a first chip and a second chip; The first chip being for performing the method of the first chip as claimed in any one of claims 1, 4-17; the second chip being for performing the method of the second chip as claimed in any one of claims 1, 4-17.
- 19. An electronic device, comprising: A processor, a memory, and one or more programs; Wherein the one or more programs are stored in the memory, the one or more programs comprising instructions, which when executed by the processor, cause the electronic device to perform the method steps of any of claims 2-17.
- 20. A chip for performing the method of any one of claims 2-17.
Description
Communication method and related equipment Technical Field The present application relates to the field of terminal technologies, and in particular, to a communication method and related devices. Background The internet function is a function possessed by most electronic devices. For example, mobile phones, tablets, etc. all have internet surfing functions. Generally, the internet function of the electronic device needs to have a corresponding hardware support, for example, an integrated wireless fidelity (WIRELESS FIDELITY, wi-Fi) chip or a modem (modem) chip is needed in the electronic device. However, for lightweight devices, it is difficult to integrate these hardware subject to volume/weight constraints. Therefore, how to implement the internet function on a lightweight device is a matter of consideration. Disclosure of Invention The embodiment of the application provides a communication method and related equipment, which can realize the internet surfing function on light-weight equipment and improve the use experience of a user on the light-weight equipment. In a first aspect, a communication method is provided, applied to a communication system, the communication system includes a first chip, a second chip, and a network module, the network module is distributed on the first chip and the second chip, and the network module is used for networking. The method comprises the steps that a first chip generates a first request, the first request is used for requesting network content, and the first chip sends the first request to a server through network modules distributed on the first chip and the second chip. The first chip receives a first response from the server through network modules distributed on the first chip and the second chip, the first response including network content. In the embodiment of the application, the first chip can realize the internet function through the network modules distributed on the first chip and the second chip. In this way, the first chip does not need to deploy a complete network module, and the second chip does not need to deploy a complete network module, so that the chip area can be saved, and the light weight of equipment (the equipment where the chip is located) is realized. In embodiments of the present application, a distributed deployment may be understood as where different portions are deployed in different locations. For example, the network modules are distributed on the first chip and the second chip, i.e. different parts of the network modules are disposed across the chips on the first chip and the second chip, e.g. one part of the network modules is disposed on the first chip and the other part is disposed on the second chip. In one possible design, the network module is distributed on the first chip and the second chip, and the network module comprises a processing module, wherein the processing module is used for processing data according to a protocol stack, the protocol stack is a communication protocol stack supported by the server, and the processing module is distributed on the first chip and the second chip. In the embodiment of the application, the processing module in the network module for processing the data according to the protocol stack can be distributed and deployed on the first chip and the second chip. Therefore, the first chip is not required to be in charge of all data processing transactions, and the second chip is also not required to be in charge of all data processing transactions, so that the workload of the chip is saved, and the light weight of the equipment is facilitated. In one possible design, the processing module includes a first module and a second module, where the processing module is distributed and disposed on the first chip and the second chip, and includes that the first module is disposed on the first chip, the second module is disposed on the second chip, the first module is configured to process data according to an M-layer protocol in the protocol stack, the second module is configured to process data according to an N-M layer protocol in the protocol stack, where the N-M layer protocol is other layer protocols than the M layer in the protocol stack, and N is a total layer number of the protocol stack. In the embodiment of the application, the processing module in the network module for processing the data according to the protocol stack can be distributed and deployed on the first chip and the second chip. For example, a first module (a module for processing data according to an M-layer protocol) is disposed on a first chip, and a second module (a module for processing data according to an N-M layer protocol) is disposed on a second chip, so that on one hand, the chip area of the first chip and the second chip is saved, on the other hand, the calculation amount of the first chip and the second chip is saved, and the light weight of the device is facilitated. In one possible design, the processing module is