Communication method, apparatus, electronic device, storage medium, program product, and chip system
By acquiring the communication capability information of the peer device and determining the channel switching information to match its actual capability, the problem of high channel switching overhead in multi-device communication is solved, thereby improving communication stability and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING XIAOMI MOBILE SOFTWARE CO LTD
- Filing Date
- 2024-11-27
- Publication Date
- 2026-05-29
AI Technical Summary
In multi-device communication scenarios, existing technologies suffer from significant device channel overhead during channel switching, failing to provide a stable and reliable user experience. This is especially true when channel switching performance is inconsistent across routers of different specifications and peer devices.
By acquiring the communication capability information of the peer device, channel switching information is determined to match its actual capabilities, and the device is controlled to switch between multiple channels, reducing channel switching overhead.
It reduces channel switching overhead and improves communication stability and user experience between devices.
Smart Images

Figure CN122120860A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communication technology, and in particular to communication methods, apparatus, electronic devices, storage media, software products, and chip systems. Background Technology
[0002] With the development of communication technology, multi-device communication has also evolved. In multi-device communication scenarios, a terminal can interconnect with multiple devices, enabling the terminal to perform various data transmission functions with each device. In some scenarios, the terminal can interconnect with different devices through different channels, which may require the terminal to switch between these channels. Summary of the Invention
[0003] To overcome the problems existing in related technologies, this disclosure provides a communication method, apparatus, electronic device, storage medium, program product, and chip system.
[0004] According to a first aspect of the present disclosure, a communication method is provided, comprising: acquiring target information for characterizing the communication capabilities of a plurality of peer devices, wherein the plurality of peer devices establish communication paths with a local device on different channels; for each channel, determining channel switching information corresponding to the channel based on the target information corresponding to the peer devices on the channel, wherein the channel switching information includes switching parameters for the local device to switch from the channel to other channels; and controlling the local device to perform channel switching in the plurality of channels based on the channel switching information corresponding to the plurality of channels.
[0005] Optionally, determining the channel handover information corresponding to the channel based on the target information corresponding to the peer device on the channel includes: determining whether the peer device on the channel supports channel handover overhead adjustment based on the target information corresponding to the peer device on the channel; and determining the channel handover information corresponding to the channel based at least on the target information corresponding to the peer device on the channel.
[0006] Optionally, the communication method further includes: acquiring multiple preset channel switching information and device communication capability conditions corresponding to the multiple preset channel switching information respectively; determining the channel switching information corresponding to the channel based at least on the target information corresponding to the peer device on the channel includes: determining the target device communication capability conditions that match the target information corresponding to the peer device on the channel from the device communication capability conditions corresponding to the multiple preset channel switching respectively; and determining the preset channel switching information corresponding to the target device communication capability conditions as the channel switching information corresponding to the channel.
[0007] Optionally, the communication method further includes: acquiring network quality data corresponding to the plurality of channels respectively; determining channels with degraded network quality based on the network quality data corresponding to the plurality of channels respectively; adjusting the channel switching information corresponding to the channel to obtain adjusted channel switching information; and controlling the local device to switch from the channel to other channels based on the adjusted channel switching information.
[0008] Optionally, the communication method further includes: determining channels without network quality degradation based on the network quality data corresponding to the plurality of channels respectively; and determining reference channel switching information based on the network quality data corresponding to the plurality of channels and the channel switching information corresponding to the channel, wherein the reference channel switching information can be used to determine the channel switching information corresponding to other channels.
[0009] Optionally, the network quality data includes data corresponding to at least one of the following network quality indicators: received signal strength indication; received signal duty cycle; received signal retransmission rate; transmitted signal delivery success rate; transmitted signal wake-up delivery success rate.
[0010] Optionally, determining the channel switching information corresponding to the channel based on the target information corresponding to the peer device on the channel includes: determining, based on the target information corresponding to the peer device on the channel, that the peer device on the channel does not support channel switching overhead adjustment; and determining the preset default channel switching information as the channel switching information corresponding to the channel.
[0011] Optionally, the plurality of channels includes a first type of channel and a second type of channel; the channel switching information corresponding to the first type of channel includes: a first stop transmission time, a waiting time, and a number of target packets used to indicate channel switching, wherein the local device is used to send the target packets to the peer device on the first type of channel during the first stop transmission time and / or the waiting time; the channel switching information corresponding to the second type of channel includes: a second stop transmission time, wherein the local device is used to send the remaining data packets that have not yet been sent from the data packets to be sent to the peer device on the second type of channel during the second stop transmission time.
[0012] Optionally, obtaining target information corresponding to multiple peer devices for characterizing device communication capabilities includes: obtaining device information corresponding to the multiple peer devices, wherein the device information is used to influence the communication capabilities of the peer devices; evaluating the communication capabilities of the multiple peer devices based on the device information corresponding to the multiple peer devices to obtain communication capability evaluation information corresponding to the multiple peer devices; and determining target information corresponding to the multiple peer devices based on the communication capability evaluation information corresponding to the multiple peer devices.
[0013] Optionally, the device information corresponding to each peer device includes at least one of the following: the wireless communication protocol used by the device; the channel mode supported by the device; the frequency band supported by the device; the number of antennas supported by the device; and the bandwidth threshold supported by the device.
[0014] According to a second aspect of the present disclosure, a communication device is provided, comprising: an acquisition module configured to acquire target information corresponding to a plurality of peer devices for characterizing the communication capabilities of the device, wherein the plurality of peer devices establish communication paths with a local device on different channels; a determination module configured to determine channel switching information corresponding to each channel based on the target information corresponding to the peer devices on that channel, wherein the channel switching information includes switching parameters for the local device to switch from that channel to other channels; and a control module configured to control the local device to perform channel switching in the plurality of channels based on the channel switching information corresponding to the plurality of channels.
[0015] According to a third aspect of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the executable instructions to implement the communication method described in the first aspect of the present disclosure.
[0016] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided that stores computer program instructions thereon, which, when executed by a processor, implement the communication method described in the first aspect of the present disclosure.
[0017] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the communication method described in the first aspect of the present disclosure.
[0018] According to a sixth aspect of the present disclosure, a chip system is provided, the chip system including a processing unit and an interface circuit, the processing unit acquiring program instructions through the interface circuit, the program instructions being executed by the processing unit, the processing unit being used to execute the communication method described in the first aspect of the present disclosure.
[0019] The technical solutions provided by the embodiments of this disclosure can include the following beneficial effects: Based on multiple peer devices establishing communication paths with the local device on different channels, target information characterizing the communication capabilities of the peer devices is obtained. This target information is then used to determine channel switching information, thereby controlling the local device to switch between multiple channels. The channel switching information includes switching parameters for the local device to switch from one channel to another. These switching parameters can affect the channel switching overhead of the peer devices. If the channel switching information does not match the communication capabilities of the peer devices, the channel switching overhead of the peer devices will be high. Therefore, by determining the channel switching information based on the communication capabilities of the peer devices and then using this information for channel switching control, the channel switching information is matched to the actual communication capabilities of the peer devices, thereby reducing the channel switching overhead of the peer devices. Thus, this technical solution can reduce the channel switching overhead of the peer devices, improve their communication capabilities, and ultimately enhance the communication stability between devices.
[0020] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0021] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0022] Figure 1 This is a schematic diagram illustrating an application scenario according to an exemplary embodiment.
[0023] Figure 2 This is a flowchart illustrating a communication method according to an exemplary embodiment.
[0024] Figure 3 This is a schematic diagram of channel switching according to an exemplary embodiment.
[0025] Figure 4 This is a schematic diagram illustrating a first type of channel switching time according to an exemplary embodiment.
[0026] Figure 5 This is a schematic diagram illustrating a second type of channel switching time according to an exemplary embodiment.
[0027] Figure 6 This is a flowchart illustrating an adjustment strategy selection according to an exemplary embodiment.
[0028] Figure 7 This is a flowchart illustrating the implementation of an adjustment strategy according to an exemplary embodiment.
[0029] Figure 8This is a block diagram illustrating a communication device according to an exemplary embodiment.
[0030] Figure 9 This is a block diagram illustrating an electronic device according to an exemplary embodiment.
[0031] Figure 10 This is a block diagram illustrating a chip system according to an exemplary embodiment. Detailed Implementation
[0032] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0033] It should be noted that all actions involving the acquisition of signals, information, or data in this disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the location is situated, and with authorization from the owner of the relevant device.
[0034] To facilitate understanding of the technical solutions of the embodiments of this disclosure, the relevant technologies or terms involved in the embodiments of this disclosure will be introduced below.
[0035] Frequency band: In the field of communications, frequency band refers to the frequency range of electromagnetic waves. Currently, commonly used frequency bands for WiFi include 2.4G, 5G and 6G.
[0036] A channel is the pathway through which signals are transmitted in a communication system, formed by the transmission medium through which the signal travels from the transmitting end to the receiving end. Each frequency band commonly used in WiFi is divided into multiple channels. For example, according to the IEEE 802.11 protocol, the 2.4GHz Wi-Fi band is divided into 13 overlapping channels, each with a bandwidth of 22MHz. Specifically, in the IEEE 802.11g and IEEE 802.11n standards, each channel has a bandwidth of 20MHz, while in the IEEE 802.10B standard, each channel has a bandwidth of 22MHz. IEEE stands for Institute of Electrical and Electronics Engineers.
[0037] WiFi P2P: This refers to the WiFi P2P (peer-to-peer) standard launched by the Wi-Fi (Wireless Fidelity) Alliance. WiFi P2P connections are generally created on demand when a user initiates a P2P service.
[0038] WiFi AP mode refers to electronic devices becoming wireless access points, providing network services for STA mode access.
[0039] WiFi STA mode refers to the mode in which electronic devices connect to the Internet via an AP (Access Point).
[0040] WiFi P2P mode: refers to the mode in which electronic devices establish a direct connection channel through WiFi P2P connection.
[0041] GO (Group Owner): In WiFi P2P mode, it plays a role similar to that of an access point (AP).
[0042] WiFi P2P NoA (Notice of Absence) mode: In WiFi P2P mode, P2P GO can specify a (time) interval for data transmission and sleep mode via NoA. This function is mainly used for power saving.
[0043] GC (Group Client): In WiFi P2P mode, GC connects to GO in a manner similar to WiFi STA mode, where site devices connect to the wireless access point.
[0044] SCC (Single Channel Concurrency): Electronic devices can operate in different modes on the same frequency band and the same channel. For example, a device can simultaneously operate WiFi STA and WiFi P2P modes on a 2.4GHz channel.
[0045] Inter-frequency and inter-channel mode: This refers to using two channels connected by Wi-Fi to communicate with external devices separately. The two channels are different and belong to different frequency bands.
[0046] In the heterogeneous frequency and heterogeneous channel mode, different channels under two different frequency bands are involved, which can be further divided into DBAC (Dual Band Adaptive Concurrent) mode and DBDC (Dual Band Dual Concurrent) mode. In DBDC mode, the Wi-Fi chip integrates two sets of MAC (Access Control Layer) / PHY (Physical Layer) / RF (Radio Frequency Layer), which operate at 2.4GHz and 5GHz respectively, and can operate simultaneously in the 2.4GHz and 5GHz frequency bands.
[0047] In DBAC mode, the Wi-Fi chip integrates only one MAC / PHY / RF system, with two RF paths: one supporting 2.4GHz and the other supporting 5GHz. During operation, it dynamically switches between the 2.4GHz and 5GHz bands to achieve time-division multiplexing communication between the two bands.
[0048] In DBAC mode, two different channels under the same frequency band can also be involved, which is called co-frequency different channels. When using it, it is also necessary to switch between different channels to realize time-division multiplexing communication.
[0049] Therefore, in DBAC mode, channel switching is required to achieve time-division multiplexing communication of channels or frequency bands.
[0050] Device wireless capability metrics: These refer to a comprehensive set of metrics, including the wireless performance of the currently connected peer device. Influencing factors include: supported wireless protocols, hardware specifications, and network quality.
[0051] Wireless protocol: refers to the IEEE 802.11 protocol version currently supported by the device.
[0052] Hardware specifications: refers to the current device's hardware wireless capabilities.
[0053] Network quality refers to a series of observation indicators of channel transmission in Wi-Fi networks, such as delivery rate, receive retransmission rate, and signal quality. In a WiFi scenario, the local device can use the WiFi STA mode channel (STA channel for short) to perform a range of applications such as audio and video calls, live streaming, VR (Virtual Reality), and cloud gaming. The local device can also send data to the peer device via the Wi-Fi P2P mode channel (P2P channel for short), enabling interconnection between the two devices and facilitating wireless screen mirroring, multi-screen collaboration, and other data transmission functions.
[0054] However, when the STA channel and P2P channel of the local device only integrate one set of MAC / PHY / RF, the switching capabilities are inconsistent due to the existence of different peer devices. In high-performance mode, the single switching overhead cannot meet the user experience of all scenarios.
[0055] In related technologies, when channel switching is involved, the local device establishes a concurrent channel between the STA and P2P, forming a DBAC state. In subsequent communication interactions, the P2P channel will not undergo any further dynamic adjustments. Furthermore, for non-wireless screen projection services, the channel dynamic adjustment scheme monitors the traffic of the two current paths and makes dynamic adjustments based on the monitored traffic.
[0056] Therefore, in related technologies, after the DBAC state is established, the subsequent communication interaction STA channel and P2P channel switching waiting time will not undergo any further dynamic adjustment. Currently, there are a large number of routers and peer devices of different specifications. Due to their supported wireless protocols, hardware capabilities, and software versions, their performance during channel switching varies. Using a single-scenario channel switching configuration will result in high device channel overhead, failing to provide a stable and reliable user experience.
[0057] Channel handover overhead can be understood as the resources consumed during channel handover, such as bandwidth, latency, frequency, and power. Channel handover overhead can be affected by handover parameters. For example, when the handover parameter involves channel handover time, a longer handover time results in greater channel handover overhead. Consequently, higher channel handover overhead can affect the functionality of the user's devices, leading to a poorer user experience.
[0058] Based on this, the present disclosure provides a technical solution that, on the basis of multiple peer devices establishing communication paths with the local device on different channels, obtains target information characterizing the communication capabilities of the peer devices, uses the target information to determine channel switching information, and then controls the local device to switch between multiple channels.
[0059] The channel switching information includes the switching parameters of the local device when switching from this channel to other channels. These switching parameters can affect the channel switching overhead of the peer device. If the channel switching information does not match the communication capability of the peer device, it will result in a large channel switching overhead for the peer device.
[0060] Therefore, based on the communication capabilities of the peer device, channel switching information is determined, and then channel switching control is performed using the channel switching information, so that the channel switching information matches the actual communication capabilities of the peer device, thereby reducing the channel switching overhead of the peer device.
[0061] Therefore, this technical solution can reduce the channel switching overhead of peer devices, improve the communication capabilities of peer devices, and thus improve the communication stability between devices.
[0062] It is understandable that, in the above scenarios, improving the stability of communication between devices can also provide a stable and reliable user experience.
[0063] Figure 1 This is a schematic diagram illustrating an application scenario according to an exemplary embodiment, such as... Figure 1 As shown, this application scenario involves a first device 101, a second device 102, and a third device 103.
[0064] Specifically, the first device 101 and the second device 102 establish an STA path through channel A, and the first device 101 and the third device 103 establish a P2P path through channel B.
[0065] The first device 101 can be, for example, a smartphone, tablet, or computer.
[0066] Regarding the second device 102, it can be a wireless network device that can act as a wireless access point, enabling the first device 101 to access the wireless network, such as a router. This wireless network device can also enable the first device 101 to act as a wireless access point; for example, smartphones typically have a wireless hotspot function, allowing other terminals to access the wireless network by activating the hotspot function.
[0067] Therefore, wireless network services can be implemented between the first device 101 and the second device 102.
[0068] The third device 103 can be a device that establishes a wireless screen projection or multi-screen collaborative connection with the first device 101, such as a television, projector, or other display device.
[0069] Therefore, the first device 101 and the third device 103 can perform wireless screen projection, multi-screen collaboration, or other data transmission services.
[0070] Therefore, in this disclosure, the first device 101 can be referred to as the local device, and the second device 102 and the third device 103 can be referred to as the peer devices.
[0071] In DBAC mode, a STA path is established between the first device 101 and the second device 102, and a P2P path is established between the first device 101 and the third device 103. When the first device 101 integrates only one set of MAC / PHY / RF, the first device 101 needs to adopt a channel time-division multiplexing strategy to use different channels at different times in order to realize data interaction with the second device 102 and the third device 103.
[0072] Regarding the method for establishing a STA path between the first device 101 and the second device 102, mature wireless network technologies in the field can be referenced, and will not be described in detail here. Similarly, regarding the method for establishing a P2P path between the first device 101 and the third device 103, mature P2P technologies in the field can be referenced, and will not be described in detail here.
[0073] If relevant technologies are used, the channel switching method will be fixed when DBAC mode is established, and the channel switching method will not be adjusted during subsequent communication interactions. However, in this disclosure, the channel switching will be dynamically adjusted based on the device's communication capabilities.
[0074] It is understood that the above application scenario only shows communication between three devices, but it can be extended to communication between more devices, and is not limited here.
[0075] Figure 2 This is a flowchart illustrating a communication method according to an exemplary embodiment, such as... Figure 2 As shown, this communication method can be applied to the local device and includes the following steps.
[0076] Step S21: Obtain target information representing the communication capabilities of multiple peer devices. The multiple peer devices establish communication paths with the local device on different channels.
[0077] Step S22: For each channel, determine the channel handover information corresponding to that channel based on the target information of the peer device on that channel. The channel handover information includes the handover parameters for the local device to switch from that channel to other channels.
[0078] Step S23: Based on the channel switching information corresponding to each of the multiple channels, control the local device to switch channels among the multiple channels.
[0079] In some embodiments, after the communication paths between multiple peer devices and the local device are created and the DBAC mode is entered, channel switching control is performed, i.e., steps S21 to S23 are executed.
[0080] In step S21, the multiple peer devices may include, for example: Figure 1The second device 102 and the third device 103 shown can be local devices such as Figure 1 The first device 101 is shown. Correspondingly, the second device 102 and the first device 101 can establish an STA path on channel A, and the third device 103 and the first device 101 can establish a P2P path on channel B.
[0081] For example, channel A can be channel 36, and channel B can be channel 149.
[0082] In some embodiments, the target information corresponding to multiple peer devices can be used to characterize the communication capabilities of the peer devices.
[0083] As an optional implementation, step S21 includes: obtaining device information corresponding to multiple peer devices respectively, the device information being used to influence the communication capabilities of the peer devices; evaluating the communication capabilities of multiple peer devices respectively based on the device information corresponding to the multiple peer devices respectively, obtaining communication capability evaluation information corresponding to the multiple peer devices respectively; and determining target information corresponding to the multiple peer devices respectively based on the communication capability evaluation information corresponding to the multiple peer devices respectively.
[0084] In some embodiments, the communication capability assessment information may be a communication capability assessment value or a communication capability assessment level. Correspondingly, the target information may be a communication capability assessment value or a communication capability assessment level. The higher the communication capability assessment value or the higher the communication capability assessment level, the stronger the device's communication capability.
[0085] In this implementation, the communication capabilities of the peer device are characterized by communication capability assessment information. Therefore, device information can be obtained and used to assess communication capabilities.
[0086] In some embodiments, device information may include at least one of the following: the wireless communication protocol used by the device; the channel modes supported by the device; the frequency bands supported by the device; the number of antennas supported by the device; and the bandwidth threshold supported by the device.
[0087] Among this information, wireless communication protocols can be device information at the protocol level, while channel modes, number of antennas, and bandwidth thresholds can be device information at the hardware specification level.
[0088] For example, wireless communication protocols may include, but are not limited to: 802.11b / g / a, i.e., WiFi Legacy; 802.11n / ac, i.e., WiFi 4 and WiFi 5; and 802.11ax / be, i.e., WiFi 6 and WiFi 7.
[0089] For example, the channel modes supported by the device may include: DBAC and DBDC; the frequency bands supported by the device may include: 2.4g, 5g, 6g; the number of antennas supported by the device may include: 1×1, 2×2, 3×3, 4×4, 16×16; and the bandwidth threshold (i.e., maximum bandwidth) supported by the device may include: 20M, 40M, 80M, 160M, 320M.
[0090] Therefore, a comprehensive evaluation of the wireless protocols and hardware capabilities actually used by multiple peer devices can be conducted to obtain communication capability assessment information.
[0091] In some embodiments, when the device information includes multiple pieces of information, the corresponding communication capability assessment information can be determined based on the multiple pieces of information, and then the multiple communication capability assessment information can be integrated to obtain the final communication capability assessment information.
[0092] In some embodiments, when integrating multiple communication capability assessment information, the corresponding information weights can be used for integration.
[0093] As an example, regarding wireless protocols, WiFi legacy has an evaluation score of 1, WiFi4 / WiFi5 has an evaluation score of 2, and WiFi6 / WiFi7 has an evaluation score of 5. Other evaluation scores can also be used, which are used as protocol factors in subsequent comprehensive evaluation score calculations.
[0094] As an example, the weighting of the channel modes, frequency bands, number of antennas, and bandwidth supported by the device can be set to 2:3:4:1, 3:3:3:1, or 2:3:3:2.
[0095] As an example, regarding channel modes, the evaluation score for DBAC mode is 0, and the evaluation score for DBDC mode is 100.
[0096] As an example, regarding frequency bands, the evaluation score for 2.4G is 60, the evaluation score for 2.4G+5G is 100, and the evaluation score for 2.4G+5G+6G is 200.
[0097] As an example, regarding the number of antennas, 1×1 has an evaluation score of 60, 2×2 has an evaluation score of 100, and >2×2 has an evaluation score of 200.
[0098] As an example, regarding bandwidth thresholds, the evaluation score is 60 for 20M, 100 for 40M, and 200 for ≥80M.
[0099] Furthermore, for any peer device, the peer device's communication capability assessment value = protocol factor × (channel mode assessment score × channel weight + frequency band assessment score × frequency band weight + antenna assessment score × antenna weight + bandwidth assessment score × bandwidth weight).
[0100] Therefore, the communication capability assessment value of the peer device can be used as target information to characterize the device's communication capability. For example, the higher the communication capability assessment value, the stronger the represented device's communication capability.
[0101] In some embodiments, the aforementioned wireless protocol factors can also be directly used as communication capability assessment information.
[0102] In step S22, for each channel, the channel switching information corresponding to that channel is determined based on the target information of the peer device on that channel.
[0103] It can be understood that the channel switching information corresponding to each channel is determined based on the target information of the peer device on the corresponding channel. Thus, the channel switching information corresponding to multiple channels can be obtained.
[0104] Channel switching information may include switching parameters for the local device to switch from one channel to another. These switching parameters may affect the resources consumed by the peer device during channel switching, i.e., the aforementioned channel switching overhead.
[0105] In some embodiments, the multiple channels include a first type of channel and a second type of channel.
[0106] The channel switching information corresponding to the first type of channel may include: a first stop transmission time, a waiting time, and the number of target messages used to indicate channel switching, wherein the local device is used to send the target message to the peer device on the first type of channel during the first stop transmission time and / or the waiting time.
[0107] The channel switching information corresponding to the second type of channel may include: a second stop transmission time, wherein the local device is used to send the remaining data packets that have not yet been sent in the data packets to be sent to the peer device of the second type of channel during the second stop transmission time.
[0108] To facilitate understanding of channel switching information, the channel switching process will be introduced below.
[0109] Figure 3 This is a schematic diagram of channel switching according to an exemplary embodiment. Figure 3In this context, there is channel A of the STA path and channel B of the P2P path. It is assumed that channel A is the channel where the second device 102 is located, channel B is the channel where the third device 103 is located, and the terminal is the first device 101.
[0110] Both channel A and channel B involve channel activation time, channel switching time, and channel silence time.
[0111] During the channel activation period, the first device 101 can interact with the corresponding device via data. During the channel switching period, the first device 101 can interact with the corresponding device via limited data. During the channel silence period, the first device 101 cannot interact with the corresponding device via data.
[0112] It can be seen that channel A and channel B will each experience different time periods to achieve time-division multiplexing control.
[0113] Figure 4 This is a schematic diagram illustrating a first type of channel switching time according to an exemplary embodiment, such as... Figure 4 As shown, the channel switching time consists of the stop transmission time, the waiting time, and the physical switching time. The physical switching time is a fixed time and cannot be adjusted. The stop transmission time and the waiting time are not fixed and can be adjusted.
[0114] Figure 4 The channel switching time shown can be an implementation of the channel switching time for the STA path, or it can be an implementation of the channel switching time for the P2P GC path. That is, for the third device 103 in the P2P path, if the role of the third device 103 is GC and the role of the first device 101 is GO, then the following can be adopted: Figure 4 The implementation method of channel switching time is shown.
[0115] Regarding the stop transmission time, the first device 101 sends a Null / QoSNull message to the peer device during the stop transmission time to announce that it will enter a silent state.
[0116] Regarding the waiting time, if the first device 101 fails to complete the transmission of the Null / QoS Null message within the stopped transmission time, it will continue to repeatedly transmit the Null / QoS Null message during the waiting time. The total transmission time of the Null / QoS Null message will not exceed the stopped transmission time plus the waiting time. If the first device 101 completes the transmission of the Null / QoS Null message within the stopped transmission time, it will enter a waiting time. During this time, the first device 101 can continue to send data to the peer device, but the first device 101 cannot receive data sent by the peer device during this period.
[0117] Regarding the physical handover time, the first device 101 performs an actual physical channel handover, during which the first device 101 cannot send or receive data.
[0118] In some embodiments, the channel activation time includes a preparation time for transmission. During this preparation time, the first device 101 sends a Null / QoS Null message to the peer device of the switched channel to announce that it is about to enter the activation state. The first device 101 can then send and receive data with the corresponding peer device. This preparation time is also a time that does not require adjustment.
[0119] Therefore, for STA or P2P GC channels, channel switching information may include: a first stop transmission time, a waiting time, and the number of target packets indicating channel switching. The target packets may be null / QoS null packets. Accordingly, the local device may send the target packets to the peer device on the corresponding channel during the first stop transmission time and / or the waiting time.
[0120] It is understandable that if the local device has already completed the transmission of the target message within the first stop transmission time, then no waiting time is required. Alternatively, if the local device quickly completes the transmission of the target message within the first stop transmission time, then not only is no waiting time required, but the first stop transmission time can also be reduced. Whether the target message can be transmitted quickly and successfully is related to the communication capabilities of the peer device. Therefore, by utilizing the communication capabilities of the peer device, the corresponding channel switching information can be determined.
[0121] Figure 5 This is a schematic diagram illustrating a second type of channel switching time according to an exemplary embodiment, such as... Figure 5 As shown, the channel switching time includes the stop transmission time and the physical switching time.
[0122] The physical switching time is a fixed time and cannot be adjusted. The stop sending time is not a fixed time and can be adjusted.
[0123] Figure 5 The channel switching time shown can be an implementation of the channel switching time for a P2P GO path. That is, for the third device 103 in the P2P path, if the role of the third device 103 is GO and the role of the first device 101 is GC, then the following implementation can be adopted: Figure 5 The implementation method of channel switching time is shown.
[0124] Regarding the time to stop sending, the first device 101 sends the remaining data packets to the peer device on the current channel, preparing to stop sending.
[0125] Regarding the physical handover time, the first device 101 performs an actual physical channel handover, during which the first device 101 cannot send or receive data.
[0126] In some embodiments, the channel activation time includes a preparation time for transmission. During this preparation time, the first device 101 sends a Null / QoS Null message to the peer device of the switched channel to announce that it is about to enter the activation state. The first device 101 can then send and receive data with the corresponding peer device. This preparation time is also a time that does not require adjustment.
[0127] Therefore, for a P2P GO channel, the corresponding channel switching information may include: a second stop transmission time, wherein the local device is used to send the remaining data packets that have not yet been sent in the data packets to be sent to the peer device of the corresponding channel during the second stop transmission time.
[0128] It is understandable that if the local device can quickly complete the transmission of the remaining data packets within the second stop transmission time, the second stop transmission time can be reduced. Whether the remaining data packets can be transmitted quickly is related to the communication capabilities of the peer device. Therefore, by utilizing the communication capabilities of the peer device, the corresponding channel switching information can be determined.
[0129] It is important to note that, in Figure 4 and Figure 5 The duration shown is merely an example and does not constitute a limitation on the embodiments of this disclosure.
[0130] In some embodiments, the target information corresponding to the peer device can be used to determine whether the peer device has the ability to dynamically adjust channel switching overhead. If it does, the channel switching overhead of the peer device can be dynamically adjusted based on the channel switching information determined by the target information; if it does not, fixed channel switching information can be used.
[0131] Therefore, as an optional implementation, step S22 includes: determining whether the peer device on the channel supports channel handover overhead adjustment based on the target information corresponding to the peer device on the channel; and at least determining the channel handover information corresponding to the channel based on the target information corresponding to the peer device on the channel.
[0132] In this implementation, if the peer device on the channel supports channel handover overhead adjustment, the corresponding channel handover information can be determined by combining the target information, so as to indirectly realize channel handover overhead adjustment.
[0133] As an optional implementation, step S22 includes: determining, based on the target information corresponding to the peer device on the channel, that the peer device on the channel does not support channel handover overhead adjustment; and determining the channel handover information corresponding to the channel based on the preset default channel handover information.
[0134] In this implementation, if the peer device on the channel does not support channel switching overhead adjustment, the default channel switching information can be directly determined as the corresponding channel switching information.
[0135] Regarding the default channel switching information, it can be the channel switching information corresponding to the maximum channel switching cost of the corresponding end device. It can be determined based on actual measurement or simulation, etc., and is not limited here.
[0136] In some embodiments, where the target information includes a communication capability assessment value, a preset communication capability assessment value can be configured. If the communication capability assessment value of the peer device is greater than or equal to the preset communication capability assessment value, it is considered to support handover overhead adjustment; otherwise, it is considered not to support handover overhead adjustment.
[0137] The configuration method for preset communication capability evaluation values can be tailored to different application scenarios, such as determining them based on big data analysis or statistical data.
[0138] In some embodiments, the method further includes: obtaining multiple preset channel switching information and device communication capability conditions corresponding to the multiple preset channel switching information respectively.
[0139] Accordingly, at least based on the target information corresponding to the peer device on the channel, the channel switching information corresponding to the channel is determined, which may include: determining the target device communication capability conditions that match the target information corresponding to the peer device on the channel from the device communication capability conditions corresponding to various preset channel switching; and determining the preset channel switching information corresponding to the target device communication capability conditions as the channel switching information corresponding to the channel.
[0140] In some embodiments, the device communication capability conditions may be conditions based on communication capability assessment values or communication capability assessment levels.
[0141] In some embodiments, multiple intervals can be divided using communication capability assessment values or communication capability assessment levels. Each interval is considered as a device communication capability condition. Then, preset channel switching information corresponding to each interval is configured.
[0142] For example, communication capability assessment values can be divided into three ranges: [0, 1500), [1500, 2500), and >2500. Communication capability assessment levels can be categorized according to device specifications; for instance, WiFi Legacy could be classified as the lowest level, WiFi 4 / WiFi 5 as the medium level, and WiFi 6 / WiFi 7 as the highest level.
[0143] Alternatively, other methods of configuring device communication capabilities can be used, which are not limited here.
[0144] Furthermore, from multiple device communication capability conditions, the target device communication capability conditions corresponding to the target information of the peer device on the channel can be determined, and then the preset channel switching information corresponding to the target device communication capability conditions can be determined as the channel switching information corresponding to the channel.
[0145] Table 1 is an example of preset channel switching information according to an exemplary embodiment. As shown in Table 1, the channel is divided into three specifications: low, medium, and high. These three specifications correspond to different stop transmission times, waiting times, and the number of wake-up messages (i.e., the aforementioned target messages).
[0146] Table 1
[0147] In some embodiments, the low-specification range may be the range where the target information of the peer device that does not support channel switching overhead adjustment is located, and the medium-specification range and the high-specification range may be the range where the target information of the peer device that supports channel switching overhead adjustment is located.
[0148] It's important to understand that lower-spec devices typically have older hardware, resulting in generally lower chip processing power. This manifests primarily in lower performance during rapid handover scenarios. Therefore, these devices employ the highest possible channel handover overhead to ensure a successful handover. Similarly, in upgrade scenarios, performance can be improved by reducing channel handover overhead. However, extremely low channel handover overhead carries the risk of insufficient processing power from the receiving end, leading to performance degradation. Therefore, higher-spec devices utilize the lowest possible channel handover overhead to achieve performance targets.
[0149] Furthermore, when controlling the local device to switch channels among multiple channels based on the channel switching information corresponding to each channel, the switching parameters can be controlled according to the channel switching information. It can be understood that the channel switching method remains unchanged; only the time slice of the channel switching time changes. For example, the local device can send a target message based on the first stop transmission time, the waiting time, and the number of target messages. After confirming that the peer device has received the target message, a physical channel switch is then performed.
[0150] For example, if the first device 101 needs to switch from the channel where the second device 102 is located to the channel where the third device 103 is located, then according to the channel switching information corresponding to the channel where the second device 102 is located, it switches from the channel where the second device 102 is located to the channel where the third device 103 is located.
[0151] In some embodiments, the channel switching information determined at least based on the target information of the peer device on the channel can be regarded as an initial adjustment of the channel switching information. In subsequent communication processes, the channel switching information corresponding to the channel can also be adjusted.
[0152] Therefore, as an optional implementation, the communication method further includes: acquiring network quality data corresponding to multiple channels respectively; determining channels with degraded network quality based on the network quality data corresponding to the multiple channels respectively; adjusting the channel switching information corresponding to the channel to obtain adjusted channel switching information; and controlling the local device to switch from the channel to other channels based on the adjusted channel switching information.
[0153] It is understandable that adjusting the channel switching time according to the communication capabilities of the peer device may cause network lag on the peer device.
[0154] Therefore, network quality data corresponding to multiple channels can be obtained, and the network quality data can be used to evaluate whether the initial channel switching information is reasonable.
[0155] Furthermore, if there are channels with degraded network quality, it can be determined that the channel switching information corresponding to that channel is unreasonable and needs to be adjusted.
[0156] In some embodiments, network quality data may include data corresponding to at least one of the following network quality metrics: received signal strength indication; received signal duty cycle; received signal retransmission rate; transmitted signal delivery success rate; transmitted signal wake-up delivery success rate.
[0157] In some embodiments, the data corresponding to the network quality indicators may involve network quality indicators corresponding to multiple time points.
[0158] In some embodiments, network quality can be analyzed based on data corresponding to at least one network quality metric. For example, network quality parameters are determined based on the network quality metrics corresponding to each time point, and the network quality parameters corresponding to each time point are compared. If the network quality parameters gradually decrease, it indicates that the network quality has declined.
[0159] In some embodiments, real-time network quality indicators can also be obtained, and network quality parameters can be determined based on the real-time network quality indicators. If the network quality parameters are less than the preset quality parameters, it is considered that the network quality has decreased; otherwise, it is considered that the network quality has not decreased.
[0160] Alternatively, other implementation methods can be used to evaluate network quality, which are not limited here.
[0161] In some embodiments, it can be determined whether the network quality of the current channel has degraded based solely on the network quality data corresponding to the current channel. If so, the subsequent processing method is the same as that for channels with degraded network quality. If not, the subsequent processing method is the same as that for channels without degraded network quality.
[0162] In some embodiments, channel handover information adjustment can also be performed when there is no channel with degraded network quality, but the adjustment method may differ from the adjustment method when there is a channel with degraded network quality.
[0163] In some embodiments, an adjustment method similar to transmission control, involving additive reduction and adaptive increase, can be adopted.
[0164] For example, additive reduction: When no network quality degradation is detected, the local device gradually reduces its stop-transmission time and waiting time to utilize network bandwidth more efficiently. This reduction is linear; that is, the handover time decreases by a fixed amount (assumed to be 1ms) every cycle. This helps to slowly and steadily improve handover latency until the capacity that the other end can carry is reached.
[0165] For example, adaptive increment: when a network quality degradation is detected (e.g., through packet loss, timeout, etc.), the first device 101 needs to increase its stop transmission time and wait time to ensure a more stable network handover.
[0166] Adaptive increments mean that the handover time increment is not fixed (1ms~5ms), but is adjusted based on the current network conditions and historical data. This strategy is more flexible and can adjust the overall handover time according to the actual network conditions.
[0167] For example, if network quality was previously good but suddenly becomes sluggish, adaptive increases might allow for smaller handover time increments to more quickly restore high bandwidth utilization. Conversely, if network bandwidth is low, handover times might be increased more to avoid frequent network quality degradation.
[0168] In some embodiments, the communication method may further include: determining channels without network quality degradation based on network quality data corresponding to multiple channels respectively; and determining reference channel switching information based on network quality data corresponding to multiple channels and channel switching information corresponding to the channel, wherein the reference channel switching information can be used to determine channel switching information corresponding to other channels.
[0169] In this implementation, the correspondence between channel handover information that will not degrade network quality and the network quality data of each channel can be recorded as reference channel handover information. When determining channel handover information for other channels subsequently, this reference information can be used in conjunction with the determination. For example, network quality data can be compared with the network quality data corresponding to the reference channel handover information to select channel handover information that will not degrade network quality.
[0170] In some embodiments, a threshold for the number of times channel switching information can be adjusted within a certain period of time can be set to avoid frequent back-and-forth adjustments.
[0171] It is understandable that the above-mentioned network quality monitoring and corresponding channel switching information adjustment are steps that can be repeated.
[0172] Figure 6 This is a flowchart illustrating an adjustment strategy selection according to an exemplary embodiment, which can be applied to... Figure 1 The application scenarios shown are as follows: Figure 6 As shown, the adjustment strategy selection process includes the following steps: The STA channel and P2P channel of the first device 101 have been created and entered DBAC mode.
[0173] Based on the second device 102 connected to the first device 101 in the STA channel, a comprehensive evaluation is conducted on the actual wireless protocol and hardware capabilities used.
[0174] Based on the third device 103 connected to the first device 101 in the P2P channel, a comprehensive evaluation is conducted on the actual wireless protocol and hardware capabilities used.
[0175] Next, based on the capability level assessment and the preset range, it is determined whether the equipment capability supports dynamic adjustment of channel handover overhead.
[0176] If supported, a dynamic adjustment strategy is adopted, that is, the corresponding time in the channel handover time is adjusted according to the specific equipment capabilities; if not supported, a fixed adjustment strategy is adopted, that is, the default implementation method of channel handover information corresponding to the maximum channel handover overhead is adopted.
[0177] Figure 7 This is a flowchart illustrating the implementation of an adjustment strategy according to an exemplary embodiment, which can be applied to... Figure 1 The application scenarios shown, and as Figure 6 The process after selecting a strategy. For example... Figure 7 As shown, the process includes: When a dynamic adjustment strategy is enabled, the channel handover information corresponding to the minimum channel handover cost is used first, and then network quality monitoring is performed on the STA and P2P channels. When a static adjustment strategy is enabled, the channel handover information corresponding to the maximum channel handover cost is used for configuration.
[0178] For the dynamic adjustment strategy, based on the preset quality indicators of the channel, it is confirmed whether the current lag is caused by changes in channel switching information. Specifically, after the first device 101 detects the network quality indicators (RSSI, duty cycle, Tx delivery success rate, Tx wake-up delivery success rate, Rx retransmission rate) of the third device 103 in the P2P channel, if the quality parameters are greater than or equal to the preset standard values, the current network is confirmed to be normal; if they are less than the preset standard values, network lag is considered to have occurred. Similarly, the first device 101 will detect the network indicators of the second device 102 in the STA channel, which will not be elaborated here.
[0179] If it is determined that there is no current network quality degradation, the matching relationship between network quality indicators and channel switching information is recorded and learned. When the first device 101 connects to this device later, it can refer to the recorded matching relationship to set the network indicator lag rate for subsequent reconnection.
[0180] If it is confirmed that the current situation is causing a decline in network quality, the channel overhead configuration is adjusted (i.e., the channel switching information is adjusted), and near-field communication services continue according to the adjusted channel switching information.
[0181] After adjusting the channel switching information, confirm again, based on network quality indicators, whether the current lag is caused by overhead adjustments.
[0182] After the channel handover information is adjusted, the channel handover overhead of the peer device is also adjusted accordingly. By monitoring the network quality indicators of the channel, it is determined whether the channel handover overhead is suitable for the device on the currently connected channel. If it is determined that the current network quality has deteriorated, it means that the adjusted channel handover information is not suitable for the communication capabilities of the peer device corresponding to the current channel. Therefore, the channel handover overhead configuration (i.e., channel handover information) can be adjusted again.
[0183] It can be understood that the overhead configuration in the above process is the channel switching information, which may include: stop sending time, waiting time, number of messages, etc. For details, please refer to the aforementioned embodiments.
[0184] The technical solution of this disclosure embodiment can realize the adjustment of the overall near-field device communication channel overhead, and improve the channel throughput by 15% for high-specification hardware.
[0185] Figure 8 This is a block diagram illustrating a communication device 800 according to an exemplary embodiment, such as... Figure 8 As shown, the communication device 800 includes: Optionally, the acquisition module 801 is configured to acquire target information representing the communication capabilities of multiple peer devices, which establish communication paths with the local device on different channels; the determination module 802 is configured to determine channel switching information corresponding to each channel based on the target information of the peer devices on that channel, the channel switching information including switching parameters for the local device to switch from that channel to other channels; and the control module 803 is configured to control the local device to perform channel switching in the multiple channels based on the channel switching information corresponding to the multiple channels.
[0186] Optionally, the determining module 802 is further configured to: determine whether the peer device on the channel supports channel handover overhead adjustment based on the target information corresponding to the peer device on the channel; and at least determine the channel handover information corresponding to the channel based on the target information corresponding to the peer device on the channel.
[0187] Optionally, the acquisition module 801 is further configured to: acquire multiple preset channel switching information and device communication capability conditions corresponding to the multiple preset channel switching information respectively; the determination module 802 is further configured to: determine the target device communication capability conditions that match the target information corresponding to the peer device on the channel from the device communication capability conditions corresponding to the multiple preset channel switching respectively; and determine the preset channel switching information corresponding to the target device communication capability conditions as the channel switching information corresponding to the channel.
[0188] Optionally, the acquisition module 801 is further configured to: acquire network quality data corresponding to the plurality of channels respectively; the determination module 802 is further configured to: determine the channel with degraded network quality based on the network quality data corresponding to the plurality of channels respectively; adjust the channel switching information corresponding to the channel to obtain the adjusted channel switching information; and the control module 803 is further configured to: control the local device to switch from the channel to other channels based on the adjusted channel switching information.
[0189] Optionally, the determining module 802 is further configured to: determine channels without network quality degradation based on the network quality data corresponding to the plurality of channels respectively; and determine reference channel switching information based on the network quality data corresponding to the plurality of channels and the channel switching information corresponding to the channel, wherein the reference channel switching information can be used to determine the channel switching information corresponding to other channels.
[0190] Optionally, the network quality data includes data corresponding to at least one of the following network quality indicators: received signal strength indication; received signal duty cycle; received signal retransmission rate; transmitted signal delivery success rate; transmitted signal wake-up delivery success rate.
[0191] Optionally, the determining module 802 is further configured to: determine, based on the target information corresponding to the peer device on the channel, that the peer device on the channel does not support channel handover overhead adjustment; and determine the preset default channel handover information as the channel handover information corresponding to the channel.
[0192] Optionally, the plurality of channels includes a first type of channel and a second type of channel; the channel switching information corresponding to the first type of channel includes: a first stop transmission time, a waiting time, and a number of target packets used to indicate channel switching, wherein the local device is used to send the target packets to the peer device on the first type of channel during the first stop transmission time and / or the waiting time; the channel switching information corresponding to the second type of channel includes: a second stop transmission time, wherein the local device is used to send the remaining data packets that have not yet been sent from the data packets to be sent to the peer device on the second type of channel during the second stop transmission time.
[0193] Optionally, the acquisition module 801 is further configured to: acquire device information corresponding to the plurality of peer devices respectively, the device information being used to influence the communication capabilities of the peer devices; evaluate the communication capabilities of the plurality of peer devices respectively based on the device information corresponding to the plurality of peer devices respectively, to obtain communication capability evaluation information corresponding to the plurality of peer devices respectively; and determine target information corresponding to the plurality of peer devices respectively based on the communication capability evaluation information corresponding to the plurality of peer devices respectively.
[0194] Optionally, the device information corresponding to each of the peer devices includes at least one of the following: the wireless communication protocol used by the device; the channel mode supported by the device; the frequency band supported by the device; the number of antennas supported by the device; and the bandwidth threshold supported by the device.
[0195] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0196] This disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the communication method provided in this disclosure.
[0197] Figure 9 This is a block diagram illustrating an electronic device 900 according to an exemplary embodiment. For example, the electronic device 900 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0198] Reference Figure 9 The electronic device 900 may include one or more of the following components: a processing component 902, a first memory 904, a power supply component 906, a multimedia component 908, an audio component 910, an input / output interface 912, a sensor component 914, and a communication component 916.
[0199] Processing component 902 typically controls the overall operation of electronic device 900, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 902 may include one or more first processors 920 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 902 may include one or more modules to facilitate interaction between processing component 902 and other components. For example, processing component 902 may include a multimedia module to facilitate interaction between multimedia component 908 and processing component 902.
[0200] The first memory 904 is configured to store various types of data to support the operation of the electronic device 900. Examples of this data include instructions for any application or method operating on the electronic device 900, contact data, phonebook data, messages, pictures, videos, etc. The first memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0201] Power supply component 906 provides power to various components of electronic device 900. Power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 900.
[0202] Multimedia component 908 includes a screen that provides an output interface between the electronic device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 908 includes a front-facing camera and / or a rear-facing camera. When the electronic device 900 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0203] Audio component 910 is configured to output and / or input audio signals. For example, audio component 910 includes a microphone (MIC) configured to receive external audio signals when electronic device 900 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in first memory 904 or transmitted via communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
[0204] Input / output interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, start buttons, and lock buttons.
[0205] Sensor assembly 914 includes one or more sensors for providing state assessments of various aspects of electronic device 900. For example, sensor assembly 914 can detect the on / off state of electronic device 900, the relative positioning of components such as the display and keypad of electronic device 900, changes in position of electronic device 900 or a component of electronic device 900, the presence or absence of user contact with electronic device 900, orientation or acceleration / deceleration of electronic device 900, and temperature changes of electronic device 900. Sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 914 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0206] Communication component 916 is configured to facilitate wired or wireless communication between electronic device 900 and other devices. Electronic device 900 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 916 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 916 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0207] In an exemplary embodiment, the electronic device 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the communication method described above.
[0208] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a first memory 904 including instructions, which can be executed by a first processor 920 of an electronic device 900 to complete the aforementioned communication method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0209] In another exemplary embodiment, a computer program product is also provided, the computer program product comprising a computer program executable by a programmable device, the computer program having a code portion for performing the above-described communication method when executed by the programmable device.
[0210] Some embodiments of this disclosure also provide a chip system, such as Figure 10As shown, the chip system includes at least one processor 1001 and at least one interface circuit 1002. The processor 1001 and the interface circuit 1002 are interconnected via lines. For example, the interface circuit 1002 can be used to receive signals from other devices (e.g., the memory of an electronic device). As another example, the interface circuit 1002 can be used to send signals to other devices (e.g., the second processor 1001). Exemplarily, the interface circuit 1002 can read instructions stored in memory and send those instructions to the second processor 1001. When the instructions are executed by the second processor 1001, the communication device can perform the steps in the above embodiments. Of course, the chip system may also include other discrete devices, and some embodiments of this disclosure do not specifically limit this.
[0211] In some embodiments of this disclosure, the interface circuit 1002 can acquire data, program instructions, and / or information from the internal storage area of the chip system; it can also acquire data, program instructions, and / or information from outside the chip system.
[0212] Optionally, the chip system also includes a second memory 1003 for storing necessary computer programs and data.
[0213] Those skilled in the art will also understand that the various illustrative logical blocks and steps listed in the embodiments of this application can be implemented by electronic hardware, computer software, or a combination of both. Whether such functionality is implemented through hardware or software depends on the specific application and the overall system design requirements. Those skilled in the art can implement the described functionality using various methods for each specific application, but such implementation should not be construed as exceeding the scope of protection of the embodiments of this application.
[0214] Although terms such as “first,” “second,” and “third” may be used herein to describe various components, parts, regions, layers, or sections, these components, parts, regions, layers, or sections are not limited to these terms. Rather, these terms are used only to distinguish one component, part, region, layer, or section from another. Therefore, without departing from the teachings of the examples described herein, the first component, part, region, layer, or section mentioned in the examples may also be referred to as the second component, part, region, layer, or section. Furthermore, the terms “first” and “second” are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as “first” or “second” may explicitly or implicitly include at least one of that feature. In the description herein, “a plurality” means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0215] Furthermore, the term “exemplary” is used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as “exemplary” is not necessarily to be construed as advantageous compared to other aspects or designs. Rather, the use of the term “exemplary” is intended to present the concept in a concrete manner. As used herein, the term “or” is intended to mean an inclusive “or” rather than an exclusive “or.” That is, unless otherwise specified or clear from the context, “X applies A or B” is intended to mean any of the natural inclusive arrangements. That is, “X applies A or B” satisfies any of the foregoing instances if X applies A; X applies B; or both X applies A and B. Additionally, unless otherwise specified or clear from the context to refer to the singular form, the articles “a” and “an” as used in this application and the appended claims are generally understood to mean “one or more.”
[0216] Similarly, although this disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art upon reading and understanding this specification and the accompanying drawings. This disclosure includes all such modifications and variations and is limited only by the scope of the claims. In particular, with respect to the various functions performed by the components described above (e.g., elements, resources, etc.), unless otherwise indicated, the terminology used to describe such components is intended to correspond to any component (functionally equivalent) that performs the specific function of the described component, even if structurally not equivalent to the disclosed structure. Furthermore, although specific features of this disclosure may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations, as may be desired and advantageous to any given or particular application. Moreover, with regard to the terms “comprising,” “owning,” “having,” “having,” or variations thereof as used in the detailed description or claims, such terms are intended to be inclusive in a manner similar to the term “including.”
[0217] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the appended claims.
[0218] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A communication method, characterized in that, include: Obtain target information corresponding to multiple peer devices to characterize the device's communication capabilities, and the multiple peer devices establish communication paths with the local device on different channels; For each channel, based on the target information corresponding to the peer device on that channel, the channel switching information corresponding to that channel is determined. The channel switching information includes the switching parameters for the local device to switch from that channel to other channels. Based on the channel switching information corresponding to each of the multiple channels, the local device is controlled to switch channels among the multiple channels.
2. The communication method according to claim 1, characterized in that, The step of determining the channel switching information corresponding to the channel based on the target information corresponding to the peer device on the channel includes: Based on the target information corresponding to the peer device on the channel, determine whether the peer device on the channel supports channel handover overhead adjustment; Based at least on the target information corresponding to the peer device on the channel, the channel switching information corresponding to the channel can be determined.
3. The communication method according to claim 2, characterized in that, The communication method further includes: Acquire multiple preset channel switching information and the device communication capability conditions corresponding to each of the multiple preset channel switching information; The step of determining the channel switching information corresponding to the channel based at least on the target information corresponding to the peer device on the channel includes: From the device communication capability conditions corresponding to the various preset channel switching, determine the target device communication capability conditions that match the target information of the peer device on the channel; The preset channel switching information corresponding to the communication capability conditions of the target device is determined as the channel switching information corresponding to that channel.
4. The communication method according to claim 2, characterized in that, The communication method further includes: Obtain the network quality data corresponding to each of the multiple channels; Based on the network quality data corresponding to the multiple channels, determine the channels where network quality is degraded; The channel switching information corresponding to this channel is adjusted to obtain the adjusted channel switching information; Based on the adjusted channel switching information, the local device is controlled to switch from that channel to other channels.
5. The communication method according to claim 4, characterized in that, The communication method further includes: Based on the network quality data corresponding to the multiple channels, channels that do not exhibit network quality degradation are identified. Based on the network quality data corresponding to the multiple channels and the channel switching information corresponding to the channel, reference channel switching information is determined. The reference channel switching information can be used to determine the channel switching information corresponding to other channels.
6. The communication method according to claim 4, characterized in that, The network quality data includes data corresponding to at least one of the following network quality indicators: Signal strength indication; The duty cycle of the received signal; The retransmission rate of the received signal; Success rate of signal delivery; The success rate of wake-up delivery of the sent signal.
7. The communication method according to claim 1, characterized in that, The step of determining the channel switching information corresponding to the channel based on the target information corresponding to the peer device on the channel includes: Based on the target information corresponding to the peer device on this channel, it is determined that the peer device on this channel does not support channel handover overhead adjustment; The preset default channel switching information is determined as the channel switching information corresponding to this channel.
8. The communication method according to any one of claims 1 to 7, characterized in that, The plurality of channels includes channels of a first type and channels of a second type; The channel switching information corresponding to the first type of channel includes: a first stop transmission time, a waiting time, and the number of target packets used to indicate channel switching, wherein the local device is used to send the target packets to the peer device on the first type of channel during the first stop transmission time and / or the waiting time; The channel switching information corresponding to the second type of channel includes: a second stop transmission time, wherein the local device is used to send the remaining data packets that have not yet been sent in the data packets to be sent to the peer device on the second type of channel during the second stop transmission time.
9. The communication method according to any one of claims 1 to 7, characterized in that, The step of obtaining target information for characterizing the communication capabilities of multiple peer devices includes: Obtain device information corresponding to the plurality of peer devices, and the device information is used to influence the communication capabilities of the peer devices; Based on the device information corresponding to the plurality of peer devices, the communication capabilities of the plurality of peer devices are evaluated respectively, and the communication capability evaluation information corresponding to the plurality of peer devices is obtained. Based on the communication capability assessment information corresponding to the plurality of peer devices, the target information corresponding to the plurality of peer devices is determined.
10. The communication method according to claim 9, characterized in that, The device information for each peer device includes at least one of the following: The wireless communication protocol used by the device; The channel modes supported by the device; Frequency bands supported by the device; The number of antennas supported by the device; The bandwidth threshold supported by the device.
11. A communication device, characterized in that, include: The acquisition module is configured to acquire target information corresponding to multiple peer devices to characterize the communication capabilities of the devices, wherein the multiple peer devices establish communication paths with the local device on different channels. The determination module is configured to determine the channel switching information corresponding to each channel based on the target information of the peer device on that channel. The channel switching information includes the switching parameters for the local device to switch from that channel to other channels. The control module is configured to control the local device to switch channels in the multiple channels according to the channel switching information corresponding to the multiple channels respectively.
12. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to execute the executable instructions to implement the communication method as described in any one of claims 1 to 10.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the communication method as described in any one of claims 1 to 10.
14. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the communication method according to any one of claims 1 to 10.
15. A chip system, characterized in that, The chip system includes a processing unit and an interface circuit. The processing unit obtains program instructions through the interface circuit, and the program instructions are executed by the processing unit. The processing unit is used to execute the communication method as described in any one of claims 1 to 10.