Short-distance wireless communication method, device and system

CN118696552APending Publication Date: 2024-09-24HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280092127.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-04-19
Filing Date
2022-08-23
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The power consumption during Wi-Fi communication is high. The existing technology mainly reduces the power consumption in the early stage of connection establishment. After the connection is established, there is still high power consumption, resulting in insufficient standby endurance of the device, especially when business data is discontinuous but In the scenario of frequent transmission, frequent establishment or disconnection of connections leads to large transmission delays and instability.

Method used

By using a second communication method (such as Bluetooth) with lower power consumption than Wi-Fi in Wi-Fi communication to maintain the communication link, using the second communication method to transmit data packets is not only used to maintain its corresponding link, but also It can be used to maintain the Wi-Fi link, thereby reducing the power consumption of Wi-Fi link re-establishment, and disconnect the link when not needed to reduce power consumption.

Benefits of technology

It achieves low latency and stability in transmitting new service data packets without re-establishing the Wi-Fi link, reduces overall power consumption, extends the standby life of the device, and improves the stability of transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118696552A
    Figure CN118696552A
Patent Text Reader

Abstract

The embodiment of the invention provides a short-distance wireless communication method, device and system which are used for reducing power consumption generated in the Wi-Fi communication process. The method comprises the steps that a first service data packet is transmitted between first equipment and second equipment in a first communication mode; the first device sends a first data packet to a second device by using a second communication mode, the first data packet being used for maintaining a first communication link corresponding to the first communication mode and a second communication link corresponding to the second communication mode; under the condition of transmitting the same data packet, the power consumption generated by adopting the first communication mode is higher than the power consumption generated by adopting the second communication mode.
Need to check novelty before this filing date? Find Prior Art

Description

Short-range wireless communication method, device and system

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on April 19, 2022, with application number 202210410457.4 and application name “Short-range Wireless Communication Method”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communications, and in particular to short-range wireless communication methods, devices, and systems. Background Art

[0003] For example, when transmitting the same data packet in the 2.4 GHz frequency band, the power consumption of wireless LAN (Wi-Fi) communication is higher than that of Bluetooth or other communication methods.

[0004] To reduce power consumption during Wi-Fi communication, existing technical solutions primarily target the process before a Wi-Fi connection is established, specifically the Wi-Fi discovery and network configuration process. However, even after a Wi-Fi connection is established, existing technologies still generate high power consumption.

[0005] Summary of the Invention

[0006] The embodiments of the present application provide a short-range wireless communication method, apparatus, and system for reducing power consumption generated during Wi-Fi communication.

[0007] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0008] In a first aspect, a short-range wireless communication method is provided. The apparatus for executing the short-range wireless communication method may be a first device, or may be a module applied to the first device, such as a chip or a chip system. The following description is made using the first device as an example. A first service data packet is transmitted between the first device and the second device using a first communication method; the first device sends a first data packet to the second device using a second communication method, wherein the first data packet is used to maintain a first communication link corresponding to the first communication method and a second communication link corresponding to the second communication method; when transmitting the same data packet, the power consumption generated by using the first communication method is higher than the power consumption generated by using the second communication method.

[0009] In the short-range wireless communication method provided in the embodiment of the present application, since the functional module corresponding to the second communication mode can communicate with the functional module corresponding to the first communication mode inside the first device or the second device, the first data packet transmitted by the second communication mode can be used to maintain the second communication link corresponding to the second communication mode, and can also be used to maintain the first communication link corresponding to the first communication mode. The use of a second communication mode with lower power consumption than the first communication mode to maintain the first communication link corresponding to the first communication mode can achieve the technical effect of reducing power consumption. Furthermore, since the short-range wireless communication method provided in the embodiment of the present application can maintain the first communication link with lower power consumption, the first communication link can be maintained for a long time. The next time a new service data packet needs to be transmitted using the first communication mode, there is no need to re-establish the first communication link, thereby reducing the transmission delay of the new service data packet and achieving stable maintenance of the first communication link.

[0010] In combination with the first aspect above, in a possible implementation, the short-range wireless communication method provided by the embodiment of the present application further includes: in the process of transmitting the first service data packet between the first device and the second device using the first communication method, the first device sends a second data packet to the second device using the second communication method, wherein the second data packet is used to maintain the second communication link corresponding to the second communication method. In this solution, in the process of transmitting the first service data packet, the second communication link is maintained by transmitting the second data packet, so that when the first device sends the first data packet using the second communication method, there is no need to re-establish the second communication link, thereby saving the power consumption generated by re-establishing the second communication link.

[0011] In conjunction with the first aspect above, in one possible implementation, the first data packet has a first transmission period, and the second data packet has a second transmission period, where the first transmission period is shorter than the second transmission period. In this solution, the second data packet has a longer transmission period, which can minimize power consumption while maintaining the second communication link. The first data packet has a shorter transmission period, which facilitates waking up the second device in a timely manner.

[0012] In combination with the first aspect above, in a possible implementation, after the first device uses the second communication method to send the first data packet to the second device, the method further includes: the first device uses the second communication method to send a wake-up data packet to the second device; wherein the wake-up data packet is used to trigger the second device to use the first communication method to receive the service data packet from the first device; and the first device uses the first communication method to send the second service data packet to the second device. In this solution, since the functional module corresponding to the second communication method can communicate with the functional module corresponding to the first communication method within the first device or the second device, by using the second communication method to send the wake-up data packet, the first device can quickly wake up the functional module corresponding to the first communication method in the second device, so that the first device can use the first communication method to send the second service data packet to the second device, and the second device can also use the first communication method to receive the second service data packet from the first device.

[0013] In conjunction with the first aspect above, in one possible implementation, after the first device transmits the first data packet to the second device using the second communication method, the method further includes: the first device transmitting the second service data packet to the second device using the first communication method. For example, if the second device is only in an operating state under the first communication method, the first device may attempt to directly transmit the second service data packet to the second device using the first communication method.

[0014] In combination with the first aspect above, in a possible implementation, the short-range wireless communication method provided by the embodiment of the present application further includes: in the process of the first device using the first communication method to send the second service data packet to the second device, the first device uses the second communication method to send a third data packet to the second device, wherein the third data packet is used to maintain the second communication link corresponding to the second communication method. In this solution, in the process of transmitting the second service data packet, the second communication link is maintained by transmitting the third data packet, so that when the first device subsequently uses the second communication method to send a data packet again, there is no need to re-establish the second communication link, thereby saving the power consumption generated by re-establishing the second communication link.

[0015] In conjunction with the first aspect above, in one possible implementation, the first data packet has a transmission period of a first cycle, and the third data packet has a transmission period of a second cycle, wherein the first cycle is shorter than the second cycle. In this solution, the third data packet has a longer transmission period, which can minimize power consumption while maintaining the second communication link. The first data packet has a shorter transmission period, which facilitates subsequent timely wake-up of the second device.

[0016] In combination with the first aspect above, in a possible implementation, during the process of transmitting the first business data packet between the first device and the second device using the first communication mode, if the first communication link corresponding to the first communication mode is disconnected, the second communication link corresponding to the second communication mode is disconnected; or, after the transmission of the first business data packet using the first communication mode between the first device and the second device is completed and before the transmission of the second business data packet, if the second communication link corresponding to the second communication mode is disconnected, the first communication link corresponding to the first communication mode is disconnected. In this solution, the disconnection of the second communication link is related to the disconnection of the first communication link. When the first communication link or the second communication link is no longer needed to be maintained, it is disconnected, which helps to further reduce the power consumption of the device.

