Methods, apparatus, devices, storage media, and program products for communication
By acquiring and negotiating the WLAN channel connection status of the device, a suitable WLAN channel is determined for communication, which solves the problem of slow data transmission speed in wireless LAN point-to-point connections and achieves more efficient communication.
Patent Information
- Application Number
- CN202510591846.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-08
- Publication Date
- 2026-11-10
AI Technical Summary
In point-to-point wireless LAN connections, existing technologies cannot effectively improve the data transmission speed between devices, especially in router connections and concurrent business data transmission modes, where device communication speed is affected.
By acquiring and negotiating the WLAN channel connection status of the first and second devices, a suitable WLAN channel is determined for communication, avoiding channel interruption and improving communication speed.
It reduces the probability of WLAN channel interruption and improves the communication speed between devices.
Smart Images

Figure CN123075736A_ABST
Abstract
Description
Technical Field
[0001] The exemplary embodiments disclosed herein generally relate to the field of computers, and particularly to methods, apparatus, devices, computer-readable storage media, and computer program products for communication. Background Technology
[0002] With the development of computer technology, more and more devices can support the transmission of business data via point-to-point wireless LAN connections. Devices no longer need intermediate devices such as routers to communicate; instead, they communicate through directly established links. Improving data transmission speed under this communication method is a key focus of current attention. Summary of the Invention
[0003] In a first aspect of this disclosure, a method for communication is provided. The method includes: acquiring first capability information of a first device, the first capability information indicating at least a first wireless local area network (WLAN) channel connection status of the first device; receiving second capability information of a second device, the second capability information indicating at least a second WLAN channel connection status of the second device; and determining a WLAN channel for communication between the first device and the second device based at least on at least one of the first WLAN channel connection status and the second WLAN channel connection status.
[0004] In a second aspect of this disclosure, an apparatus for communication is provided. The apparatus includes: an acquisition module configured to acquire first capability information of a first device, the first capability information indicating at least a first wireless local area network (WLAN) channel connection state of the first device; a receiving module configured to receive second capability information of a second device, the second capability information indicating at least a second WLAN channel connection state of the second device; and a determination module configured to determine a WLAN channel for communication between the first device and the second device based at least on at least one of the first WLAN channel connection state and the second WLAN channel connection state.
[0005] In a third aspect of this disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit. When executed by the at least one processing unit, the instructions cause the device to perform the method of the first aspect.
[0006] In a fourth aspect of this disclosure, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program that can be executed by a processor to implement the method of the first aspect.
[0007] In a fifth aspect of this disclosure, a computer program product is provided. The computer program product includes computer-executable instructions that, when executed by a processor, implement the method of the first aspect.
[0008] It should be understood that the content described in this content section is not intended to limit the key or essential features of the embodiments of this disclosure, nor is it intended to restrict the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0009] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. In the drawings, the same or similar reference numerals denote the same or similar elements, wherein:
[0010] Figure 1 A schematic diagram of an example environment in which embodiments of the present disclosure can be implemented is shown;
[0011] Figure 2 A flowchart of the timing signaling flow of example communications according to some embodiments of this disclosure is shown;
[0012] Figures 3A to 3D A flowchart of an example negotiation process according to some embodiments of this disclosure is shown;
[0013] Figure 4 A flowchart of a communication process according to some embodiments of the present disclosure is shown;
[0014] Figure 5 A schematic structural block diagram of an apparatus for communication according to certain embodiments of the present disclosure is shown;
[0015] Figure 6 A block diagram of an electronic device capable of implementing several embodiments of the present disclosure is shown. Detailed Implementation
[0016] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0017] It should be noted that the headings of any section / subsection provided herein are not limiting. Various embodiments are described throughout this document, and embodiments of any type may be included under any section / subsection. Furthermore, embodiments described in any section / subsection may be combined in any way with any other embodiments described in the same section / subsection and / or different sections / subsections.
[0018] In the description of embodiments of this disclosure, the term "comprising" and similar terms should be understood as open-ended inclusion, i.e., "including but not limited to". The term "based on" should be understood as "at least partially based on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below. The terms "first", "second", etc., may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0019] The embodiments of this disclosure may involve user data, data acquisition, and / or use. All of these aspects comply with applicable laws, regulations, and relevant provisions. In the embodiments of this disclosure, all data collection, acquisition, processing, manipulation, forwarding, and use are conducted with the user's knowledge and confirmation. Accordingly, in implementing the embodiments of this disclosure, the type, scope of use, and usage scenarios of any data or information that may be involved should be communicated to the user and their authorization obtained in accordance with relevant laws and regulations through appropriate means. The specific methods of notification and / or authorization may vary depending on the actual situation and application scenario, and the scope of this disclosure is not limited in this respect.
[0020] In this specification and the embodiments, any processing of personal information will be carried out only under the premise of legality (such as obtaining the consent of the personal information subject, or being necessary for the performance of a contract), and will only be carried out within the scope stipulated or agreed upon. A user's refusal to process personal information other than that necessary for basic functions will not affect the user's use of basic functions.
[0021] As described above, terminal devices can transmit service data via peer-to-peer (P2P) connections using Wireless Local Area Networks (WLANs). Traditionally, terminal devices can also connect to routers to achieve connections such as to the Internet. According to traditional solutions, when terminal devices are in a concurrent mode of router connections and service data transmission connections, they need to adopt measures such as time-division multiplexing to coordinate these connections, which severely impacts the communication speed between terminal devices.
[0022] In view of this, embodiments of the present disclosure propose a communication scheme. The scheme includes: acquiring first capability information of a first device, the first capability information indicating at least a first wireless local area network (WLAN) channel connection status of the first device; receiving second capability information of a second device, the second capability information indicating at least a second WLAN channel connection status of the second device; and determining a WLAN channel for communication between the first device and the second device based at least on at least one of the first WLAN channel connection status and the second WLAN channel connection status.
[0023] Based on this approach, embodiments of this disclosure can utilize the first WLAN channel connection status of the first device and the second WLAN channel connection status of the second device to perform channel negotiation. This makes the WLAN channel determined for communication between the first and second devices more reasonable, reducing the probability that such a WLAN channel will be interrupted by other connections of the first / second device. Therefore, embodiments of this disclosure can improve the communication speed between the first and second devices based on the WLAN channel.
[0024] Example Environment
[0025] Figure 1 A schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented is shown. For example... Figure 1 As shown, example environment 100 may include first device 110 and second device 120.
[0026] In this example environment 100, the first device 110 has some applications installed. The user 140 can interact with the first device 110 via the first device 110 and / or its attached devices. In some embodiments, the user 140 can also interact with the second device 120 via the second device 120 and / or its attached devices. The following example illustrates the interaction between the user 140 and the first device 110 via the first device 110 and / or its attached devices.
[0027] exist Figure 1 In environment 100, the first device 110 can send data 130 to be transmitted to the second device 120 or receive data 130 sent by the second device 120 via the connection between the first device 110 and the second device 120. The user 140 can trigger the sending or receiving of data 130 by interacting with the first device 110.
[0028] In some embodiments, the direct connection between the first device 110 and the second device 120 can be referred to as a peer-to-peer (P2P) connection. Such a P2P connection can include a wireless LAN P2P connection, or other forms of connection such as Bluetooth, Near Field Communication (NFC), Ultra-Wideband (UWB), etc. In the following description, a wireless LAN P2P connection is primarily used as an example, but it is understood that the embodiments of this disclosure are not limited thereto, and can be similarly applied to any other type of P2P connection.
[0029] Taking such a connection as an example of a wireless local area network (WLAN) peer-to-peer connection, the first device 110 can create a peer-to-peer network with the second device 120. This peer-to-peer network can support data transmission, resource sharing, and other communications between the first device 110 and the second device 120. Furthermore, the first device 110 can connect to such a peer-to-peer network to achieve a peer-to-peer connection with itself. The data 130 can be any suitable data that can be transmitted; this disclosure is not intended to limit the specific form and content of the data 130.
[0030] In some embodiments, the first device 110 may be any suitable electronic device, such as any suitable type of mobile terminal, fixed terminal, or portable terminal, including mobile phones, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, media computers, multimedia tablets, personal communication system (PCS) devices, personal navigation devices, personal digital assistants (PDAs), audio / video players, digital cameras / camcorders, positioning devices, television receivers, radio receivers, e-book devices, gaming devices, or any combination thereof, including accessories and peripherals of these devices or any combination thereof. The second device 120 may be any suitable electronic device that supports communication with the first device 110, such as any of the aforementioned types of mobile terminals, fixed terminals, or portable terminals. In some embodiments, the second device 120 may also be a smart wearable device, including wireless headphones, wireless glasses, wireless gamepads, etc. In some embodiments, the first device 110 and the second device 120 may also support any type of user-facing interface (such as "wearable" circuitry). In some embodiments, the first device 110 and the second device 120 may also include corresponding servers that can provide background services for applications installed on the first device 110 and the second device 120.
[0031] It should be understood that the structure and function of the various elements in environment 100 are described for illustrative purposes only and do not imply any limitation on the scope of this disclosure.
[0032] The following description will continue with reference to the accompanying drawings, which will provide some exemplary embodiments of this disclosure.
[0033] The following will refer to the appendix Figure 2 This describes an example communication process according to some embodiments of the present disclosure. Figure 2 A flowchart of the timing signaling flow of example communications according to some embodiments of the present disclosure is shown. Process 200 may be, for example, Figure 1 An example communication process between the first device 110 and the second device 120 is shown.
[0034] In some embodiments, the first device 110 acquires (210) first capability information, such first capability information indicating at least the first wireless local area network (WLAN) channel connection status of the first device 110.
[0035] As examples, the first device 110 may support multiple WLAN channels. These multiple WLAN channels may operate in different frequency bands, such as 5G or 2.4G. Therefore, multiple WLAN channels may include 5G channels, 2.4G channels, and so on. The following discussion primarily uses 5G and 2.4G channels as examples, but it is understood that WLAN channels may also exist in other operating frequency bands, depending on the specific network configuration. The embodiments of this disclosure can be similarly applied to WLAN channels in other frequency bands.
[0036] As an example, when connected to a router via one of such multiple WLAN channels, the first device 110 can perform data interaction with the router based on that WLAN channel. As another example, when the first device 110 forms a point-to-point connection with the second device 120 via one of such multiple WLAN channels, the first device 110 can perform point-to-point data interaction with the second device 120 based on that WLAN channel.
[0037] Furthermore, the first device 110 can determine its connection status with the WLAN channel, that is, the first WLAN channel connection status. For example, the first device 110 can determine whether it is connected to at least one WLAN channel to determine such a first WLAN channel connection status. For example, such a first WLAN channel connection status can indicate that the first device 110 is not connected to a WLAN channel, the first device 110 is connected to a WLAN channel, etc. Based on such a first WLAN channel connection status, the first device 110 can obtain first capability information that at least indicates such a first WLAN channel connection status. As an example, the electronic device 110 can construct first capability information that at least includes such a first WLAN channel connection status.
[0038] In some embodiments, the first device 110 can determine the frequency band characteristics of the WLAN channels it supports. These frequency band characteristics may include at least the frequency band and / or bandwidth of the WLAN channels supported by the first device 110. Therefore, the first device 110 can further determine a first WLAN channel connection state based on the frequency band characteristics of the supported WLAN channels. For example, such a first WLAN channel connection state may indicate that the first device 110 is connected to a WLAN channel, and that the WLAN channel is a 5G channel. Another example is that such a first WLAN channel connection state may indicate that the first device 110 is connected to a WLAN channel, that the WLAN channel is a 5G channel, and that the WLAN channel supports bandwidth up to 160 Mbps, etc. Based on the frequency band characteristics of the supported WLAN channels, the first device 110 can further obtain first capability information that also indicates the frequency band characteristics of the supported WLAN channels. As an example, the electronic device 110 can construct first capability information that includes at least such a first WLAN channel connection state and the frequency band characteristics of the WLAN channels supported by the electronic device 110. As some examples, the electronic device 110 may also construct first capability information that includes at least the frequency band characteristics of the WLAN channels supported by the electronic device 110.
[0039] In some embodiments, the second device 120 may acquire (220) second capability information, such second capability information indicating at least the second wireless local area network (WLAN) channel connection status of the second device 120. As examples, the specific implementation of the second device 120 acquiring (220) second capability information can be found in the specific implementation of the first device 110 acquiring (210) first capability information described above, and will not be repeated here.
[0040] It should be understood that the specific data items mentioned in the embodiments of this disclosure (e.g., frequency band, bandwidth, etc.) are merely exemplary, and this disclosure is not intended to limit them. They will not be repeated hereafter.
[0041] Therefore, the first device 110 can obtain the first capability information, and the second device 120 can obtain the second capability information.
[0042] In some embodiments, the first device 110 may send (230) such first capability information to the second device 120. The first device 110 may also receive (240) the second capability information sent by the second device 120. Thus, based on such first and second capability information, the first device 110 filters (250) from the supported plurality of WLAN channels to select a more suitable WLAN channel for communication between the first device 110 and the second device 120.
[0043] The following will be combined with the appendix Figure 3A To be continued Figure 3D This describes an example negotiation process based on some embodiments of the present disclosure. Figures 3A to 3D A flowchart of an example negotiation process according to some embodiments of the present disclosure is shown. Processes 300A to 300D may be implemented, for example, in... Figure 1 In the first device 110 shown. In some embodiments, processes 300A to 300D can also be implemented in Figure 1 In the second device 120 shown. For the purposes of discussion, processes 300A to 300D are described below from the perspective of the first device 110. The second device 120 can perform similar operations.
[0044] In some scenarios, neither the first device 110 nor the second device 120 may be connected to a WLAN channel. Therefore, the first device 110 can determine whether it and the second device 120 both support a WLAN channel in the first reference frequency band based on the frequency domain characteristics indicated by the first capability information and the second capability information.
[0045] In some embodiments, if both the first device 110 and the second device 120 support a WLAN channel in such a first reference frequency band, then the WLAN channel used for communication between the first device 110 and the second device 120 can be a WLAN channel in the first reference frequency band. Conversely, if the first device 110 does not support a WLAN channel in such a first reference frequency band, and / or the second device 120 does not support a WLAN channel in such a first reference frequency band, then the WLAN channel used for communication between the first device 110 and the second device 120 can be a WLAN channel in the second reference frequency band.
[0046] Furthermore, to improve data transmission speed, this second reference frequency band can be lower than the first reference frequency band. Based on this, the WLAN channel used for communication between the first device 110 and the second device 120 can preferably be a channel in a higher frequency band, thereby improving the data transmission speed between the first device 110 and the second device 120. As some examples, the first reference frequency band can be a 5 GHz band, and correspondingly, the WLAN channel of the first reference frequency band can be a 5 GHz channel. The second reference frequency band can, for example, be a 2.4 GHz band, and correspondingly, the WLAN channel of the second reference frequency band can be a 2.4 GHz channel.
[0047] For ease of discussion, the first reference frequency band is labeled X, the WLAN channel of the first reference frequency band is labeled X channel, the second reference frequency band is labeled Y, and the WLAN channel of the second reference frequency band is labeled Y channel. It should be noted that such labeling is only for ease of description and should not be construed as limiting the embodiments of this disclosure.
[0048] according to Figure 3A In process 300A, the first device 110 can determine whether both ends (the first device 110 and the second device 120) support the X channel. If yes, the first device 110 can determine that the WLAN channel used for communication between the first device 110 and the second device 120 is channel 304, and such channel 304 can be a reference WLAN channel on the first reference frequency band (called the default X channel). If no, the first device 110 can determine that the WLAN channel used for communication between the first device 110 and the second device 120 is channel 306, and such channel 306 is a reference WLAN channel on the second reference frequency band (called the default X channel).
[0049] In some scenarios, the first device 110 may be connected to one or more WLAN channels, while the second device 120 may not be connected to any WLAN channel. Therefore, the first device 110 can also determine whether both it and the second device 120 support WLAN channels in the first reference frequency band based on the supported frequency domain characteristics indicated by the first capability information and the second capability information. For example, as... Figure 3B As shown, the first device 110 can determine whether both ends (the first device 110 and the second device 120) of (308) support the X channel.
[0050] Furthermore, if both the first device 110 and the second device 120 support the X channel, the first device 110 can determine whether the WLAN channel it is connected to includes a channel in the first reference frequency band. For example, as Figure 3B As shown, the first device 110 can determine whether (310) its own device (i.e., the first device 110) is connected to the X channel.
[0051] In some embodiments, if the first device 110 is connected to a channel of the first reference frequency band, the first device 110 can determine the availability of such a channel of the first reference frequency band. The following uses one such channel of the first reference frequency band as an example; it should be understood that the first device 110 may also be connected to multiple channels of the first reference frequency band. Specific implementation methods in such scenarios can be found in the embodiments of this disclosure. For example, one of the multiple channels of the first reference frequency band connected to the first device 110 may be used as the channel of the first reference frequency band described below.
[0052] according to Figure 3BIn process 300B, the first device 110 can determine the availability of a channel in the first reference frequency band by judging (312) whether the channel of the first reference frequency band is a Dynamic Frequency Selection (DFS) channel. For example, if the channel of the first reference frequency band is a DFS channel, since such a Dynamic Frequency Selection channel needs to avoid radar priority connections, the first device 110 can determine that the channel of the first reference frequency band is unavailable. If the channel of the first reference frequency band is not a DFS channel, then the first device 110 can determine that the channel of the first reference frequency band is available.
[0053] Furthermore, if it is determined that the channel of the first reference frequency band is unavailable, the first device 110 may designate an unconnected channel 304 of the first reference frequency band as a WLAN channel for communication with the second device 120, while if the channel of the first reference frequency band is available, the first device 110 may designate a connected channel 314 of the first reference frequency band (referred to as the local X channel) as a WLAN channel for communication with the second device 120.
[0054] In some embodiments, if neither the first device 110 nor the second device 120 is connected to a channel of the first reference frequency band, the first device 110 may further determine (316) whether it is connected to a channel of the second reference frequency band. If so, the first device 110 may identify the connected channel 318 of the second reference frequency band (referred to as the local Y channel) as a WLAN channel for communicating with the second device 120.
[0055] Therefore, the first device 110 can utilize the channel connected to the router to transmit data with the second device 120, avoiding interruptions in the data transmission process with the second device 120, thereby improving the data transmission speed. Furthermore, based on the channel of the preferred first reference frequency band, the data transmission speed between the first device 110 and the second device 120 can be further improved.
[0056] If it is determined that the device is not connected to a channel in the second reference frequency band, the first device 110 can designate an unconnected channel 306 in the second reference frequency band as a WLAN channel for communication with the second device 120. In this way, embodiments of this disclosure can ensure normal communication between the first device 110 and the second device 120.
[0057] In some scenarios, the first device 110 may not be connected to a WLAN channel, while the second device 120 may be connected to one or more WLAN channels. In the scenario where the first device 110 may not be connected to a WLAN channel, while the second device 120 is connected to one or more WLAN channels, the specific implementation method for the first device 110 to determine the WLAN channel used for communication with the second device 120 can be found in the above-described implementation method for the scenario where the first device 110 may be connected to one or more WLAN channels, while the second device 120 is not connected to a WLAN channel. The embodiments disclosed herein will not be repeated here, but will be described in detail in the appendix. Figure 3C An example is described below.
[0058] according to Figure 3C In process 300C, the first device 110 can determine (320) whether both ends (the first device 110 and the second device 120) support the X channel. If both the first device 110 and the second device 120 support the X channel, the first device 110 can further determine (322) whether the other end (the second device 120) is connected to the X channel.
[0059] Furthermore, if the second device 120 is connected to an X channel, the first device 110 can determine (324) whether the X channel connected to the second device 120 is a DFS channel. If the X channel connected to the second device 120 is a DFS channel, the first device 110 can determine that the WLAN channel used for communication with the second device 120 is channel 304. If the X channel connected to the second device 120 is not a DFS channel, the first device 110 can determine that the WLAN channel used for communication with the second device 120 is channel 326. Such channel 326 can be the WLAN channel (peer X channel) of the first reference frequency band connected to the second device 120.
[0060] If the second device 120 is not connected to channel X, the first device 110 can further determine (328) whether the second device 120 is connected to channel Y. If the second device 120 is connected to channel Y, the first device 110 can determine channel 330 (the peer channel Y) connected to the second device 120 as the WLAN channel for communication between the first device 110 and the second device 120. If the second device 120 is not connected to channel Y, the first device 110 can determine channel 306 of an unconnected second reference frequency band as the WLAN channel for communication with the second device 120, so as to ensure normal communication between the first device 110 and the second device 120.
[0061] In some scenarios, both the first device 110 and the second device 120 may be connected to one or more WLAN channels. Therefore, the first device 110 can select a WLAN channel for communication between itself and the second device 120 from among the one or more WLAN channels connected to it, the one or more WLAN channels connected to the second device 120, reference WLAN channels in the first reference frequency band, and reference WLAN channels in the second reference frequency band. The following is in conjunction with the appendix... Figure 3D To provide a more detailed description.
[0062] according to Figure 3D In process 300D, the first device 110 can determine, based on the frequency domain characteristics supported by the first capability information and the second capability information, whether both itself and the second device 120 support the WLAN channel of the first reference frequency band. For example, Figure 3D As shown, the first device 110 can determine whether both ends (the first device 110 and the second device 120) support the X channel.
[0063] Furthermore, if both the first device 110 and the second device 120 support WLAN channels in the first reference frequency band, the first device 110 can determine whether the WLAN channel it is connected to includes a channel in the first reference frequency band. For example, such as Figure 3D As shown, the first device 110 can determine (324) whether the local device (first device 110) is connected to the X channel.
[0064] In some embodiments, if the first device 110 is connected to a channel of a first reference frequency band, the first device 110 can determine the availability of such a channel of the first reference frequency band. Similarly, the following uses such a channel of the first reference frequency band as an example. As an example, the first device 110 can determine (326) whether the channel of the first reference frequency band is a DFS channel to determine the availability of such a channel of the first reference frequency band. If such a channel of the first reference frequency band is available, the first device 110 can determine the connected channel 314 as a WLAN channel for communicating with the second device 120.
[0065] In some embodiments, if the first device 110 is not connected to a channel of the first reference frequency band, or the channel of the first reference frequency band to which the first device 110 is connected is unavailable, the first device 110 may further determine (328) whether the other end (second device 120) is connected to the X channel.
[0066] Furthermore, if the second device 120 is connected to an X channel, similarly, the following example assumes the second device 120 is connected to an X channel. The first device 110 can determine (330) whether the X channel connected to the second device 120 is a DFS channel to determine the availability of the X channel connected to the second device 120. If the X channel connected to the second device 120 is available, the first device 110 can identify channel 326 connected to the second device 120 as a WLAN channel for communication with the second device 120. If the channel in the first reference frequency band connected to the second device 120 is unavailable, the first device 110 can identify channel 304 as a WLAN channel for communication with the second device 120.
[0067] If the first device 110 does not support the WLAN channel of the first reference frequency band, and / or the second device 120 does not support the WLAN channel of the first reference frequency band, the first device 110 may further determine (332) whether it is connected to the Y channel. If the first device 110 is connected to the channel of the second reference frequency band, the first device 110 may determine the channel 318 connected to it as the WLAN channel for communicating with the second device 120.
[0068] If the first device 110 is not connected to a channel in the second reference frequency band, the first device 110 can further determine (334) whether the other end is connected to a Y channel. Further, if the second device 120 is connected to a Y channel, the first device 110 can determine the channel 330 (the other end's Y channel) connected to the second device 120 as the WLAN channel for communication between the first device 110 and the second device 120. If the second device 120 is not connected to a Y channel, the first device 110 can determine an unconnected channel 306 in the second reference frequency band as the WLAN channel for communication with the second device 120.
[0069] Furthermore, returning to Figure 2 When the first device 110 obtains a WLAN channel for communication with the second device 120, the second device 120 can create (260) a peer-to-peer network for communication based on such a WLAN channel and send (270) information about such a peer-to-peer network to the second device 120. The second device 120 thus connects (280) to the peer-to-peer network created by the first device 110, thereby establishing a peer-to-peer connection between the first device 110 and the second device 120. Based on this, the first device 110 and the second device 120 can communicate more quickly, for example, more quickly transmitting service data.
[0070] It should be understood that for some specific implementation details not described in detail in the embodiments of this disclosure, please refer to the corresponding descriptions in other embodiments, and this disclosure will not repeat them.
[0071] Based on this approach, embodiments of this disclosure can utilize the first WLAN channel connection status of the first device and the second WLAN channel connection status of the second device to perform channel negotiation. This makes the WLAN channel determined for communication between the first and second devices more reasonable, reducing the probability that such a WLAN channel will be interrupted by other connections of the first / second device. Therefore, embodiments of this disclosure can improve the communication speed between the first and second devices based on the WLAN channel.
[0072] Example process
[0073] Figure 4 A flowchart illustrating an example of a communication process 400 according to some embodiments of the present disclosure is shown. Process 400 may be implemented at a first device 110. Reference is made below. Figure 1 Describe the process 400.
[0074] In box 410, the first device 110 obtains first capability information of the first device, which at least indicates the first wireless local area network (WLAN) channel connection status of the first device.
[0075] In box 420, the first device 110 receives second capability information from the second device, the second capability information indicating at least the second WLAN channel connection status of the second device.
[0076] In block 430, the first device 110 determines a WLAN channel for communication between the first device and the second device based on at least one of a first WLAN channel connection state and a second WLAN channel connection state.
[0077] In some embodiments, the first capability information and the second capability information further indicate the frequency domain characteristics of the supported WLAN channel, the frequency domain characteristics including at least one of the frequency band and bandwidth of the supported WLAN channel, and determining the WLAN channel for communication includes: further determining the WLAN channel for communication based on the frequency domain characteristics of the WLAN channel.
[0078] In some embodiments, determining a WLAN channel for communication includes: determining, based on frequency domain characteristics, that both the first device and the second device support a WLAN channel on a first reference frequency band; and determining, based on at least one connection state, a WLAN channel on the first reference frequency band for communication.
[0079] In some embodiments, the first capability information and the second capability information further indicate the availability of WLAN channels on the currently connected first reference frequency band. Determining the WLAN channels on the first reference frequency band includes: determining, based on at least one connection state, that one or both of the first device and the second device have been connected to one or more WLAN channels on the first reference frequency band; and determining, based on availability, the WLAN channels on the first reference frequency band for communication.
[0080] In some embodiments, determining a WLAN channel on a first reference frequency band includes: determining, based on availability, that at least one of one or more WLAN channels on the connected first reference frequency band is available; and determining a WLAN channel among the at least one available WLAN channels in the first reference frequency band for communication.
[0081] In some embodiments, determining a WLAN channel on a first reference frequency band includes: determining, based on availability, that one or more WLAN channels on the first reference frequency band that are connected are unavailable; and determining that a reference WLAN channel on the first reference frequency band is used for communication.
[0082] In some embodiments, determining a WLAN channel on a first reference frequency band includes: determining, based on at least one connection state, that neither the first device nor the second device is connected to a WLAN channel on the first reference frequency band; and determining that a reference WLAN channel on the first reference frequency band is used for communication.
[0083] In some embodiments, determining at least one WLAN channel for communication includes: determining, based on frequency domain characteristics, that neither the first device nor the second device supports a WLAN channel on a first reference frequency band; and determining a WLAN channel on a second reference frequency band for communication.
[0084] In some embodiments, determining a WLAN channel on a second reference frequency band includes: determining, based on at least one connection state, that at least one of the first device and the second device has been connected to at least one WLAN channel on the second reference frequency band; and determining one of the at least one WLAN channels on the second reference frequency band that has been connected for communication.
[0085] In some embodiments, determining a WLAN channel on a second reference frequency band includes: determining, based on at least one connection state, that neither the first device nor the second device is connected to a WLAN channel on the second reference frequency band; and determining that a reference WLAN channel on the second reference frequency band is used for communication.
[0086] Example devices and equipment
[0087] Embodiments of this disclosure also provide corresponding apparatus for implementing the above methods or processes. Figure 5 A schematic structural block diagram of an example communication device 500 according to certain embodiments of the present disclosure is shown. Device 500 may be implemented as or included in the first device 110 discussed above. Various modules / components in device 500 may be implemented by hardware, software, firmware, or any combination thereof.
[0088] like Figure 5 As shown, the apparatus 500 includes: an acquisition module configured to acquire first capability information of a first device, the first capability information indicating at least a first wireless local area network (WLAN) channel connection status of the first device; a receiving module configured to receive second capability information of a second device, the second capability information indicating at least a second WLAN channel connection status of the second device; and a determination module configured to determine a WLAN channel for communication between the first device and the second device based at least on at least one of the first WLAN channel connection status and the second WLAN channel connection status.
[0089] In some embodiments, the first capability information and the second capability information also indicate the frequency domain characteristics of the supported WLAN channel, the frequency domain characteristics including at least one of the frequency band and bandwidth of the supported WLAN channel, and the determining module is further configured to: further determine the WLAN channel for communication based on the frequency domain characteristics of the WLAN channel.
[0090] In some embodiments, the determining module is further configured to: determine, based on frequency domain characteristics, that both the first device and the second device support WLAN channels on a first reference frequency band; and determine, based on at least one connection state, a WLAN channel on the first reference frequency band for communication.
[0091] In some embodiments, the first capability information and the second capability information also indicate the availability of WLAN channels on the currently connected first reference frequency band. The determining module is further configured to: determine, based on at least one connection state, that one or both of the first device and the second device have been connected to one or more WLAN channels on the first reference frequency band; and determine, based on availability, the WLAN channels on the first reference frequency band for communication.
[0092] In some embodiments, the determining module is further configured to: determine, based on availability, that at least one of one or more WLAN channels on a connected first reference frequency band is available; and determine, among the at least one available WLAN channel on the first reference frequency band, a WLAN channel for communication.
[0093] In some embodiments, the determining module is further configured to: determine, based on availability, that one or more WLAN channels on the connected first reference frequency band are unavailable; and determine that a reference WLAN channel on the first reference frequency band is used for communication.
[0094] In some embodiments, the determining module is further configured to: determine, based on at least one connection state, that neither the first device nor the second device is connected to a WLAN channel on a first reference frequency band; and determine that a reference WLAN channel on the first reference frequency band is used for communication.
[0095] In some embodiments, the determining module is further configured to: determine, based on frequency domain characteristics, that neither the first device nor the second device supports a WLAN channel on a first reference frequency band; and determine a WLAN channel on a second reference frequency band for communication.
[0096] In some embodiments, the determining module is further configured to: determine, based on at least one connection state, that at least one of the first device and the second device has been connected to at least one WLAN channel on the second reference frequency band; and determine one of the at least one WLAN channel on the connected second reference frequency band for communication.
[0097] In some embodiments, the determining module is further configured to: determine, based on at least one connection state, that neither the first device nor the second device is connected to a WLAN channel on a second reference frequency band; and determine that a reference WLAN channel on the second reference frequency band is used for communication.
[0098] The units included in device 500 can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more units can be implemented using software and / or firmware, such as machine-executable instructions stored on a storage medium. In addition to or as an alternative to machine-executable instructions, some or all of the units in device 500 can be implemented at least partially by one or more hardware logic components. By way of example, and not limitation, exemplary types of hardware logic components that can be used include field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-chips (SoCs), complex programmable logic devices (CPLDs), and so on.
[0099] Figure 6 A block diagram of an electronic device 600 in which one or more embodiments of the present disclosure may be implemented is shown. It should be understood that... Figure 6 The electronic device 600 shown is merely exemplary and should not be construed as limiting the functionality and scope of the embodiments described herein. Figure 6 The electronic device 600 shown can be used to achieve Figure 1 The first device 110 or Figure 5 The device 500.
[0100] like Figure 6 As shown, electronic device 600 is in the form of a general-purpose electronic device. Components of electronic device 600 may include, but are not limited to, one or more processors or processing units 610, memory 620, storage device 630, one or more communication units 640, one or more input devices 650, and one or more output devices 660. Processing unit 610 may be a physical or virtual processor and is capable of performing various processes according to programs stored in memory 620. In a multiprocessor system, multiple processing units execute computer-executable instructions in parallel to improve the parallel processing capability of electronic device 600.
[0101] Electronic device 600 typically includes multiple computer storage media. Such media can be any available media accessible to electronic device 600, including but not limited to volatile and non-volatile media, removable and non-removable media. Memory 620 can be volatile memory (e.g., registers, cache, random access memory (RAM)), non-volatile memory (e.g., read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. Storage device 630 can be removable or non-removable media and can include machine-readable media, such as flash drives, disks, or any other media capable of storing information and / or data and accessible within electronic device 600.
[0102] Electronic device 600 may further include additional removable / non-removable, volatile / non-volatile storage media. Although not explicitly stated... Figure 6 As shown, disk drives for reading from or writing to removable, non-volatile disks (e.g., "floppy disks") and optical disk drives for reading from or writing to removable, non-volatile optical disks can be provided. In these cases, each drive can be connected to a bus (not shown) via one or more data media interfaces. Memory 620 may include computer program product 625 having one or more program modules configured to perform various methods or actions of various embodiments of this disclosure.
[0103] The communication unit 640 enables communication with other electronic devices via a communication medium. Additionally, the functionality of the components of the electronic device 600 can be implemented using a single computing cluster or multiple computing machines capable of communicating via communication connections. Therefore, the electronic device 600 can operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or another network node.
[0104] Input device 650 can be one or more input devices, such as a mouse, keyboard, trackball, etc. Output device 660 can be one or more output devices, such as a monitor, speaker, printer, etc. Electronic device 600 can also communicate with one or more external devices (not shown) via communication unit 640 as needed. These external devices include storage devices, display devices, etc., and can communicate with one or more devices that enable user interaction with electronic device 600, or with any device that enables electronic device 600 to communicate with one or more other electronic devices (e.g., network card, modem, etc.). Such communication can be performed via input / output (I / O) interface (not shown).
[0105] According to an exemplary implementation of this disclosure, a computer-readable storage medium is provided that stores computer-executable instructions thereon, wherein the computer-executable instructions are executed by a processor to implement the methods described above. According to an exemplary implementation of this disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, which are executed by a processor to implement the methods described above.
[0106] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatuses, devices, and computer program products implemented according to this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0107] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processing unit of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0108] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions that execute on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0109] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0110] Various implementations of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed implementations. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The terminology used herein is chosen to best explain the principles, practical applications, or improvements to technology in the market, or to enable others skilled in the art to understand the various implementations disclosed herein.
Claims
1. A method for communication, comprising: Obtain first capability information of the first device, wherein the first capability information at least indicates the first wireless local area network (WLAN) channel connection status of the first device; Receive second capability information from the second device, wherein the second capability information at least indicates the second WLAN channel connection status of the second device; as well as The WLAN channel for communication between the first device and the second device is determined based on at least one of the first WLAN channel connection states and the second WLAN channel connection states.
2. The method according to claim 1, wherein The first capability information and the second capability information also indicate the frequency domain characteristics of the supported WLAN channels, the frequency domain characteristics including at least one of the frequency band and bandwidth of the supported WLAN channels, and Determining the WLAN channel used for the communication includes: The WLAN channel used for the communication is further determined based on the frequency domain characteristics of the WLAN channel.
3. The method of claim 2, wherein determining the WLAN channel for the communication comprises: Based on the frequency domain characteristics, it is determined that both the first device and the second device support WLAN channels on the first reference frequency band; as well as Based on the at least one connection state, a WLAN channel on the first reference frequency band is determined for use in the communication.
4. The method according to claim 3, wherein The first capability information and the second capability information also indicate the availability of WLAN channels on the currently connected first reference frequency band. Determining the WLAN channel on the first reference frequency band includes: Based on the at least one connection status, it is determined that one or both of the first device and the second device have been connected to one or more WLAN channels on the first reference frequency band; as well as Based on the availability, a WLAN channel on the first reference frequency band is determined for the communication.
5. The method of claim 4, wherein determining the WLAN channel on the first reference frequency band comprises: Based on the availability, at least one of the one or more WLAN channels on the connected first reference frequency band is determined to be available; as well as Identify a WLAN channel among the at least one WLAN channel available on the first reference frequency band for the communication.
6. The method of claim 4, wherein determining the WLAN channel on the first reference frequency band comprises: Based on the availability, it is determined that one or more WLAN channels on the connected first reference frequency band are unavailable; as well as A reference WLAN channel on the first reference frequency band is determined for the communication.
7. The method of claim 3, wherein determining the WLAN channel on the first reference frequency band comprises: Based on the at least one connection status, it is determined that neither the first device nor the second device is connected to the WLAN channel on the first reference frequency band; as well as A reference WLAN channel on the first reference frequency band is determined for the communication.
8. The method of claim 2, wherein determining the at least one WLAN channel for the communication comprises: Based on the frequency domain characteristics, it is determined that neither the first device nor the second device supports the WLAN channel on the first reference frequency band; as well as A WLAN channel on a second reference frequency band is determined for the purpose of the communication.
9. The method of claim 8, wherein determining the WLAN channel on the second reference frequency band comprises: Based on the at least one connection status, it is determined that at least one of the first device and the second device has been connected to at least one WLAN channel on the second reference frequency band; as well as Identify one of the at least one WLAN channel on the connected second reference frequency band for use in the communication.
10. The method of claim 8, wherein determining the WLAN channel on the second reference frequency band comprises: Based on the at least one connection state, it is determined that neither the first device nor the second device is connected to the WLAN channel on the second reference frequency band; as well as A reference WLAN channel on the second reference frequency band is determined for the communication.
11. An apparatus for communication, comprising: The acquisition module is configured to acquire first capability information of the first device, wherein the first capability information at least indicates the first wireless local area network (WLAN) channel connection status of the first device. The receiving module is configured to receive second capability information of the second device, wherein the second capability information at least indicates the second WLAN channel connection status of the second device. as well as The determination module is configured to determine a WLAN channel for communication between the first device and the second device based on at least one of the first WLAN channel connection states and the second WLAN channel connection states.
12. An electronic device, comprising: At least one processing unit; as well as At least one memory, coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the electronic device to perform the method according to any one of claims 1 to 10 when executed by the at least one processing unit.
13. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method according to any one of claims 1 to 10.
14. A computer program product comprising computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, implement the method according to any one of claims 1 to 10.
