Wireless communication methods, apparatus, electronic devices and computer-readable storage media

CN122577916APending Publication Date: 2026-08-14GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-14
Publication Date
2026-08-14

AI Technical Summary

Technical Problem

[0003]然而,传统技术中的双系统电子设备存在无线保真(Wireless Fidelity,WiFi)通信实时性较差的问题

Benefits of technology

[0016]上述无线通信方法、装置、电子设备和计算机可读存储介质,无线通信方法应用于电子设备,电子设备包括第一处理器和第二处理器,第一处理器用于运行第一系统,第二处理器用于运行第二系统,且第一系统和第二系统通过总线通信,第二处理器连接无线保真WiFi模块,这样第一系统能够通过与第二系统间的总线通信将WiFi信息发送给第二系统,第二系统能够通过与第一系统间的总线通信接收第一系统发送的WiFi信息,相比于现有技术中第一系统需要通过驱动层向第二系统发送WiFi信息,减少了第一系统向第二系统发送WiFi信息的传输路径,提高了WiFi信息的发送实时性,从而可以使第二系统能够及时地基于接收到的WiFi信息控制WiFi模块响应无线通信事件,进而提高了第二系统响应无线通信事件的实时性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122577916A_ABST
    Figure CN122577916A_ABST
Patent Text Reader

Abstract

This application relates to a wireless communication method, apparatus, electronic device, and computer-readable storage medium. The method is applied to an electronic device including a first processor and a second processor. The first processor runs a first system, and the second processor runs a second system. The first and second systems communicate via a bus, and the second processor is connected to a Wi-Fi chip. The method includes: the first system sending Wi-Fi information to the second system via bus communication; the second system receiving the Wi-Fi information sent by the first system via bus communication; and the second system controlling a Wi-Fi module to respond to wireless communication events based on the Wi-Fi information. This method can improve the real-time performance of Wi-Fi communication in a dual-system electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless communication technology, and in particular to a wireless communication method, apparatus, electronic device, and computer-readable storage medium. Background Technology

[0002] With the development of mobile communication technology, many electronic devices are now adopting a dual-system approach with big and small cores. Big core systems typically have richer functions and better performance, while small core systems typically support simpler functions and have the advantage of low power consumption.

[0003] However, traditional dual-system electronic devices suffer from poor real-time performance in wireless Fidelity (WiFi) communication. Summary of the Invention

[0004] This application provides a wireless communication method, apparatus, electronic device, and computer-readable storage medium, which can improve the real-time performance of wireless fidelity communication in dual-system electronic devices.

[0005] In a first aspect, embodiments of this application provide a wireless communication method applied to an electronic device, the electronic device including a first processor and a second processor, the first processor running a first system, the second processor running a second system, the first system and the second system communicating via a bus, and the second processor connected to a Wi-Fi module; the method includes:

[0006] The first system sends WiFi information to the second system via bus communication with the second system;

[0007] The second system receives the WiFi information sent by the first system through bus communication with the first system;

[0008] The second system controls the WiFi module to respond to wireless communication events based on the WiFi information.

[0009] Secondly, embodiments of this application provide a wireless communication device applied to an electronic device, the electronic device including a first processor and a second processor, the first processor being used to run a first system, the second processor being used to run a second system, the first system and the second system communicating via a bus, and the second processor being connected to a Wi-Fi module; the device includes:

[0010] A transmitting module is used for the first system to send WiFi information to the second system via bus communication with the second system;

[0011] A receiving module is used for the second system to receive WiFi information sent by the first system through bus communication with the first system;

[0012] A control module is used by the second system to control the WiFi module to respond to wireless communication events based on the WiFi information.

[0013] Thirdly, embodiments of this application provide an electronic device, including a first processor and a second processor. The first processor is used to run a first system, and the second processor is used to run a second system. The first system and the second system communicate via a bus. The second processor is connected to a Wi-Fi module. The first system is used to execute the steps performed by the first system as described in the first aspect; the second system is used to execute the steps performed by the second system as described in the first aspect.

[0014] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect.

[0015] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the steps of the method described in the first aspect.