[0017] In a second aspect, a short-range wireless communication method is provided. The apparatus for executing the short-range wireless communication method may be a second device, or a module applied to the second device, such as a chip or a chip system. The following description is made using the second device as an example. A first service data packet is transmitted between a first device and a second device using a first communication method; the second device receives a first data packet from the first device using a second communication method, wherein the first data packet is used to maintain a first communication link corresponding to the first communication method and a second communication link corresponding to the second communication method; when transmitting the same data packet, the power consumption generated by using the first communication method is higher than the power consumption generated by using the second communication method.

[0018] In combination with the above-mentioned second aspect, in a possible implementation method, the short-range wireless communication method provided by the embodiment of the present application also includes: in the process of transmitting the first business data packet between the first device and the second device using the first communication method, the second device uses the second communication method to receive the second data packet from the first device, wherein the second data packet is used to maintain the second communication link corresponding to the second communication method.

[0019] In combination with the above second aspect, in a possible implementation, the receiving period of the first data packet is a first period, and the receiving period of the second data packet is a second period, wherein the first period is smaller than the second period.

[0020] In combination with the above-mentioned second aspect, in a possible implementation method, after the second device adopts the second communication method to receive the first data packet from the first device, the method also includes: the second device adopts the second communication method to receive the wake-up data packet from the first device; wherein, the wake-up data packet is used to trigger the second device to adopt the first communication method to receive the business data packet from the first device; the second device adopts the first communication method to receive the second business data packet from the first device.

[0021] In combination with the above second aspect, in a possible implementation, after the second device receives the first data packet from the first device using the second communication method, the method also includes: the second device receives the second service data packet from the first device using the first communication method.

[0022] In combination with the above-mentioned second aspect, in a possible implementation method, the short-range wireless communication method provided by the embodiment of the present application also includes: in the process of the second device adopting the first communication method to receive the second service data packet from the first device, the second device adopts the second communication method to receive a third data packet from the first device, wherein the third data packet is used to maintain the second communication link corresponding to the second communication method.

[0023] In combination with the above second aspect, in a possible implementation, the receiving period of the first data packet is a first period, and the receiving period of the third data packet is a second period, wherein the first period is smaller than the second period.

[0024] In combination with the above-mentioned second aspect, in a possible implementation method, during the process of transmitting the first business data packet between the second device and the first device using the first communication method, when the first communication link corresponding to the first communication method is disconnected, the second communication link corresponding to the second communication method is disconnected; or, after the transmission of the first business data packet between the second device and the first device using the first communication method is completed and before the transmission of the second business data packet, when the second communication link corresponding to the second communication method is disconnected, the first communication link corresponding to the first communication method is disconnected.

[0025] In a third aspect, a communication device is provided for implementing the above method. The communication device includes modules, units, or means corresponding to the above method. The modules, units, or means can be implemented in hardware, software, or by hardware executing corresponding software implementations. The hardware or software includes one or more modules or units corresponding to the above functions.

[0026] In combination with the above-mentioned third aspect, in a possible implementation, the communication device includes: a transmitter and a receiver; the transmitter and the receiver are used to transmit a first business data packet to the second device using a first communication method; the transmitter is also used to send a first data packet to the second device using a second communication method, wherein the first data packet is used to maintain a first communication link corresponding to the first communication method and a second communication link corresponding to the second communication method; when transmitting the same data packet, the power consumption generated by using the first communication method is higher than the power consumption generated by using the second communication method.

[0027] In combination with the above-mentioned third aspect, in a possible implementation method, the transmitter is also used to send a second data packet to the second device using the second communication method during the process of transmitting the first business data packet between the transmitter and the receiver and the second device using the first communication method, wherein the second data packet is used to maintain a second communication link corresponding to the second communication method.

[0028] In combination with the third aspect above, in a possible implementation, the sending period of the first data packet is a first period, and the sending period of the second data packet is a second period, wherein the first period is smaller than the second period.

[0029] In combination with the above-mentioned third aspect, in a possible implementation method, the transmitter is also used to send a wake-up data packet to the second device using the second communication method; wherein the wake-up data packet is used to trigger the second device to use the first communication method to receive the business data packet from the transmitter; the transmitter is also used to send the second business data packet to the second device using the first communication method.

[0030] In combination with the third aspect above, in a possible implementation manner, the transmitter is further configured to send the second service data packet to the second device using the first communication manner.

[0031] In combination with the above-mentioned third aspect, in a possible implementation method, the transmitter is also used to send a third data packet to the second device using the second communication method while using the first communication method to send the second business data packet to the second device, wherein the third data packet is used to maintain the second communication link corresponding to the second communication method.

[0032] In combination with the third aspect above, in a possible implementation, the sending period of the first data packet is a first period, and the sending period of the third data packet is a second period, wherein the first period is smaller than the second period.

[0033] In combination with the above-mentioned third aspect, in a possible implementation method, during the process of transmitting the first business data packet between the transmitter and the receiver and the second device using the first communication method, when the first communication link corresponding to the first communication method is disconnected, the second communication link corresponding to the second communication method is disconnected; or, after the transmission of the first business data packet between the transmitter and the receiver and the second device using the first communication method is completed and before the transmission of the second business data packet, when the second communication link corresponding to the second communication method is disconnected, the first communication link corresponding to the first communication method is disconnected.

[0034] In a fourth aspect, a communication device is provided for implementing the above method. The communication device includes modules, units, or means corresponding to the above method. The modules, units, or means can be implemented in hardware, software, or by hardware executing corresponding software implementations. The hardware or software includes one or more modules or units corresponding to the above functions.

[0035] In combination with the above-mentioned fourth aspect, in a possible implementation, the communication device includes: a transmitter and a receiver; the transmitter and the receiver are used to transmit a first business data packet to a first device using a first communication method; the receiver is also used to receive a first data packet from the first device using a second communication method, wherein the first data packet is used to maintain a first communication link corresponding to the first communication method and a second communication link corresponding to the second communication method; when transmitting the same data packet, the power consumption generated by using the first communication method is higher than the power consumption generated by using the second communication method.

[0036] In combination with the above-mentioned fourth aspect, in a possible implementation method, the receiver is also used to receive a second data packet from the first device using the second communication method during the process of transmitting the first business data packet between the transmitter and the receiver and the first device using the first communication method, wherein the second data packet is used to maintain a second communication link corresponding to the second communication method.

[0037] In combination with the fourth aspect above, in a possible implementation, the receiving period of the first data packet is a first period, and the receiving period of the second data packet is a second period, wherein the first period is smaller than the second period.

[0038] In combination with the above-mentioned fourth aspect, in one possible implementation, the receiver is also used to receive a wake-up data packet from the first device using the second communication method; wherein the wake-up data packet is used to trigger the receiver to receive a business data packet from the first device using the first communication method; the receiver is also used to receive the second business data packet from the first device using the first communication method.

[0039] In combination with the fourth aspect above, in a possible implementation, the receiver is further configured to receive the second service data packet from the first device using the first communication method.

[0040] In combination with the above-mentioned fourth aspect, in a possible implementation method, the receiver is also used to receive a third data packet from the first device using the second communication method during the process of receiving the second business data packet from the first device using the first communication method, wherein the third data packet is used to maintain the second communication link corresponding to the second communication method.

