WO2023124454A1 - Communication method and apparatus, electronic device, computer device, and readable storage medium - Google Patents

Communication method and apparatus, electronic device, computer device, and readable storage medium Download PDF

Info

Publication number
WO2023124454A1
WO2023124454A1 PCT/CN2022/126984 CN2022126984W WO2023124454A1 WO 2023124454 A1 WO2023124454 A1 WO 2023124454A1 CN 2022126984 W CN2022126984 W CN 2022126984W WO 2023124454 A1 WO2023124454 A1 WO 2023124454A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication
communication module
module
protection
duration
Prior art date
Application number
PCT/CN2022/126984
Other languages
French (fr)
Chinese (zh)
Inventor
孔领领
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023124454A1 publication Critical patent/WO2023124454A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0231Traffic management, e.g. flow control or congestion control based on communication conditions
    • H04W28/0236Traffic management, e.g. flow control or congestion control based on communication conditions radio quality, e.g. interference, losses or delay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0231Traffic management, e.g. flow control or congestion control based on communication conditions
    • H04W28/0242Determining whether packet losses are due to overload or to deterioration of radio communication conditions

Definitions

  • the present application relates to the technical field of communication, and in particular to a communication method, device, electronic equipment, computer equipment and a readable storage medium.
  • LTE Long Term Evolution
  • LTE Long Term Evolution
  • New Radio New Radio
  • WIFI Wireless Fidelity
  • WIFI Wireless Fidelity
  • Bluetooth technology Bluetooth, Bluetooth
  • a communication method, device, electronic device, computer device, and readable storage medium are provided, which can improve communication quality in different communication scenarios and improve user experience.
  • the present application provides a communication method, including:
  • the first communication module and the second communication module are respectively used to support wireless communication of different standards;
  • the communication scenario type is the first preset type
  • the present application provides a communication device, including:
  • An occupation time acquisition module configured to acquire the expected occupancy time of the channel occupied by the first communication module in the current cycle
  • a scene type acquiring module configured to acquire the communication scene type of the second communication module in coexistence mode, the first communication module and the second communication module are respectively used to support wireless communication of different standards;
  • a first communication protection module configured to determine a first communication protection strategy of the second communication module within the expected occupancy time according to the expected occupancy time when the communication scenario type is a first preset type, The first communication protection policy is used to protect the communication between the second communication module and the first communication device.
  • the present application provides an electronic device, including:
  • a first communication module and a second communication module are respectively used to support wireless communication of different standards;
  • a processing circuit configured to obtain the expected occupancy time of the channel occupied by the first communication module in the current period; obtain the communication scenario type of the second communication module in the coexistence mode; when the communication scenario type is the first preset type , determining a first communication protection strategy of the second communication module within the expected occupation time according to the expected occupation time, the first communication protection strategy is used to protect the relationship between the second communication module and the first communication device communication between.
  • the present application provides a computer device, including a memory and a processor, the memory stores a computer program, and the processor implements the steps of the aforementioned method when executing the computer program.
  • the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the aforementioned method are implemented.
  • the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the aforementioned method are implemented.
  • FIG. 1 is a schematic diagram of an application environment of a communication method according to an embodiment
  • Fig. 2 is one of flow charts of the communication method of an embodiment
  • Fig. 3 is the second flow chart of the communication method of an embodiment
  • Fig. 4 is the third flowchart of the communication method of an embodiment
  • FIG. 5 is a fourth flowchart of a communication method in an embodiment
  • FIG. 6 is a fifth flowchart of a communication method in an embodiment
  • FIG. 7 is a schematic diagram of cycle occupation time of a coexistence scenario according to an embodiment
  • FIG. 8 is a sixth flowchart of a communication method in an embodiment
  • FIG. 9 is a seventh flowchart of a communication method in an embodiment
  • FIG. 10 is an eighth flowchart of a communication method in an embodiment
  • FIG. 11 is one of the structural schematic diagrams of a communication device according to an embodiment
  • FIG. 12 is a second structural schematic diagram of a communication device according to an embodiment
  • FIG. 13 is one of the structural schematic diagrams of an electronic device according to an embodiment
  • FIG. 14 is a second structural schematic diagram of an electronic device according to an embodiment
  • Fig. 15 is an internal structural diagram of a computer device of an embodiment.
  • first, second and the like used in this application may be used to describe various elements herein, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element.
  • a first communications module could be termed a second communications module, and, similarly, a second communications module could be termed a first communications module, without departing from the scope of the present application.
  • Both the first communication module and the second communication module are communication modules, but they are not the same communication module.
  • time division multiplexing technology is used for communication.
  • BT Bluetooth
  • WIFI wireless fidelity
  • the connection site is, for example, a router.
  • the WIFI module cannot send and receive data.
  • the WIFI module can stop data transmission according to the time-division cycle; but for data reception, the router of the WIFI module does not know that the WIFI module is multiplexing channels in time, when the channel is occupied by the Bluetooth module, the router will still send to The WIFI module sends data, and if the WIFI module does not adopt the corresponding protection strategy at this time, it will not be able to receive the data sent by the router, which will eventually cause the data sent by the router to slow down, which will cause the performance of the WIFI module to degrade or disconnect from the router.
  • the embodiment of the present application provides a communication method, which can dynamically adjust protection policies in different communication scenarios, and improve user experience under delay-sensitive services.
  • the communication method provided in the embodiment of the present application may be applied in the application environment shown in FIG. 1 .
  • the first communication module 110 and the second communication module 120 are respectively used to support wireless communication of different standards, such as short-distance wireless communication, such as WIFI communication, Bluetooth communication and so on.
  • the first communication module 110 and the second communication module 120 may refer to different communication modules in the same electronic device, and different communication modules use the same channel to work in time division.
  • electronic devices can be but not limited to various personal computers, laptops, smart phones, tablet computers, IoT devices and portable wearable devices, and IoT devices can be smart speakers, smart TVs, smart air conditioners, smart cars, smart Vehicle equipment, etc.
  • Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, and the like.
  • the first communication module 110 is a Bluetooth module
  • the second communication module 120 is a WIFI module.
  • the first communication module 110 when the first communication module 110 is a Bluetooth module, the first communication module 110 can be connected with other Bluetooth modules or other electronic devices through Bluetooth communication to transmit and/or receive data to perform Bluetooth communication; when the second communication module 120 is When using a WIFI module, the second communication module 120 can transmit and/or receive data by connecting with a communication station to realize WIFI communication.
  • the first communication module 110 may be a WIFI module
  • the second communication module 120 may be a Bluetooth module.
  • the application environment of the communication method may further include a first communication device 130 and a second communication device 140 .
  • the first communication device 130 is a related device that communicates with the second communication module 120 in the second standard, for example, when the second communication module 120 is a WIFI module, the first communication device 130 is a connection site of the WIFI module, such as a router.
  • the second communication device 140 is a related device that communicates with the first communication module 110 in the first standard.
  • the first communication module 110 is a Bluetooth module
  • the second communication device 140 is a Bluetooth module that performs frequency hopping interaction with the Bluetooth module. equipment.
  • the first communication device 130 and the second communication device 140 may be two different devices supporting the first communication standard and the second communication standard respectively, or they may be capable of supporting the first communication standard and the second communication standard at the same time. standard of the same device.
  • Figure 2 is a flowchart of a communication method in one embodiment. As shown in FIG. 2 , the communication method includes step 202 to step 206 .
  • step 202 the expected occupancy time of the channel occupied by the first communication module in the current period is acquired.
  • the first communication module and the second communication module are respectively used to support wireless communication of different standards.
  • the expected occupation time refers to the estimated time during which the first communication module may occupy the channel in the current period.
  • first communication module and the second communication module are in the coexistence mode of time-division multiplexing, first obtain the time that the first communication module may occupy the channel in the current period, so that the subsequent steps can determine the time that the second communication module needs to perform communication protection according to the expected occupation time
  • the communication protection may be communication protection between the second communication module and the first communication device.
  • the acquisition of the expected occupied time may be performed according to the total amount of data currently to be transmitted by the first communication module and the data transmission capability of the current period.
  • the total amount of data currently to be transmitted may be the sum of the amount of untransmitted data in the previous cycle and the amount of data delivered by the application layer in the current cycle;
  • the data transmission capacity of the current cycle may be the effective data transmission amount of the first communication module in the current cycle , can also be understood as the communication rate of the first communication module in the current cycle.
  • the step of obtaining the expected occupied time can be executed at the moment when the first communication module and the second communication module enter the time-division multiplexing state, or can be executed at any time during the time-division multiplexing state.
  • Step 204 acquiring the communication scenario type of the second communication module in the coexistence mode.
  • the type of communication scene refers to the type of scene that currently needs to use the second communication module to perform communication services.
  • the communication scenario type may be a scenario type in which the second communication module needs to be used for communication services when the user uses the electronic device, for example, using the second communication module
  • the module performs scene types such as listening to music, playing games, and watching videos.
  • the types of communication scenarios can be divided according to the requirements for delay, throughput, etc., for example, into scenarios with higher requirements for delay and/or higher requirements for throughput, such as games, calls, Online video, music scenes, etc.; idle scene types that have low requirements on delay and throughput, for example, the standby scene of electronic equipment.
  • the communication scenario type may be judged according to the communication instruction acquired by the second communication module, and the communication instruction carries relevant information of the application scenario.
  • the communication instruction may be generated by the application processor according to the application request sent by the application program of the relevant scene; or may be directly generated by the application program of the relevant scene.
  • the communication instruction is generated by the application processor according to the application request sent by the application program of the relevant scene: if the current user needs to watch a video, when the user opens the video application program dominated by the second communication mode, the video application program will send the video application program to the application processor A video application request is sent, so that the application processor generates a corresponding video communication instruction and sends it to the second communication module.
  • the second communication module receives the video communication instruction, it determines the type of the currently required communication scene according to the information carried by the video communication instruction. Watch the video.
  • Step 206 when the type of communication scenario is the first preset type, determine a first communication protection strategy for the second communication module within the expected occupancy time according to the expected occupancy time, the first communication protection strategy is used to protect the second communication module and the second communication module A communication between communication devices.
  • the types of communication scenarios can be divided according to the size of requirements such as delay and throughput.
  • the first preset type may refer to a scenario type that requires high latency and/or high throughput, for example, it may be: latency-sensitive type, communication that requires high latency but not high throughput Scenarios, such as games and calls; throughput-sensitive types, communication scenarios that require high network speed but low latency requirements, such as online video and music scenarios.
  • the first communication protection strategy may be that the second communication module instructs the first communication device to perform related communication protection according to different actions or information by taking different actions or sending different information to the first communication device. , to maintain communication between the second communication module and the first communication device.
  • the communication scenario type is the first preset type
  • no matter it is a delay-sensitive type or a throughput-sensitive type the time that the first communication module occupies the channel will affect the communication between the second communication module and the first device. Therefore, when the communication scenario type is the first preset type, determining the first communication protection strategy according to the expected occupancy time can effectively reduce the impact of the expected occupancy time on the communication between the second communication module and the first device, and effectively improve the second communication module.
  • the communication throughput between the communication module and the first device reduces the time delay.
  • the corresponding first communication protection strategy can be dynamically determined according to the impact of the expected occupation time on the delay, so as to reduce the impact on the delay of the communication between the second communication module and the first communication device in a targeted manner, and effectively improve Communication quality in coexistence scenarios, improving user experience.
  • the corresponding first communication protection strategy is dynamically determined to improve the communication between the second communication module and the first communication device in a targeted manner. The success rate can effectively improve the communication quality of the coexistence scene and improve the user experience.
  • the delay is improved by as much as 80%, and the throughput is doubled, so that the communication quality is significantly improved.
  • the experience has been significantly improved.
  • the communication method provided in this embodiment obtains the expected occupancy time of the channel occupied by the first communication module in the current cycle; obtains the communication scene type of the second communication module in the coexistence mode; when the communication scene type is the first preset type, according to The expected occupancy time determines a first communication protection strategy of the second communication module within the expected occupancy time, and the first communication protection strategy is used to protect communication between the second communication module and the first communication device. Therefore, the communication method can effectively reduce the impact of the expected occupancy time on the communication between the second communication module and the first device, effectively improve the throughput of the communication between the second communication module and the first device, and reduce the delay, thereby improving the corresponding communication Coexistence performance under scenario types, improve communication quality, and improve user experience.
  • the first preset type includes a delay-sensitive type and/or a throughput-sensitive type
  • the first communication protection strategy of the second communication module within the expected occupancy time is determined according to the expected occupancy time
  • Step 302 acquiring the duration level of the expected occupied time.
  • Step 304 Determine the first communication protection strategy of the second communication module within the expected occupied time according to the duration level.
  • the duration classes of the expected occupation time may be divided in advance, specifically, the division may be made according to the communication requirements of the delay-sensitive type and the throughput-sensitive type.
  • the number of duration levels and the duration corresponding to the duration levels can be set and adjusted according to actual needs.
  • the delay requirement is high, and more duration levels can be preset, so that the first communication protection strategy determined according to the duration level of the expected occupied time can be more accurately matched Latency requirements, to minimize the impact of the delay caused by the channel occupied by the first communication module on the communication between the second communication module and the first communication device, for example, through an appropriate packet loss protection strategy in exchange for a lower delay .
  • the throughput requirement is high, and the impact of the expected occupancy time on the throughput is small, and fewer duration levels can be preset so that the The first communication protection strategy matches the throughput requirements more accurately, and maximizes the influence of the communication success rate caused by the channel occupied by the first communication module on the communication between the second communication module and the first communication device, for example, appropriately sacrificing the instantaneous time Delay, in exchange for the success rate of communication.
  • the first communication protection strategy can be quickly determined according to the expected occupancy time, thereby improving the efficiency of communication protection and Improve communication quality in coexistence scenarios and improve user experience.
  • determining the first communication protection strategy of the second communication module within the expected occupation time according to the duration level includes:
  • Step 402 when the duration level is the first duration level, the first communication protection policy is that the second communication module is prohibited from sending protection information to the first communication device in the current period, so that the first communication device defaults that the second communication module is currently in The working status of the communication interaction.
  • Step 404 when the duration level is the second duration level, the first communication protection strategy is that the second communication module sends first protection information to the first communication device to instruct the first communication device to suspend communication to the first communication device for a first preset time period.
  • the second communication module sends communication data and waits for communication with the second communication module.
  • the duration corresponding to the first duration level is shorter than the duration corresponding to the second duration grade, for example, the duration corresponding to the first duration grade is [0, T0], and the duration corresponding to the second duration grade is [T0, T1] , T1>T0.
  • T1 and T0 can be variables.
  • the duration level is the first duration level
  • the current expected occupancy time is relatively short, such as 2ms (just for example, not limited), and the impact on delay-sensitive scenarios is small, and appropriate packet loss can be used.
  • the first communication protection policy is that the second communication module is prohibited from sending protection information to the first communication device in the current period, so that the first communication device defaults that the second communication module is currently in a working state of communication interaction. Therefore, the first communication device still sends relevant communication data to the second communication module.
  • the first communication module cannot receive and send data within a short period of time when the channel is occupied by the first communication module, resulting in a small part of packet loss, it can ensure communication with the first communication device. Faster communication, reducing the impact of delay, and improving communication quality in coexistence scenarios.
  • the duration level is the second duration level
  • the first communication protection policy is that the second communication module sends the first protection information to the first communication device, so as to instruct the first communication device to suspend sending communication data to the second communication module during the first preset time period and wait for communication with the second communication module. Communication of the second communication module. Therefore, the first communication device stops sending relevant communication data to the second communication module within a short first preset time. Although data cannot be received and sent within the first preset time, packet loss is not caused and due to time Short can still be exchanged for faster communication with the first communication device, reducing the impact of delay, and improving communication quality in coexistence scenarios.
  • determining the first communication protection strategy of the second communication module within the expected occupation time according to the duration level further includes:
  • Step 406 when the duration level is the third duration level, the first communication protection strategy is that the second communication module sends second protection information to the first communication device to instruct the first communication device to send Communication data is cached.
  • the duration corresponding to the third duration level is longer than the duration corresponding to the second duration grade.
  • the duration corresponding to the first duration level is [0, T0]
  • the duration corresponding to the second duration grade is [T0, T1]
  • the duration corresponding to the third duration grade is [T1, T2].
  • T2>T1>T0, T2, T1, T0 can all be variables.
  • the duration level is the third duration level, it means that the current expected occupancy time is longer, such as more than 15ms (just for example, not limited), and has a higher impact on delay-sensitive scenarios.
  • the second duration level According to the strategy, the time to seize resources is limited, maybe only a few milliseconds. At this time, it is more important to maintain a stable communication connection between the second communication module and the first communication device. Therefore, it is determined that the first communication protection strategy is the second communication module.
  • a communication device sends second protection information to instruct the first communication device to suspend sending communication data to the second communication module for a second preset time period, and to buffer the communication data before the end of the sleep state of the second communication module until the second The second communication module wakes up and then sends the communication data. Therefore, the first communication device can determine that the second communication module is still online and only enters a dormant state, and stops sending relevant communication data to the second communication module within a relatively long second preset time and caches the relevant communication data, Although the second communication module cannot receive and send data within the second preset time, it does not cause packet loss and still maintains a stable connection with the first communication device, so as to improve communication quality in a coexistence scenario.
  • determining the first communication protection strategy of the second communication module within the expected occupation time according to the duration level includes:
  • Step 502 when the duration level is the fourth duration level, the first communication protection strategy is that the second communication module sends the first protection information to the communication station to instruct the first communication device to suspend communication with the second communication device within the first preset time period The module sends communication data and waits for communication with the second communication module.
  • Step 504 when the duration level is the fifth duration level, the first communication protection strategy is that the second communication module sends the second protection information to the first communication device to instruct the first communication device to stop the second communication module before the dormant state ends. Communication data is cached.
  • the duration corresponding to the fifth duration level is longer than the duration corresponding to the fourth duration grade.
  • the duration corresponding to the fourth duration level is [0, T0]
  • the duration corresponding to the fifth duration grade is [T0, T1], T1>T0, and both T1 and T0 can be variables.
  • the duration level is the fourth duration level, it means that the current expected occupancy time is relatively short, such as 2ms (just for example, not limited). Since the communication success rate of throughput-sensitive scenarios is very important, if the first duration With the level strategy, the packet loss will increase, and the communication rate will be greatly affected. You can temporarily suspend the communication by properly preempting channel resources to avoid packet loss. Therefore, it can be determined that the first communication protection policy is that the second communication module sends the first protection information to the first communication device, so as to instruct the first communication device to suspend sending communication data to the second communication module during the first preset time period and wait for communication with the second communication module. Communication of the second communication module.
  • the first communication device stops sending relevant communication data to the second communication module within a short first preset time. Although data cannot be received and sent within the first preset time, packet loss is not caused and due to time Short can still be exchanged for faster communication with the first communication device, reducing the impact of delay, and improving communication quality in coexistence scenarios.
  • the duration level is the fifth duration level, it means that the current expected occupancy time is longer, such as reaching more than 10ms (just for example, not limited), and the delay impact on throughput-sensitive scenarios is aggravated.
  • the duration-level strategy has a limited time to seize resources, which may only be a few milliseconds. At this time, it is more important to maintain a stable communication connection between the second communication module and the first communication device. Therefore, the first communication protection strategy is determined as the second communication module Sending second protection information to the first communication device to instruct the first communication device to suspend sending communication data to the second communication module for a second preset time period, and to buffer the communication data before the end of the sleep state of the second communication module, The communication data is not sent until the second communication module wakes up.
  • the first communication device can determine that the second communication module is still online and only enters a dormant state, and stops sending relevant communication data to the second communication module within a relatively long second preset time and caches the relevant communication data, Although the second communication module cannot receive and send data within the second preset time, it does not cause packet loss and still maintains a stable connection with the first communication device, so as to improve communication quality in coexistence scenarios.
  • the communication method further includes:
  • Step 208 when the communication scenario type is the second preset type, determine a second communication protection strategy of the second communication module within the expected occupation time, the second communication protection strategy is that the second communication module sends the second
  • the protection information is used to instruct the first communication device to cache the communication data before the end of the sleep state of the second communication module.
  • the types of communication scenarios can be divided according to the size of requirements such as delay and throughput.
  • the second preset type may refer to a scene type that requires relatively high latency and throughput, for example, may be: an idle scene type, such as a standby state of an electronic device.
  • the second communication protection strategy can be determined Sending second protection information to the first communication device for the second communication module, to instruct the first communication device to cache the communication data before the end of the sleep state of the second communication module.
  • the first communication device can determine that the second communication module is still online and only enters a dormant state, and stops sending relevant communication data to the second communication module within a relatively long second preset time and caches the relevant communication data, Although the second communication module cannot receive and send data within the second preset time, it does not cause packet loss and still maintains a stable connection with the first communication device, which can improve communication quality in coexistence scenarios.
  • both the first protection information and the second protection information may be identifiable by the first communication device, so that the first communication device may pass through not receiving relevant protection information, receiving the first protection information and receiving the second
  • the protection information identifies the current state of the second communication module and feeds back corresponding actions according to the instructions of the second communication module; or, the sending actions of prohibiting the sending of the protection information, sending the first protection information and sending the second protection information are available for the second A communication device identification, so that the first communication device recognizes the current state of the second communication module through the sending action of the second communication module and feeds back corresponding actions according to the instructions of the second communication module.
  • the first protection information or the second protection information is sent at the start time t0 of the occupied channel of the first communication module, that is, the protection information
  • the sending time of the first communication module is the same as the starting time when the channel is occupied by the first communication module, so that the communication connection between the second communication module and the first communication device can be protected from the same time when the first communication module starts to occupy the channel, and the second communication module can be avoided.
  • the interruption of the connection between the second communication module and the first communication device improves the coexistence performance of the first communication module and the second communication module.
  • the first protection information in the above embodiment may be the first protection frame carrying the first related information, the first related information includes the expected occupancy time and the first preset time period; and/or the second protection information It is the second protection frame carrying the second relevant information, the second relevant information includes the expected occupancy time; and/or the second communication module is prohibited from sending protection information to the first communication device in the current period, which can be understood as the second communication module It is forbidden to send the first protection frame and the second protection frame to the first communication device in the current period.
  • the first protection frame may be a clear to send (Clear to send, CTS) frame, and the function of the CTS frame is to seize the resources of the current channel, and the first communication device, such as The AP does not lower the priority of the current second communication module or the electronic device where the second communication module is located, but the time occupied by the CTS frame is very short, usually several milliseconds.
  • CTS clear to send
  • the second protection frame can be a dormancy protection (Power Save) frame, specifically can be a null data frame (Null data or Qos Null data) carrying a dormancy mark, Power Save The Save frame will enable the AP to lower the priority of the current second communication module or the electronic device where the second communication module is located, thereby reducing resource occupation of the AP.
  • Power Save a dormancy protection
  • the CTS frame sent by the WIFI module to the AP can ensure that the function of the WIFI module is available, and the CTS frame can occupy the channel for a period of time, so that the AP does not send data to the WIFI module within the first preset time period.
  • the WIFI module sends a Power Save frame to the AP so that the AP recognizes that the online association of the WIFI module is only in a dormant state, and temporarily caches the data until the WIFI module ends the dormant state.
  • the first communication module is used to communicate and interact with the second communication device; the first communication module can dynamically adjust the communication behavior according to the communication quality of the communication interaction with the second communication device, reducing the expectation in the time domain take up time.
  • the first communication module can dynamically increase the communication rate to improve carrier efficiency and widen the communication bandwidth to reduce the expected occupancy time.
  • the communication method may also include:
  • Step 602 acquiring communication quality information of communication interaction between the first communication module and the second communication device.
  • Step 604 when the communication quality information satisfies the preset condition, adjust the communication rate of the first communication module in the current period to the target rate, so as to reduce the expected occupancy time of the first communication module.
  • the communication quality information may be the relevant information related to the signals sent and received by both receivers when the first communication module communicates with the second communication device.
  • the communication quality information may include the first communication When the module communicates with the second communication device, the number of frequency hopping channels that both parties can use, the success rate of communication between the two parties, the signal-to-noise ratio and signal reception strength of the communication signals received by both parties, the rate and bandwidth supported by both parties, etc. It can be understood that other information may also be included, which will not be listed one by one here.
  • the communication quality information meeting the preset condition may mean that the communication quality satisfies relevant requirements of communication interaction and does not affect the communication quality of both parties.
  • the preset condition may include signal reception The intensity is greater than a preset intensity, the signal-to-noise ratio is greater than a first preset threshold, and the success rate is greater than a second preset threshold.
  • the preset threshold can be set and adjusted according to the actual communication quality requirements, and there is no specific limitation. For example, it can be that the current signal strength is greater than -50dBm, the communication success rate is above 98%, and the signal-to-noise ratio of the current receiving demodulation of both parties More than 3dB margin.
  • the selection priority of relevant parameter conditions can be selected according to the actual application environment of the first communication module. For example, when the first communication module is applied to a mobile phone device, it can be selected that the signal-to-noise ratio is greater than the first preset threshold and success rate Two conditions greater than the second preset threshold are used as preset conditions. The number of specific conditions of the preset conditions can be adjusted according to the relevant parameters of the actually obtained communication quality information, and the more relevant quality parameters are obtained, the more conditions can be set.
  • the communication quality information when the communication quality information satisfies the preset condition, it means that the current communication quality between the first communication module and the second communication device is good, so the communication rate can be increased. Adjusting the communication rate to the target rate can reduce the expected occupancy time of the time domain of the first communication module as much as possible, thereby allowing more time for the communication of the second communication module. For example, if the communication rate of the current cycle is increased from 1Mbps to 2Mbps, even if the data transmitted from the same upper layer is loaded, the time occupied by the time domain can be reduced proportionally.
  • adjusting the communication rate of the first communication module in the current period to the target rate includes:
  • Step 702 obtaining the maximum rate allowed by the current communication environment where the first communication module communicates with the second communication device.
  • Step 704 use the highest rate as the target rate to perform communication in the current cycle.
  • the communication quality information when the communication quality information satisfies the preset condition, it indicates that the current communication quality between the first communication module and the second communication device is good, and the communication quality information between the first communication module and the second communication device can be obtained on the basis that the communication quality information satisfies the preset condition.
  • the second communication device communicates at the highest rate allowed by the communication environment, and uses the highest rate as the target rate for communication in the current cycle, thereby minimizing the expected occupation time.
  • the communication rate can be gradually increased according to the preset rate gear until it reaches the highest rate allowed by the current communication environment, and then the highest rate is used as the target rate for communication in the current period.
  • the preset rate gear can be set according to actual needs, for example, each rate gear is 1Mbps, so that the communication rate can be gradually increased according to the preset rate gear by 1Mbps each time, until it reaches the current communication environment The highest rate allowed.
  • the rate table supported by both communication parties can be preset, and the rate table includes the rate gear and the corresponding rate value, so that the rate can be gradually adjusted according to the rate table.
  • the expected occupancy time of the first communication module needs to be acquired before the first communication protection policy is determined.
  • obtaining the expected occupancy time of the channel occupied by the first communication module in the current cycle includes:
  • Step 802 acquiring the total amount of data to be transmitted by the first communication module in the current cycle and the communication rate in the current cycle.
  • step 804 the expected elapsed time is obtained according to the total amount of data and the communication rate.
  • the total amount of data to be transmitted in the current cycle refers to the actual amount of data that needs to be transmitted by the first communication module for current communication, including the amount of untransmitted data in the previous cycle and the amount of data sent by the application layer in the current cycle, which can be understood as The sum of the amount of untransmitted data in the previous cycle and the amount of data delivered by the application layer in the current cycle.
  • the communication rate of the current period reflects the capability of transmitting data in the current period.
  • the communication rate of the current cycle can be obtained through the relevant steps of the above embodiments, or can be obtained according to the effective data transmission capability of each cycle in the previous N cycles.
  • the expected occupied time is the ratio of the total amount of data to the communication rate. Therefore, according to the total amount of data and the communication rate, the expected occupancy time of the channel occupied by the current cycle of the first communication can be obtained.
  • the communication method may also include:
  • Step 902 set the occupancy time threshold, if the obtained expected occupancy time is greater than the preset occupancy time threshold, stop the occupation of the channel by the first communication module, so as to avoid the interruption of the second communication module caused by the occupancy time of the first communication module for too long occur.
  • the occupied time threshold can be set and adjusted according to actual communication requirements, and the occupied time threshold can be changed in different communication scenarios. For example, for latency-sensitive scenarios or throughput-sensitive scenarios with high latency requirements, the occupancy time threshold can be set smaller, such as game scenarios, the occupancy time threshold can be 15ms; for idle scenarios with low latency and throughput requirements , the set occupancy time threshold may be larger, for example, the occupancy time threshold may be 30ms.
  • multiple occupancy time thresholds are set to match different scene types, and are built into the electronic device or the first communication module and the second communication module of the application, or can also be directly controlled by the electronic device or the first communication module, The second communication module etc. are dynamically adjusted according to the communication scene.
  • steps in the flow chart of the above embodiments are shown sequentially as indicated by the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flow charts of the above-mentioned embodiments may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. These sub-steps Or the order of execution of the stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or substeps of other steps or stages.
  • an embodiment of the present application further provides a communication device for implementing the communication method involved above.
  • the solution to the problem provided by the device is similar to the implementation described in the above method, so the specific limitations in one or more communication device embodiments provided below can refer to the above-mentioned definition of the communication method, here No longer.
  • a communication device including: an elapsed time acquisition module, a scene type acquisition module, and a first communication protection module.
  • the occupancy time acquisition module 210 is configured to acquire the expected occupancy time of the channel occupied by the first communication module in the current period.
  • the scenario type acquisition module 220 is configured to acquire the communication scenario type of the second communication module in the coexistence mode, and the first communication module and the second communication module are respectively configured to support wireless communication of different standards.
  • the first communication protection module 230 is configured to determine the first communication protection strategy of the second communication module within the expected occupancy time according to the expected occupancy time when the communication scenario type is the first preset type, and the first communication protection strategy is used to protect Communication between the second communication module and the first communication device.
  • the communication device obtained in this embodiment obtains the expected occupancy time of the channel occupied by the first communication module in the current cycle; obtains the communication scenario type of the second communication module in the coexistence mode; when the communication scenario type is the first preset type, according to The expected occupancy time determines a first communication protection strategy of the second communication module within the expected occupancy time, and the first communication protection strategy is used to protect communication between the second communication module and the first communication device. Therefore, the communication method can effectively reduce the impact of the expected occupancy time on the communication between the second communication module and the first device, effectively improve the throughput of the communication between the second communication module and the first device, and reduce the delay, thereby improving the corresponding communication Coexistence performance under scenario types, improve communication quality, and improve user experience.
  • the communication device further includes: a second communication protection module.
  • the second communication protection module 240 is configured to determine the second communication protection strategy of the second communication module within the expected occupied time when the communication scenario type is the second preset type, and the second communication protection strategy is that the second communication module communicates with the second communication module.
  • a communication device sends second protection information to instruct the first communication device to buffer the communication data before the second communication module ends the dormant state.
  • the communication device further includes:
  • the communication rate adjustment module 250 is configured to acquire the communication quality information of the communication interaction between the first communication module and the second communication device, and adjust the communication rate of the first communication module in the current cycle to the target rate when the communication quality information satisfies the preset condition, In order to reduce the expected occupancy time of the first communication module.
  • the communication device further includes:
  • the stop occupancy module 260 is used to set the occupancy time threshold. If the acquired expected occupancy time is greater than the preset occupancy time threshold, stop the occupation of the channel by the first communication module, so as to prevent the second communication module from occupying the first communication module for too long. A power cut of the module occurs.
  • the embodiment of the present application also provides an electronic device.
  • the solution to the problem provided by the electronic device is similar to the solution described in the above method. Therefore, one or more electronic devices provided below For the specific limitations in the device embodiments, refer to the above-mentioned limitations on the communication method, which will not be repeated here.
  • an electronic device including: a first communication module 110 , a second communication module 120 and a processing circuit 150 .
  • the first communication module 110 and the second communication module 120 are respectively used to support wireless communication of different standards.
  • the processing circuit 150 is configured to obtain the expected occupancy time of the channel occupied by the first communication module 110 in the current period; obtain the communication scenario type of the second communication module 120 in the coexistence mode; when the communication scenario type is the first preset type, according to the expected The occupied time determines a first communication protection policy of the second communication module 120 within the expected occupied time, and the first communication protection policy is used to protect the communication between the second communication module 120 and the first communication device 130 .
  • the electronic device obtained in this embodiment obtains the expected occupancy time of the channel occupied by the first communication module in the current period; obtains the communication scene type of the second communication module in the coexistence mode; when the communication scene type is the first preset type, according to The expected occupancy time determines a first communication protection strategy of the second communication module within the expected occupancy time, and the first communication protection strategy is used to protect communication between the second communication module and the first communication device. Therefore, the communication method can effectively reduce the impact of the expected occupancy time on the communication between the second communication module and the first device, effectively improve the throughput of the communication between the second communication module and the first device, and reduce the delay, thereby improving the corresponding communication Coexistence performance under scenario types, improve communication quality, and improve user experience.
  • the processing circuit 150 is further configured to determine a second communication protection strategy for the second communication module within the expected occupancy time when the communication scenario type is the second preset type, and the second communication protection strategy is for the second communication module to
  • the first communication device sends the second protection information to instruct the first communication device to buffer the communication data before the end of the dormant state of the second communication module; it is also used to obtain the communication quality information of the communication interaction between the first communication module and the second communication device , when the communication quality information satisfies the preset condition, adjust the communication rate of the current period of the first communication module to the target rate, so as to reduce the expected occupancy time of the first communication module; it is also used to set the occupancy time threshold, if the obtained expected If the occupancy time is greater than the preset occupancy time threshold, the occupancy of the channel by the first communication module is stopped, so as to prevent the second communication module from being disconnected due to the occupancy time of the first communication module for too long.
  • the first communication module 110 is a Bluetooth module
  • the second communication module 120 is a WIFI module. It can be understood that, in other embodiments, the first communication module 110 may also be a WIFI module, and the second communication module 120 may be a Bluetooth module.
  • the communication priority of the first communication module 110 is higher than that of the second communication module 120, so that the first communication module 110 can first estimate the expected occupancy time and pre-occupy the channel for communication according to the expected occupancy time.
  • the communication priority of the Bluetooth module may be higher than that of the WIFI module, so the Bluetooth module can first estimate the expected occupation time and pre-occupy the channel according to the expected occupation time. communication.
  • the communication priority of the WIFI module may be higher than that of the Bluetooth module, so the WIFI module can first estimate the expected occupancy time and pre-occupy the channel according to the expected occupancy time. communication.
  • the processing circuit 150 is set in the first communication module 110; wherein:
  • the first communication module 110 is configured to send the first communication protection strategy to the second communication module 120, to instruct the second communication module 120 to perform communication protection according to the first communication protection strategy; or the second communication module 120 is configured to send the first communication protection strategy to the second communication module 120.
  • a communication module 110 sends a policy query instruction to instruct the first communication module 110 to feed back the first communication protection policy and perform communication protection according to the first communication protection policy.
  • the first communication module 110 is further configured to send the second communication protection policy to the second communication module 120, so as to instruct the second communication module 120 to perform communication protection according to the second communication protection policy; or the second communication module 120 , which is also used to send a policy query instruction to the first communication module 110, so as to instruct the first communication module 110 to feed back the second communication protection policy and perform communication protection according to the second communication protection policy.
  • the first protection strategy and the second protection strategy are determined by the first communication module 110, and the second communication module 120 interacts with the first communication module 110 to obtain the first protection strategy and a second protection strategy.
  • the acquisition of the first protection strategy and the second protection strategy by the second communication module 120 may be actively sent by the first communication module 110 and passively received by the second communication module 120, so as to reduce interaction time and improve communication efficiency; it may also be The first communication module 110 passively sends and the second communication module 120 actively receives, so as to improve the accuracy of interaction and the reliability of communication.
  • the first communication module 110 and the second communication module 120 are connected through a communication interface, and perform communication protection strategy-related interactions through the communication interface.
  • the delay requirement for communication needs to reach the order of microseconds and nanoseconds (generally not exceeding 10us).
  • the first communication module 110 and the second communication module 120 are connected through the communication interface to realize the communication interaction between the two, and the delay can be reduced as much as possible to meet the delay requirement of communication.
  • the communication interface may be, for example, I2C, SPI, I/O and other interfaces, which are not specifically limited here.
  • each module in the above-mentioned communication device and electronic equipment is only for illustration. In other embodiments, the communication device and electronic equipment can be divided into different modules according to needs, so as to complete all or part of the above-mentioned communication device and electronic equipment. Function.
  • Each module in the above-mentioned communication device and electronic equipment may be fully or partially realized by software, hardware and a combination thereof.
  • the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
  • the present application also provides a computer device, including a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the communication described in the above embodiment The steps of the control method.
  • the computer device further includes a network interface connected to the processor and the memory through a system bus.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, computer programs and databases.
  • the internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium.
  • the network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a communication control method is realized.
  • Figure 15 is only a block diagram of a partial structure related to the solution of this application, and does not constitute a limitation on the computer equipment on which the solution of this application is applied.
  • the specific computer equipment can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.
  • the present application also provides a computer-readable storage medium, on which a computer program is stored.
  • a computer program is stored.
  • the steps of the selection method described in the above embodiments are realized, and/or the steps of the selection method described in the above embodiments are realized.
  • the steps of the communication control method are realized.
  • the present application also provides a computer program product, including a computer program.
  • a computer program product including a computer program.
  • the steps of the communication method described in the above embodiments are implemented.
  • any reference to storage, database or other media used in the various embodiments provided in the present application may include at least one of non-volatile and volatile storage.
  • Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive variable memory (ReRAM), magnetic variable memory (Magnetoresistive Random Access Memory, MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (Phase Change Memory, PCM), graphene memory, etc.
  • the volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory, etc.
  • RAM Random Access Memory
  • RAM Random Access Memory
  • RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).
  • the databases involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database.
  • the non-relational database may include a blockchain-based distributed database, etc., but is not limited thereto.
  • the processors involved in the various embodiments provided by this application can be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, data processing logic devices based on quantum computing, etc., and are not limited to this.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present application relates to a communication method and apparatus, an electronic device, a computer device, and a readable storage medium. The method comprises: obtaining expected occupation time of a first communication module for occupying a channel in a current period; obtaining a communication scene type of a second communication module in a coexistence mode; and when the communication scene type is a first preset type, determining a first communication protection strategy of the second communication module in the expected occupation time according to the expected occupation time, the first communication protection strategy being used for protecting communication between the second communication module and a first communication device.