[0016] The aforementioned wireless communication method, apparatus, electronic device, and computer-readable storage medium are described above. The wireless communication method is applied to an electronic device, which includes a first processor and a second processor. The first processor is used to run a first system, and the second processor is used to run a second system. The first system and the second system communicate via a bus. The second processor is connected to a Wi-Fi module. In this way, the first system can send Wi-Fi information to the second system through bus communication with the second system, and the second system can receive Wi-Fi information sent by the first system through bus communication with the first system. Compared with the prior art, where the first system needs to send Wi-Fi information to the second system through a driver layer, this reduces the transmission path for the first system to send Wi-Fi information to the second system, improves the real-time performance of Wi-Fi information transmission, and enables the second system to control the Wi-Fi module to respond to wireless communication events in a timely manner based on the received Wi-Fi information, thereby improving the real-time performance of the second system in responding to wireless communication events. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a diagram illustrating the application environment of a wireless communication method in one embodiment;

[0019] Figure 2 Here is a flowchart of a wireless communication method in one embodiment;

[0020] Figure 3 This is a schematic diagram of the internal transmission link of the second system in one embodiment;

[0021] Figure 4 This is a schematic diagram of the internal transmission link of the second system in another embodiment;

[0022] Figure 5 A flowchart of a wireless communication method in another embodiment;

[0023] Figure 6 This is a schematic diagram of the internal interaction framework of a wireless communication method in one embodiment;

[0024] Figure 7 This is a structural block diagram of a wireless communication device in one embodiment;

[0025] Figure 8 This is a schematic diagram of the internal structure of an electronic device in one embodiment. Detailed Implementation

[0026] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0027] The wireless communication method provided in this application embodiment can be applied to, for example... Figure 1The illustrated electronic device 01 may include a first processor 101 and a second processor 102. The first processor 101 can run a first system, and the second processor 102 can run a second system. For example, the first processor 101 may be a high-performance processor running the Android system; the second processor 102 may be a low-power processor running FreeRTOS, an MCU, or similar systems. The first and second systems communicate via a bus. The second processor is connected to a Wireless Fidelity (WiFi) module, which connects to the second system via a data interface. The electronic device 01 can receive user-triggered operations and process them through either the first processor 101 or the second processor 102. It is understood that the second processor and the WiFi module can be integrated into a single chip or integrated into two separate chips; therefore, their communication can be intra-chip communication or inter-chip communication.

[0028] In one embodiment, such as Figure 2 As shown, a wireless communication method is provided, which is applied to... Figure 1 Taking an electronic device as an example, the electronic device includes a first processor and a second processor. The first processor runs a first system, and the second processor runs a second system. The first system and the second system communicate via a bus. The second processor is connected to a Wireless Fidelity (WiFi) module. The method includes the following steps:

[0029] S201, the first system sends WiFi information to the second system through bus communication with the second system.

[0030] S202, the second system receives WiFi information sent by the first system through bus communication with the first system.

[0031] For example, the power consumption of the first processor is greater than that of the second processor. The first processor could be a high-performance processor running the Android system, offering stronger performance, while the second processor could be a low-performance processor running an RTOS. Its performance is weaker than the first processor's core, but its power consumption is lower. The second processor can connect to a WiFi module and process WiFi-related services. In other words, the electronic device in this embodiment is a dual-core electronic device. The first processor can be a large core, such as a high-performance processing core, and the second processor can be a small core, such as a low-performance processing core. The first and second processors can be packaged in a single chip or in separate chips. For example, the small core is connected to a WiFi module, which can be a circuit or packaged as a WiFi chip, allowing the small core to process WiFi services. Optionally, the second processor and the WiFi module can be integrated into a single chip or integrated into two separate chips. Therefore, their communication can be intra-chip communication or inter-chip communication.

[0032] In this embodiment, the driver in the first system is removed. A bus interface and bus channel are built in the wpa_supplicant / hal layer of the first system, enabling the first system and the second system to communicate via the bus and achieve information exchange between them. For example, the first system and the second system can communicate via a data bus, or via a control bus, or via other types of buses.

[0033] In this embodiment, the WiFi scanning and connection mechanisms are controlled by the first system, while the second system does not perform any control processing, reducing code complexity and improving operational efficiency. In this embodiment, when the first system uses the WiFi module connected to the second processor to scan for and connect to WiFi (i.e., establishes a WiFi connection), WiFi information, including WiFi connection information, can be sent to the second system via bus communication. This allows the second system to use the WiFi network scanned and connected by the first system. If the first system does not connect to WiFi (i.e., no WiFi connection is established), the bus communication interface between the second and first systems will be closed. Optionally, the aforementioned WiFi information may include one or more types of information, such as the MAC address and IP address of the WiFi network connected to the first system. Optionally, in this embodiment, control and management related frames are still processed by the first system, while the second system does not. If the system's configuration information, such as the connected WiFi, changes, the first system needs to synchronize the changed configuration information to the second system.

