A communication method, apparatus, computer device, and storage medium

By determining time slices and execution order in WiFi and BLE services and configuring resource allocation schemes, the problem of mutual interference between WiFi and BLE in the 2.4GHz band was solved, achieving the effect of improving bandwidth and data transmission rate in a single antenna design.

CN115866762BActive Publication Date: 2026-01-30BEIJING ESWIN COMPUTING TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211249911.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-12
Publication Date
2026-01-30
Estimated Expiration
2042-10-12

AI Technical Summary

Technical Problem

WiFi and BLE interfere with each other when operating in the 2.4GHz band, causing them to malfunction in communication scenarios. Existing technologies such as Bluetooth's adaptive frame skipping technology are suitable for multi-antenna scenarios but are costly, while time-division multiplexing strategies sacrifice bandwidth in single-antenna designs, resulting in low data transmission efficiency.

Method used

By determining the time slices and execution order of WiFi and BLE services, configuring resource allocation schemes, and utilizing adaptive service scenario coexistence strategies and priority preemption strategies to use radio frequency resources in non-time slices, interference can be avoided and bandwidth and data transmission rates can be improved.

Benefits of technology

In single-antenna design, by rationally planning the use of radio frequency resources, mutual interference between WiFi and BLE is avoided, thereby improving bandwidth and data transmission rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115866762B_ABST
    Figure CN115866762B_ABST
Patent Text Reader

Abstract

This disclosure provides a communication method, apparatus, computer device, and storage medium, belonging to the field of communication technology. The communication method includes: determining a service combination in response to WiFi service scenario information and Bluetooth Low Energy (BLE) service scenario information; determining time slices for the WiFi service and BLE service in the service combination, designated as a first time slice and a second time slice, respectively, according to a pre-configured coexistence strategy; determining a first execution order for the first and second time slices based on a pre-set first preset execution order of the WiFi service and BLE service in the service combination; configuring resource configuration schemes for the WiFi service and BLE service under the first and second time slices; configuring and starting a time slice timer according to the first and second time slices; and configuring radio frequency resources for the WiFi service and BLE service according to the first execution order of the first and second time slices and the resource configuration scheme.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure belongs to the field of communication technology, and specifically relates to a communication method, apparatus, computer equipment, and storage medium. Background Technology

[0002] Currently, wireless communication electronic products with WiFi and Bluetooth Low Energy (BLE) capabilities are becoming increasingly widespread. Both operate in the 2.4GHz frequency band, which is commonly used in industrial, scientific, and medical (ISM) institutions. Therefore, when WiFi and BLE operate simultaneously, they will inevitably interfere with each other, causing them to malfunction in their respective communication scenarios. Summary of the Invention

[0003] This disclosure aims to at least solve one of the technical problems existing in the prior art, and to provide a communication method, apparatus, computer device and storage medium.

[0004] Firstly, the technical solution adopted to solve the technical problem of this disclosure is a communication method, including:

[0005] Based on WiFi service scenario information and Bluetooth Low Energy (BLE) service scenario information, a service combination is determined.

[0006] Based on the pre-configured coexistence strategy, the time slices for WiFi and BLE services in the service combination are determined as the first time slice and the second time slice, respectively.

[0007] Based on the first preset execution order of the WiFi service and the BLE service in the pre-set service combination, the first execution order of the first time slice and the second time slice is determined;

[0008] Configure resource configuration schemes for the WiFi service and the BLE service under the first time slice and the second time slice;

[0009] Configure a time slice timer according to the first time slice and the second time slice, and start the time slice timer;

[0010] According to the first execution order of the first time slice and the second time slice, and in accordance with the resource configuration scheme, radio frequency resources are configured for the WiFi service and the BLE service.

[0011] In some embodiments, the service portfolio includes multiple groups;

[0012] The step of determining the time slices for WiFi and BLE services in the service combination according to a pre-configured coexistence strategy includes:

[0013] Based on the coexistence strategy, determine the coexistence period and time slice percentage for each of the aforementioned business combinations;

[0014] Based on the coexistence period and time slice ratio of each group, the time slices of the WiFi service and the BLE service in the corresponding group are determined.

[0015] In some embodiments, after determining the time slices for the corresponding group of WiFi services and BLE services based on the coexistence period and the time slice percentage, the method further includes:

[0016] Based on the coexistence period and time slice ratio of each group, the second execution order of the business combinations in each group is determined;

[0017] In accordance with the second execution order, select a target coexistence period from each group of coexistence periods, configure a period timer, and simultaneously start the period timer and the time slice timer.

[0018] In some embodiments, determining the second execution order of each group of service combinations based on the coexistence period and the time slice percentage includes:

[0019] If the coexistence periods of each group are different, then the first order of the coexistence periods of each group from long to short is determined according to the duration of the coexistence period of each group, and this order is used as the second execution order of the business combination of each group.

[0020] If multiple service combinations with the same coexistence period exist, then for service combinations with different coexistence periods, a second order of coexistence periods from longest to shortest is determined. For the remaining service combinations with the same coexistence period, a first time slice and a second time slice for each group are determined based on the time slice ratio and the coexistence period. Based on the longest time slice among the first and second time slices in each group, a third order of the longest time slices in each group is determined from longest to shortest, thereby determining the second execution order of each service combination.

[0021] In some embodiments, the service portfolio includes multiple groups;

[0022] After configuring radio frequency resources for the WiFi service and the BLE service according to the first execution order of the first time slice and the second time slice, and according to the resource configuration scheme, the method further includes:

[0023] After the periodic timer determines the target coexistence period, in accordance with the second execution order, a new target coexistence period is selected from the remaining groups of coexistence periods other than the target coexistence period to configure the periodic timer, and the periodic timer and the time slice timer are restarted.