[0041] In combination with the fourth aspect above, in a possible implementation, the receiving period of the first data packet is a first period, and the receiving period of the third data packet is a second period, wherein the first period is smaller than the second period.

[0042] In combination with the above-mentioned fourth aspect, in a possible implementation method, during the process of transmitting the first business data packet between the transmitter and the receiver and the first device using the first communication method, when the first communication link corresponding to the first communication method is disconnected, the second communication link corresponding to the second communication method is disconnected; or, after the transmission of the first business data packet between the transmitter and the receiver and the first device using the first communication method is completed and before the transmission of the second business data packet, when the second communication link corresponding to the second communication method is disconnected, the first communication link corresponding to the first communication method is disconnected.

[0043] In a fifth aspect, a communication device is provided, comprising: a processor; the processor is configured to be coupled to a memory, and after reading computer instructions stored in the memory, execute the method described in the first or second aspect above according to the instructions.

[0044] In combination with the fifth aspect above, in a possible implementation, the communication device further includes a memory; the memory is used to store computer instructions.

[0045] In conjunction with the fifth aspect, in one possible implementation, the communication device further includes a communication interface; the communication interface is used for the communication device to communicate with other devices. Exemplarily, the communication interface can be a transceiver, an input / output interface, an interface circuit, an output circuit, an input circuit, a pin, or related circuits.

[0046] In conjunction with the fifth aspect above, in one possible implementation, the communication device may be a chip or a chip system. When the communication device is a chip system, the communication device may be composed of a chip or may include a chip and other discrete devices.

[0047] In a sixth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium. When the computer-readable storage medium is run on a computer, the computer can execute the method described in the first or second aspect above.

[0048] In a seventh aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method described in the first or second aspect above.

[0049] In an eighth aspect, a communication system is provided, comprising a first device for executing the method described in the first aspect, and a second device for executing the method described in the second aspect.

[0050] Among them, the technical effects brought about by any possible implementation method of the second to eighth aspects can be referred to the technical effects brought about by the above-mentioned first aspect or different implementation methods of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] FIG1 is a schematic diagram of the architecture of a system for performing Wi-Fi communication via Bluetooth communication in the prior art;

[0052] FIG2 is a flow chart of a specific process of Wi-Fi communication in the prior art;

[0053] FIG3 is a schematic diagram of the architecture of a communication system provided in an embodiment of the present application;

[0054] FIG4 is a schematic structural diagram of a communication device provided in an embodiment of the present application;

[0055] FIG5 is a flow chart of a short-range wireless communication method provided by an embodiment of the present application;

[0056] FIG6 is a schematic diagram of the architecture of another communication system provided in an embodiment of the present application;

[0057] FIG7 is a specific example 1 of the short-range wireless communication method provided in an embodiment of the present application;

[0058] FIG8 is a second specific example of the short-range wireless communication method provided in an embodiment of the present application;

[0059] FIG9 is a third specific example of the short-range wireless communication method provided in an embodiment of the present application;

[0060] FIG10 is a fourth specific example of the short-range wireless communication method provided in an embodiment of the present application;

[0061] FIG11 is another schematic diagram of the structure of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0062] In the embodiments of the present application, "maintaining a Wi-Fi link" and "maintaining a Wi-Fi connection" have the same meaning, and the meaning refers to that under Wi-Fi communication, the communication device perceives that the communication device at the other end is in a powered-on state and the distance between the communicating parties is within the effective communication range. "Working state" refers to the state in which the communication device transmits business data packets, and "sleep state" is a state in which no business data packets are transmitted relative to the "working state", and can also be called a standby state. Regardless of the "sleep state" or "working state", the relevant functional modules in the communication device need to be in a powered-on state. This is explained uniformly here and will not be repeated below. In order to facilitate understanding of the technical solutions of the embodiments of the present application, a brief introduction to the relevant technologies of the present application is first given as follows.

[0063] First, the existing Wi-Fi connection maintenance method.

[0064] On the one hand, an access point (AP) periodically sends beacon frames to stations (STAs) over a Wi-Fi link. In response, when a STA receives a beacon frame from the AP over the Wi-Fi link, it indicates that the AP is powered on and within the effective communication range. This ensures that the STA's Wi-Fi link with the AP is intact.

[0065] On the other hand, STAs periodically send keepalive frames to the AP over the Wi-Fi link. Keepalive frames are typically sent at an integer multiple of the beacon frame period and carry no data. Accordingly, when the AP receives a beacon frame from a STA over the Wi-Fi link, it indicates that the STA is powered on and within the effective communication range. Therefore, the AP will not actively disconnect the STA's Wi-Fi connection.

[0066] Since the power consumption of Wi-Fi communication is higher than that of Bluetooth or other communication methods, the existing Wi-Fi connection maintenance method will generate higher power consumption.

[0067] Typically, an AP is a router, and a STA is a battery-powered Wi-Fi device. When a STA is in standby mode, the power consumption associated with communicating with the AP to maintain a Wi-Fi connection is a key aspect of power optimization. Low-power Wi-Fi connection maintenance methods can help improve STA standby battery life.

[0068] Second, methods to reduce power consumption in existing Wi-Fi communications.

[0069] In the prior art, device A and device B, which have Wi-Fi and Bluetooth functions respectively, can establish a Wi-Fi connection by establishing a Bluetooth connection. For example, as shown in FIG1 , device A can be a smartwatch 101, and device B can be a smartphone 102. A Bluetooth connection and / or a Wi-Fi connection can be established between the smartwatch 101 and the smartphone 102. Furthermore, as shown in FIG2 , device A 201 has a Bluetooth module 2011 and a Wi-Fi module 2012, and device B 202 has a Bluetooth module 2021 and a Wi-Fi module 2022. Assuming that device A 201 is a STA and device B 202 is an AP, in conjunction with FIG2 , the specific process of Wi-Fi communication is as follows: device A 201 does not scan via Wi-Fi, but instead uses, for example, Bluetooth low energy (BLE) to perform Bluetooth scanning and discover device B 202, and then establishes a Bluetooth connection with device B 202, as shown in steps S201 and S202. Then, device A 201 and device B 202 can exchange Wi-Fi network configuration information through the established Bluetooth connection and complete the network configuration, as shown in step S203. The network configuration information may include the service set identifier (SSID) of the Wi-Fi network. Afterwards, the Bluetooth connection between device A 201 and device B 202 is disconnected, and a Wi-Fi connection is established, as shown in steps S204 and S205. After device A 201 and device B 202 establish a Wi-Fi connection, business data can be transmitted via Wi-Fi. When there is no business data to be transmitted, the Wi-Fi connection between device A 201 and device B 202 can be briefly maintained, as shown in step S206. The Bluetooth module 2011 and the Bluetooth module 2021 participate in the execution of steps S201 to S204, and the Wi-Fi module 2012 and the Wi-Fi module 2022 participate in the execution of steps S205 and S206.

[0070] However, the power consumption reduced in the prior art is mainly the power consumption generated before establishing the Wi-Fi connection. After the Wi-Fi connection is established, for example, step S206 in FIG. 2 still uses the above-mentioned conventional Wi-Fi connection maintenance method, which will generate higher power consumption.