[0034] S203, the second system controls the WiFi module to respond to wireless communication events based on WiFi information.

[0035] In this embodiment, the second processor is connected to the WiFi module. After the second system receives the WiFi connection information sent by the first system through bus communication with the first system, the first system can receive WiFi service requests transmitted by its applications and send the received WiFi service requests as wireless communication events to the second system. This allows the second system to control the WiFi module to respond to the received wireless communication events and perform specific service processing based on the WiFi information of the WiFi network connected to the first system. Similarly, the second system can receive WiFi service requests transmitted by its applications or peer devices and control the WiFi module to process the WiFi service requests transmitted by its applications or peer devices based on the received WiFi information, thus responding to wireless communication events initiated by its applications.

[0036] In the aforementioned wireless communication method, the wireless communication method is applied to an electronic device, which includes a first processor and a second processor. The first processor is used to run a first system, and the second processor is used to run a second system. The first system and the second system communicate via a bus. The second processor is connected to a Wi-Fi module. In this way, the first system can send Wi-Fi information to the second system through bus communication with the second system, and the second system can receive the Wi-Fi information sent by the first system through bus communication with the first system. Compared with the prior art, where the first system needs to send Wi-Fi information to the second system through the driver layer, this method reduces the transmission path of the Wi-Fi information from the first system to the second system, improves the real-time performance of Wi-Fi information transmission, and enables the second system to control the Wi-Fi module to respond to wireless communication events in a timely manner based on the received Wi-Fi information, thereby improving the real-time performance of the second system in responding to wireless communication events.

[0037] This embodiment will explain the specific implementation of the second system controlling the WiFi module to respond to wireless communication events based on WiFi information. In one embodiment, S203 includes:

[0038] Step A: The second system determines the type of wireless communication event and controls the WiFi module to respond to the wireless communication event based on the type of wireless communication event and the WiFi information.

[0039] It is understandable that, since the second processor is connected to the WiFi module, the wireless communication events processed by the second system may be initiated by the first system, the second system itself, or a peer device. The processing methods of the second system may also differ depending on the type of wireless communication event. For example, the second system may send the wireless communication event to the peer device, or it may parse the wireless communication event and send the parsing result to the application of the second system or the application of the first system. In this embodiment, the second system can first determine the type of wireless communication event to be responded to, and then control the WiFi module to respond to the wireless communication event based on the type of wireless communication event and the aforementioned WiFi information.

[0040] Optionally, in this embodiment, the second system can determine the type of the wireless communication event based on the received information of the wireless communication event. If the received information determines that the wireless communication event was sent from the first system to the second system, the type of the wireless communication event can be determined to be a first communication request sent by the first system; if the received information determines that the wireless communication event was sent from the peer device, the type of the wireless communication event can be determined to be a communication data packet received by the WiFi chip of the second system; if the received information determines that the wireless communication event was initiated by the second system, the type of the wireless communication event can be determined to be a second communication request initiated by the second system. As another optional implementation, the second system can determine the type of the wireless communication event based on the address information of the sending wireless communication event. If the address information of the sending wireless communication event is the address information of the first system, the type of the wireless communication event can be determined to be a first communication request sent by the first system; if the address information of the sending wireless communication event is the address information of the peer device, the type of the wireless communication event can be determined to be a communication data packet received by the WiFi module of the second system; if the address information of the sending wireless communication event is the address information of the second system, the type of the wireless communication event can be determined to be a second communication request initiated by the second system.

[0041] In this embodiment, by determining the type of wireless communication event to be responded to, the second system can control the WiFi module to respond in a timely manner to different types of wireless communication events based on the type of wireless communication event and the WiFi information of the WiFi connected to the first system, thereby improving the timeliness of the second system's response to wireless communication events.

[0042] In some scenarios, wireless communication events may be initiated by a first system and received by a second system through bus communication with the first system. In one embodiment, in this scenario, step A above includes:

[0043] Step B: If the type of wireless communication event is a first communication request sent by the first system, then control the WiFi module to send the first communication request based on the WiFi information.