[0024] In some embodiments, configuring the resource configuration schemes for the WiFi service and the BLE service under the first time slice and the second time slice includes:

[0025] Based on the coexistence strategy, a second preset execution order of sub-businesses in the business combination is determined;

[0026] According to the second preset execution order, configure the resource configuration schemes for the WiFi service and the BLE service in the first time slice and the second time slice.

[0027] In some embodiments, the WiFi service corresponding to the WiFi service scenario information includes at least one of the following: a first idle scenario, a first scanning scenario, a first connecting scenario, a first connected scenario, and a beacon frame sending scenario;

[0028] The BLE service scenarios corresponding to the BLE service scenario information include at least one of the following: second idle scenario, broadcast scenario, second scanning scenario, second connection in progress scenario, second connection completed scenario, BLE wireless mesh network idle scenario, BLE mesh network configuration scenario, and BLE mesh data transmission scenario.

[0029] Secondly, this disclosure also provides a communication device, including a receiving module, a query module, a configuration module, a timer starting module, and an allocation module;

[0030] The receiving module is configured to determine the service combination in response to WiFi service scenario information and Bluetooth Low Energy (BLE) service scenario information.

[0031] The query module is configured to determine the time slices of the WiFi service and the BLE service in the service combination, namely the first time slice and the second time slice, according to a pre-configured coexistence strategy; and to determine the first execution order of the first time slice and the second time slice according to a pre-set first preset execution order of the WiFi service and the BLE service in the service combination.

[0032] The configuration module is configured to configure resource configuration schemes for the WiFi service and the BLE service under the first time slice and the second time slice; and to configure a time slice timer according to the first time slice and the second time slice.

[0033] The timer startup module is configured to start the time slice timer;

[0034] The allocation module is configured to configure radio frequency resources for the WiFi service and the BLE service according to the first execution order of the first time slice and the second time slice, and according to the resource configuration scheme.

[0035] In some embodiments, the communication device further includes a WiFi protocol stack and a BLE protocol stack;

[0036] The WiFi protocol stack is configured to send WiFi service scenario information to the receiving module in response to the WiFi service scenario status.

[0037] The BLE protocol stack is configured to send BLE service scenario information to the receiving module in response to the BLE service scenario status.

[0038] Thirdly, embodiments of this disclosure also provide a computer device, including: a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor communicates with the memory via the bus, and when the machine-readable instructions are executed by the processor, the steps of the communication method as described in any of the above embodiments are performed.

[0039] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium storing a computer program that, when executed by a processor, performs the steps of the communication method as described in any of the above embodiments.

[0040] For a description of the effects of the aforementioned communication device, computer equipment, and computer-readable storage medium, please refer to the description of the aforementioned communication method; it will not be repeated here.

[0041] The communication method, apparatus, computer equipment, and storage medium provided in this disclosure comprehensively consider the scenario combinations of multiple WiFi services and multiple BLE services, and design an adaptive service scenario coexistence strategy. This coexistence strategy includes pre-defined usage methods of radio frequency resources for WiFi and BLE services. After determining the service combination of WiFi and BLE services, the time slices of WiFi and BLE services in the service combination can be quickly determined according to the coexistence strategy. Furthermore, considering that some services have real-time requirements, this disclosure also requires the use of radio frequency resources in non-time slices. Therefore, resource configuration schemes for WiFi and BLE services in the first and second time slices are configured. This resource configuration scheme can be understood as a priority preemption strategy for WiFi or BLE services in non-time slices. According to the resource configuration scheme, WiFi and BLE services can use radio frequency resources in non-time slices, avoiding mutual interference between BLE and WiFi while improving the bandwidth and data transmission rate of WiFi and BLE. Attached Figure Description

[0042] Figure 1 A flowchart illustrating a communication method provided in an embodiment of this disclosure;

[0043] Figure 2 A detailed flowchart of a communication method provided in this embodiment of the disclosure;

[0044] Figure 3 A schematic diagram of a communication device provided in an embodiment of this disclosure;

[0045] Figure 4 This is a schematic diagram of the structure of a computer device provided in an embodiment of this disclosure. Detailed Implementation

[0046] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. The components of the embodiments of this disclosure described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.

[0047] Unless otherwise defined, the technical or scientific terms used in this disclosure shall have the ordinary meaning understood by one of ordinary skill in the art to which this disclosure pertains. The terms “first,” “second,” and similar terms used in this disclosure do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Similarly, the terms “an,” “a,” or “the,” and similar terms do not indicate a quantity limitation, but rather indicate the presence of at least one. The terms “including,” “comprising,” or “containing,” and similar terms mean that the element or object preceding the word encompasses the elements or objects listed following the word and their equivalents, without excluding other elements or objects. The terms “connected,” “linked,” or similar terms are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. The terms “upper,” “lower,” “left,” and “right,” etc., are used only to indicate relative positional relationships, and these relative positional relationships may change accordingly when the absolute position of the described objects changes.

[0048] In this disclosure, "multiple or several" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0049] In related technologies, WiFi & BLE dual-mode chips typically employ Bluetooth's Adaptive Frequency Hopping (AFH) technology to avoid channel interference. The principle is that BLE actively skips the channel currently used by WiFi to avoid interference. However, this method is often suitable for multi-antenna applications, resulting in high hardware costs. To further reduce costs, WiFi & BLE dual-mode chips usually adopt a single-antenna design. Traditionally, to avoid mutual interference between BLE and WiFi in a single-antenna chip, Time Division Multiplexing (TDM) is commonly used. However, TDM often sacrifices the bandwidth of both BLE and WiFi, thus reducing data transmission efficiency, especially in multi-service concurrent scenarios. Some services have high bandwidth requirements, while others have high real-time requirements, low bandwidth utilization, and even lower data transmission rates. Therefore, when multiple services coexist, relying solely on a simple TDM strategy cannot achieve good coexistence.