[0071] In addition, due to the high power consumption generated by step S206 in Figure 2, the Wi-Fi connection is generally not maintained for a long time. That is, the method shown in Figure 2 is generally used for temporary Wi-Fi transmission services, such as point-to-point (P2P) services. Specifically, after the service data transmission is completed, the Wi-Fi connection is briefly maintained and then disconnected. The next time new service data needs to be transmitted, the execution starts from step S201 to re-establish the Wi-Fi connection. In particular, in scenarios where service data is discontinuous but frequently transmitted, the existing Wi-Fi communication method shown in Figure 2 will frequently establish or disconnect the Wi-Fi connection, which may cause problems such as large transmission delay and unstable transmission.

[0072] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship. For example, A / B can represent A or B; "and / or" in the present application is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit differences. At the same time, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.

[0073] As shown in Figure 3, a communication system 30 is provided for an embodiment of the present application. The communication system 30 includes a first device 301 and a second device 302. The first device 301 is used to transmit a first service data packet to the second device 302 using a first communication method. The first device 301 is also used to send a first data packet to the second device 302 using a second communication method, wherein the first data packet is used to maintain a first communication link corresponding to the first communication method and a second communication link corresponding to the second communication method; when transmitting the same data packet, the power consumption generated by using the first communication method is higher than the power consumption generated by using the second communication method. The second device 302 is used to receive the first data packet from the first device 301 using the second communication method. The specific implementation and technical effects of this solution will be described in detail in the subsequent method embodiments and will not be repeated here.

[0074] Optionally, the relevant functions of the first device or the second device in the embodiments of the present application can be implemented by a single device, or by multiple devices, or by one or more functional modules within a single device, and the embodiments of the present application do not specifically limit this. It is understood that the above functions can be network elements in hardware devices, software functions running on dedicated hardware, a combination of hardware and software, or virtualized functions instantiated on a platform (e.g., a cloud platform).

[0075] For example, the relevant functions of the first device or the second device in the embodiment of the present application can be implemented by the communication device 400 in Figure 4.

[0076] Figure 4 is a schematic diagram of the structure of a communication device 400 provided in an embodiment of the present application. The communication device 400 includes one or more processors 401, a communication circuit 402, and at least one communication interface (the description is merely illustrative, taking the communication interface 404 and one processor 401 as an example), and optionally may also include a memory 403.

[0077] The processor 401 may be a CPU, a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.

[0078] Communication lines 402 may include pathways for connecting different components.

[0079] Communication interface 404 can be a transceiver module for communicating with other devices or communication networks, such as Ethernet, RAN, WLAN, etc. For example, the transceiver module can be a device such as a transceiver or a transceiver. Alternatively, communication interface 404 can be a transceiver circuit located within processor 401, used to implement signal input and output to the processor.

[0080] The memory 403 may be a device having a storage function. For example, it may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a communication line 402. The memory may also be integrated with the processor.

[0081] The memory 403 is used to store computer-executable instructions for executing the solution of the present application, and the execution is controlled by the processor 401. The processor 401 is used to execute the computer-executable instructions stored in the memory 403, thereby implementing the short-range wireless communication method provided in the embodiment of the present application.

[0082] Alternatively, in an embodiment of the present application, the processor 401 may also perform processing-related functions in the short-range wireless communication method provided in the following embodiments of the present application, and the communication interface 404 is responsible for communicating with other devices or communication networks. The embodiments of the present application do not specifically limit this.

[0083] The computer-executable instructions in the embodiments of the present application may also be referred to as application code, which is not specifically limited in the embodiments of the present application.

[0084] In a specific implementation, as an embodiment, the processor 401 may include one or more CPUs, such as CPU0 and CPU1.

[0085] In a specific implementation, as an embodiment, the communication device 400 may include multiple processors, such as the processor 401 and the processor 407. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0086] In a specific implementation, as an embodiment, the communication apparatus 400 may further include an output device 405 and an input device 406. The output device 405 communicates with the processor 401 and may display information in a variety of ways.

[0087] The communication device 400 can be a general-purpose device or a dedicated device. For example, the communication device 400 can be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, an in-vehicle terminal device, an embedded device, or a device with a similar structure. The embodiments of the present application do not limit the type of the communication device 400.

[0088] The short-range wireless communication method provided in the embodiment of the present application will be described in detail below with reference to FIG. 1 to FIG. 4 .

[0089] As shown in FIG5 , a short-range wireless communication method provided in an embodiment of the present application includes the following steps:

[0090] Step S501: A first service data packet is transmitted between a first device and a second device using a first communication method.

[0091] In the embodiment of the present application, the first device may be a STA, and the second device may be an AP; or, the first device may be an AP, and the second device may be a STA, and the embodiment of the present application does not impose any limitation on this.

[0092] Exemplarily, the first communication mode may be Wi-Fi communication, and accordingly, the first service data packet may be a Wi-Fi data packet.

[0093] Step S502: The first device transmits a first data packet to the second device using the second communication method. The first data packet is used to maintain a first communication link corresponding to the first communication method and a second communication link corresponding to the second communication method. When transmitting the same data packet, the power consumption generated by the first communication method is higher than the power consumption generated by the second communication method. Accordingly, the second device receives the first data packet from the first device using the second communication method.

[0094] In an embodiment of the present application, the first data packet, the second data packet or the third data packet can be an empty data packet, a broadcast data packet, a detection data packet, or any data packet that can be used to maintain a communication link, and the embodiment of the present application does not impose any limitations on this.

[0095] Exemplarily, the second communication mode can be Bluetooth communication, such as BLE communication. In conjunction with Figure 3, Figure 6 shows a specific example of a communication system 30 provided in an embodiment of the present application. Among them, the first device 301 has a Bluetooth module 3011 and a Wi-Fi module 3012, and the second device 302 has a Bluetooth module 3021 and a Wi-Fi module 3022. The Bluetooth module 3011 and the Bluetooth module 3021 can communicate according to the corresponding Bluetooth communication protocol, and the Wi-Fi module 3012 and the Wi-Fi module 3022 can communicate according to the Wi-Fi communication protocol, and when transmitting the same data packet, the power consumption generated by the communication between the Wi-Fi module 3012 and the Wi-Fi module 3022 is higher than the power consumption generated by the communication between the Bluetooth module 3011 and the Bluetooth module 3021. Inside the device, each module can also perform fast information exchange, that is, the Bluetooth module 3011 and the Wi-Fi module 3012 can communicate, and the Bluetooth module 3021 and the Wi-Fi module 3022 can communicate, so as to realize the function of module wake-up, for example.

[0096] In an embodiment of the present application, the second device is able to receive a first data packet from the first device using a second communication mode, so that the second device can know that under the second communication mode, the first device is in a powered-on state and the distance between the first device and the second device is within an effective communication range. That is, the first data packet is used to maintain the second communication link corresponding to the second communication mode. In addition, inside the second device, the functional module corresponding to the second communication mode can also communicate with the functional module corresponding to the first communication mode, so that the functional module corresponding to the first communication mode in the second device can know that under the first communication mode, the first device is in a powered-on state and the distance between the first device and the second device is within an effective communication range. That is, the first data packet can also be used to maintain the first communication link corresponding to the first communication mode. When a key update or clock synchronization is required under the first communication mode, the first device and the second device can also use the second communication mode to transmit a data packet carrying relevant information to maintain the first communication link. The embodiment of the present application does not impose any restrictions on this.