[0044] In this embodiment, if the type of wireless communication event is a first communication request sent by the first system, since the first system and the second system can communicate via a bus without needing to communicate via WiFi, the second system can determine that the first communication request may be a communication request that needs to be forwarded by the second system to the peer device so that the electronic device can wirelessly interact with the peer device. In this scenario, as an optional implementation, the second system can control the WiFi module based on the aforementioned WiFi information to send the aforementioned first communication request to the peer device via WiFi communication, so that the electronic device can respond to the wireless communication event. Optionally, the first communication request in this embodiment can be any one of a device connection request, an information acquisition request, or a control request.

[0045] In this embodiment, if the type of wireless communication event is a first communication request sent by the first system, the second system controls the WiFi module to send the first communication request based on the WiFi information, which enables the second system to respond to the wireless communication event in a timely and accurate manner, ensuring the timeliness and accuracy of the second system's response to the wireless communication event.

[0046] In some scenarios, wireless communication events may be initiated by the peer device and obtained by the second system through interaction with the peer device. In one embodiment, in this scenario, step A above includes:

[0047] Step C: If the type of wireless communication event is a communication data packet received by the WiFi module, then determine whether the electronic device supports WiFi subnet communication based on the WiFi information.

[0048] In this embodiment, if the wireless communication event is initiated by the peer device, i.e., the type of the wireless communication event is a communication data packet received by the WiFi module of the second system, then the second system needs to process the received communication data packet. In this embodiment, as an optional implementation, the second system can determine whether the electronic device supports WiFi subnet communication based on the received WiFi information, and determine the response method for the communication data packet based on the determination result. Whether the electronic device supports WiFi subnet communication refers to whether the first system and the second system of the electronic device each support separate IP addresses. If the first system and the second system of the electronic device support separate IP addresses, it can be determined that the electronic device supports WiFi subnet communication; if the first system and the second system of the electronic device do not support separate IP addresses, it can be determined that the electronic device does not support WiFi subnet communication.

[0049] Step D: If the electronic device supports WiFi subnet communication, then control the WiFi module to respond to wireless communication events based on the IP address of the communication data packet.

[0050] In this embodiment, if the electronic device supports WiFi subnet communication, the second system can parse the received communication data packets, obtain the IP address of the communication data packets, and determine the IP address of the communication data packets. For example... Figure 3 As illustrated by the transmission link example, if the IP address of the communication data packet is the IP address of the first system, the second system can control the WiFi module to send the communication data packet to the first system via bus communication between the first and second systems. If the IP address of the communication data packet is the IP address of the second system, the second system can control the WiFi module to send the communication data packet to the data interface between the WiFi module and the application of the second system, so that the application of the second system can send communication data through this data interface.

[0051] Step E: If the electronic device does not support WiFi subnet communication, then control the WiFi module to distribute communication data packets through the data interface of the second system.

[0052] In this embodiment, if the electronic device does not support WiFi subnet communication, the transmission link can be as follows: Figure 4 As shown, the second system can control the WiFi module to send communication data packets to the data interface of the second system, and distribute the communication data through the data interface of the second system. Optional, please continue to see... Figure 4 The second system can identify the type of communication data packets through the aforementioned data interface. If the type of the communication data packet is an application data packet of the second system, it processes the communication data packet through the data interface. If the type of the communication data packet is an application data packet of the first system, it indicates that the communication data packet is returned by the peer device when the application of the first system wirelessly interacts with the peer device through the WiFi module. If the first system is in running state, the data interface of the second system can send the communication data packet to the first system through bus communication between the first and second systems, and the application of the first system processes the communication data packet. If the first system is in sleep state, the second system can buffer the communication data packets and send them to the first system through bus communication when it detects that the first system has switched from sleep state to running state. Optionally, the data interface of the second system can be a Transmission Control Protocol (TCP) interface or a User Datagram Protocol (UDP) interface.

[0053] Additionally, it should be noted that if the first system is in a dormant state and the second system is running, and if the second system receives relevant management frames, the second system can cache the received management frames. For example, it can configure a config file to manage the received management frames, and then synchronize the relevant management frames to the first system for processing after the first system starts up.

[0054] In this embodiment, if the type of wireless communication event is a communication data packet received by the WiFi module, the second system can quickly determine whether the electronic device supports WiFi subnet communication based on the received WiFi information. Thus, if the electronic device supports WiFi subnet communication, the WiFi module can be controlled to respond to the wireless communication event based on the IP address of the communication data packet. If the electronic device does not support WiFi subnet communication, the WiFi module can be controlled to distribute the communication data packet through the data interface of the second system. This allows different processing methods to be used for different situations, ensuring the timeliness of communication data packet processing and thus ensuring the timeliness of wireless communication of the electronic device.