[0050] Based on this, embodiments of this disclosure provide a communication method. Specifically, in response to WiFi service scenario information and Bluetooth Low Energy (BLE) service scenario information, a service combination is determined; according to a pre-configured coexistence strategy, time slices for the WiFi service and BLE service in the service combination are determined, namely a first time slice and a second time slice; according to a pre-set first preset execution order of the WiFi service and BLE service in the service combination, a first execution order of the first time slice and the second time slice is determined; a resource configuration scheme for the WiFi service and BLE service under the first time slice and the second time slice is configured; a time slice timer is configured according to the first time slice and the second time slice, and the time slice timer is started; radio frequency resources are configured for the WiFi service and the BLE service according to the first execution order of the first time slice and the second time slice and according to the resource configuration scheme.

[0051] This disclosure comprehensively considers the scenario combinations of multiple WiFi services and multiple BLE services, and designs an adaptive service scenario coexistence strategy. This coexistence strategy includes pre-defined usage methods of radio frequency resources for WiFi and BLE services. After determining the service combination of WiFi and BLE services, the time slices of WiFi and BLE services in the service combination can be quickly determined according to the coexistence strategy. Furthermore, considering that some services have real-time requirements, this disclosure also requires the use of radio frequency resources in non-time slices. Therefore, a resource configuration scheme for WiFi and BLE services in the first and second time slices is configured. This resource configuration scheme can be understood as a priority preemption strategy for WiFi or BLE services in non-time slices. According to the resource configuration scheme, WiFi and BLE services can use radio frequency resources in non-time slices, avoiding mutual interference between BLE and WiFi while improving the bandwidth and data transmission rate of WiFi and BLE.

[0052] To facilitate understanding, some specific terms provided in the embodiments of this disclosure will be described in detail first:

[0053] 1. WiFi is a wireless network communication technology that allows network-connectable devices to connect to each other wirelessly. WiFi operates at a frequency of 2.4 GHz, which is divided into 13 overlapping and staggered 22 MHz wireless carrier channels with a center frequency interval of 5 MHz.

[0054] 2. Bluetooth Low Energy (BLE), also known as Bluetooth Low Energy, is a personal area network (PAN) technology. Bluetooth Low Energy is not backward compatible with the existing Bluetooth protocol (hereinafter referred to as Classic Bluetooth). Bluetooth Low Energy and Classic Bluetooth use the same 2.4 GHz radio frequency, so dual-mode devices can share the same antenna.

[0055] 3. ISM (Industrial, Scientific, Medical) is defined by the International Telecommunication Union Radiocommunication Sector (ITU-R). The Chinese translations are Industrial, Scientific, and Medical, respectively. Therefore, as the name suggests, ISM bands are frequency bands allocated by various countries primarily for use by industrial, scientific, and medical institutions.

[0056] 4. The WiFi & BLE dual-mode chip can be a system-on-chip (SOC) chip that integrates both WiFi and BLE protocol stacks. An SOC chip is an integrated circuit with a specific purpose. In this embodiment, the SOC enables communication between the Central Processing Unit (CPU) and the BLE chip.

[0057] 5. BLE mesh relies on Bluetooth Low Energy (BLE), which is the wireless communication protocol stack used by Bluetooth mesh. Bluetooth has three communication modes: one-to-one, many-to-one, and many-to-many. BLE mesh uses a many-to-many communication mode, allowing all devices in the mesh network to communicate with each other.

[0058] To facilitate understanding of this embodiment, a communication method disclosed in this disclosure will first be described in detail. The execution subject of the communication method provided in this disclosure is generally a device with certain computing capabilities, such as a WiFi & BLE dual-mode chip. In some possible implementations, this communication method can be implemented by a processor calling computer-readable instructions stored in memory.

[0059] The following describes in detail a communication method provided in this disclosure, using a WiFi & BLE dual-mode chip as the execution subject. Figure 1 A flowchart of a communication method provided in an embodiment of this disclosure, such as... Figure 1 As shown, steps S11 to S16 are included:

[0060] S11. In response to WiFi service scenario information and Bluetooth Low Energy (BLE) service scenario information, determine the service combination.

[0061] In this step, the WiFi service scenario information can be information sent based on the WiFi protocol stack in the WiFi & BLE dual-mode chip. The WiFi service scenario information may include, for example, WiFi service scenario data information, where the WiFi service may include at least one of the following: a first idle scenario, a first scanning scenario, a first connecting scenario, a first connected scenario, and a beacon frame transmission scenario. Similarly, the BLE service scenario information can be information sent based on the BLE protocol stack in the WiFi & BLE dual-mode chip. The BLE service scenario information may include, for example, BLE service scenario data information, where the BLE service scenario may include at least one of the following: a second idle scenario, a broadcast scenario, a second scanning scenario, a second connecting scenario, a second connected scenario, a BLE mesh idle scenario, a BLE mesh network configuration scenario, and a BLE mesh data transmission scenario.

[0062] The scenarios are categorized as follows: First Idle Scenario: WiFi in an idle state; First Scan Scenario: WiFi in a scanning state before requesting connection to an external device; First Connection Scenario: WiFi in the process of connecting with an external electronic device; Post-Connection Scenario: WiFi and an external electronic device establishing a communication connection; Sending Beacon Frame Scenario: WiFi sending beacon frames. Similarly, Second Hole Scenario: BLE in an idle state; Broadcast Scenario: BLE sending beacon frames; Second Scan Scenario: BLE in a scanning state before requesting connection to an external device; Second Connection Scenario: BLE and an external electronic device in the process of connecting; Post-Connection Scenario: BLE and an external electronic device establishing a communication connection; BLE Mesh Idle Scenario: BLE Mesh in a hole state; BLE Mesh Network Configuration Scenario: BLE Mesh in the process of configuring the network; BLE Mesh Data Transmission Scenario: BLE Mesh data transmission.