Description

通信方法、装置、电子设备、计算机设备和可读存储介质Communication method, device, electronic device, computer device and readable storage medium
相关申请的交叉引用Cross References to Related Applications
本申请要求于2021年12月31日提交中国专利局、申请号为2021116710458、发明名称为“通信方法、装置、电子设备、计算机设备和可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 2021116710458 and the title of the invention "communication method, device, electronic equipment, computer equipment and readable storage medium" submitted to the China Patent Office on December 31, 2021, all of which The contents are incorporated by reference in this application.
技术领域technical field
本申请涉及通信技术领域,特别是涉及一种通信方法、装置、电子设备、计算机设备和可读存储介质。The present application relates to the technical field of communication, and in particular to a communication method, device, electronic equipment, computer equipment and a readable storage medium.
背景技术Background technique
这里的陈述仅提供与本申请有关的背景信息,而不必然地构成示例性技术。The statements herein merely provide background information related to the present application and do not necessarily constitute exemplary techniques.
随着设备入网需求以及设备间互联需求的持续增加,单一通信方式已经无法满足需求,因此越来越多的设备搭载了多种通信方式以满足入网和互联的需求,例如长期演进(Long Term Evolution,LTE),新无线电(New Radio,NR),无线保真(Wireless Fidelity,WIFI),蓝牙技术(Bluetooth,蓝牙)等等。With the continuous increase of device network access requirements and inter-device interconnection requirements, a single communication method can no longer meet the demand, so more and more devices are equipped with multiple communication methods to meet network access and interconnection requirements, such as Long Term Evolution (LTE) , LTE), New Radio (New Radio, NR), Wireless Fidelity (Wireless Fidelity, WIFI), Bluetooth technology (Bluetooth, Bluetooth) and so on.
然而,当不同通信技术采用时分复用的工作模式时,由于不同通信技术的时分周期通常相对固定的,因此无法保证不同通信场景的通信质量,导致用户体验度下降。However, when different communication technologies adopt the working mode of time-division multiplexing, since the time-division periods of different communication technologies are usually relatively fixed, communication quality in different communication scenarios cannot be guaranteed, resulting in a decrease in user experience.
发明内容Contents of the invention
根据本申请的各种实施例,提供了一种通信方法、装置、电子设备、计算机设备和可读存储介质,可以提高不同通信场景的通信质量,提高用户体验度。According to various embodiments of the present application, a communication method, device, electronic device, computer device, and readable storage medium are provided, which can improve communication quality in different communication scenarios and improve user experience.
第一方面,本申请提供了一种通信方法,包括:In a first aspect, the present application provides a communication method, including:
获取第一通信模块当前周期占用信道的期望占用时间;Acquire the expected occupancy time of the channel occupied by the first communication module in the current period;
获取第二通信模块在共存模式下的通信场景类型,所述第一通信模块和所述第二通信模块分别用于支持不同制式的无线通信;Acquiring the communication scenario type of the second communication module in the coexistence mode, the first communication module and the second communication module are respectively used to support wireless communication of different standards;
在所述通信场景类型为第一预设类型时,根据所述期望占用时间确定所述第二通信模块在所述期望占用时间内的第一通信保护策略,所述第一通信保护策略用于保护所述第二通信模块与第一通信设备之间的通信。When the communication scenario type is the first preset type, determine a first communication protection strategy of the second communication module within the expected occupation time according to the expected occupancy time, and the first communication protection strategy is used for Communications between the second communication module and the first communication device are protected.
第二方面,本申请提供了一种通信装置,包括:In a second aspect, the present application provides a communication device, including:
占用时间获取模块,用于获取第一通信模块当前周期占用信道的期望占用时间;An occupation time acquisition module, configured to acquire the expected occupancy time of the channel occupied by the first communication module in the current cycle;
场景类型获取模块,用于获取第二通信模块在共存模式下的通信场景类型,所述第一通信模块和所述第二通信模块分别用于支持不同制式的无线通信;A scene type acquiring module, configured to acquire the communication scene type of the second communication module in coexistence mode, the first communication module and the second communication module are respectively used to support wireless communication of different standards;
第一通信保护模块,用于在所述通信场景类型为第一预设类型时,根据所述期望占用时间确定所述第二通信模块在所述期望占用时间内的第一通信保护策略,所述第一通信保护策略用于保护所述第二通信模块与第一通信设备之间的通信。A first communication protection module, configured to determine a first communication protection strategy of the second communication module within the expected occupancy time according to the expected occupancy time when the communication scenario type is a first preset type, The first communication protection policy is used to protect the communication between the second communication module and the first communication device.
第三方面,本申请提供了一种电子设备,包括:In a third aspect, the present application provides an electronic device, including:
第一通信模块和第二通信模块,所述第一通信模块和所述第二通信模块分别用于支持不同制式的无线通信;A first communication module and a second communication module, the first communication module and the second communication module are respectively used to support wireless communication of different standards;
处理电路,用于获取所述第一通信模块当前周期占用信道的期望占用时间;获取所述第二通信模块在共存模式下的通信场景类型;在所述通信场景类型为第一预设类型时,根据所述期望占用时间确定所述第二通信模块在所述期望占用时间内的第一通信保护策略,所述第一通信保护策略用于保护所述第二通信模块与第一通信设备之间的通信。A processing circuit, configured to obtain the expected occupancy time of the channel occupied by the first communication module in the current period; obtain the communication scenario type of the second communication module in the coexistence mode; when the communication scenario type is the first preset type , determining a first communication protection strategy of the second communication module within the expected occupation time according to the expected occupation time, the first communication protection strategy is used to protect the relationship between the second communication module and the first communication device communication between.
第四方面,本申请提供了一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现前述的方法的步骤。In a fourth aspect, the present application provides a computer device, including a memory and a processor, the memory stores a computer program, and the processor implements the steps of the aforementioned method when executing the computer program.
第五方面,本申请提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现前述的方法的步骤。In a fifth aspect, the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the aforementioned method are implemented.
第六方面,本申请提供了一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现前述的方法的步骤。In a sixth aspect, the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the aforementioned method are implemented.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其他特征、目的和优点将从说明书、附图以及权利要求书变得明显。The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below. Other features, objects and advantages of the present application will be apparent from the description, drawings and claims.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为一实施例的通信方法的应用环境示意图;FIG. 1 is a schematic diagram of an application environment of a communication method according to an embodiment;
图2为一实施例的通信方法的流程图之一;Fig. 2 is one of flow charts of the communication method of an embodiment;
图3为一实施例的通信方法的流程图之二;Fig. 3 is the second flow chart of the communication method of an embodiment;
图4为一实施例的通信方法的流程图之三;Fig. 4 is the third flowchart of the communication method of an embodiment;
图5为一实施例的通信方法的流程图之四;FIG. 5 is a fourth flowchart of a communication method in an embodiment;
图6为一实施例的通信方法的流程图之五;FIG. 6 is a fifth flowchart of a communication method in an embodiment;
图7为一实施例的共存场景的周期占用时间示意图;FIG. 7 is a schematic diagram of cycle occupation time of a coexistence scenario according to an embodiment;
图8为一实施例的通信方法的流程图之六;FIG. 8 is a sixth flowchart of a communication method in an embodiment;
图9为一实施例的通信方法的流程图之七;FIG. 9 is a seventh flowchart of a communication method in an embodiment;
图10为一实施例的通信方法的流程图之八;FIG. 10 is an eighth flowchart of a communication method in an embodiment;
图11为一实施例的通信装置的结构示意图之一;FIG. 11 is one of the structural schematic diagrams of a communication device according to an embodiment;
图12为一实施例的通信装置的结构示意图之二;FIG. 12 is a second structural schematic diagram of a communication device according to an embodiment;
图13为一实施例的电子设备的结构示意图之一;FIG. 13 is one of the structural schematic diagrams of an electronic device according to an embodiment;
图14为一实施例的电子设备的结构示意图之二;FIG. 14 is a second structural schematic diagram of an electronic device according to an embodiment;
图15为一实施例的计算机设备的内部结构图。Fig. 15 is an internal structural diagram of a computer device of an embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一通信模块称为第二通信模块,且类似地,可将第二通信模块称为第一通信模块。第一通信模块和第二通信模块两者都是通信模块,但其不是同一通信模块。It can be understood that the terms "first", "second" and the like used in this application may be used to describe various elements herein, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element. For example, a first communications module could be termed a second communications module, and, similarly, a second communications module could be termed a first communications module, without departing from the scope of the present application. Both the first communication module and the second communication module are communication modules, but they are not the same communication module.
在一些相关技术中,为了避免同频段同时工作时的干扰问题,会采用时分复用技术进行通信。以蓝牙(Bluetooth,BT)和WIFI为例,由于不同通信技术的时分周期通常相对固定,不同通信制式网络会周期性地占用硬件资源。若硬件被蓝牙占用,就会导致WIFI和通信设备,例如连接站点(Access Point,AP)之间的通信发生中断,反之亦然。其中连接站点例如为路由器。In some related technologies, in order to avoid interference problems when working in the same frequency band at the same time, time division multiplexing technology is used for communication. Taking Bluetooth (BT) and WIFI as examples, since the time-division periods of different communication technologies are usually relatively fixed, different communication standard networks will periodically occupy hardware resources. If the hardware is occupied by Bluetooth, it will cause interruption of communication between WIFI and communication devices, such as access point (AP), and vice versa. Wherein, the connection site is, for example, a router.
以路由器进行举例说明,如果信道被蓝牙模块占用,WIFI模块无法发送和接收数据。 对于数据发送来说,WIFI模块可以根据时分周期停止数据发送;但对于数据接收来说,WIFI模块的路由器并不知道WIFI模块在时分复用信道,当信道被蓝牙模块占用时,路由器仍然会向WIFI模块发送数据,而此时WIFI模块如果没有采取相应的保护策略,则一直无法收到路由器发送的数据,最终造成路由器发送数据降速,进而造成WIFI模块性能下降或断开与路由器的连接。Taking a router as an example, if the channel is occupied by the Bluetooth module, the WIFI module cannot send and receive data. For data transmission, the WIFI module can stop data transmission according to the time-division cycle; but for data reception, the router of the WIFI module does not know that the WIFI module is multiplexing channels in time, when the channel is occupied by the Bluetooth module, the router will still send to The WIFI module sends data, and if the WIFI module does not adopt the corresponding protection strategy at this time, it will not be able to receive the data sent by the router, which will eventually cause the data sent by the router to slow down, which will cause the performance of the WIFI module to degrade or disconnect from the router.
而在相关的改善技术中,尽管中断的情况有所改善,但无法保证不同通信场景的通信质量,特别是无法保证时延敏感业务下的体验。However, in related improvement technologies, although the interruption situation has been improved, the communication quality of different communication scenarios cannot be guaranteed, especially the experience under delay-sensitive services cannot be guaranteed.
因此,本申请实施例提供了一种通信方法,能够在不同的通信场景下动态的调整保护策略,提高用户时延敏感业务下的体验。Therefore, the embodiment of the present application provides a communication method, which can dynamically adjust protection policies in different communication scenarios, and improve user experience under delay-sensitive services.
本申请实施例提供的通信方法,可以应用于如图1所示的应用环境中。其中,第一通信模块110和第二通信模块120分别用于支持不同制式的无线通信,例如短距离无线通信,如WIFI通信、蓝牙通信等。The communication method provided in the embodiment of the present application may be applied in the application environment shown in FIG. 1 . Wherein, the first communication module 110 and the second communication module 120 are respectively used to support wireless communication of different standards, such as short-distance wireless communication, such as WIFI communication, Bluetooth communication and so on.
第一通信模块110和第二通信模块120可以是指同一个电子设备中的不同通信模块,不同通信模块采用相同的信道分时工作。其中,电子设备可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑、物联网设备和便携式可穿戴设备,物联网设备可为智能音箱、智能电视、智能空调、智能汽车、智能车载设备等。便携式可穿戴设备可为智能手表、智能手环、头戴设备等。The first communication module 110 and the second communication module 120 may refer to different communication modules in the same electronic device, and different communication modules use the same channel to work in time division. Among them, electronic devices can be but not limited to various personal computers, laptops, smart phones, tablet computers, IoT devices and portable wearable devices, and IoT devices can be smart speakers, smart TVs, smart air conditioners, smart cars, smart Vehicle equipment, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, and the like.
可选地,第一通信模块110为蓝牙模块,第二通信模块120为WIFI模块。其中,当第一通信模块110为蓝牙模块,第一通信模块110可以通过蓝牙通信与其他蓝牙模块或其他电子设备连接,以发射和/或接收数据从而进行蓝牙通信;当第二通信模块120为WIFI模块时,第二通信模块120可以通过与通信站点连接以发射和/或接收数据从而实现WIFI通信。可以理解,在其他实施例中,第一通信模块110可以为WIFI模块,第二通信模块120可以为蓝牙模块。Optionally, the first communication module 110 is a Bluetooth module, and the second communication module 120 is a WIFI module. Wherein, when the first communication module 110 is a Bluetooth module, the first communication module 110 can be connected with other Bluetooth modules or other electronic devices through Bluetooth communication to transmit and/or receive data to perform Bluetooth communication; when the second communication module 120 is When using a WIFI module, the second communication module 120 can transmit and/or receive data by connecting with a communication station to realize WIFI communication. It can be understood that, in other embodiments, the first communication module 110 may be a WIFI module, and the second communication module 120 may be a Bluetooth module.
可选地,通信方法的应用环境中,还可以包括第一通信设备130和第二通信设备140。其中,第一通信设备130为与第二通信模块120进行第二制式通信的相关设备,例如当第二通信模块120为WIFI模块时,第一通信设备130为WIFI模块的连接站点,例如路由器。其中,第二通信设备140为与第一通信模块110进行第一制式通信的相关设备,例如当第一通信模块110为蓝牙模块时,第二通信设备140为与蓝牙模块进行跳频交互的蓝牙设备。需要说明的是,第一通信设备130、第二通信设备140分别可以是支持第一通信制式、支持第二通信制式的两个不同设备,也可以是能够同时支持第一通信制式、第二通信制式的同一设备。Optionally, the application environment of the communication method may further include a first communication device 130 and a second communication device 140 . Wherein, the first communication device 130 is a related device that communicates with the second communication module 120 in the second standard, for example, when the second communication module 120 is a WIFI module, the first communication device 130 is a connection site of the WIFI module, such as a router. Wherein, the second communication device 140 is a related device that communicates with the first communication module 110 in the first standard. For example, when the first communication module 110 is a Bluetooth module, the second communication device 140 is a Bluetooth module that performs frequency hopping interaction with the Bluetooth module. equipment. It should be noted that the first communication device 130 and the second communication device 140 may be two different devices supporting the first communication standard and the second communication standard respectively, or they may be capable of supporting the first communication standard and the second communication standard at the same time. standard of the same device.
图2为一个实施例中通信方法的流程图。如图2所示,通信方法包括步骤202至步骤206。Figure 2 is a flowchart of a communication method in one embodiment. As shown in FIG. 2 , the communication method includes step 202 to step 206 .
步骤202,获取第一通信模块当前周期占用信道的期望占用时间。In step 202, the expected occupancy time of the channel occupied by the first communication module in the current period is acquired.
其中,第一通信模块和第二通信模块分别用于支持不同制式的无线通信。Wherein, the first communication module and the second communication module are respectively used to support wireless communication of different standards.
其中,期望占用时间是指预估的第一通信模块当前周期可能占用信道的时间。当第一通信模块和第二通信模块处于时分复用的共存模式时,首先获取第一通信模块当前周期可能占用信道的时间,以便后续步骤根据期望占用时间确定第二通信模块需要进行通信保护的时间点和时间长度,及初步确定第二通信模块应该如何进行通信保护。通信保护可以是第二通信模块与第一通信设备间的通信保护。Wherein, the expected occupation time refers to the estimated time during which the first communication module may occupy the channel in the current period. When the first communication module and the second communication module are in the coexistence mode of time-division multiplexing, first obtain the time that the first communication module may occupy the channel in the current period, so that the subsequent steps can determine the time that the second communication module needs to perform communication protection according to the expected occupation time The time point and length of time, and a preliminary determination of how the second communication module should perform communication protection. The communication protection may be communication protection between the second communication module and the first communication device.
其中,期望占用时间的获取,可以根据第一通信模块当前待传输的数据总量及当前周期的数据传输能力进行获取。当前待传输的数据总量可以是上一周期未传输完成的数据量和当前周期应用层下发的数据量之和;当前周期的数据传输能力可以是第一通信模块当前周期的有效数据传输量,也可以理解为是第一通信模块当前周期的通信速率。可以理解,期望占用时间的获取步骤,可以在第一通信模块和第二通信模块进入时分复用状态的时刻 执行,也可以在时分复用状态的时间段内任一时刻执行。Wherein, the acquisition of the expected occupied time may be performed according to the total amount of data currently to be transmitted by the first communication module and the data transmission capability of the current period. The total amount of data currently to be transmitted may be the sum of the amount of untransmitted data in the previous cycle and the amount of data delivered by the application layer in the current cycle; the data transmission capacity of the current cycle may be the effective data transmission amount of the first communication module in the current cycle , can also be understood as the communication rate of the first communication module in the current cycle. It can be understood that the step of obtaining the expected occupied time can be executed at the moment when the first communication module and the second communication module enter the time-division multiplexing state, or can be executed at any time during the time-division multiplexing state.
步骤204,获取第二通信模块在共存模式下的通信场景类型。 Step 204, acquiring the communication scenario type of the second communication module in the coexistence mode.
其中,通信场景类型是指当前需要利用第二通信模块进行通信业务的场景类型。例如,当第二通信模块和第一通信模块设于同一电子设备中时,通信场景类型可以为用户使用电子设备时,需要利用第二通信模块进行通信业务的场景类型,例如,利用第二通信模块进行听歌、打游戏、看视频等的场景类型。可选地,通信场景类型可以根据对时延、吞吐量等需求的大小进行划分,例如,划分为对时延要求较高和/或对吞吐量要求较高的场景类型,例如游戏、通话、在线视频、音乐场景等;对时延要求和对吞吐量要求均不高的空闲场景类型,例如,电子设备的待机场景。Wherein, the type of communication scene refers to the type of scene that currently needs to use the second communication module to perform communication services. For example, when the second communication module and the first communication module are set in the same electronic device, the communication scenario type may be a scenario type in which the second communication module needs to be used for communication services when the user uses the electronic device, for example, using the second communication module The module performs scene types such as listening to music, playing games, and watching videos. Optionally, the types of communication scenarios can be divided according to the requirements for delay, throughput, etc., for example, into scenarios with higher requirements for delay and/or higher requirements for throughput, such as games, calls, Online video, music scenes, etc.; idle scene types that have low requirements on delay and throughput, for example, the standby scene of electronic equipment.
其中,可选地,通信场景类型可以根据第二通信模块获取的通信指令进行判断,该通信指令携带应用场景的相关信息。通信指令可以由应用处理器根据相关场景的应用程序发送的应用请求生成;或者可以由相关场景的应用程序直接生成。例如,通信指令由应用处理器根据相关场景的应用程序发送的应用请求生成:当前用户需要观看视频,则当用户打开由第二通信制式主导的视频应用程序时,视频应用程序将向应用处理器发送视频应用请求,从而应用处理器生成相应的视频通信指令并发送至第二通信模块,第二通信模块接收到视频通信指令时,根据视频通信指令携带的信息判定当前所需的通信场景类型为观看视频。Wherein, optionally, the communication scenario type may be judged according to the communication instruction acquired by the second communication module, and the communication instruction carries relevant information of the application scenario. The communication instruction may be generated by the application processor according to the application request sent by the application program of the relevant scene; or may be directly generated by the application program of the relevant scene. For example, the communication instruction is generated by the application processor according to the application request sent by the application program of the relevant scene: if the current user needs to watch a video, when the user opens the video application program dominated by the second communication mode, the video application program will send the video application program to the application processor A video application request is sent, so that the application processor generates a corresponding video communication instruction and sends it to the second communication module. When the second communication module receives the video communication instruction, it determines the type of the currently required communication scene according to the information carried by the video communication instruction. Watch the video.
步骤206,在通信场景类型为第一预设类型时,根据期望占用时间确定第二通信模块在期望占用时间内的第一通信保护策略,第一通信保护策略用于保护第二通信模块与第一通信设备之间的通信。 Step 206, when the type of communication scenario is the first preset type, determine a first communication protection strategy for the second communication module within the expected occupancy time according to the expected occupancy time, the first communication protection strategy is used to protect the second communication module and the second communication module A communication between communication devices.
其中,通信场景类型可以根据对时延、吞吐量等需求的大小进行划分。第一预设类型可以是指对时延要求较高和/或对吞吐量要求较高的场景类型,例如,可以是:时延敏感类型,对时延要求高但吞吐量要求不高的通信场景,比如游戏、通话;吞吐量敏感类型,对网速要求高但时延要求不高的通信场景,比如在线视频、音乐场景。Among them, the types of communication scenarios can be divided according to the size of requirements such as delay and throughput. The first preset type may refer to a scenario type that requires high latency and/or high throughput, for example, it may be: latency-sensitive type, communication that requires high latency but not high throughput Scenarios, such as games and calls; throughput-sensitive types, communication scenarios that require high network speed but low latency requirements, such as online video and music scenarios.
其中,可选地,第一通信保护策略可以为第二通信模块通过向第一通信设备做出不同的动作或发送不同的信息以指示第一通信设备根据不同的动作或信息进行相关的通信保护,以维持第二通信模块和第一通信设备之间的通信。Wherein, optionally, the first communication protection strategy may be that the second communication module instructs the first communication device to perform related communication protection according to different actions or information by taking different actions or sending different information to the first communication device. , to maintain communication between the second communication module and the first communication device.
在通信场景类型为第一预设类型时,不管是时延敏感类型还是吞吐量敏感类型,第一通信模块占用信道的时间将影响第二通信模块与第一设备之间的通信。因此,在通信场景类型为第一预设类型时,根据期望占用时间确定第一通信保护策略,可以有效降低期望占用时间对第二通信模块与第一设备之间通信的影响,有效提升第二通信模块与第一设备之间通信的吞吐量,降低时延。例如,可以根据期望占用时间对时延影响的大小,动态确定相应的第一通信保护策略,以针对性地降低对第二通信模块与第一通信设备之间的通信的时延影响,有效提升共存场景的通信质量,提高用户的体验。例如,根据期望占用时间对吞吐量,也可以理解为通信成功率影响的大小,动态确定相应的第一通信保护策略,以针对性地提高对第二通信模块与第一通信设备之间的通信的成功率,有效提升共存场景的通信质量,提高用户的体验。其中,以游戏场景类型且第一通信模块为蓝牙模块、第二通信模块为WIFI模块为例进行实测,时延改善高达到80%,吞吐量提升一倍,从而通信质量明显提升,用户的游戏体验度明显提升。When the communication scenario type is the first preset type, no matter it is a delay-sensitive type or a throughput-sensitive type, the time that the first communication module occupies the channel will affect the communication between the second communication module and the first device. Therefore, when the communication scenario type is the first preset type, determining the first communication protection strategy according to the expected occupancy time can effectively reduce the impact of the expected occupancy time on the communication between the second communication module and the first device, and effectively improve the second communication module. The communication throughput between the communication module and the first device reduces the time delay. For example, the corresponding first communication protection strategy can be dynamically determined according to the impact of the expected occupation time on the delay, so as to reduce the impact on the delay of the communication between the second communication module and the first communication device in a targeted manner, and effectively improve Communication quality in coexistence scenarios, improving user experience. For example, according to the impact of the expected occupation time on the throughput, which can also be understood as the influence of the communication success rate, the corresponding first communication protection strategy is dynamically determined to improve the communication between the second communication module and the first communication device in a targeted manner. The success rate can effectively improve the communication quality of the coexistence scene and improve the user experience. Among them, taking the game scene type as an example where the first communication module is a Bluetooth module and the second communication module is a WIFI module, the delay is improved by as much as 80%, and the throughput is doubled, so that the communication quality is significantly improved. The experience has been significantly improved.
本实施例提供的通信方法,通过获取第一通信模块当前周期占用信道的期望占用时间;获取第二通信模块在共存模式下的通信场景类型;在通信场景类型为第一预设类型时,根据期望占用时间确定第二通信模块在期望占用时间内的第一通信保护策略,第一通信保护策略用于保护第二通信模块与第一通信设备之间的通信。从而,通信方法可以有效降低期望占用时间对第二通信模块与第一设备之间通信的影响,有效提升第二通信模块与第一设备之间通信的吞吐量,降低时延,从而提升相应通信场景类型下的共存性能,提高通信 质量,以提高用户的体验。The communication method provided in this embodiment obtains the expected occupancy time of the channel occupied by the first communication module in the current cycle; obtains the communication scene type of the second communication module in the coexistence mode; when the communication scene type is the first preset type, according to The expected occupancy time determines a first communication protection strategy of the second communication module within the expected occupancy time, and the first communication protection strategy is used to protect communication between the second communication module and the first communication device. Therefore, the communication method can effectively reduce the impact of the expected occupancy time on the communication between the second communication module and the first device, effectively improve the throughput of the communication between the second communication module and the first device, and reduce the delay, thereby improving the corresponding communication Coexistence performance under scenario types, improve communication quality, and improve user experience.
在一些实施例中,如图3所示,第一预设类型包括时延敏感类型和/或吞吐量敏感类型,根据期望占用时间确定第二通信模块在期望占用时间内的第一通信保护策略,包括:In some embodiments, as shown in FIG. 3 , the first preset type includes a delay-sensitive type and/or a throughput-sensitive type, and the first communication protection strategy of the second communication module within the expected occupancy time is determined according to the expected occupancy time ,include:
步骤302,获取期望占用时间的时长等级。 Step 302, acquiring the duration level of the expected occupied time.
步骤304,根据时长等级确定第二通信模块在期望占用时间内的第一通信保护策略。Step 304: Determine the first communication protection strategy of the second communication module within the expected occupied time according to the duration level.
其中,可以预先对期望占用时间的时长等级进行划分,具体可以相应依据时延敏感类型和吞吐量敏感类型的通信需求进行划分。时长等级的数量和时长等级对应的时长大小可以根据实际需求进行设置和调整。Wherein, the duration classes of the expected occupation time may be divided in advance, specifically, the division may be made according to the communication requirements of the delay-sensitive type and the throughput-sensitive type. The number of duration levels and the duration corresponding to the duration levels can be set and adjusted according to actual needs.
例如,在通信场景类型为时延敏感类型时,对时延的要求较高,可以预设较多的时长等级,以使根据期望占用时间的时长等级确定的第一通信保护策略更精准的匹配时延需求,尽可能降低第一通信模块占用信道对第二通信模块与第一通信设备之间的通信造成的时延影响,例如,通过适当的丢包的保护策略来换取更低的时延。For example, when the communication scenario type is a delay-sensitive type, the delay requirement is high, and more duration levels can be preset, so that the first communication protection strategy determined according to the duration level of the expected occupied time can be more accurately matched Latency requirements, to minimize the impact of the delay caused by the channel occupied by the first communication module on the communication between the second communication module and the first communication device, for example, through an appropriate packet loss protection strategy in exchange for a lower delay .
例如,在通信场景类型为吞吐量敏感类型时,对吞吐量要求高,期望占用时间对吞吐量的影响较小,可以预设较少的时长等级,以使根据期望占用时间的时长等级确定的第一通信保护策略更精准的匹配吞吐量需求,尽可能提高第一通信模块占用信道对第二通信模块与第一通信设备之间的通信造成的通信成功率影响,例如,适当牺牲瞬时的时延,来换取通信的成功率。For example, when the communication scenario type is throughput-sensitive, the throughput requirement is high, and the impact of the expected occupancy time on the throughput is small, and fewer duration levels can be preset so that the The first communication protection strategy matches the throughput requirements more accurately, and maximizes the influence of the communication success rate caused by the channel occupied by the first communication module on the communication between the second communication module and the first communication device, for example, appropriately sacrificing the instantaneous time Delay, in exchange for the success rate of communication.
通过获取期望占用时间的时长等级,根据时长等级确定第二通信模块在期望占用时间内的第一通信保护策略,可以快速的根据期望占用时间确定第一通信保护策略,从而提高通信保护的效率以提高共存场景的通信质量,提高用户的体验。By obtaining the duration level of the expected occupancy time, and determining the first communication protection strategy of the second communication module within the expected occupancy time according to the duration level, the first communication protection strategy can be quickly determined according to the expected occupancy time, thereby improving the efficiency of communication protection and Improve communication quality in coexistence scenarios and improve user experience.
在一些实施例中,在通信场景类型为时延敏感类型时(步骤401),如图4所示,根据时长等级确定第二通信模块在期望占用时间内的第一通信保护策略,包括:In some embodiments, when the communication scenario type is a delay-sensitive type (step 401), as shown in FIG. 4 , determining the first communication protection strategy of the second communication module within the expected occupation time according to the duration level includes:
步骤402,在时长等级为第一时长等级时,第一通信保护策略为第二通信模块在当前周期内禁止向第一通信设备发送保护信息,以使第一通信设备默认第二通信模块当前处于通信交互的工作状态。 Step 402, when the duration level is the first duration level, the first communication protection policy is that the second communication module is prohibited from sending protection information to the first communication device in the current period, so that the first communication device defaults that the second communication module is currently in The working status of the communication interaction.
步骤404,在时长等级为第二时长等级时,第一通信保护策略为第二通信模块向第一通信设备发送第一保护信息,以指示第一通信设备在第一预设时间段暂停向第二通信模块发送通信数据并等待与第二通信模块的通信。 Step 404, when the duration level is the second duration level, the first communication protection strategy is that the second communication module sends first protection information to the first communication device to instruct the first communication device to suspend communication to the first communication device for a first preset time period. The second communication module sends communication data and waits for communication with the second communication module.
其中,第一时长等级对应的时长小于第二时长等级对应的时长,例如,第一时长等级对应的时长为[0,T0],第二时长等级对应的时长对应的时长为[T0,T1],T1>T0。T1和T0可以是变量。Wherein, the duration corresponding to the first duration level is shorter than the duration corresponding to the second duration grade, for example, the duration corresponding to the first duration grade is [0, T0], and the duration corresponding to the second duration grade is [T0, T1] , T1>T0. T1 and T0 can be variables.
其中,在时长等级为第一时长等级时,说明当前期望占用时间较短,比如2ms(仅做举例,不做限定),对于时延敏感类型场景的影响较小,可以通过适当的丢包,来换取第二通信模块与第一通信设备更快的通信。因此,可以确定第一通信保护策略为第二通信模块在当前周期内禁止向第一通信设备发送保护信息,以使第一通信设备默认第二通信模块当前处于通信交互的工作状态。从而,第一通信设备依旧给第二通信模块发送相关的通信数据,尽管被第一通信模块占用信道的短暂时间内不能接收和发送数据而造成小部分丢包,但可以确保与第一通信设备更快的通信,降低时延的影响,提高共存场景的通信质量。Among them, when the duration level is the first duration level, it means that the current expected occupancy time is relatively short, such as 2ms (just for example, not limited), and the impact on delay-sensitive scenarios is small, and appropriate packet loss can be used. In exchange for faster communication between the second communication module and the first communication device. Therefore, it may be determined that the first communication protection policy is that the second communication module is prohibited from sending protection information to the first communication device in the current period, so that the first communication device defaults that the second communication module is currently in a working state of communication interaction. Therefore, the first communication device still sends relevant communication data to the second communication module. Although the first communication module cannot receive and send data within a short period of time when the channel is occupied by the first communication module, resulting in a small part of packet loss, it can ensure communication with the first communication device. Faster communication, reducing the impact of delay, and improving communication quality in coexistence scenarios.
其中,在时长等级为第二时长等级时,说明当前期望占用时间较长,比如3ms(仅做举例,不做限定),对于时延敏感类型场景的影响较高,若按第一时长等级的策略,丢包将加重,可以通过适当抢占信道资源来换取第二通信模块与第一通信设备更快的通信。因此,可以确定第一通信保护策略为第二通信模块向第一通信设备发送第一保护信息,以指示第一通信设备在第一预设时间段暂停向第二通信模块发送通信数据并等待与第二通信模块的通信。从而,第一通信设备在短暂的第一预设时间内,停止向第二通信模块发送相关的通信数据,尽管第一预设时间内不能接收和发送数据,但并没有造成丢包且由于时间 短依旧可以换取和第一通信设备更快的通信,降低时延的影响,提高共存场景的通信质量。Among them, when the duration level is the second duration level, it means that the current expected occupancy time is relatively long, such as 3ms (for example only, not limited), which has a high impact on delay-sensitive scenarios. According to the strategy, the packet loss will be aggravated, and the channel resources can be seized appropriately in exchange for faster communication between the second communication module and the first communication device. Therefore, it can be determined that the first communication protection policy is that the second communication module sends the first protection information to the first communication device, so as to instruct the first communication device to suspend sending communication data to the second communication module during the first preset time period and wait for communication with the second communication module. Communication of the second communication module. Therefore, the first communication device stops sending relevant communication data to the second communication module within a short first preset time. Although data cannot be received and sent within the first preset time, packet loss is not caused and due to time Short can still be exchanged for faster communication with the first communication device, reducing the impact of delay, and improving communication quality in coexistence scenarios.
在一些实施例中,在通信场景类型为时延敏感类型时,如图4所示,根据时长等级确定第二通信模块在期望占用时间内的第一通信保护策略,还包括:In some embodiments, when the communication scenario type is a delay-sensitive type, as shown in FIG. 4 , determining the first communication protection strategy of the second communication module within the expected occupation time according to the duration level further includes:
步骤406,在时长等级为第三时长等级时,第一通信保护策略为第二通信模块向第一通信设备发送第二保护信息,以指示第一通信设备在第二通信模块休眠状态结束前将通信数据进行缓存。 Step 406, when the duration level is the third duration level, the first communication protection strategy is that the second communication module sends second protection information to the first communication device to instruct the first communication device to send Communication data is cached.
其中,第三时长等级对应的时长大于第二时长等级对应的时长。例如,第一时长等级对应的时长为[0,T0],第二时长等级对应的时长对应的时长为[T0,T1],第三时长等级对应的时长对应的时长为[T1,T2],且T2>T1>T0,T2、T1、T0均可以是变量。Wherein, the duration corresponding to the third duration level is longer than the duration corresponding to the second duration grade. For example, the duration corresponding to the first duration level is [0, T0], the duration corresponding to the second duration grade is [T0, T1], and the duration corresponding to the third duration grade is [T1, T2]. And T2>T1>T0, T2, T1, T0 can all be variables.
其中,在时长等级为第三时长等级时,说明当前期望占用时间更长,比如15ms以上(仅做举例,不做限定),对于时延敏感类型场景的影响更高,若按第二时长等级的策略,抢占资源的时间有限,可能只有几毫秒,此时,维持第二通信模块与第一通信设备的通信稳定连接更为重要,因此,确定第一通信保护策略为第二通信模块向第一通信设备发送第二保护信息,以指示第一通信设备在第二预设时间段暂停向第二通信模块发送通信数据,并在第二通信模块休眠状态结束前将通信数据进行缓存,直至第二通信模块唤醒后再将通信数据发送。从而,第一通信设备能够确定第二通信模块仍然在线仅是进入休眠状态,在较长的第二预设时间内,停止向第二通信模块发送相关的通信数据并对相关通信数据进行缓存,尽管第二通信模块在第二预设时间内不能接收和发送数据,但并没有造成丢包且依旧保持与第一通信设备的稳定连接,以提高共存场景的通信质量。Among them, when the duration level is the third duration level, it means that the current expected occupancy time is longer, such as more than 15ms (just for example, not limited), and has a higher impact on delay-sensitive scenarios. If the second duration level According to the strategy, the time to seize resources is limited, maybe only a few milliseconds. At this time, it is more important to maintain a stable communication connection between the second communication module and the first communication device. Therefore, it is determined that the first communication protection strategy is the second communication module. A communication device sends second protection information to instruct the first communication device to suspend sending communication data to the second communication module for a second preset time period, and to buffer the communication data before the end of the sleep state of the second communication module until the second The second communication module wakes up and then sends the communication data. Therefore, the first communication device can determine that the second communication module is still online and only enters a dormant state, and stops sending relevant communication data to the second communication module within a relatively long second preset time and caches the relevant communication data, Although the second communication module cannot receive and send data within the second preset time, it does not cause packet loss and still maintains a stable connection with the first communication device, so as to improve communication quality in a coexistence scenario.
在一些实施例中,在通信场景类型为吞吐量敏感类型时(步骤501),如图5所示,根据时长等级确定第二通信模块在期望占用时间内的第一通信保护策略,包括:In some embodiments, when the communication scenario type is a throughput-sensitive type (step 501), as shown in FIG. 5 , determining the first communication protection strategy of the second communication module within the expected occupation time according to the duration level includes:
步骤502,在时长等级为第四时长等级时,第一通信保护策略为第二通信模块向通信站点发送第一保护信息,以指示第一通信设备在第一预设时间段暂停向第二通信模块发送通信数据并等待与第二通信模块的通信。 Step 502, when the duration level is the fourth duration level, the first communication protection strategy is that the second communication module sends the first protection information to the communication station to instruct the first communication device to suspend communication with the second communication device within the first preset time period The module sends communication data and waits for communication with the second communication module.
步骤504,在时长等级为第五时长等级时,第一通信保护策略为第二通信模块向第一通信设备发送第二保护信息,以指示第一通信设备在第二通信模块休眠状态结束前将通信数据进行缓存。 Step 504, when the duration level is the fifth duration level, the first communication protection strategy is that the second communication module sends the second protection information to the first communication device to instruct the first communication device to stop the second communication module before the dormant state ends. Communication data is cached.
其中,第五时长等级对应的时长大于第四时长等级对应的时长。例如,第四时长等级对应的时长为[0,T0],第五时长等级对应的时长对应的时长为[T0,T1],T1>T0,T1、T0均可以是变量。Wherein, the duration corresponding to the fifth duration level is longer than the duration corresponding to the fourth duration grade. For example, the duration corresponding to the fourth duration level is [0, T0], the duration corresponding to the fifth duration grade is [T0, T1], T1>T0, and both T1 and T0 can be variables.
其中,在时长等级为第四时长等级时,说明当前期望占用时间较短,比如2ms(仅做举例,不做限定),由于吞吐量敏感类型场景的通信成功率很关键,若按第一时长等级的策略,丢包将加重,通信速率将受到很大的影响,可以通过适当抢占信道资源来短暂暂停通信,避免丢包。因此,可以确定第一通信保护策略为第二通信模块向第一通信设备发送第一保护信息,以指示第一通信设备在第一预设时间段暂停向第二通信模块发送通信数据并等待与第二通信模块的通信。从而,第一通信设备在短暂的第一预设时间内,停止向第二通信模块发送相关的通信数据,尽管第一预设时间内不能接收和发送数据,但并没有造成丢包且由于时间短依旧可以换取和第一通信设备更快的通信,降低时延的影响,提高共存场景的通信质量。Among them, when the duration level is the fourth duration level, it means that the current expected occupancy time is relatively short, such as 2ms (just for example, not limited). Since the communication success rate of throughput-sensitive scenarios is very important, if the first duration With the level strategy, the packet loss will increase, and the communication rate will be greatly affected. You can temporarily suspend the communication by properly preempting channel resources to avoid packet loss. Therefore, it can be determined that the first communication protection policy is that the second communication module sends the first protection information to the first communication device, so as to instruct the first communication device to suspend sending communication data to the second communication module during the first preset time period and wait for communication with the second communication module. Communication of the second communication module. Therefore, the first communication device stops sending relevant communication data to the second communication module within a short first preset time. Although data cannot be received and sent within the first preset time, packet loss is not caused and due to time Short can still be exchanged for faster communication with the first communication device, reducing the impact of delay, and improving communication quality in coexistence scenarios.
其中,在时长等级为第五时长等级时,说明当前期望占用时间更长,比如达到10ms以上(仅做举例,不做限定),对于吞吐量敏感类型场景的时延影响加重,若按第四时长等级的策略,抢占资源的时间有限,可能只有几毫秒,此时,维持第二通信模块与第一通信设备的通信稳定连接更为重要,因此,确定第一通信保护策略为第二通信模块向第一通信设备发送第二保护信息,以指示第一通信设备在第二预设时间段暂停向第二通信模块发送通信数据,并在第二通信模块休眠状态结束前将通信数据进行缓存,直至第二通信模块 唤醒后再将通信数据发送。从而,第一通信设备能够确定第二通信模块仍然在线仅是进入休眠状态,在较长的第二预设时间内,停止向第二通信模块发送相关的通信数据并对相关通信数据进行缓存,尽管第二通信模块在第二预设时间内不能接收和发送数据,但并没有造成丢包且依旧保持与第一通信设备的稳定连,以提高共存场景的通信质量。Among them, when the duration level is the fifth duration level, it means that the current expected occupancy time is longer, such as reaching more than 10ms (just for example, not limited), and the delay impact on throughput-sensitive scenarios is aggravated. The duration-level strategy has a limited time to seize resources, which may only be a few milliseconds. At this time, it is more important to maintain a stable communication connection between the second communication module and the first communication device. Therefore, the first communication protection strategy is determined as the second communication module Sending second protection information to the first communication device to instruct the first communication device to suspend sending communication data to the second communication module for a second preset time period, and to buffer the communication data before the end of the sleep state of the second communication module, The communication data is not sent until the second communication module wakes up. Therefore, the first communication device can determine that the second communication module is still online and only enters a dormant state, and stops sending relevant communication data to the second communication module within a relatively long second preset time and caches the relevant communication data, Although the second communication module cannot receive and send data within the second preset time, it does not cause packet loss and still maintains a stable connection with the first communication device, so as to improve communication quality in coexistence scenarios.
在一些实施例中,如图6所示,通信方法还包括:In some embodiments, as shown in FIG. 6, the communication method further includes:
步骤208,在通信场景类型为第二预设类型时,确定第二通信模块在期望占用时间内的第二通信保护策略,第二通信保护策略为第二通信模块向第一通信设备发送第二保护信息,以指示第一通信设备在第二通信模块休眠状态结束前将通信数据进行缓存。 Step 208, when the communication scenario type is the second preset type, determine a second communication protection strategy of the second communication module within the expected occupation time, the second communication protection strategy is that the second communication module sends the second The protection information is used to instruct the first communication device to cache the communication data before the end of the sleep state of the second communication module.
其中,通信场景类型可以根据对时延、吞吐量等需求的大小进行划分。相应地,第二预设类型可以是指对时延要求较和吞吐量要求均较高的场景类型,例如,可以是:空闲场景类型,例如电子设备的待机状态。Among them, the types of communication scenarios can be divided according to the size of requirements such as delay and throughput. Correspondingly, the second preset type may refer to a scene type that requires relatively high latency and throughput, for example, may be: an idle scene type, such as a standby state of an electronic device.
当在通信场景类型为空闲场景类型时,期望占用时间对第二通信模块与第一通信设备之间通信几乎没有影响,第二通信模块相当于进入休眠状态,因此,可以确定第二通信保护策略为第二通信模块向第一通信设备发送第二保护信息,以指示第一通信设备在第二通信模块休眠状态结束前将通信数据进行缓存。从而,第一通信设备能够确定第二通信模块仍然在线仅是进入休眠状态,在较长的第二预设时间内,停止向第二通信模块发送相关的通信数据并对相关通信数据进行缓存,尽管第二通信模块在第二预设时间内不能接收和发送数据,但并没有造成丢包且依旧保持与第一通信设备的稳定连接,可以提高共存场景的通信质量。When the communication scenario type is an idle scenario type, the expected occupation time has almost no impact on the communication between the second communication module and the first communication device, and the second communication module is equivalent to entering a dormant state, therefore, the second communication protection strategy can be determined Sending second protection information to the first communication device for the second communication module, to instruct the first communication device to cache the communication data before the end of the sleep state of the second communication module. Therefore, the first communication device can determine that the second communication module is still online and only enters a dormant state, and stops sending relevant communication data to the second communication module within a relatively long second preset time and caches the relevant communication data, Although the second communication module cannot receive and send data within the second preset time, it does not cause packet loss and still maintains a stable connection with the first communication device, which can improve communication quality in coexistence scenarios.
在上述实施例中,第一保护信息和第二保护信息可以均可供第一通信设备识别,以使第一通信设备通过未接收到相关保护信息、接收到第一保护信息和接收到第二保护信息识别出第二通信模块的当前状态并根据第二通信模块的指示反馈相应动作;或者,也可以是禁止发送保护信息、发送第一保护信息和发送第二保护信息的发送动作可供第一通信设备识别,以使第一通信设备通过第二通信模块的发送动作识别出第二通信模块的当前状态并根据第二通信模块的指示反馈相应动作。In the above embodiment, both the first protection information and the second protection information may be identifiable by the first communication device, so that the first communication device may pass through not receiving relevant protection information, receiving the first protection information and receiving the second The protection information identifies the current state of the second communication module and feeds back corresponding actions according to the instructions of the second communication module; or, the sending actions of prohibiting the sending of the protection information, sending the first protection information and sending the second protection information are available for the second A communication device identification, so that the first communication device recognizes the current state of the second communication module through the sending action of the second communication module and feeds back corresponding actions according to the instructions of the second communication module.
在上述实施例中,如图7所示(其中,t0-t2为一个共存周期),第一保护信息或第二保护信息在第一通信模块的占用信道的起始时刻t0发送,即保护信息的发送时刻与第一通信模块占用信道的起始时刻为同一时刻,从而可以从第一通信模块开始占用信道的同一时刻开始保护第二通信模块与第一通信设备之间的通信连接,避免第二通信模块与第一通信设备之间连接的中断,提高第一通信模块和第二通信模块的共存性能。In the above embodiment, as shown in FIG. 7 (where t0-t2 is a coexistence period), the first protection information or the second protection information is sent at the start time t0 of the occupied channel of the first communication module, that is, the protection information The sending time of the first communication module is the same as the starting time when the channel is occupied by the first communication module, so that the communication connection between the second communication module and the first communication device can be protected from the same time when the first communication module starts to occupy the channel, and the second communication module can be avoided. The interruption of the connection between the second communication module and the first communication device improves the coexistence performance of the first communication module and the second communication module.
可选地,上述实施例中的第一保护信息可以为携带有第一相关信息的第一保护帧,第一相关信息包括期望占用时间及第一预设时间段;和/或第二保护信息为携带有第二相关信息的第二保护帧,第二相关信息包括期望占用时间;和/或第二通信模块在当前周期内禁止向第一通信设备发送保护信息,可以理解为第二通信模块在当前周期内禁止向第一通信设备发送第一保护帧和第二保护帧。Optionally, the first protection information in the above embodiment may be the first protection frame carrying the first related information, the first related information includes the expected occupancy time and the first preset time period; and/or the second protection information It is the second protection frame carrying the second relevant information, the second relevant information includes the expected occupancy time; and/or the second communication module is prohibited from sending protection information to the first communication device in the current period, which can be understood as the second communication module It is forbidden to send the first protection frame and the second protection frame to the first communication device in the current period.
进一步可选地,当第二通信模块为WIFI模块时,第一保护帧可以为清除发送(Clear to send,CTS)帧,CTS帧的作用是抢占当前信道的资源,且第一通信设备,例如AP并不会降低当前第二通信模块或第二通信模块所处的电子设备的优先级,但是CTS帧占用的时间很短,通常都是几毫秒。Further optionally, when the second communication module is a WIFI module, the first protection frame may be a clear to send (Clear to send, CTS) frame, and the function of the CTS frame is to seize the resources of the current channel, and the first communication device, such as The AP does not lower the priority of the current second communication module or the electronic device where the second communication module is located, but the time occupied by the CTS frame is very short, usually several milliseconds.
进一步可选地,当第二通信模块为WIFI模块时,第二保护帧可以为休眠保护(Power Save)帧,具体可以是携带有休眠标记的空数据帧(Null data或Qos Null data),Power Save帧将使AP降低当前第二通信模块或第二通信模块所处的电子设备的优先级,从而减少对AP的资源占用。Further optionally, when the second communication module is a WIFI module, the second protection frame can be a dormancy protection (Power Save) frame, specifically can be a null data frame (Null data or Qos Null data) carrying a dormancy mark, Power Save The Save frame will enable the AP to lower the priority of the current second communication module or the electronic device where the second communication module is located, thereby reducing resource occupation of the AP.
其中,WIFI模块向AP发送CTS帧可以确保WIFI模块的功能可用,CTS帧可以霸占信道一段时间,以让AP在第一预设时间段内不向WIFI模块发送数据。其中,WIFI模 块向AP发送Power Save帧以使AP识别出WIFI模块在线关联仅是处于休眠状态,并将数据暂时缓存起来直至WIFI模块结束休眠状态。Wherein, the CTS frame sent by the WIFI module to the AP can ensure that the function of the WIFI module is available, and the CTS frame can occupy the channel for a period of time, so that the AP does not send data to the WIFI module within the first preset time period. Among them, the WIFI module sends a Power Save frame to the AP so that the AP recognizes that the online association of the WIFI module is only in a dormant state, and temporarily caches the data until the WIFI module ends the dormant state.
在一些实施例中,第一通信模块用于与第二通信设备进行通信交互;第一通信模块可以根据与第二通信设备进行通信交互时的通信质量,动态调整通信行为,降低时域的期望占用时间。例如,第一通信模块可以通过动态将通信速率调高,提升载波效率,扩宽通信的带宽,以降低期望占用时间。例如,以动态提升通信速率为例,如图8所示,通信方法还可以包括:In some embodiments, the first communication module is used to communicate and interact with the second communication device; the first communication module can dynamically adjust the communication behavior according to the communication quality of the communication interaction with the second communication device, reducing the expectation in the time domain take up time. For example, the first communication module can dynamically increase the communication rate to improve carrier efficiency and widen the communication bandwidth to reduce the expected occupancy time. For example, taking dynamically increasing the communication rate as an example, as shown in Figure 8, the communication method may also include:
步骤602,获取第一通信模块与第二通信设备通信交互的通信质量信息。 Step 602, acquiring communication quality information of communication interaction between the first communication module and the second communication device.
步骤604,在通信质量信息满足预设条件时,将第一通信模块当前周期的通信速率调整至目标速率,以降低第一通信模块的期望占用时间。 Step 604, when the communication quality information satisfies the preset condition, adjust the communication rate of the first communication module in the current period to the target rate, so as to reduce the expected occupancy time of the first communication module.
其中,通信质量信息可以是第一通信模块与第二通信设备通信交互时双方接收机收发信号涉及的相关信息,例如,以第一通信模块为蓝牙模块为例,通信质量信息可以包括第一通信模块与第二通信设备通信交互时双方可使用的跳频信道数量、双方通信的成功率、双方接收到通信信号的信噪比及信号接收强度、双方支持的速率和带宽等。可以理解,还可以包括其他信息,在此不再一一举例。Wherein, the communication quality information may be the relevant information related to the signals sent and received by both receivers when the first communication module communicates with the second communication device. For example, taking the first communication module as a Bluetooth module as an example, the communication quality information may include the first communication When the module communicates with the second communication device, the number of frequency hopping channels that both parties can use, the success rate of communication between the two parties, the signal-to-noise ratio and signal reception strength of the communication signals received by both parties, the rate and bandwidth supported by both parties, etc. It can be understood that other information may also be included, which will not be listed one by one here.
其中,通信质量信息满足预设条件可以是指通信质量满足通信交互的相关要求,不影响双方的通信质量。可选地,当通信质量信息包括第一通信模块与第二通信设备进行通信交互时双方通信的成功率、双方接收到通信信号的信噪比及信号接收强度时,预设条件可以包括信号接收强度大于预设强度、信噪比大于第一预设阈值及成功率大于第二预设阈值中的至少两个条件。其中,预设阈值可以根据实际通信的质量要求进行设置及调整,具体不做限定,例如,可以是当前信号强度大于-50dBm、通信成功率在98%以上、当前双方接收解调的信噪比在余量3dB以上。Wherein, the communication quality information meeting the preset condition may mean that the communication quality satisfies relevant requirements of communication interaction and does not affect the communication quality of both parties. Optionally, when the communication quality information includes the success rate of the communication between the first communication module and the second communication device, the signal-to-noise ratio and signal reception strength of the communication signal received by both parties, the preset condition may include signal reception The intensity is greater than a preset intensity, the signal-to-noise ratio is greater than a first preset threshold, and the success rate is greater than a second preset threshold. Among them, the preset threshold can be set and adjusted according to the actual communication quality requirements, and there is no specific limitation. For example, it can be that the current signal strength is greater than -50dBm, the communication success rate is above 98%, and the signal-to-noise ratio of the current receiving demodulation of both parties More than 3dB margin.
其中,相关参数条件的选择优先级,可以根据第一通信模块的实际应用环境进行选择,例如,当第一通信模块应用于手机设备时,可以选择信噪比大于第一预设阈值及成功率大于第二预设阈值中的两个条件作为预设条件。预设条件的具体条件数量可以根据实际获取的通信质量信息的相关参数进行调整,获取的相关质量参数越多可以设置数量更多的条件。Among them, the selection priority of relevant parameter conditions can be selected according to the actual application environment of the first communication module. For example, when the first communication module is applied to a mobile phone device, it can be selected that the signal-to-noise ratio is greater than the first preset threshold and success rate Two conditions greater than the second preset threshold are used as preset conditions. The number of specific conditions of the preset conditions can be adjusted according to the relevant parameters of the actually obtained communication quality information, and the more relevant quality parameters are obtained, the more conditions can be set.
其中,当通信质量信息满足预设条件时,则说明当前第一通信模块和第二通信设备之间的通信质量好,因此可以提高通信速率。将通信速率调整至目标速率,可以尽可能的降低第一通信模块时域的期望占用时间,从而为第二通信模块的通信让出更多的时间。例如,将当前周期的通信速率由1Mbps提升到2Mbps,即便加载相同上层传递下来的数据,时域所占用时间也可以成比例减少。Wherein, when the communication quality information satisfies the preset condition, it means that the current communication quality between the first communication module and the second communication device is good, so the communication rate can be increased. Adjusting the communication rate to the target rate can reduce the expected occupancy time of the time domain of the first communication module as much as possible, thereby allowing more time for the communication of the second communication module. For example, if the communication rate of the current cycle is increased from 1Mbps to 2Mbps, even if the data transmitted from the same upper layer is loaded, the time occupied by the time domain can be reduced proportionally.
其中,可选地,如图9所示,将第一通信模块当前周期的通信速率调整至目标速率,包括:Wherein, optionally, as shown in FIG. 9, adjusting the communication rate of the first communication module in the current period to the target rate includes:
步骤702,获取当前第一通信模块与第二通信设备进行通信的通信环境允许的最高速率。 Step 702, obtaining the maximum rate allowed by the current communication environment where the first communication module communicates with the second communication device.
步骤704,将最高速率作为目标速率进行当前周期的通信。 Step 704, use the highest rate as the target rate to perform communication in the current cycle.
其中,当通信质量信息满足预设条件时,说明当前第一通信模块和第二通信设备之间的通信质量好,可以在通信质量信息满足预设条件的基础上,获取当前第一通信模块与第二通信设备进行通信的通信环境允许的最高速率,并将最高速率作为目标速率进行当前周期的通信,从而最大限度的降低期望占用时间。可选地,可以预设的速率档位,根据预设的速率档位逐步提升通信速率,直至提升至当前通信环境允许的最高速率后,将最高速率作为目标速率进行当前周期的通信。其中,预设的速率档位,可以根据实际需求进行设置,例如每个速率档位为1Mbps,从而根据预设的速率档位逐步提升通信速率可以是每次提升1Mbps,直至提升至当前通信环境允许的最高速率。其中,可以预设通信双方均支持的速 率表,速率表包括速率档位和相应的速率值,从而可以根据速率表逐步调整速率。Wherein, when the communication quality information satisfies the preset condition, it indicates that the current communication quality between the first communication module and the second communication device is good, and the communication quality information between the first communication module and the second communication device can be obtained on the basis that the communication quality information satisfies the preset condition. The second communication device communicates at the highest rate allowed by the communication environment, and uses the highest rate as the target rate for communication in the current cycle, thereby minimizing the expected occupation time. Optionally, the communication rate can be gradually increased according to the preset rate gear until it reaches the highest rate allowed by the current communication environment, and then the highest rate is used as the target rate for communication in the current period. Among them, the preset rate gear can be set according to actual needs, for example, each rate gear is 1Mbps, so that the communication rate can be gradually increased according to the preset rate gear by 1Mbps each time, until it reaches the current communication environment The highest rate allowed. Among them, the rate table supported by both communication parties can be preset, and the rate table includes the rate gear and the corresponding rate value, so that the rate can be gradually adjusted according to the rate table.
在上述实施例中,在第一通信保护策略确定之前需要获取第一通信模块的期望占用时间。如图10所示,获取所述第一通信模块当前周期占用信道的期望占用时间,包括:In the foregoing embodiments, the expected occupancy time of the first communication module needs to be acquired before the first communication protection policy is determined. As shown in Figure 10, obtaining the expected occupancy time of the channel occupied by the first communication module in the current cycle includes:
步骤802,获取第一通信模块当前周期需要传输的数据总量及当前周期的通信速率。 Step 802, acquiring the total amount of data to be transmitted by the first communication module in the current cycle and the communication rate in the current cycle.
步骤804,根据数据总量和通信速率获取期望占用时间。In step 804, the expected elapsed time is obtained according to the total amount of data and the communication rate.
其中,当前周期需要传输的数据总量是指第一通信模块当前进行通信需要传输的实际数据量,包括上一周期未传输完成的数据量和当前周期应用层下发的数据量,可以理解为上一周期未传输完成的数据量和当前周期应用层下发的数据量之和。Among them, the total amount of data to be transmitted in the current cycle refers to the actual amount of data that needs to be transmitted by the first communication module for current communication, including the amount of untransmitted data in the previous cycle and the amount of data sent by the application layer in the current cycle, which can be understood as The sum of the amount of untransmitted data in the previous cycle and the amount of data delivered by the application layer in the current cycle.
其中,当前周期的通信速率反映当前周期传输数据的能力。当前周期的通信速率可以通过上述实施例的相关步骤获取,也可以根据上N个周期中每个周期有效数据传输能力获取。Wherein, the communication rate of the current period reflects the capability of transmitting data in the current period. The communication rate of the current cycle can be obtained through the relevant steps of the above embodiments, or can be obtained according to the effective data transmission capability of each cycle in the previous N cycles.
可以理解,期望占用时间为数据总量和通信速率的比值。从而根据数据总量和通信速率,即可获取第一通信当前周期占用信道的期望占用时间。It can be understood that the expected occupied time is the ratio of the total amount of data to the communication rate. Therefore, according to the total amount of data and the communication rate, the expected occupancy time of the channel occupied by the current cycle of the first communication can be obtained.
在一些实施例中,通信方法还可以包括:In some embodiments, the communication method may also include:
步骤902,设定占用时间阈值,若获取的期望占用时间大于预设占用时间阈值,则停止第一通信模块对信道的占用,避免第一通信模块占用时间过久导致第二通信模块的断流发生。其中,占用时间阈值可以根据实际通信需求进行设置和调整,不同通信场景下占用时间阈值可以改变。例如,时延要求较高时延敏感类型场景或吞吐量敏感类型场景,设置的占用时间阈值可以较小,例如游戏场景,占用时间阈值可以是15ms;时延和吞吐量要求不高的空闲场景,设置的占用时间阈值可以较大,例如,占用时间阈值可以是30ms。可选地,占用时间阈值设置多个以匹配不同的场景类型,并内置在应用的电子设备或第一通信模块、第二通信模块中,或者,也可以直接由电子设备或第一通信模块、第二通信模块等根据通信场景动态调整。Step 902, set the occupancy time threshold, if the obtained expected occupancy time is greater than the preset occupancy time threshold, stop the occupation of the channel by the first communication module, so as to avoid the interruption of the second communication module caused by the occupancy time of the first communication module for too long occur. Wherein, the occupied time threshold can be set and adjusted according to actual communication requirements, and the occupied time threshold can be changed in different communication scenarios. For example, for latency-sensitive scenarios or throughput-sensitive scenarios with high latency requirements, the occupancy time threshold can be set smaller, such as game scenarios, the occupancy time threshold can be 15ms; for idle scenarios with low latency and throughput requirements , the set occupancy time threshold may be larger, for example, the occupancy time threshold may be 30ms. Optionally, multiple occupancy time thresholds are set to match different scene types, and are built into the electronic device or the first communication module and the second communication module of the application, or can also be directly controlled by the electronic device or the first communication module, The second communication module etc. are dynamically adjusted according to the communication scene.
应该理解的是,虽然上述实施例的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,上述实施例的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flow chart of the above embodiments are shown sequentially as indicated by the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flow charts of the above-mentioned embodiments may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. These sub-steps Or the order of execution of the stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or substeps of other steps or stages.
基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的通信方法的通信装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个通信装置实施例中的具体限定可以参见上文中对于通信方法的限定,在此不再赘述。Based on the same inventive concept, an embodiment of the present application further provides a communication device for implementing the communication method involved above. The solution to the problem provided by the device is similar to the implementation described in the above method, so the specific limitations in one or more communication device embodiments provided below can refer to the above-mentioned definition of the communication method, here No longer.
在一些实施例中,如图11所示,提供了一种通信装置,包括:占用时间获取模块、场景类型获取模块和第一通信保护模块。In some embodiments, as shown in FIG. 11 , a communication device is provided, including: an elapsed time acquisition module, a scene type acquisition module, and a first communication protection module.
占用时间获取模块210,用于获取第一通信模块当前周期占用信道的期望占用时间。The occupancy time acquisition module 210 is configured to acquire the expected occupancy time of the channel occupied by the first communication module in the current period.
场景类型获取模块220,用于获取第二通信模块在共存模式下的通信场景类型,第一通信模块和第二通信模块分别用于支持不同制式的无线通信。The scenario type acquisition module 220 is configured to acquire the communication scenario type of the second communication module in the coexistence mode, and the first communication module and the second communication module are respectively configured to support wireless communication of different standards.
第一通信保护模块230,用于在通信场景类型为第一预设类型时,根据期望占用时间确定第二通信模块在期望占用时间内的第一通信保护策略,第一通信保护策略用于保护第二通信模块与第一通信设备之间的通信。The first communication protection module 230 is configured to determine the first communication protection strategy of the second communication module within the expected occupancy time according to the expected occupancy time when the communication scenario type is the first preset type, and the first communication protection strategy is used to protect Communication between the second communication module and the first communication device.
本实施例提供的通信装置,通过获取第一通信模块当前周期占用信道的期望占用时间;获取第二通信模块在共存模式下的通信场景类型;在通信场景类型为第一预设类型时,根据期望占用时间确定第二通信模块在期望占用时间内的第一通信保护策略,第一通信保 护策略用于保护第二通信模块与第一通信设备之间的通信。从而,通信方法可以有效降低期望占用时间对第二通信模块与第一设备之间通信的影响,有效提升第二通信模块与第一设备之间通信的吞吐量,降低时延,从而提升相应通信场景类型下的共存性能,提高通信质量,以提高用户的体验。The communication device provided in this embodiment obtains the expected occupancy time of the channel occupied by the first communication module in the current cycle; obtains the communication scenario type of the second communication module in the coexistence mode; when the communication scenario type is the first preset type, according to The expected occupancy time determines a first communication protection strategy of the second communication module within the expected occupancy time, and the first communication protection strategy is used to protect communication between the second communication module and the first communication device. Therefore, the communication method can effectively reduce the impact of the expected occupancy time on the communication between the second communication module and the first device, effectively improve the throughput of the communication between the second communication module and the first device, and reduce the delay, thereby improving the corresponding communication Coexistence performance under scenario types, improve communication quality, and improve user experience.
在一些实施例中,如图12所示,通信装置还包括:第二通信保护模块。In some embodiments, as shown in FIG. 12 , the communication device further includes: a second communication protection module.
第二通信保护模块240,用于在通信场景类型为第二预设类型时,确定第二通信模块在期望占用时间内的第二通信保护策略,第二通信保护策略为第二通信模块向第一通信设备发送第二保护信息,以指示第一通信设备在第二通信模块休眠状态结束前将通信数据进行缓存。The second communication protection module 240 is configured to determine the second communication protection strategy of the second communication module within the expected occupied time when the communication scenario type is the second preset type, and the second communication protection strategy is that the second communication module communicates with the second communication module. A communication device sends second protection information to instruct the first communication device to buffer the communication data before the second communication module ends the dormant state.
在一些实施例中,如图12所示,通信装置还包括:In some embodiments, as shown in FIG. 12, the communication device further includes:
通信速率调节模块250,用于获取第一通信模块与第二通信设备通信交互的通信质量信息,在通信质量信息满足预设条件时,将第一通信模块当前周期的通信速率调整至目标速率,以降低第一通信模块的期望占用时间。The communication rate adjustment module 250 is configured to acquire the communication quality information of the communication interaction between the first communication module and the second communication device, and adjust the communication rate of the first communication module in the current cycle to the target rate when the communication quality information satisfies the preset condition, In order to reduce the expected occupancy time of the first communication module.
在一些实施例中,如图12所示,通信装置还包括:In some embodiments, as shown in FIG. 12, the communication device further includes:
停止占用模块260,用于设定占用时间阈值,若获取的期望占用时间大于预设占用时间阈值,则停止第一通信模块对信道的占用,避免第一通信模块占用时间过久导致第二通信模块的断流发生。The stop occupancy module 260 is used to set the occupancy time threshold. If the acquired expected occupancy time is greater than the preset occupancy time threshold, stop the occupation of the channel by the first communication module, so as to prevent the second communication module from occupying the first communication module for too long. A power cut of the module occurs.
基于同样的发明构思,本申请实施例还提供了一种电子设备,该电子设备所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个电子设备实施例中的具体限定可以参见上文中对于通信方法的限定,在此不再赘述。Based on the same inventive concept, the embodiment of the present application also provides an electronic device. The solution to the problem provided by the electronic device is similar to the solution described in the above method. Therefore, one or more electronic devices provided below For the specific limitations in the device embodiments, refer to the above-mentioned limitations on the communication method, which will not be repeated here.
在一些实施例中,如图13所示,提供了一种电子设备,包括:第一通信模块110、第二通信模块120和处理电路150。In some embodiments, as shown in FIG. 13 , an electronic device is provided, including: a first communication module 110 , a second communication module 120 and a processing circuit 150 .
第一通信模块110和第二通信模块120,第一通信模块110和第二通信模块120分别用于支持不同制式的无线通信。The first communication module 110 and the second communication module 120 are respectively used to support wireless communication of different standards.
处理电路150,用于获取第一通信模块110当前周期占用信道的期望占用时间;获取第二通信模块120在共存模式下的通信场景类型;在通信场景类型为第一预设类型时,根据期望占用时间确定第二通信模块120在期望占用时间内的第一通信保护策略,第一通信保护策略用于保护第二通信模块120与第一通信设备130之间的通信。The processing circuit 150 is configured to obtain the expected occupancy time of the channel occupied by the first communication module 110 in the current period; obtain the communication scenario type of the second communication module 120 in the coexistence mode; when the communication scenario type is the first preset type, according to the expected The occupied time determines a first communication protection policy of the second communication module 120 within the expected occupied time, and the first communication protection policy is used to protect the communication between the second communication module 120 and the first communication device 130 .
本实施例提供的电子设备,通过获取第一通信模块当前周期占用信道的期望占用时间;获取第二通信模块在共存模式下的通信场景类型;在通信场景类型为第一预设类型时,根据期望占用时间确定第二通信模块在期望占用时间内的第一通信保护策略,第一通信保护策略用于保护第二通信模块与第一通信设备之间的通信。从而,通信方法可以有效降低期望占用时间对第二通信模块与第一设备之间通信的影响,有效提升第二通信模块与第一设备之间通信的吞吐量,降低时延,从而提升相应通信场景类型下的共存性能,提高通信质量,以提高用户的体验。The electronic device provided in this embodiment obtains the expected occupancy time of the channel occupied by the first communication module in the current period; obtains the communication scene type of the second communication module in the coexistence mode; when the communication scene type is the first preset type, according to The expected occupancy time determines a first communication protection strategy of the second communication module within the expected occupancy time, and the first communication protection strategy is used to protect communication between the second communication module and the first communication device. Therefore, the communication method can effectively reduce the impact of the expected occupancy time on the communication between the second communication module and the first device, effectively improve the throughput of the communication between the second communication module and the first device, and reduce the delay, thereby improving the corresponding communication Coexistence performance under scenario types, improve communication quality, and improve user experience.
可选地,处理电路150还用于在通信场景类型为第二预设类型时,确定第二通信模块在期望占用时间内的第二通信保护策略,第二通信保护策略为第二通信模块向第一通信设备发送第二保护信息,以指示第一通信设备在第二通信模块休眠状态结束前将通信数据进行缓存;还用于获取第一通信模块与第二通信设备通信交互的通信质量信息,在通信质量信息满足预设条件时,将第一通信模块当前周期的通信速率调整至目标速率,以降低第一通信模块的期望占用时间;还用于设定占用时间阈值,若获取的期望占用时间大于预设占用时间阈值,则停止第一通信模块对信道的占用,避免第一通信模块占用时间过久导致第二通信模块的断流发生。Optionally, the processing circuit 150 is further configured to determine a second communication protection strategy for the second communication module within the expected occupancy time when the communication scenario type is the second preset type, and the second communication protection strategy is for the second communication module to The first communication device sends the second protection information to instruct the first communication device to buffer the communication data before the end of the dormant state of the second communication module; it is also used to obtain the communication quality information of the communication interaction between the first communication module and the second communication device , when the communication quality information satisfies the preset condition, adjust the communication rate of the current period of the first communication module to the target rate, so as to reduce the expected occupancy time of the first communication module; it is also used to set the occupancy time threshold, if the obtained expected If the occupancy time is greater than the preset occupancy time threshold, the occupancy of the channel by the first communication module is stopped, so as to prevent the second communication module from being disconnected due to the occupancy time of the first communication module for too long.
可选地,第一通信模块110为蓝牙模块,第二通信模块120为WIFI模块。可以理解,在其他实施例中,也可以是第一通信模块110为WIFI模块,第二通信模块120为蓝牙模 块。Optionally, the first communication module 110 is a Bluetooth module, and the second communication module 120 is a WIFI module. It can be understood that, in other embodiments, the first communication module 110 may also be a WIFI module, and the second communication module 120 may be a Bluetooth module.
可选地,第一通信模块110的通信优先级高于第二通信模块120的通信优先级,从而第一通信模块110可以先预估期望占用时间并根据期望占用时间预先占用信道进行通信。Optionally, the communication priority of the first communication module 110 is higher than that of the second communication module 120, so that the first communication module 110 can first estimate the expected occupancy time and pre-occupy the channel for communication according to the expected occupancy time.
例如,当电子设备为手机时,对于手机来说,可以是蓝牙模块的通信优先级高于WIFI模块的通信优先级,因此蓝牙模块可以先预估期望占用时间并根据期望占用时间预先占用信道进行通信。当电子设备为监控设备时,对于监控设备来说,可以是WIFI模块的通信优先级高于蓝牙模块的通信优先级,因此WIFI模块可以先预估期望占用时间并根据期望占用时间预先占用信道进行通信。For example, when the electronic device is a mobile phone, for the mobile phone, the communication priority of the Bluetooth module may be higher than that of the WIFI module, so the Bluetooth module can first estimate the expected occupation time and pre-occupy the channel according to the expected occupation time. communication. When the electronic device is a monitoring device, for the monitoring device, the communication priority of the WIFI module may be higher than that of the Bluetooth module, so the WIFI module can first estimate the expected occupancy time and pre-occupy the channel according to the expected occupancy time. communication.
在一些实施例中,如图14所示,处理电路150设于第一通信模块110;其中:In some embodiments, as shown in FIG. 14 , the processing circuit 150 is set in the first communication module 110; wherein:
第一通信模块110,用于将第一通信保护策略发送至第二通信模块120,以指示第二通信模块120根据第一通信保护策略进行通信保护;或者第二通信模块120,用于向第一通信模块110发送策略查询指令,以指示第一通信模块110反馈第一通信保护策略,并根据第一通信保护策略进行通信保护。The first communication module 110 is configured to send the first communication protection strategy to the second communication module 120, to instruct the second communication module 120 to perform communication protection according to the first communication protection strategy; or the second communication module 120 is configured to send the first communication protection strategy to the second communication module 120. A communication module 110 sends a policy query instruction to instruct the first communication module 110 to feed back the first communication protection policy and perform communication protection according to the first communication protection policy.
可选地,第一通信模块110,还用于将第二通信保护策略发送至第二通信模块120,以指示第二通信模块120根据第二通信保护策略进行通信保护;或者第二通信模块120,还用于向第一通信模块110发送策略查询指令,以指示第一通信模块110反馈第二通信保护策略,并根据第二通信保护策略进行通信保护。Optionally, the first communication module 110 is further configured to send the second communication protection policy to the second communication module 120, so as to instruct the second communication module 120 to perform communication protection according to the second communication protection policy; or the second communication module 120 , which is also used to send a policy query instruction to the first communication module 110, so as to instruct the first communication module 110 to feed back the second communication protection policy and perform communication protection according to the second communication protection policy.
当处理电路150设于第一通信模块110时,由第一通信模块110确定第一保护策略和第二保护策略,第二通信模块120通过与第一通信模块110进行交互以获取第一保护策略和第二保护策略。其中,第二通信模块120对第一保护策略和第二保护策略的获取,可以是第一通信模块110主动发送且第二通信模块120被动接收,以降低交互时间,提高通信效率;也可以是第一通信模块110被动发送且第二通信模块120主动接收,以提高交互的准确性,提高通信的可靠性。When the processing circuit 150 is set in the first communication module 110, the first protection strategy and the second protection strategy are determined by the first communication module 110, and the second communication module 120 interacts with the first communication module 110 to obtain the first protection strategy and a second protection strategy. Wherein, the acquisition of the first protection strategy and the second protection strategy by the second communication module 120 may be actively sent by the first communication module 110 and passively received by the second communication module 120, so as to reduce interaction time and improve communication efficiency; it may also be The first communication module 110 passively sends and the second communication module 120 actively receives, so as to improve the accuracy of interaction and the reliability of communication.
可选地,如图14所示,第一通信模块110和第二通信模块120通过通信接口连接,并通过通信接口进行通信保护策略的相关交互。Optionally, as shown in FIG. 14 , the first communication module 110 and the second communication module 120 are connected through a communication interface, and perform communication protection strategy-related interactions through the communication interface.
其中,无论通信保护策略是由第一通信模块110确定的还是由第二通信模块120确定,为了提高通信质量,对通信的时延要求需达到微秒、纳秒量级(一般不能超出10us),而通过通信接口连接第一通信模块110和第二通信模块120,以实现两者间的通信交互,可以尽可能地降低时延,以满足通信的时延需求。通信接口例如可以是I2C、SPI、I/O等接口,在此不做具体限定。Wherein, regardless of whether the communication protection strategy is determined by the first communication module 110 or the second communication module 120, in order to improve communication quality, the delay requirement for communication needs to reach the order of microseconds and nanoseconds (generally not exceeding 10us). , and the first communication module 110 and the second communication module 120 are connected through the communication interface to realize the communication interaction between the two, and the delay can be reduced as much as possible to meet the delay requirement of communication. The communication interface may be, for example, I2C, SPI, I/O and other interfaces, which are not specifically limited here.
上述通信装置、电子设备中各个模块的划分仅仅用于举例说明,在其他实施例中,可将通信装置、电子设备按照需要划分为不同的模块,以完成上述通信装置、电子设备的全部或部分功能。The division of each module in the above-mentioned communication device and electronic equipment is only for illustration. In other embodiments, the communication device and electronic equipment can be divided into different modules according to needs, so as to complete all or part of the above-mentioned communication device and electronic equipment. Function.
上述通信装置、电子设备中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above-mentioned communication device and electronic equipment may be fully or partially realized by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
本申请还提供了一种计算机设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如上实施例所述的通信控制方法的步骤。可选地,如图15所示,计算机设备还包括通过系统总线与处理器、存储器连接的网络接口。该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种通信控制方法。The present application also provides a computer device, including a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the communication described in the above embodiment The steps of the control method. Optionally, as shown in FIG. 15 , the computer device further includes a network interface connected to the processor and the memory through a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs and databases. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a communication control method is realized.
本领域技术人员可以理解,图15中示出的结构,仅仅是与本申请方案相关的部分结 构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 15 is only a block diagram of a partial structure related to the solution of this application, and does not constitute a limitation on the computer equipment on which the solution of this application is applied. The specific computer equipment can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.
本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上实施例所述的选择方法的步骤,和/或实现如上实施例所述的通信控制方法的步骤。The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the selection method described in the above embodiments are realized, and/or the steps of the selection method described in the above embodiments are realized. The steps of the communication control method.
本申请还提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现如上实施例所述的通信方法的步骤。The present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, the steps of the communication method described in the above embodiments are implemented.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above-mentioned embodiments can be completed by instructing related hardware through computer programs, and the computer programs can be stored in a non-volatile computer-readable memory In the medium, when the computer program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any reference to storage, database or other media used in the various embodiments provided in the present application may include at least one of non-volatile and volatile storage. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive variable memory (ReRAM), magnetic variable memory (Magnetoresistive Random Access Memory, MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (Phase Change Memory, PCM), graphene memory, etc. The volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a blockchain-based distributed database, etc., but is not limited thereto. The processors involved in the various embodiments provided by this application can be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, data processing logic devices based on quantum computing, etc., and are not limited to this.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.

Claims (20)

  1. 一种通信方法,包括:A method of communication comprising:
    获取第一通信模块当前周期占用信道的期望占用时间;Acquire the expected occupancy time of the channel occupied by the first communication module in the current period;
    获取第二通信模块在共存模式下的通信场景类型,所述第一通信模块和所述第二通信模块分别用于支持不同制式的无线通信;Acquiring the communication scenario type of the second communication module in the coexistence mode, the first communication module and the second communication module are respectively used to support wireless communication of different standards;
    在所述通信场景类型为第一预设类型时,根据所述期望占用时间确定所述第二通信模块在所述期望占用时间内的第一通信保护策略,所述第一通信保护策略用于保护所述第二通信模块与第一通信设备之间的通信。When the communication scenario type is the first preset type, determine a first communication protection strategy of the second communication module within the expected occupation time according to the expected occupancy time, and the first communication protection strategy is used for Communications between the second communication module and the first communication device are protected.
  2. 根据权利要求1所述的方法,其中所述第一预设类型包括时延敏感类型和/或吞吐量敏感类型,所述根据所述期望占用时间确定所述第二通信模块在所述期望占用时间内的第一通信保护策略,包括:The method according to claim 1, wherein the first preset type includes a delay-sensitive type and/or a throughput-sensitive type, and the determination of the second communication module at the expected occupancy time according to the expected occupancy time Time-first communication protection strategy, including:
    获取所述期望占用时间的时长等级;Acquiring the duration level of the expected occupied time;
    根据所述时长等级确定所述第二通信模块在所述期望占用时间内的所述第一通信保护策略。determining the first communication protection policy of the second communication module within the expected occupied time according to the duration level.
  3. 根据权利要求2所述的方法,其中在所述通信场景类型为时延敏感类型时,所述根据所述时长等级确定所述第二通信模块在所述期望占用时间内的所述第一通信保护策略,包括:The method according to claim 2, wherein when the communication scenario type is a delay-sensitive type, determining the first communication of the second communication module within the expected occupancy time according to the duration level Protection strategies, including:
    在所述时长等级为第一时长等级时,所述第一通信保护策略为所述第二通信模块在当前周期内禁止向第一通信设备发送保护信息,以使所述第一通信设备默认所述第二通信模块当前处于通信交互的工作状态;When the duration level is the first duration level, the first communication protection policy is that the second communication module is prohibited from sending protection information to the first communication device in the current period, so that the first communication device defaults to the The second communication module is currently in the working state of communication interaction;
    在所述时长等级为第二时长等级时,所述第一通信保护策略为所述第二通信模块向所述第一通信设备发送第一保护信息,以指示所述第一通信设备在第一预设时间段暂停向所述第二通信模块发送通信数据并等待与所述第二通信模块的通信;When the duration level is the second duration level, the first communication protection strategy is that the second communication module sends first protection information to the first communication device to instruct the first communication device to Suspending sending communication data to the second communication module for a preset period of time and waiting for communication with the second communication module;
    其中,所述第一时长等级对应的时长小于第二时长等级对应的时长。Wherein, the duration corresponding to the first duration level is shorter than the duration corresponding to the second duration grade.
  4. 根据权利要求3所述的方法,其中在所述通信场景类型为时延敏感类型时,所述根据所述时长等级确定所述第二通信模块在所述期望占用时间内的所述第一通信保护策略,还包括:The method according to claim 3, wherein when the communication scenario type is a delay-sensitive type, determining the first communication of the second communication module within the expected occupancy time according to the duration level Protection strategies, also including:
    在所述时长等级为第三时长等级时,所述第一通信保护策略为所述第二通信模块向所述第一通信设备发送第二保护信息,以指示所述第一通信设备在所述第二通信模块休眠状态结束前将通信数据进行缓存;When the duration level is the third duration level, the first communication protection strategy is that the second communication module sends second protection information to the first communication device to indicate that the first communication device is in the The second communication module caches the communication data before the dormant state ends;
    其中,所述第三时长等级对应的时长大于所述第二时长等级对应的时长。Wherein, the duration corresponding to the third duration level is longer than the duration corresponding to the second duration grade.
  5. 根据权利要求2所述的方法,其中在所述通信场景类型为吞吐量敏感类型时,所述根据所述时长等级确定所述第二通信模块在所述期望占用时间内的所述第一通信保护策略,包括:The method according to claim 2, wherein when the communication scenario type is a throughput-sensitive type, determining the first communication of the second communication module within the expected occupancy time according to the duration level Protection strategies, including:
    在所述时长等级为第四时长等级时,所述第一通信保护策略为所述第二通信模块向所述通信站点发送第一保护信息,以指示所述第一通信设备在第一预设时间段暂停向所述第二通信模块发送通信数据并等待与所述第二通信模块的通信;When the duration level is the fourth duration level, the first communication protection strategy is that the second communication module sends first protection information to the communication station to instruct the first communication device Suspending sending communication data to the second communication module for a period of time and waiting for communication with the second communication module;
    在所述时长等级为第五时长等级时,所述第一通信保护策略为所述第二通信模块向所述第一通信设备发送第二保护信息,以指示所述第一通信设备在所述第二通信模块休眠状态结束前将通信数据进行缓存;When the duration level is the fifth duration level, the first communication protection strategy is that the second communication module sends second protection information to the first communication device to indicate that the first communication device is in the The second communication module caches the communication data before the dormant state ends;
    其中,所述第五时长等级对应的时长大于所述第四时长等级对应的时长。Wherein, the duration corresponding to the fifth duration level is longer than the duration corresponding to the fourth duration grade.
  6. 根据权利要求4所述的方法,其中所述第一保护信息为携带有第一相关信息的第一保护帧,所述第一相关信息包括所述期望占用时间及所述第一预设时间段;和/或所述第二保护信息为携带有第二相关信息的第二保护帧,所述第二相关信息包括所述期望占用时间。The method according to claim 4, wherein the first protection information is a first protection frame carrying first related information, and the first related information includes the expected occupancy time and the first preset time period ; and/or the second protection information is a second protection frame carrying second related information, where the second related information includes the expected occupancy time.
  7. 根据权利要求4所述的方法,其中所述第一保护信息或所述第二保护信息在所述第一通信模块的占用信道的起始时刻发送。The method according to claim 4, wherein the first protection information or the second protection information is sent at the beginning of the occupied channel of the first communication module.
  8. 根据权利要求1所述的方法,其中所述方法还包括:The method according to claim 1, wherein said method further comprises:
    在所述通信场景类型为第二预设类型时,确定所述第二通信模块在所述期望占用时间内的第二通信保护策略,所述第二通信保护策略为所述第二通信模块向所述第一通信设备发送第二保护信息,以指示所述第一通信设备在所述第二通信模块休眠状态结束前将通信数据进行缓存。When the communication scenario type is a second preset type, determine a second communication protection strategy of the second communication module within the expected occupancy time, the second communication protection strategy is for the second communication module to The first communication device sends second protection information to instruct the first communication device to cache the communication data before the dormant state of the second communication module ends.
  9. 根据权利要求1所述的方法,其中所述第一通信模块用于与第二通信设备进行通信交互;所述方法还包括:The method according to claim 1, wherein the first communication module is configured to communicate and interact with a second communication device; the method further comprises:
    获取所述第一通信模块与所述第二通信设备通信交互的通信质量信息;Acquiring communication quality information of communication interaction between the first communication module and the second communication device;
    在所述通信质量信息满足预设条件时,将所述第一通信模块当前周期的通信速率调整至目标速率,以降低所述第一通信模块的所述期望占用时间。When the communication quality information satisfies a preset condition, adjusting the communication rate of the first communication module in a current period to a target rate, so as to reduce the expected occupancy time of the first communication module.
  10. 根据权利要求9所述的方法,其中所述通信质量信息包括所述第一通信模块与所述第二通信设备进行通信交互时双方通信的成功率、双方接收到通信信号的信噪比及信号接收强度,所述预设条件包括所述信号接收强度大于预设强度、所述信噪比大于第一预设阈值及所述成功率大于第二预设阈值中的至少两个条件。The method according to claim 9, wherein the communication quality information includes the success rate of the communication between the first communication module and the second communication device, the signal-to-noise ratio and signal Receiving strength, the preset condition includes at least two conditions in which the signal receiving strength is greater than a preset strength, the signal-to-noise ratio is greater than a first preset threshold, and the success rate is greater than a second preset threshold.
  11. 根据权利要求9所述的方法,其中所述将所述第一通信模块当前周期的通信速率调整至目标速率,包括:The method according to claim 9, wherein said adjusting the communication rate of the first communication module in the current cycle to a target rate comprises:
    获取当前所述第一通信模块与所述第二通信设备进行通信的通信环境允许的最高速率;Obtain the highest rate allowed by the communication environment where the first communication module communicates with the second communication device;
    将所述最高速率作为所述目标速率进行当前周期的通信。The highest rate is used as the target rate for communication in the current period.
  12. 根据权利要求9所述的方法,其中所述获取所述第一通信模块当前周期占用信道的期望占用时间,包括:The method according to claim 9, wherein said obtaining the expected occupancy time of the channel occupied by the first communication module in the current period comprises:
    获取所述第一通信模块当前周期需要传输的数据总量及当前周期的通信速率;Obtain the total amount of data to be transmitted by the first communication module in the current cycle and the communication rate in the current cycle;
    根据所述数据总量和所述通信速率获取所述期望占用时间。The expected elapsed time is obtained according to the total amount of data and the communication rate.
  13. 一种通信装置,包括:A communication device comprising:
    占用时间获取模块,用于获取第一通信模块当前周期占用信道的期望占用时间;An occupation time acquisition module, configured to acquire the expected occupancy time of the channel occupied by the first communication module in the current period;
    场景类型获取模块,用于获取第二通信模块在共存模式下的通信场景类型,所述第一通信模块和所述第二通信模块分别用于支持不同制式的无线通信;A scene type acquiring module, configured to acquire the communication scene type of the second communication module in coexistence mode, the first communication module and the second communication module are respectively used to support wireless communication of different standards;
    第一通信保护模块,用于在所述通信场景类型为第一预设类型时,根据所述期望占用时间确定所述第二通信模块在所述期望占用时间内的第一通信保护策略,所述第一通信保护策略用于保护所述第二通信模块与第一通信设备之间的通信。A first communication protection module, configured to determine a first communication protection strategy of the second communication module within the expected occupancy time according to the expected occupancy time when the communication scenario type is a first preset type, The first communication protection policy is used to protect the communication between the second communication module and the first communication device.
  14. 一种电子设备,包括:An electronic device comprising:
    第一通信模块和第二通信模块,所述第一通信模块和所述第二通信模块分别用于支持不同制式的无线通信;A first communication module and a second communication module, the first communication module and the second communication module are respectively used to support wireless communication of different standards;
    处理电路,用于获取所述第一通信模块当前周期占用信道的期望占用时间;获取所述第二通信模块在共存模式下的通信场景类型;在所述通信场景类型为第一预设类型时,根据所述期望占用时间确定所述第二通信模块在所述期望占用时间内的第一通信保护策略,所述第一通信保护策略用于保护所述第二通信模块与第一通信设备之间的通信。A processing circuit, configured to obtain the expected occupancy time of the channel occupied by the first communication module in the current period; obtain the communication scenario type of the second communication module in the coexistence mode; when the communication scenario type is the first preset type , determining a first communication protection strategy of the second communication module within the expected occupation time according to the expected occupation time, the first communication protection strategy is used to protect the relationship between the second communication module and the first communication device communication between.
  15. 根据权利要求14所述的电子设备,其中所述处理电路设于所述第一通信模块;其中:The electronic device according to claim 14, wherein the processing circuit is provided in the first communication module; wherein:
    所述第一通信模块,用于将所述第一通信保护策略发送至所述第二通信模块,以指示所述第二通信模块根据所述第一通信保护策略进行通信保护;或者The first communication module is configured to send the first communication protection policy to the second communication module, so as to instruct the second communication module to perform communication protection according to the first communication protection policy; or
    所述第二通信模块,用于向所述第一通信模块发送策略查询指令,以指示所述第一通信模块反馈所述第一通信保护策略,并根据所述第一通信保护策略进行通信保护。The second communication module is configured to send a policy query instruction to the first communication module to instruct the first communication module to feed back the first communication protection policy and perform communication protection according to the first communication protection policy .
  16. 根据权利要求14所述的电子设备,其中所述第一通信模块的通信优先级高于所述第二通信模块的通信优先级。The electronic device according to claim 14, wherein the communication priority of the first communication module is higher than the communication priority of the second communication module.
  17. 根据权利要求14所述的电子设备,其中所述第一通信模块为蓝牙模块,所述第二通信模块为WIFI模块。The electronic device according to claim 14, wherein the first communication module is a Bluetooth module, and the second communication module is a WIFI module.
  18. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现权利要求1所述的方法的步骤。A computer device, comprising a memory and a processor, the memory stores a computer program, and the processor implements the steps of the method according to claim 1 when executing the computer program.
  19. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1所述的方法的步骤。A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method according to claim 1 are realized.
  20. 一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现权利要求1所述的方法的步骤。A computer program product, comprising a computer program that implements the steps of the method of claim 1 when the computer program is executed by a processor.
PCT/CN2022/126984 2021-12-31 2022-10-24 Communication method and apparatus, electronic device, computer device, and readable storage medium WO2023124454A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111671045.8A CN114430560B (en) 2021-12-31 2021-12-31 Communication method, communication device, electronic device, computer device, and readable storage medium
CN202111671045.8 2021-12-31

Publications (1)

Publication Number Publication Date
WO2023124454A1 true WO2023124454A1 (en) 2023-07-06

Family

ID=81310899

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/126984 WO2023124454A1 (en) 2021-12-31 2022-10-24 Communication method and apparatus, electronic device, computer device, and readable storage medium

Country Status (2)

Country Link
CN (1) CN114430560B (en)
WO (1) WO2023124454A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114430560B (en) * 2021-12-31 2024-05-24 Oppo广东移动通信有限公司 Communication method, communication device, electronic device, computer device, and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108934046A (en) * 2017-05-23 2018-12-04 中兴通讯股份有限公司 A kind of method and device for reducing WiFi and ZigBee and interfering with each other
US20200037343A1 (en) * 2018-07-24 2020-01-30 Samsung Electronics Co., Ltd. Method and apparatus for network controlled resource allocation in nr v2x
CN111031170A (en) * 2019-11-12 2020-04-17 宇龙计算机通信科技(深圳)有限公司 Method, apparatus, electronic device and medium for selecting communication mode
CN112752356A (en) * 2019-10-31 2021-05-04 中兴通讯股份有限公司 Discontinuous reception configuration method, device, base station, terminal and storage medium
CN113691668A (en) * 2021-08-17 2021-11-23 Oppo广东移动通信有限公司 Device control method, device, chip, electronic device and storage medium
CN114430560A (en) * 2021-12-31 2022-05-03 Oppo广东移动通信有限公司 Communication method, communication device, electronic equipment, computer equipment and readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10201004B2 (en) * 2016-09-29 2019-02-05 Intel IP Corporation Coordinated bluetooth—WiFi scheduling with bluetooth slot availability mask
CN108737949A (en) * 2017-04-14 2018-11-02 展讯通信(上海)有限公司 Bluetooth equipment and its method for avoiding WiFi system from interfering and Bluetooth system
CN109587714B (en) * 2018-12-11 2022-09-09 恒玄科技(上海)股份有限公司 Method, device, storage medium and Bluetooth headset for sending audio data
CN109618317B (en) * 2018-12-17 2022-04-15 珠海市杰理科技股份有限公司 Time-sharing communication method, time-sharing communication device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108934046A (en) * 2017-05-23 2018-12-04 中兴通讯股份有限公司 A kind of method and device for reducing WiFi and ZigBee and interfering with each other
US20200037343A1 (en) * 2018-07-24 2020-01-30 Samsung Electronics Co., Ltd. Method and apparatus for network controlled resource allocation in nr v2x
CN112752356A (en) * 2019-10-31 2021-05-04 中兴通讯股份有限公司 Discontinuous reception configuration method, device, base station, terminal and storage medium
CN111031170A (en) * 2019-11-12 2020-04-17 宇龙计算机通信科技(深圳)有限公司 Method, apparatus, electronic device and medium for selecting communication mode
CN113691668A (en) * 2021-08-17 2021-11-23 Oppo广东移动通信有限公司 Device control method, device, chip, electronic device and storage medium
CN114430560A (en) * 2021-12-31 2022-05-03 Oppo广东移动通信有限公司 Communication method, communication device, electronic equipment, computer equipment and readable storage medium

Also Published As

Publication number Publication date
CN114430560A (en) 2022-05-03
CN114430560B (en) 2024-05-24

Similar Documents

Publication Publication Date Title
US11902030B2 (en) Configuration for duplication transmission and duplication transmission method and device
CN107018484B (en) Bluetooth communication method, its device, Bluetooth system and bluetooth equipment
US10237193B2 (en) Prioritizing short-range wireless packets for time-sensitive applications
CN112929366B (en) Wireless game protocol
JP4749450B2 (en) Method and apparatus for improving CPC function in a wireless communication system
JP2017536013A (en) Transmission adjustment for juxtaposed radio
US9351241B2 (en) Indicating a busy period in a wireless network
WO2023124454A1 (en) Communication method and apparatus, electronic device, computer device, and readable storage medium
US11290955B2 (en) Low latency wireless protocol
WO2019034001A1 (en) Power consumption control method and apparatus
WO2024060723A1 (en) Communication method, communication apparatus, communication device, computer device, and storage medium
JP2020537853A (en) Method of transmitting scheduling request and terminal device
WO2021207114A1 (en) Selection of a radio access technology for communicating data between network devices
WO2020220257A1 (en) Wireless communication method and apparatus
US10085170B2 (en) Communication apparatus
US20200275318A1 (en) Coexistence configuration switching for mesh networks
CN107889189B (en) Beacon frame sending method and device
CN112243296B (en) Auxiliary cell activation method and device
EP3646661B1 (en) Dynamic allocation of wireless personal area network radios among a plurality of radio access technologies supported by a user equipment
WO2020087454A1 (en) Power regulation method and terminal device
WO2024066908A1 (en) Drx configuration-based communication method, communication device, and communication system
WO2023011286A1 (en) Feedback method, related device and readable storage medium
WO2024067107A1 (en) Network configuration method and apparatus, and device
US10609722B2 (en) Techniques for scheduling communication based on receive data capacity
CN118077255A (en) DRX for telecommunication systems using carrier aggregation

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22913717

Country of ref document: EP

Kind code of ref document: A1