[0055] In some scenarios, wireless communication events may be initiated by an application of a second system, requesting a second communication to conduct WiFi communication with a peer device. Based on the above embodiments, in one embodiment, such as... Figure 5 As shown, step A above includes:

[0056] S301, if the type of wireless communication event is a second communication request initiated by the second system, then the second communication request is sent to the WiFi module through the data interface of the second system.

[0057] S302, based on WiFi information, control the WiFi module to respond to the second communication request.

[0058] It should be noted that the data interface of the second system is the data interface between the application of the second system and the WiFi module. Through this data interface, communication and interaction between the application of the second system and the WiFi module can be realized, reducing the inter-core transmission path.

[0059] In this embodiment, if the second system initiates a second communication request to interact with the peer device, the second system can send the second communication request initiated by the second system to the WiFi module through the data interface between the second system's application and the WiFi module. The second system can control the WiFi module to respond to the second communication request initiated by the second system based on the aforementioned WiFi information. Optionally, the second communication request can be any one of the following: a device connection request, an information acquisition request, or a control request initiated by the second system's application to communicate with the peer device.

[0060] In this embodiment, when the second system initiates a second communication request, the second system can directly send the second communication request initiated by the second system to the WiFi module through the data interface between the application of the second system and the WiFi module. This reduces the transmission path of the second communication request, thereby enabling the second system to control the WiFi module to respond to the second communication request in a timely manner based on the WiFi information of the WiFi connected to the first system, ensuring the timeliness of the response to the second communication request.

[0061] Figure 6 This is a schematic diagram of the internal interaction framework of the wireless communication method provided in the embodiments of this application. To facilitate understanding by those skilled in the art, the following is combined with... Figure 6 The wireless communication method provided in this application will be described in detail with a complete embodiment as an example:

[0062] First, it should be noted that in this embodiment, the "large core" refers to the first system in the electronic device, and the "small core" refers to the second system in the electronic device. The wireless communication method provided in this application removes the driver layer on the large core and constructs a bus interface and bus channel in the wpa_supplicant / hal layer of the large core, enabling communication between the large and small cores via the bus, thereby reducing the transmission links when the large core transmits wireless communication events to the small core. After the large core scans and connects to WiFi, establishing a WiFi connection, it synchronizes WiFi information, including WiFi connection information, to the small core through bus communication between the large and small cores, allowing the small core to use the WiFi connected to the large core. When the large core receives a first communication request transmitted by an application on the large core, it sends the first communication request to the second system through the aforementioned bus communication with the second system. The second system then controls the WiFi module based on the connected WiFi information to send the first communication request to the peer device, enabling wireless communication with the peer device.

[0063] In this embodiment, for the small core, a data interface is created between the application on the small core and its WiFi module, enabling the application on the small core to communicate directly with the WiFi module. When the WiFi module running on the small core receives a communication data packet, it first determines whether the electronic device supports WiFi subnet communication based on the WiFi information sent by the large core, i.e., whether the electronic device supports dual IP communication. If the electronic device supports WiFi subnet communication, and the IP address of the received communication data packet is the IP address of the large core, the WiFi module is controlled to send the communication data packet to the large core through bus communication with the large core. If the IP address of the received communication data packet is the IP address of the small core, the WiFi module is controlled to send the communication data packet to the aforementioned data interface for processing. As another implementation, if it is determined that the electronic device does not support WiFi subnet communication, the smaller core can control the WiFi module to send the received communication data packets to the aforementioned data interface. This data interface identifies the type of the communication data packets. When the type of the communication data packet is an application data packet of the smaller core, it is processed through this data interface. When the type of the communication data packet is an application data packet of the larger core, it is sent to the larger core for processing via bus communication between the larger and smaller cores. Furthermore, if the application on the smaller core initiates a second communication request, the smaller core can send this request to the WiFi module through the aforementioned data interface, reducing the inter-core transmission path of the second communication request within the smaller core. Based on the WiFi information of the WiFi network connected to the larger core, the WiFi module is controlled to respond promptly to the second communication request initiated by the smaller core.

[0064] It should be noted that the above description can be found in the relevant descriptions in the above embodiments, and the effects are similar, so this embodiment will not repeat them here.