[0063] Specifically, in response to WiFi service scenario information and BLE service scenario information, WiFi services are extracted from the WiFi service scenario information, and BLE services are extracted from the BLE service scenario information. These extracted services are then combined to determine a service combination that includes both WiFi and BLE services. Here, the WiFi service scenario information may contain one or more WiFi services, and the BLE service scenario information may contain one or more BLE services. Therefore, the determined service combination may be one or more combinations.

[0064] S12. Based on the pre-configured coexistence policy, determine the time slices for WiFi service and BLE service in the service combination, which are the first time slice and the second time slice, respectively.

[0065] Here, the coexistence strategy refers to the pre-defined usage of radio frequency resources for WiFi and BLE services. The first time slice represents the time slice for the WiFi service, and the second time slice represents the time slice for the BLE service.

[0066] In some embodiments, the coexistence strategy may include, in actual testing scenarios, the time slices of WiFi services and BLE services after combining various WiFi services with various BLE services. Specifically, the time slices of WiFi services and BLE services in the service combination can be determined based on the time slices of WiFi services and BLE services in the coexistence strategy.

[0067] In other embodiments, the coexistence strategy may include, in actual testing scenarios, the coexistence period and time slice ratio of various WiFi services combined with various BLE services, and the resulting combinations of WiFi and BLE services. Specifically, the time slices for WiFi and BLE services in the service combination can be determined based on the various coexistence periods and time slice ratios in the coexistence strategy. Here, the duration of a time slice = coexistence period × time slice ratio.

[0068] S13. Determine the first execution order of the first time slice and the second time slice according to the first preset execution order of WiFi service and BLE service in the preset service combination.

[0069] To improve bandwidth and data transmission rates, the execution priority of WiFi and BLE services in a service combination can be determined based on the actual service scenario. Therefore, this embodiment pre-sets a first preset execution order for WiFi and BLE services under actual service scenarios, which is also the execution order of services in the event of multiple concurrent services. For the determined WiFi and BLE services in the service combination, the first execution order of the first time slice corresponding to the WiFi service and the second time slice corresponding to the BLE service can be directly obtained according to the first preset execution order.

[0070] S14. Configure resource configuration schemes for WiFi and BLE services in the first and second time slices.

[0071] For a set of business scenarios involving WiFi and BLE services, considering that some WiFi and BLE services have real-time requirements, that is, they also need to use radio frequency resources even outside their own time slices, the resource configuration schemes for WiFi and BLE services in the first and second time slices are configured according to the pre-set priority preemption strategy.

[0072] Priority preemption strategy is part of coexistence strategy. In some embodiments, a second preset execution order of sub-services in a service combination can be determined according to the coexistence strategy; then, resource configuration schemes for WiFi and BLE services in the first and second time slots are configured according to the second preset execution order. Here, the coexistence strategy also includes priority preemption information of sub-services in WiFi and BLE services after various WiFi services are combined with various BLE services in actual test scenarios. Specifically, the second preset execution order of sub-services of WiFi and BLE services in the service combination can be determined according to the priority preemption information in the coexistence strategy. It can be understood that the second preset execution order is either preempted by a sub-service in the BLE service scenario during the execution of the first time slot, or preempted by a sub-service in the WiFi service scenario during the execution of the second time slot. Therefore, configuring resource configuration schemes for WiFi and BLE services in the first and second time slots according to the second preset execution order allows for flexible switching of higher-priority services to prioritize the use of radio frequency resources. Here, in this embodiment of the disclosure, a coexistence strategy is pre-set in a test scenario to utilize the coexistence strategy to configure the resource configuration scheme of the service, which can improve the bandwidth and data transmission rate of WiFi and BLE.

[0073] It should be noted that after the sub-service that was preempted in the time slice ends, the system will immediately jump back to the service that was originally scheduled to be executed in that time slice and continue to execute.

[0074] S15. Configure the time slice timer according to the first time slice and the second time slice, and start the time slice timer.

[0075] The WiFi & BLE dual-mode chip has a time slice timer to time the duration of the first and second time slices.

[0076] After configuring the first and second time slices to the time slice timer, the time slice timer is started. The time slice timer determines the priority time slice to count based on the first execution order of the first and second time slices. For example, if the first execution order prioritizes the execution of the WiFi service in the first time slice, then the time slice timer is started, and the time slice timer begins counting according to the duration of the first time slice.

[0077] S16. Configure radio frequency resources for WiFi and BLE services according to the first execution order of the first time slice and the second time slice, and according to the resource configuration scheme.

[0078] Continuing with step S15 above, after the time slice timer starts timing according to the first execution order, radio frequency resources can be configured for WiFi and BLE services according to the resource configuration scheme.

[0079] Taking the first time slice, where WiFi is prioritized for execution, as an example, radio frequency (RF) resources are configured first for the WiFi service. Simultaneously, based on the resource configuration scheme, it is determined whether there are any higher-priority sub-services within the BLE service. If so, RF resources are configured for the BLE service according to the resource configuration scheme. After the sub-service finishes execution, the process immediately switches back to the WiFi service to continue executing the remaining parts of the service. Here, the entire RF resource configuration process within the first time slice is carried out in an orderly manner according to the resource configuration scheme, flexibly switching to prioritize higher-priority services to use RF resources, thereby improving the bandwidth and data transmission rate of both WiFi and BLE.

[0080] The embodiments disclosed herein can adopt a single-antenna design, that is, use a single-antenna WiFi & BLE dual-mode chip as the execution entity, and use a pre-defined coexistence strategy to rationally plan the use of radio frequency resources by WiFi and BLE services, which can improve the bandwidth and data transmission rate of WiFi and BLE while avoiding mutual interference between BLE and WiFi.