[0097] In the short-range wireless communication method provided in the embodiment of the present application, since the functional module corresponding to the second communication mode can communicate with the functional module corresponding to the first communication mode inside the first device or the second device, the first data packet transmitted by the second communication mode can be used to maintain the second communication link corresponding to the second communication mode, and can also be used to maintain the first communication link corresponding to the first communication mode. The use of a second communication mode with lower power consumption than the first communication mode to maintain the first communication link corresponding to the first communication mode can achieve the technical effect of reducing power consumption. Furthermore, since the short-range wireless communication method provided in the embodiment of the present application can maintain the first communication link with lower power consumption, the first communication link can be maintained for a long time. The next time a new service data packet needs to be transmitted using the first communication mode, there is no need to re-establish the first communication link, thereby reducing the transmission delay of the new service data packet and achieving stable maintenance of the first communication link.

[0098] In order to further reduce power consumption, the short-range wireless communication method provided in the embodiment of the present application also includes: in the process of transmitting the first business data packet between the first device and the second device using the first communication method, the first device sends the second data packet to the second device using the second communication method, wherein the second data packet is used to maintain the second communication link corresponding to the second communication method. Accordingly, in the process of transmitting the first business data packet between the first device and the second device using the first communication method, the second device receives the second data packet from the first device using the second communication method. In this solution, in the process of transmitting the first business data packet, the second communication link is maintained by transmitting the second data packet, so that when the first device sends the first data packet using the second communication method, there is no need to re-establish the second communication link, thereby saving the power consumption generated by re-establishing the second communication link.

[0099] Optionally, the first data packet is sent for a first period, and the second data packet is sent for a second period, where the first period is shorter than the second period. In this solution, the second data packet is sent for a longer period, minimizing power consumption while maintaining the second communication link. The first data packet is sent for a shorter period, facilitating timely wakeup of the second device.

[0100] In one possible implementation, after step S502, the short-range wireless communication method provided by the embodiment of the present application further includes: the first device sends a wake-up data packet to the second device using the second communication method; accordingly, the second device receives the wake-up data packet from the first device using the second communication method. The wake-up data packet is used to trigger the second device to receive the service data packet from the first device using the first communication method. Afterwards, the first device sends the second service data packet to the second device using the first communication method; accordingly, the second device receives the second service data packet from the first device using the first communication method. In this solution, since the functional module corresponding to the second communication method can communicate with the functional module corresponding to the first communication method inside the first device or the second device, by sending the wake-up data packet using the second communication method, the first device can quickly wake up the functional module corresponding to the first communication method in the second device, so that the first device can send the second service data packet to the second device using the first communication method, and the second device can also receive the second service data packet from the first device using the first communication method.

[0101] For example, in the Bluetooth communication protocol, the time point at which the first device sends a signal to the second device can be called an anchor point. The anchor point is usually periodic and the period of the anchor point is adjustable. For example, in step S502, the sending period of the first data packet sent by the first device to the second device using Bluetooth communication can be the first period. For another example, in the process of transmitting the first service data packet between the first device and the second device using Wi-Fi communication, the sending period of the second data packet sent by the first device to the second device using Bluetooth communication can be the second period. Therefore, the first device can send a wake-up data packet to the second device using Bluetooth communication at the anchor point. That is, the duration between the sending moment of the wake-up data packet and the sending moment of the most recent first data packet is the first period.

[0102] For example, if the second device has a working state and a sleeping state under the first communication mode, that is, the second device may be in the sleeping state, then the first device can try to wake up the second device through the above method to switch the second device from the sleeping state to the working state.

[0103] In another possible implementation, after step S502, the short-range wireless communication method provided in the embodiment of the present application further includes: the first device uses the first communication method to send a second service data packet to the second device; accordingly, the second device uses the first communication method to receive the second service data packet from the first device.

[0104] For example, if the second device is only in a working state in the first communication mode, the first device may attempt to directly send the second service data packet to the second device using the first communication mode.

[0105] In order to further reduce power consumption, the short-range wireless communication method provided in the embodiment of the present application also includes: in the process of the first device using the first communication method to send the second business data packet to the second device, the first device uses the second communication method to send the third data packet to the second device, wherein the third data packet is used to maintain the second communication link corresponding to the second communication method. Accordingly, in the process of the first device using the first communication method to send the second business data packet to the second device, the second device uses the second communication method to receive the third data packet from the first device. In this solution, in the process of transmitting the second business data packet, the second communication link is maintained by transmitting the third data packet, so that when the first device subsequently uses the second communication method to send a data packet again, there is no need to re-establish the second communication link, thereby saving the power consumption generated by re-establishing the second communication link.

[0106] Optionally, the first data packet is sent for a first period, and the third data packet is sent for a second period, where the first period is shorter than the second period. In this solution, the third data packet is sent for a longer period, minimizing power consumption while maintaining the second communication link. The first data packet is sent for a shorter period, facilitating timely wakeup of the second device.

[0107] Optionally, during the transmission of a first service data packet between a first device and a second device using a first communication mode, if the first communication link corresponding to the first communication mode is disconnected, the second communication link corresponding to the second communication mode is disconnected; or, after the transmission of a first service data packet between a first device and a second device using the first communication mode is completed and before the transmission of a second service data packet, if the second communication link corresponding to the second communication mode is disconnected, the first communication link corresponding to the first communication mode is disconnected. In this solution, the disconnection of the second communication link is related to the disconnection of the first communication link. Disconnecting the first or second communication link when it is no longer necessary to maintain it helps further reduce the power consumption of the device.

[0108] In conjunction with Figure 6 , FIG7 shows a specific example of the short-range wireless communication method provided by an embodiment of the present application, taking the first device as an AP, the second device as an STA, the first communication mode as Wi-Fi, the second communication mode as BLE, and the first data packet, the second data packet, and the third data packet as BLE empty data packets. This example can be used in scenarios where the STA has an active state and a sleep state in the Wi-Fi communication mode, and includes the following steps:

[0109] Step S701: Wi-Fi data packets are transmitted between the AP and the STA using Wi-Fi.

[0110] Optionally, during step S701 , the AP may periodically use BLE to send BLE null data packets to the STA, or the AP may periodically use BLE to receive BLE null data packets from the STA to maintain the BLE link, and the period may be the second period.

[0111] It should be noted that FIG7 schematically shows only one Wi-Fi data packet. In practice, multiple Wi-Fi data packets may be transmitted between the AP and the STA using Wi-Fi.

[0112] Optionally, during the execution of step S701 , when the Wi-Fi link is disconnected, the BLE link is disconnected.

[0113] Step S702: The AP determines that the Wi-Fi data packet transmission between the AP and the STA using Wi-Fi transmission is completed.

[0114] Step S703: The AP uses BLE to send a BLE null data packet to the STA. Correspondingly, the STA uses BLE to receive the BLE null data packet from the AP to maintain the Wi-Fi link and the BLE link.

[0115] For example, the AP may periodically use BLE to send BLE null data packets to the STA, and correspondingly, the STA may periodically use BLE to receive BLE null data packets from the AP, and the period may be a first period, wherein the first period is smaller than the second period.

[0116] Optionally, in response, the STA may also use BLE to send a BLE null data packet to the AP, and correspondingly, the AP may also use BLE to receive a BLE null data packet from the STA. In Figure 7, "TX" represents "transmit" and "RX" represents "receive".