[0065] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0066] Based on the same inventive concept, this application also provides a wireless communication device for implementing the wireless communication method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations in one or more wireless communication device embodiments provided below can be found in the limitations of the wireless communication method described above, and will not be repeated here.

[0067] In one embodiment, such as Figure 7 As shown, a wireless communication device is provided for use in an electronic device. The electronic device includes a first processor and a second processor. The first processor runs a first system, and the second processor runs a second system. The first and second systems communicate via a bus. The second processor is connected to a Wi-Fi module. The device includes a transmitting module, a receiving module, and a control module, wherein:

[0068] The transmitting module is used by the first system to send WiFi information to the second system via bus communication with the second system.

[0069] A receiving module is used by the second system to receive WiFi information sent by the first system through bus communication with the first system;

[0070] The control module is used by the second system to control the WiFi module to respond to wireless communication events based on WiFi information.

[0071] The wireless communication device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0072] Based on the above embodiments, optionally, the control module includes a control unit, wherein:

[0073] The control unit is used by the second system to determine the type of wireless communication event and control the WiFi module to respond to the wireless communication event based on the type of wireless communication event and WiFi information.

[0074] For example, the power consumption of the first processor is greater than that of the second processor.

[0075] The wireless communication device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0076] Based on the above embodiments, optionally, the control unit is specifically used to control the WiFi module to send the first communication request based on WiFi information if the type of the wireless communication event is a first communication request sent by the first system.

[0077] The wireless communication device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0078] Based on the above embodiments, optionally, the control unit is specifically configured to: if the type of the wireless communication event is a communication data packet received by the WiFi module, determine whether the electronic device supports WiFi subnet communication based on the WiFi information; if the electronic device supports WiFi subnet communication, control the WiFi module to respond to the wireless communication event based on the IP address of the communication data packet; and / or, if the electronic device does not support WiFi subnet communication, control the WiFi module to distribute the communication data packet through the data interface of the second system.

[0079] The wireless communication device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0080] Based on the above embodiments, optionally, the control unit is specifically used to control the WiFi module to send the communication data packet to the first system through bus communication with the first system if the IP address of the communication data packet is the IP address of the first system; and to control the WiFi module to send the communication data packet to the data interface if the IP address of the communication data packet is the IP address of the second system.

[0081] The wireless communication device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0082] Based on the above embodiments, optionally, the control unit is specifically used to control the WiFi module to send communication data packets to the data interface; to identify the type of communication data packets through the data interface; if the type of communication data packets is an application data packet of the second system, then to process the communication data packets through the data interface; if the type of communication data packets is an application data packet of the first system, then to send the communication data packets to the first system through bus communication with the first system.

[0083] The wireless communication device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0084] Based on the above embodiments, optionally, the control unit is specifically used to send communication data packets to the first system through bus communication if the first system is in the running state; to buffer communication data packets if the first system is in the sleep state; and to send communication data packets to the first system through bus communication when the first system is detected to switch from the sleep state to the running state.

[0085] The wireless communication device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0086] Based on the above embodiments, optionally, the control unit is specifically used to send a second communication request to the WiFi module through the data interface of the second system if the type of wireless communication event is a second communication request initiated by the second system; and to control the WiFi module to respond to the second communication request based on the WiFi information.

[0087] The wireless communication device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0088] Based on the above embodiments, optionally, the apparatus further includes: a building module, wherein:

[0089] A module is established for the first system to establish a WiFi connection; the aforementioned WiFi information includes WiFi connection information.

[0090] The wireless communication device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0091] Each module in the aforementioned wireless communication device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0092] In one embodiment, an electronic device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 8As shown. The electronic device includes a first processor and a second processor. The first processor runs a first system, and the second processor runs a second system. The first and second systems communicate via a bus. The second processor is connected to a Wi-Fi module. For example, the power consumption of the first processor is greater than that of the second processor. The electronic device's memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The electronic device's communication interface is used for wired or wireless communication with external terminals. Wireless communication can be achieved through Wi-Fi, carrier networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a wireless communication method. The electronic device's display screen can be an LCD screen or an e-ink display screen. The input device of the electronic device can be a touch layer covering the display screen, or buttons, a trackball, or a touchpad set on the electronic device's casing, or an external keyboard, touchpad, or mouse, etc.

[0093] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0094] This application also provides a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, which, when executed by one or more processors, cause the processors to perform the steps of a wireless communication method.

[0095] This application also provides a computer program product containing instructions that, when run on a computer, cause the computer to perform a wireless communication method.