[0081] Those skilled in the art will understand that, in the above-described method of the specific implementation, the order in which each step is written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.

[0082] In some embodiments, the service portfolio includes one or more groups. When the service portfolio includes one group, for step S12, the time slices for the WiFi service and the BLE service in the service portfolio, i.e., the first time slice and the second time slice, are directly retrieved from the coexistence policy. Then, steps S12 to S16 are executed sequentially, allowing for flexible configuration of radio frequency resources for the WiFi service and the BLE service.

[0083] When the service combination includes multiple groups, for step S12, specifically, the coexistence period and time slice ratio of each service combination can be determined according to the coexistence strategy; and the time slices of the corresponding WiFi service and BLE service can be determined according to the coexistence period and time slice ratio of each group.

[0084] The coexistence strategy includes the coexistence period and time slice ratio of various WiFi services combined with various BLE services in actual test scenarios. See Table 1 below for details. Table 1 includes the coexistence period and time slice ratio of various WiFi services (idle1, scan1, connecting1, connected1, and TX beacon) and various BLE services (idle2, adv, scan2, connecting2, connected2, mesh idle, mesh voxels, and mesh transmission) in actual test scenarios.

[0085] Table 1

[0086]

[0087] Here, the service combination number represents a combination of a WiFi service and a BLE service. Each service combination number corresponds to a set of coexistence periods and time slice percentages, i.e., {service combination number: {coexistence period, time slice percentage}}. If the service combination has been determined in step S11, the corresponding service combination number can be found in the coexistence strategy based on the service combination to determine the coexistence period and time slice percentage for that service combination. Then, based on the time slice duration = coexistence period × time slice percentage, the first time slice for the WiFi service and the second time slice for the BLE service are determined.

[0088] It should be noted that when formulating the coexistence strategy in advance, the coexistence period and time slice ratio for each combination of WiFi and BLE services were measured in actual test scenarios. This coexistence strategy, which takes into account the actual application scenarios, can reasonably configure the use of radio frequency resources for WiFi and BLE services, thereby improving the bandwidth and data transmission rate of WiFi and BLE.

[0089] In some embodiments, the service portfolio includes multiple groups. In this scenario of concurrent operation of multiple services, the execution order of each group needs to be satisfied to avoid mutual interference between BLE and WiFi. Specifically, steps S21 to S22 are included:

[0090] S21. Determine the second execution order of each business combination based on the coexistence period and time slice ratio of each group.

[0091] In one scenario, the execution order of each business combination can be initially determined based on the duration of the coexistence period (e.g., from longest to shortest). If there are multiple business combinations with the same coexistence period, the execution order of these multiple business combinations can be randomly arranged to determine the second execution order of each business combination.

[0092] In another scenario, the first and second time slices of a business combination can be determined based on the coexistence period and the proportion of time slices. Then, the longest time slice in a set of first and second time slices is selected as the criterion. Based on the longest time slice in each set, the execution order of each business combination is initially determined according to the length of the longest time slice (e.g., from longest to shortest). If there are multiple business combinations with the same longest time slice, the execution order of these multiple business combinations can be randomly arranged to determine the second execution order of each business combination.

[0093] In another scenario, if the coexistence periods of each group are different, the first order of coexistence periods from longest to shortest can be determined directly based on the duration of each group's coexistence period, and this order serves as the second execution order for each group's business combinations. If multiple business combinations have the same coexistence period, a second order of coexistence periods from longest to shortest is determined for business combinations with different coexistence periods. For the remaining business combinations with the same coexistence period, a first time slice and a second time slice for each group are determined based on the proportion of time slices in each group and the coexistence period. Based on the longest time slice in each group's first and second time slices, a third order of longest time slices from longest to shortest is determined, thus determining the second execution order for each group's business combinations.

[0094] For example, suppose there are three service combinations, denoted as service combination A, service combination B, and service combination C; service combination A has a coexistence period of 10ms and a time slice ratio of 5:5, service combination B has a coexistence period of 20ms and a time slice ratio of 4:6, and service combination C has a coexistence period of 20ms and a time slice ratio of 8:2. For service combinations A, B, and C with different coexistence periods, since the coexistence period of 10ms for service combination A is shorter than the coexistence periods of 20ms for both service combination B and C, service combination B and service combination C are determined to be executed before service combination A. For service combinations B and C, based on the coexistence period of 20ms and the time slice ratio of 4:6 for service combination B and the 20ms and time slice ratio of 8:2 for service combination C, the duration of the first time slice for service combination B is determined to be 8ms and the duration of the second time slice is determined to be 12ms, and the duration of the first time slice for service combination C is determined to be 16ms and the duration of the second time slice is determined to be 4ms. In this process, the longest time slice in business combination B is designated as the second time slice, and the longest time slice in business combination C is designated as the first time slice. Since the longest time slice in business combination B (12ms) is shorter than the longest time slice in business combination C (16ms), business combination C is determined to be executed before business combination B. The final execution order for business combinations A, B, and C is determined as follows: first, business combination C; then, business combination B; then, business combination A, i.e., business combination C > business combination B > business combination A.

[0095] In the aforementioned multi-service concurrent scenarios, the coexistence strategy adapts to the current service scenario. Based on the coexistence period and time slice ratio, the execution order of each group of service scenarios under the multi-service concurrent operation is determined. This adaptive approach to the service scenario, that is, using the coexistence period and time slice ratio obtained from the actual test scenario, can reasonably configure the execution order of WiFi and BLE services, thereby reasonably arranging the use of radio frequency resources for WiFi and BLE services, improving the bandwidth and data transmission rate of WiFi and BLE, and realizing the optimization of the coexistence performance of WiFi & BLE dual-mode chips when multiple services are working concurrently.