[0117] Optionally, during step S703, if the BLE link is disconnected due to, for example, the distance between the STA and the AP becoming greater, the Wi-Fi link is disconnected. At this time, the AP or STA considers the peer device to be offline, i.e., the Wi-Fi link has failed to be maintained.

[0118] When the AP learns that there are Wi-Fi packets to be sent, it can perform the following steps:

[0119] Step S704: The AP sends a wake-up data packet to the STA using BLE. Correspondingly, the STA receives the BLE wake-up data packet from the AP using BLE.

[0120] The wake-up packet is used to trigger the STA to use Wi-Fi to receive Wi-Fi packets from the AP. In other words, the wake-up packet is used by the STA's BLE module to wake up the STA's Wi-Fi module.

[0121] Optionally, in response, the STA may also use BLE to send a BLE null data packet to the AP, and correspondingly, the AP may also use BLE to receive a BLE null data packet from the STA.

[0122] Optionally, the duration between the last time the AP uses BLE to send a BLE null data packet to the STA in step S703 and the time when the AP uses BLE to send a wake-up data packet to the STA in step S704 is the first period. Correspondingly, the duration between the last time the STA uses BLE to receive a BLE null data packet from the AP in step S703 and the time when the STA uses BLE to receive a wake-up data packet from the AP in step S704 is the first period.

[0123] Step S705: Wi-Fi data packets are transmitted between the AP and the STA using Wi-Fi.

[0124] In the embodiment of the present application, step S705 may be the above-mentioned step S701, so that the above-mentioned steps S701 to S704 are repeatedly executed in a loop to achieve the purpose of maintaining the Wi-Fi link.

[0125] In conjunction with Figure 6, taking the first device as an AP, the second device as an STA, the first communication mode as Wi-Fi, the second communication mode as BLE, and the first data packet, the second data packet, and the third data packet as BLE empty data packets as an example, Figure 8 shows a specific example of the short-range wireless communication method provided in an embodiment of the present application. This example can be used in a scenario where the STA only has a working state under the Wi-Fi communication mode. Among them, the relevant descriptions of steps S701 to S703 can refer to the embodiment shown in Figure 7 and are not repeated here. The difference from the embodiment shown in Figure 7 is that when the AP learns that there is a Wi-Fi data packet to be sent, the following steps can be performed:

[0126] Step S804: The AP sends a Wi-Fi data packet to the STA using Wi-Fi. Correspondingly, the STA receives the Wi-Fi data packet from the AP using Wi-Fi.

[0127] In the embodiment of the present application, after step S804, the above steps S701 to S703 may be re-executed to achieve the purpose of maintaining the Wi-Fi link.

[0128] In conjunction with Figure 6 , FIG9 shows a specific example of the short-range wireless communication method provided by an embodiment of the present application, taking the first device as an STA, the second device as an AP, the first communication mode as Wi-Fi, the second communication mode as BLE, and the first data packet, the second data packet, and the third data packet as BLE empty data packets. This example can be used in a scenario where the AP has an active state and a sleep state in the Wi-Fi communication mode, and includes the following steps:

[0129] Step S901: Wi-Fi data packets are transmitted between the STA and the AP using Wi-Fi.

[0130] Optionally, during step S901 , the STA may periodically use BLE to send BLE null data packets to the AP, or the STA may periodically use BLE to receive BLE null data packets from the AP to maintain the BLE link, and the period may be the second period.

[0131] It should be noted that FIG7 schematically shows only one Wi-Fi data packet. In practice, multiple Wi-Fi data packets may be transmitted between the STA and the AP using Wi-Fi.

[0132] Optionally, during the execution of step S901 , when the Wi-Fi link is disconnected, the BLE link is disconnected.

[0133] Step S902: The STA determines that the Wi-Fi data packet transmission between the STA and the AP using Wi-Fi transmission is completed.

[0134] Step S903: The STA uses BLE to send a BLE null data packet to the AP. Correspondingly, the AP uses BLE to receive the BLE null data packet from the STA to maintain the Wi-Fi link and the BLE link.

[0135] For example, the STA may periodically use BLE to send BLE null data packets to the AP, and accordingly, the AP may periodically use BLE to receive BLE null data packets from the STA, where the period may be a first period, wherein the first period is smaller than the second period.

[0136] Optionally, before the STA uses BLE to send a BLE null data packet to the AP, the STA may also use BLE to receive a BLE null data packet from the AP. Accordingly, before the AP uses BLE to receive a BLE null data packet from the STA, the AP may also use BLE to send a BLE null data packet to the STA. In Figure 9, "TX" represents "transmit" and "RX" represents "receive."

[0137] Optionally, during step S903, if the BLE link is disconnected due to, for example, the distance between the STA and the AP becoming greater, the Wi-Fi link is disconnected. At this time, the AP or STA considers the peer device to be offline, i.e., maintaining the Wi-Fi link fails.

[0138] When a STA learns that a Wi-Fi data packet is to be sent, it can perform the following steps:

[0139] Step S904: The STA sends a wake-up data packet to the AP using BLE. Correspondingly, the AP receives the BLE wake-up data packet from the STA using BLE.

[0140] The wake-up packet is used to trigger the AP to use Wi-Fi to receive Wi-Fi packets from STAs. In other words, the wake-up packet is used by the BLE module of the AP to wake up the Wi-Fi module of the AP.

[0141] Optionally, before the AP receives the BLE wake-up data packet from the STA via BLE, the AP may also send a BLE null data packet to the STA via BLE. Accordingly, before the STA sends the wake-up data packet to the AP via BLE, the STA may also receive a BLE null data packet from the AP via BLE.

[0142] Optionally, the duration between the time when the STA last uses BLE to send a BLE null data packet to the AP in step S903 and the time when the STA uses BLE to send a wake-up data packet to the AP in step S904 is the first period. Correspondingly, the duration between the time when the AP last uses BLE to receive a BLE null data packet from the STA in step S903 and the time when the AP uses BLE to receive a wake-up data packet from the STA in step S904 is the first period.

[0143] Step S905: Wi-Fi data packets are transmitted between the STA and the AP using Wi-Fi.

[0144] In the embodiment of the present application, step S905 may be the above-mentioned step S901, so that the above-mentioned steps S901 to S904 are repeatedly executed in a loop to achieve the purpose of maintaining the Wi-Fi link.

[0145] In conjunction with Figure 6, taking the first device as STA, the second device as AP, the first communication mode as Wi-Fi, the second communication mode as BLE, and the first data packet, the second data packet and the third data packet as BLE empty data packets as an example, Figure 10 shows a specific example of the short-range wireless communication method provided in an embodiment of the present application. This example can be used in a scenario where the AP only has a working state under the Wi-Fi communication mode. Among them, the relevant descriptions of steps S901 to S903 can refer to the embodiment shown in Figure 9 and are not repeated here. The difference from the embodiment shown in Figure 9 is that when the STA learns that there is a Wi-Fi data packet to be sent, the following steps can be performed:

[0146] Step S1004: The STA sends a Wi-Fi data packet to the AP using Wi-Fi. Correspondingly, the AP receives the Wi-Fi data packet from the STA using Wi-Fi.

[0147] In the embodiment of the present application, after step S1004, the above steps S901 to S903 may be re-executed to achieve the purpose of maintaining the Wi-Fi link.