[0096] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0097] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0098] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A wireless communication method applied to an electronic device, characterized in that, The electronic device includes a first processor and a second processor, the first processor being used to run a first system, and the second processor being used to run a second system. The first system and the second system communicate via a bus, and the second processor is connected to a Wi-Fi module. The method includes: The first system sends WiFi information to the second system via bus communication with the second system; The second system receives the WiFi information sent by the first system through bus communication with the first system; The second system controls the WiFi module to respond to wireless communication events based on the WiFi information.

2. The method according to claim 1, characterized in that, The second system controls the WiFi module to respond to wireless communication events based on the WiFi information, including: The second system determines the type of the wireless communication event and controls the WiFi module to respond to the wireless communication event based on the type of the wireless communication event and the WiFi information.

3. The method according to claim 2, characterized in that, The step of controlling the WiFi module to respond to the wireless communication event based on the type of the wireless communication event and the WiFi information includes: If the type of the wireless communication event is a first communication request sent by the first system, then the WiFi module is controlled to send the first communication request based on the WiFi information.

4. The method according to claim 2, characterized in that, The step of controlling the WiFi module to respond to the wireless communication event based on the type of the wireless communication event and the WiFi information includes: If the type of the wireless communication event is a communication data packet received by the WiFi module, then determine whether the electronic device supports WiFi subnet communication based on the WiFi information; If the electronic device supports WiFi subnet communication, then based on the IP address of the communication data packet, control the WiFi module to respond to the wireless communication event; and / or, If the electronic device does not support WiFi subnet communication, then the WiFi module is controlled to distribute the communication data packets through the data interface of the second system.

5. The method according to claim 4, characterized in that, The step of controlling the WiFi module to respond to the wireless communication event based on the IP address of the communication data packet includes: If the IP address of the communication data packet is the IP address of the first system, then the WiFi module is controlled to send the communication data packet to the first system through bus communication with the first system; If the IP address of the communication data packet is the IP address of the second system, then the WiFi module is controlled to send the communication data packet to the data interface.

6. The method according to claim 4, characterized in that, The control of the WiFi module to distribute the communication data packets through the data interface of the second system includes: The WiFi module is controlled to send the communication data packets to the data interface; The type of the communication data packet is identified through the data interface; If the type of the communication data packet is the application data packet of the second system, then the communication data packet is processed through the data interface; If the type of the communication data packet is the application data packet of the first system, then the communication data packet is sent to the first system through bus communication with the first system.

7. The method according to claim 6, characterized in that, Sending the communication data packet to the first system via bus communication with the first system includes: If the first system is in operation, the communication data packet is sent to the first system via bus communication with the first system; If the first system is in a dormant state, then the communication data packets are cached; When the system detects that it has switched from hibernation to running state, the system sends the communication data packet to the first system via bus communication.

8. The method according to claim 2, characterized in that, The step of controlling the WiFi module to respond to the wireless communication event based on the type of the wireless communication event and the WiFi information includes: If the type of the wireless communication event is a second communication request initiated by the second system, then the second communication request is sent to the WiFi module through the data interface of the second system; Based on the WiFi information, the WiFi module is controlled to respond to the second communication request.

9. The method according to claim 1, characterized in that, The power consumption of the first processor is greater than that of the second processor; and / or, before sending WiFi information to the second system via bus communication with the second system, the method further includes: The first system establishes a WiFi connection; the WiFi information includes WiFi connection information.

10. A wireless communication device, applied to an electronic device, characterized in that, The electronic device includes a first processor and a second processor. The first processor is used to run a first system, and the second processor is used to run a second system. The first system and the second system communicate via a bus. The second processor is connected to a Wi-Fi module. The device includes: A transmitting module is used for the first system to send WiFi information to the second system via bus communication with the second system; A receiving module is used for the second system to receive the WiFi information sent by the first system through bus communication with the first system; A control module is used by the second system to control the WiFi module to respond to wireless communication events based on the WiFi information.

11. An electronic device, characterized in that, It includes a first processor and a second processor. The first processor is used to run a first system, and the second processor is used to run a second system. The first system and the second system communicate through a bus, and the second processor is connected to a Wi-Fi module. The first system is configured to perform the steps executed by the first system in the method according to any one of claims 1 to 9; The second system is used to perform the steps performed by the second system in the method according to any one of claims 1 to 9.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 9.

13. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 9.