[0096] S22. According to the second execution order, select a target coexistence period from each coexistence period group, configure the period timer, and start the period timer and time slice timer at the same time.

[0097] According to the second execution order, select the coexistence period of the business combination executed earlier as the target coexistence period and configure the periodic timer. Configure the time slice timer at the same time as configuring the periodic timer, that is, execute steps S13 to S15; then, start the periodic timer and the time slice timer simultaneously.

[0098] In some embodiments, the service portfolio includes multiple groups. In this scenario of concurrent operation of multiple services, each group of service portfolios is executed sequentially according to a second execution order. After the execution of one group of service portfolios is completed, the radio frequency resource configuration of the next group of service portfolios begins according to the second execution order. Specifically, after the periodic timer determines the target coexistence period, a new target coexistence period is selected from the remaining coexistence periods other than the target coexistence period to configure the periodic timer, and the periodic timer and time slice timer are restarted according to the second execution order. Figure 2 A detailed flowchart of a communication method provided in this disclosure embodiment is shown below. Figure 2 As shown, steps S201 to S207 are included:

[0099] S201. Query the database based on the response business combination.

[0100] The database stores coexistence strategies, which include the coexistence period and time slice ratio of various WiFi services and various BLE services in actual test scenarios, as well as the second preset execution order (i.e. priority preemption order) of the sub-services of WiFi services and the sub-services of BLE services. It can be denoted as {service combination number: {coexistence period, time slice ratio (priority preemption)}}.

[0101] S202, Configure coexistence period and time slice ratio.

[0102] For scenarios where multiple services work concurrently, the second execution order is followed, and the periodic timer is configured using the target coexistence period, while the time slice timer is configured using the first and second time slices.

[0103] S203. Configure the resource configuration scheme for WiFi and BLE services under the first and second time slices, and simultaneously execute steps S204 and S206.

[0104] S204, Start-up cycle timer.

[0105] S205. Determine whether the periodic timer time has been reached. If yes, return to step S202; otherwise, proceed to step S207.

[0106] S206. Start the time slice timer according to the first execution order of the first time slice and the second time slice.

[0107] For example, if the first time slice is executed first, the time slice timer is started according to the first time slice, and the timing period of the time slice timer is the duration of the first time slice. After the time slice timer time corresponding to the first time slice is reached, the time slice timer is started again according to the second time slice. After the time slice timer time corresponding to the second time slice is reached, the coexistence period of the current service combination ends. At this time, step S205 directly jumps to step S202 to continue configuring the radio frequency resources of the next service combination. That is, according to the second execution order, a new target coexistence period is selected from the remaining coexistence periods other than the target coexistence period to configure the periodic timer, and the periodic timer and the time slice timer are restarted. This process is repeated until the execution of multiple service combinations in this response is completed, and the process returns to step S201 to proceed to the next stage of service response. The repeated parts will not be described again.

[0108] S207. Determine if the time slice timer has expired. If yes, proceed to step S206; otherwise, continue with step S207.

[0109] The above content provides a complete description of the communication method provided in the embodiments of this disclosure.

[0110] This disclosure also provides a communication device corresponding to the above-described communication method. Since the principle of the communication device in this disclosure for solving the problem is similar to that of the above-described communication method, the detailed implementation process of the communication device can be found in the description of the above-described communication method, and repeated details will not be repeated. Figure 3 A schematic diagram of a communication device provided in an embodiment of this disclosure, such as... Figure 3 As shown, the communication device includes a receiving module 31, a query module 32, a configuration module 33, a timer start module 34, and an allocation module 35.

[0111] The receiving module 31 is configured to determine the service combination in response to WiFi service scenario information and Bluetooth Low Energy (BLE) service scenario information.

[0112] It should be noted that the receiving module 31 in this embodiment is configured to execute step S11 in the above communication method. Here, the receiving module may be, for example, a network protocol interface, used to receive information transmitted by the WiFi protocol stack and the BLE protocol stack. For example, the receiving module includes a WiFi interface and a BLE interface, using the WiFi interface to receive WiFi service scenario information sent by the WiFi protocol stack, and using the BLE interface to receive BLE service scenario information sent by the BLE protocol stack.

[0113] The query module 32 is configured to determine the time slices of WiFi service and BLE service in the service combination according to the pre-configured coexistence strategy, which are respectively the first time slice and the second time slice; and to determine the first execution order of the first time slice and the second time slice according to the first preset execution order of WiFi service and BLE service in the service combination.

[0114] It should be noted that the query module 32 in this embodiment is configured to execute steps S12 and S13 in the above communication method.

[0115] Configuration module 33 includes a first configuration unit and a second configuration unit. The first configuration unit is configured to configure resource configuration schemes for WiFi and BLE services under the first and second time slices. The second configuration unit is configured to configure a time slice timer according to the first and second time slices.

[0116] It should be noted that the configuration module 33 in this embodiment is configured to execute steps S14 and S15 in the above communication method.

[0117] The timer startup module 34 is configured to start a time-slice timer.

[0118] It should be noted that the timer startup module 34 in this embodiment is configured to execute the step of starting the time slice timer in step S15 of the above communication method.

[0119] The allocation module 35 is configured to configure radio frequency resources for WiFi services and BLE services according to the first execution order of the first time slice and the second time slice, and according to the resource configuration scheme.

[0120] It should be noted that the timer start module 34 in this embodiment is configured to execute step S16 in the above communication method.

[0121] The aforementioned query module 32, configuration module 33, timer start module 34, and allocation module 35 can all be software programs integrated into the WiFi & BLE dual-mode chip. Upon receiving a corresponding command, they execute the corresponding setting program. For example, a series of program instructions such as a query program, configuration program, start program, and allocation of radio frequency resources. These will not be described in detail in this embodiment. It should be noted that the allocation module is a software control module for radio frequency resources. It configures the hardware controller of the radio frequency resources according to the resource configuration scheme, and ultimately the hardware controller controls the radio frequency resources.