[0148] Among them, since the first device and the second device in the above embodiment can both adopt the architecture of the communication device 400 shown in Figure 4, the action of the first device in the above embodiment can be performed by the processor 401 in the communication device 400 shown in Figure 4 calling the application code stored in the memory 403 to instruct the first device to execute, and the action of the second device in the above embodiment can be performed by the processor 401 in the communication device 400 shown in Figure 4 calling the application code stored in the memory 403 to instruct the second device to execute. This embodiment does not impose any restrictions on this.

[0149] It can be understood that in the above embodiments, the methods and / or steps implemented by the first device can also be implemented by components (such as chips or circuits) that can be used for the first device; the methods and / or steps implemented by the second device can also be implemented by components (such as chips or circuits) that can be used for the second device.

[0150] The above description primarily describes the solutions provided by the embodiments of the present application from the perspective of interaction between various network elements. Accordingly, the embodiments of the present application also provide a communication device for implementing the various methods described above. The communication device may be the first device in the method embodiments described above, or a device including the first device, or a component usable for the first device; alternatively, the communication device may be the second device in the method embodiments described above, or a device including the second device, or a component usable for the second device. It will be understood that, to implement the aforementioned functions, the communication device includes hardware structures and / or software modules corresponding to the respective functions. Those skilled in the art will readily appreciate that, in conjunction with the various exemplary units and algorithm steps described in the embodiments disclosed herein, the present application can be implemented in hardware or a combination of hardware and computer software. Whether a function is implemented in hardware or in a hardware-driven manner by computer software depends on the specific application and design constraints of the technical solution. Professionals may use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this application.

[0151] In the embodiment of the present application, the functional modules of the communication device can be divided according to the above method embodiment. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. In actual implementation, there may be other division methods.

[0152] 11 shows a schematic structural diagram of a communication device 11. The communication device 11 includes a transmitter 111 and a receiver 112, which can be collectively referred to as a transceiver unit for implementing transceiver functions, such as a transceiver circuit, a transceiver, or a communication interface.

[0153] Taking the communication device 11 as the first device in the above method embodiment as an example, the transmitter 111 and the receiver 112 are used to transmit the first business data packet to the second device using the first communication method; the transmitter 111 is also used to send the first data packet to the second device using the second communication method, wherein the first data packet is used to maintain the first communication link corresponding to the first communication method and the second communication link corresponding to the second communication method; when transmitting the same data packet, the power consumption generated by using the first communication method is higher than the power consumption generated by using the second communication method.

[0154] In one possible implementation, the transmitter 111 is also used to send a second data packet to the second device using a second communication method during the process of transmitting a first business data packet between the transmitter 111 and the receiver 112 and the second device using a first communication method, wherein the second data packet is used to maintain a second communication link corresponding to the second communication method.

[0155] In a possible implementation, a sending period of the first data packet is a first period, and a sending period of the second data packet is a second period, wherein the first period is smaller than the second period.

[0156] In one possible implementation, the transmitter 111 is also used to send a wake-up data packet to the second device using a second communication method; wherein the wake-up data packet is used to trigger the second device to receive a service data packet from the transmitter 111 using a first communication method; the transmitter 111 is also used to send a second service data packet to the second device using the first communication method.

[0157] In a possible implementation, the transmitter 111 is further configured to send a second service data packet to the second device using the first communication mode.

[0158] In one possible implementation, the transmitter 111 is also used to send a third data packet to the second device using the second communication method while sending a second business data packet to the second device using the first communication method, wherein the third data packet is used to maintain the second communication link corresponding to the second communication method.

[0159] In a possible implementation, a sending period of the first data packet is a first period, and a sending period of the third data packet is a second period, wherein the first period is smaller than the second period.

[0160] In one possible implementation, during the process of transmitting a first business data packet between the transmitter 111 and the receiver 112 and the second device using the first communication mode, when the first communication link corresponding to the first communication mode is disconnected, the second communication link corresponding to the second communication mode is disconnected; or, after the transmission of the first business data packet between the transmitter 111 and the receiver 112 and the second device using the first communication mode is completed and before the transmission of the second business data packet, when the second communication link corresponding to the second communication mode is disconnected, the first communication link corresponding to the first communication mode is disconnected.

[0161] Taking the communication device 11 as the second device in the above method embodiment as an example, the transmitter 111 and the receiver 112 are used to transmit the first business data packet to the first device using the first communication method; the receiver 112 is also used to receive the first data packet from the first device using the second communication method, wherein the first data packet is used to maintain the first communication link corresponding to the first communication method and the second communication link corresponding to the second communication method; when transmitting the same data packet, the power consumption generated by using the first communication method is higher than the power consumption generated by using the second communication method.

[0162] In one possible implementation, the receiver 112 is also used to receive a second data packet from the first device using a second communication method during the process of transmitting a first business data packet between the transmitter 111 and the receiver 112 and the first device using a first communication method, wherein the second data packet is used to maintain a second communication link corresponding to the second communication method.

[0163] In a possible implementation, a receiving period of the first data packet is a first period, and a receiving period of the second data packet is a second period, wherein the first period is smaller than the second period.

[0164] In one possible implementation, the receiver 112 is also used to receive a wake-up data packet from the first device using a second communication method; wherein the wake-up data packet is used to trigger the receiver 112 to receive a service data packet from the first device using a first communication method; the receiver 112 is also used to receive a second service data packet from the first device using the first communication method.

[0165] In a possible implementation, the receiver 112 is further configured to receive a second service data packet from the first device using the first communication method.

[0166] In one possible implementation, the receiver 112 is also used to receive a third data packet from the first device using the second communication method while receiving a second business data packet from the first device using the first communication method, wherein the third data packet is used to maintain the second communication link corresponding to the second communication method.

[0167] In a possible implementation, a receiving period of the first data packet is a first period, and a receiving period of the third data packet is a second period, wherein the first period is smaller than the second period.

[0168] In one possible implementation, during the process of transmitting a first business data packet using the first communication mode between the transmitter 111 and the receiver 112 and the first device, when the first communication link corresponding to the first communication mode is disconnected, the second communication link corresponding to the second communication mode is disconnected; or, after the transmission of the first business data packet using the first communication mode between the transmitter 111 and the receiver 112 and the first device is completed and before the transmission of the second business data packet, when the second communication link corresponding to the second communication mode is disconnected, the first communication link corresponding to the first communication mode is disconnected.

[0169] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0170] In this embodiment, the communication device 11 is presented in the form of various functional modules divided in an integrated manner. The "module" here can refer to a specific ASIC, circuit, processor and memory that executes one or more software or firmware programs, integrated logic circuit, and / or other devices that can provide the above functions.

[0171] When the communication device 11 is the first device or the second device in the above method embodiment, in a simple embodiment, those skilled in the art may imagine that the communication device 11 may take the form of the communication device 400 shown in FIG. 4 .

[0172] For example, the processor 401 or 407 in the communication device 400 shown in Figure 4 can cause the communication device 400 to execute the short-range wireless communication method in the above method embodiment by calling the computer-executable instructions stored in the memory 403. Specifically, the functions / implementation processes of the transmitter 111 and / or receiver 112 in Figure 11 can be implemented by a communication module connected via the communication interface 404 in Figure 4.

[0173] Since the communication device 11 provided in this embodiment can execute the above-mentioned short-range wireless communication method, the technical effects that can be obtained can refer to the above-mentioned method embodiments and will not be repeated here.