[0122] This disclosure comprehensively considers the scenario combinations of multiple WiFi services and multiple BLE services, and designs an adaptive service scenario coexistence strategy. This coexistence strategy includes pre-defined usage methods of radio frequency resources for WiFi and BLE services. After determining the service combination of WiFi and BLE services, the time slices of WiFi and BLE services in the service combination can be quickly determined according to the coexistence strategy. Furthermore, considering that some services have real-time requirements, this disclosure also requires the use of radio frequency resources in non-time slices. Therefore, a resource configuration scheme for WiFi and BLE services in the first and second time slices is configured. This resource configuration scheme can be understood as a priority preemption strategy for WiFi or BLE services in non-time slices. According to the resource configuration scheme, WiFi and BLE services can use radio frequency resources in non-time slices, avoiding mutual interference between BLE and WiFi while improving the bandwidth and data transmission rate of WiFi and BLE, thus optimizing the coexistence performance of the WiFi & BLE dual-mode chip when multiple services are operating concurrently.

[0123] In some embodiments, the communication device may include not only the above-described functional modules, but also a WiFi protocol stack 36 and a BLE protocol stack 37.

[0124] The WiFi protocol stack 36 is configured to send WiFi service scenario information to the receiving module 31 in response to the WiFi service scenario status. The WiFi protocol stack 36 is connected to the receiving module 31 to send WiFi service scenario information to the receiving module 31.

[0125] The BLE protocol stack 37 is configured to send BLE service scenario information to the receiving module 31 in response to the BLE service scenario status. The BLE protocol stack 37 is connected to the receiving module 31 to send BLE service scenario information to the receiving module 31.

[0126] In some embodiments, when the service portfolio includes multiple groups, the query module 32 is further configured to determine the coexistence period and time slice ratio of each service portfolio according to the coexistence strategy; and to determine the time slice of the corresponding group of WiFi service and BLE service according to the coexistence period and time slice ratio of each group.

[0127] In some embodiments, the configuration module 33 may include not only the first and second configuration units described above, but also a third configuration unit; the third configuration unit includes a first subunit and a second subunit. The first subunit is configured to determine a second execution order for each group of service combinations based on the coexistence period and time slice ratio of each group; the second subunit is configured to select a target coexistence period from each group of coexistence periods according to the second execution order and configure a periodic timer. The timer startup module 34 is configured to simultaneously start the periodic timer and the time slice timer.

[0128] In some embodiments, the first subunit is specifically configured to: if the coexistence periods of each group are different, determine a first order of coexistence periods from longest to shortest based on the duration of each coexistence period, and use this as the second execution order of each group of service combinations; if there are multiple groups of service combinations with the same coexistence period, determine a second order of coexistence periods from longest to shortest for service combinations with different coexistence periods, and determine a first time slice and a second time slice for each group based on the time slice ratio and coexistence period for the remaining service combinations with the same coexistence period; and determine a third order of the longest time slice from longest to shortest based on the longest time slice in each group of first and second time slices, thereby determining the second execution order of each group of service combinations.

[0129] In some embodiments, the first configuration unit is specifically configured to determine a second preset execution order of sub-services in the service portfolio according to a coexistence strategy; and to configure resource configuration schemes for WiFi services and BLE services in the first and second time slices according to the second preset execution order.

[0130] This disclosure also provides a computer device, such as... Figure 4 As shown, it is a schematic diagram of the structure of a computer device provided in an embodiment of this disclosure. Figure 4 As shown, this disclosure provides a computer device including: one or more processors 401, a memory 402, and one or more I / O interfaces 403. The memory 402 stores one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement any of the communication methods described in the above embodiments; the one or more I / O interfaces 403 are connected between the processor and the memory, configured to enable information interaction between the processor and the memory.

[0131] The processor 401 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 402 is a device with data storage capabilities, including but not limited to random access memory (RAM), more specifically, read-only memory (ROM), electrically erasable programmable read-only memory (EPROM), and flash memory (FLASH); the I / O interface (read / write interface) 403 is connected between the processor 401 and the memory 402, enabling information exchange between the processor 401 and the memory 402, including but not limited to a data bus.

[0132] In some embodiments, the processor 401, memory 402, and I / O interface 403 are interconnected via bus 404, and thus connected to other components of the computing device.

[0133] According to embodiments of this disclosure, a computer-readable storage medium is also provided. This computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of any of the communication methods described in the above embodiments.

[0134] The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the communication method described in the above method embodiments. The storage medium may be a volatile or non-volatile computer-readable storage medium.

[0135] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a machine-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium. When the computer program is executed by a central processing unit (CPU), it performs the functions defined above in the system of this disclosure.

[0136] In hardware implementations, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be executed by several physical components working together.

[0137] Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit (CPU), digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include both computer-readable media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer-readable media includes volatile and non-volatile, removable and non-removable media implemented in any method or technique for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer-readable media include, but are not limited to, random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EPROM), flash memory (FLASH) or other disk storage; read-only optical disc (CD-ROM), digital versatile disc (DVD) or other optical disc storage; magnetic cartridges, magnetic tapes, disk storage or other magnetic storage; and any other media that can be used to store desired information and can be accessed by a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0138] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two adjacent blocks may actually represent substantially parallel execution, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0139] It is understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of this disclosure, and this disclosure is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and substance of this disclosure, and these modifications and improvements are also considered to be within the scope of protection of this disclosure.

Claims