[0174] It should be noted that one or more of the above modules or units can be implemented by software, hardware, or a combination of the two. When any of the above modules or units is implemented by software, the software exists in the form of computer program instructions and is stored in a memory, and a processor can be used to execute the program instructions and implement the above method flow. The processor can be built into an SoC (system on chip) or an ASIC, or it can be an independent semiconductor chip. In addition to the core used to execute software instructions to perform calculations or processing within the processor, it can further include necessary hardware accelerators, such as a field programmable gate array (FPGA), a PLD (programmable logic device), or a logic circuit that implements dedicated logic operations.

[0175] When the above modules or units are implemented in hardware, the hardware can be any one or any combination of a CPU, a microprocessor, a digital signal processing (DSP) chip, a microcontroller unit (MCU), an artificial intelligence processor, an ASIC, a SoC, an FPGA, a PLD, a dedicated digital circuit, a hardware accelerator or a non-integrated discrete device, which can run the necessary software or not rely on the software to execute the above method flow.

[0176] Optionally, an embodiment of the present application further provides a chip system, comprising: at least one processor and an interface, wherein the at least one processor is coupled to a memory via the interface, and when the at least one processor executes a computer program or instruction in the memory, the method in any of the above method embodiments is executed. In one possible implementation, the communication device also includes a memory. Optionally, the chip system can be composed of a chip, or can include a chip and other discrete devices, which is not specifically limited in the embodiment of the present application.

[0177] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, 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 process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. 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 includes one or more media integrated therein. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).

[0178] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art can understand and implement other changes to the disclosed embodiments by reviewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple situations. A single processor or other unit can implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.

[0179] Although the present application has been described with reference to specific features and embodiments thereof, it is apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely illustrative of the present application as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, the present application is intended to include such modifications and variations as fall within the scope of the claims of the present application and their equivalents.

Claims

1. A short-range wireless communication method, characterized in that: include: The first service data packet is transmitted between the first device and the second device using a first communication method; The first device sends a first data packet to the second device using a second communication method, wherein the first data packet is used to maintain a first communication link corresponding to the first communication method and a second communication link corresponding to the second communication method; when transmitting the same data packet, the power consumption generated by using the first communication method is higher than the power consumption generated by using the second communication method.

2. The method according to claim 1, characterized in that The method further comprises: During the process of transmitting the first service data packet between the first device and the second device using the first communication method, the first device sends a second data packet to the second device using the second communication method, wherein the second data packet is used to maintain a second communication link corresponding to the second communication method.

3. The method according to claim 2, characterized in that The sending period of the first data packet is a first period, and the sending period of the second data packet is a second period, wherein the first period is smaller than the second period.

4. The method according to any one of claims 1 to 3, characterized in that After the first device sends the first data packet to the second device using the second communication mode, the method further includes: The first device sends a wake-up data packet to the second device using the second communication method; wherein the wake-up data packet is used to trigger the second device to receive a service data packet from the first device using the first communication method; The first device sends a second service data packet to the second device using the first communication method.

5. The method according to any one of claims 1 to 3, characterized in that After the first device sends the first data packet to the second device using the second communication mode, the method further includes: The first device sends a second service data packet to the second device using the first communication method.

6. The method according to any one of claims 1 to 5, characterized in that During transmission of the first service data packet between the first device and the second device using the first communication mode, if the first communication link corresponding to the first communication mode is disconnected, the second communication link corresponding to the second communication mode is disconnected; or After the first business data packet transmitted between the first device and the second device using the first communication mode is completed and before the second business data packet is transmitted, if the second communication link corresponding to the second communication mode is disconnected, the first communication link corresponding to the first communication mode is disconnected.

7. A short-range wireless communication method, characterized in that: include: The second device and the first device transmit a first service data packet using a first communication method; The second device receives a first data packet from the first device using a second communication method, wherein the first data packet is used to maintain a first communication link corresponding to the first communication method and a second communication link corresponding to the second communication method; when transmitting the same data packet, the power consumption generated by using the first communication method is higher than the power consumption generated by using the second communication method.

8. The method according to claim 7, characterized in that The method further comprises: During the process of transmitting the first service data packet between the first device and the second device using the first communication method, the second device receives a second data packet from the first device using the second communication method, wherein the second data packet is used to maintain a second communication link corresponding to the second communication method.

9. The method according to claim 8, characterized in that The receiving period of the first data packet is a first period, and the receiving period of the second data packet is a second period, wherein the first period is smaller than the second period.

10. The method according to any one of claims 7 to 9, characterized in that After the second device receives the first data packet from the first device using the second communication mode, the method further includes: The second device receives a wake-up data packet from the first device using the second communication method; wherein the wake-up data packet is used to trigger the second device to receive a service data packet from the first device using the first communication method; The second device receives a second service data packet from the first device using the first communication method.

11. The method according to any one of claims 7 to 9, characterized in that After the second device receives the first data packet from the first device using the second communication mode, the method further includes: The second device receives a second service data packet from the first device using the first communication method.

12. The method according to any one of claims 7 to 11, characterized in that During transmission of the first service data packet between the second device and the first device using the first communication mode, if the first communication link corresponding to the first communication mode is disconnected, the second communication link corresponding to the second communication mode is disconnected; or After the transmission of the first business data packet between the second device and the first device using the first communication mode is completed and before the transmission of the second business data packet, if the second communication link corresponding to the second communication mode is disconnected, the first communication link corresponding to the first communication mode is disconnected.

13. A communication device, characterized in that: The communication device includes: a transmitter and a receiver; The transmitter and the receiver are configured to transmit a first service data packet to the second device using a first communication method; The transmitter is further used to send a first data packet to the second device using a second communication method, wherein the first data packet is used to maintain a first communication link corresponding to the first communication method and a second communication link corresponding to the second communication method; when the same data packet is transmitted, the power consumption generated by using the first communication method is higher than the power consumption generated by using the second communication method.

14. A communication device, characterized in that: The communication device includes: a transmitter and a receiver; The transmitter and the receiver are configured to transmit a first service data packet to the first device using a first communication method; The receiver is further used to receive a first data packet from the first device using a second communication method, wherein the first data packet is used to maintain a first communication link corresponding to the first communication method and a second communication link corresponding to the second communication method; when transmitting the same data packet, the power consumption generated by using the first communication method is higher than the power consumption generated by using the second communication method.

15. A communication device, characterized in that: include: A memory and a processor coupled to the memory, the memory being used to store a program, and the processor being used to execute the program stored in the memory; when the communication device is running, the processor runs the program so that the communication device executes the method described in any one of claims 1 to 6; or, when the communication device is running, the processor runs the program so that the communication device executes the method described in any one of claims 7 to 12.

16. A computer-readable storage medium, characterized in that A computer program is stored thereon, which, when executed by a computer, enables the computer to execute the method according to any one of claims 1 to 6; or, when executed by a computer, enables the computer to execute the method according to any one of claims 7 to 12.

17. A computer program product, characterized in that When the computer is run on a computer, the computer can execute the method according to any one of claims 1 to 6; or, when the computer is run on a computer, the computer can execute the method according to any one of claims 7 to 12.

18. A communication system, characterized in that: The invention comprises a first device for executing the method according to any one of claims 1 to 6, and a second device for executing the method according to any one of claims 7 to 12.