1. A communication method, wherein, The method comprises the following steps: In response to WiFi service scenario information and Bluetooth low energy (BLE) service scenario information, a service combination is determined, wherein the service combination comprises multiple groups; According to a pre-configured coexistence strategy, a coexistence period and a time slice proportion of each group of the service combination are determined, and according to the coexistence period and the time slice proportion of each group, a time slice of the WiFi service and the BLE service corresponding to each group is determined, which is respectively a first time slice and a second time slice; According to a first preset execution order of the WiFi service and the BLE service in the service combination, a first execution order of the first time slice and the second time slice is determined, wherein the first preset execution order refers to the execution order of services in multi-service concurrency; The coexistence strategy comprises priority preemption information of sub-services in the WiFi service and the BLE service after various WiFi services and various BLE services are combined in an actual test scenario, and according to the priority preemption information in the coexistence strategy, a second preset execution order of sub-services in the WiFi service and sub-services in the BLE service in the service combination is determined, wherein the second preset execution order refers to an order of being preempted by a sub-service in the BLE service scenario during execution of the first time slice, or being preempted by a sub-service in the WiFi service scenario during execution of the second time slice; According to the second preset execution order, a resource configuration scheme of the WiFi service and the BLE service in the first time slice and the second time slice is configured; A time slice timer is configured according to the first time slice and the second time slice, and the time slice timer is started; According to the first execution order of the first time slice and the second time slice, and according to the resource configuration scheme, radio frequency resources are configured for the WiFi service and the BLE service.

2. The communication method according to claim 1, wherein, After the time slice of the WiFi service and the BLE service corresponding to each group is determined according to the coexistence period and the time slice proportion, the method further comprises the following steps: According to the coexistence period and the time slice proportion of each group, a second execution order of each group of the service combination is determined; According to the second execution order, a period timer is configured from a target coexistence period in each group of the coexistence period, and the period timer and the time slice timer are started at the same time.

3. The communication method according to claim 2, wherein, The second execution order of each group of the service combination is determined according to the coexistence period and the time slice proportion of each group, and the method comprises the following steps: If the coexistence periods of each group are different, a first order of the coexistence periods of each group from long to short is determined according to the lengths of the coexistence periods of each group, and the first order is used as the second execution order of each group of the service combination. If there are multiple groups of the service combinations with the same coexistence period, a second order of the coexistence periods of each group is determined for the service combinations with different coexistence periods from long to short, and a first time slice and a second time slice of each group are determined according to the time slice ratio and the coexistence period of each group for the service combinations with the same coexistence period; a third order of the time slices with the longest length of each group is determined according to the time slice with the longest length in the first time slice and the second time slice of each group from long to short, so as to determine a second execution order of each group of the service combinations.

4. The communication method according to claim 2, wherein The service combinations include multiple groups. After the radio frequency resources are configured for the WiFi service and the BLE service according to the resource configuration scheme in the first execution order of the first time slice and the second time slice, the method further includes: After the period timer determines that the target coexistence period ends, a new target coexistence period is selected from the remaining coexistence periods except the target coexistence period according to the second execution order, the period timer is configured, and the period timer and the time slice timer are restarted.

5. The communication method according to any one of claims 1 to 4, wherein The WiFi service corresponding to the WiFi service scene information includes at least one of the following: a first idle scene, a first scanning scene, a first connection scene, a first connected scene, and a beacon frame sending scene. The BLE service corresponding to the BLE service scene information includes at least one of the following: a second idle scene, a broadcast scene, a second scanning scene, a second connection scene, a second connected scene, a BLE mesh idle scene, a BLE mesh network configuration scene, and a BLE mesh data transmission scene.

6. A communication device, wherein, The method includes a receiving module, a querying module, a configuring module, a timer starting module, and an allocating module. The receiving module is configured to determine a service combination in response to WiFi service scene information and BLE service scene information of a wireless network communication technology; wherein the service combination includes multiple groups. The querying module is configured to determine a coexistence period and a time slice ratio of each group of the service combination according to a pre-configured coexistence strategy; determine a time slice of the WiFi service and the BLE service of each group as a first time slice and a second time slice according to the coexistence period and the time slice ratio of each group; and determine a first execution order of the first time slice and the second time slice according to a first preset execution order of the WiFi service and the BLE service in the service combination; wherein the first preset execution order refers to an execution order of the services when multiple services are concurrent. The configuration module is configured to determine a second preset execution order of the sub-services in the service combination according to the coexistence strategy, configure a resource configuration scheme of the WiFi service and the BLE service in the first time slice and the second time slice according to the second preset execution order, and configure a time slice timer according to the first time slice and the second time slice. The second preset execution order refers to an order that is preempted by the sub-service in the BLE service scenario during execution of the first time slice or is preempted by the sub-service in the WiFi service scenario during execution of the second time slice. The timer starting module is configured to start the time slice timer. The allocation module is configured to configure radio frequency resources for the WiFi service and the BLE service according to the first execution order of the first time slice and the second time slice and according to the resource configuration scheme.

7. The communication apparatus according to claim 6, wherein Further comprising a WiFi protocol stack and a BLE protocol stack. The WiFi protocol stack is configured to send WiFi service scenario information to the receiving module in response to a WiFi service scenario state. The BLE protocol stack is configured to send BLE service scenario information to the receiving module in response to a BLE service scenario state.

8. A computer device, wherein, It comprises: a processor, a memory, and a bus, the memory stores machine readable instructions executable by the processor, when the computer device is running, the processor and the memory communicate through the bus, and the machine readable instructions executed by the processor perform the steps of the communication method in any one of claims 1 to 5.

9. A computer readable storage medium, wherein, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to perform the steps of the communication method in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Priority setting method and device, user equipment and storage medium

    CN108924875A

  • Wi-Fi and Bluetooth coexisting radio frequency scheduling method and device

    CN113727316A