Data transmission method and electronic device
Patent Information
- Application Number
- PCT/CN2023/130556
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-14
- Filing Date
- 2023-11-08
- Publication Date
- 2024-10-17
Smart Images

Figure CN2023130556_17102024_PF_FP_ABST
Abstract
Description
Data transmission method and electronic device
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on April 14, 2023, with application number 202310398668.5 and invention name “Data transmission method and electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of communications, and in particular to a data transmission method and electronic equipment. Background Art
[0003] With the development of technology, electronic devices (such as laptops) generally have wireless fidelity (WIFI) chips, enabling WIFI communication. When performing operations such as file migration between laptops, data can be transferred over the WIFI connection between them. Therefore, how to achieve fast data transfer using WIFI connections has become an urgent problem that needs to be solved.
[0004] Summary of the Invention
[0005] The embodiments of the present application provide a data transmission method and an electronic device for realizing fast data transmission and improving the data transmission rate.
[0006] In a first aspect, a data transmission method is provided. In this method, in response to a first operation, a first device establishes a first WIFI connection with a second device having a second role in a first operating frequency band, and the first device establishes a second WIFI connection with a second device having a fourth role in a third role in a second operating frequency band, wherein the first role is one of a site, a traditional access point, and a group owner, the second role is in a relative relationship with the first role, the third role is in a relative relationship with the fourth role, and one of the first role and the third role is a site, and one of the second role and the fourth role is a site. Then, the first device uses the first antenna and the second antenna in the first device to perform data transmission with the second device via the first WIFI connection, and at the same time, the first device also uses the third antenna and the fourth antenna in the first device to perform data transmission with the second device via the second WIFI connection, wherein the first antenna is different from the second antenna, and the third antenna is different from the fourth antenna.
[0007] In this application, data is transmitted through dual WIFI connections, which can achieve fast data transmission, reduce data transmission time, improve the transmission rate of the wireless network, and thus enhance the user experience. In addition, because the first device establishes two WIFI connections with the second device in the first role and the third role respectively, and one of the first role and the third role is a site, this overcomes the port restrictions of the Windows system and avoids the single WIFI connection transmission from not fully utilizing the four-stream dual-band concurrent high-speed transmission performance of the WIFI chip. In addition, when the first device uses each WIFI connection to transmit data, it uses two antennas for transmission, which can greatly improve the data transmission rate compared to using a single antenna for transmission.
[0008] In a possible implementation manner of the first aspect, the first operation is used to trigger the first device to perform a data transmission operation among a device replacement cloning operation, a data migration operation, and a file sharing operation.
[0009] In this application, data transmission between devices is realized for the application scenarios of device cloning service, data migration service and file sharing service, which can improve the transmission rate of wireless network and enhance the user experience.
[0010] In a possible implementation of the first aspect, before the first device establishes a first Wi-Fi connection in the first operating frequency band with the second device in the second role, the method further includes: the first device obtaining a second concurrent frequency band list of the second device. The first device then determines the same concurrent frequency band from the first concurrent frequency band list and the second concurrent frequency band list of the first device to obtain a target concurrent frequency band.
[0011] In this application, since the target concurrent frequency band is determined based on the first concurrent frequency band list and the second concurrent frequency band list, that is, the target concurrent frequency band is a concurrent frequency band supported by both the first device and the second device, therefore, the dual WIFI connection established on the target concurrent frequency band can realize the establishment of a dual WIFI connection between the first device and the second device, laying the foundation for subsequent data transmission between devices.
[0012] In a possible implementation of the first aspect, the method further includes: the first device establishes a first communication connection with the second device. Then, the first device can receive the second concurrent frequency band list sent by the second device through the first communication connection. The first communication connection includes a Bluetooth connection or a wired connection. Based on this technical solution, the first device can successfully obtain the second concurrent frequency band list of the second device. In a possible implementation of the first aspect, the process for the first device to obtain the target concurrent frequency band may include: the first device determines whether there is the same concurrent frequency band in the first concurrent frequency band list and the second concurrent frequency band list. When the same concurrent frequency band exists in the first concurrent frequency band list and the second concurrent frequency band list, and the number of the same concurrent frequency band is 1, the first device determines that the same concurrent frequency band is the target concurrent frequency band.
[0013] In this application, if the same concurrent frequency band exists in the first concurrent frequency band list and the second concurrent frequency band list, it means that the first device and the second device can perform dual WIFI connection. Therefore, it is necessary to determine the target concurrent frequency band from the same concurrent frequency band. If the number of the same concurrent frequency bands is 1, the same concurrent frequency band can be directly determined as the target concurrent frequency band. In this way, the target concurrent frequency band can be accurately determined, which provides a basis for the subsequent establishment of dual WIFI connections.
[0014] In a possible implementation of the first aspect, the method further includes: when the same concurrent frequency band does not exist in the first concurrent frequency band list and the second concurrent frequency band list, the first device determines that the first device and the second device cannot establish a dual WIFI connection. Then, the first device determines the target operating frequency band from the first concurrent frequency band list and the second concurrent frequency band list. Thereafter, the first device determines the target operating channel corresponding to the target operating frequency band from the connection channel of the first device, the working channel list of the first device, the connection channel of the second device, and the working channel list of the second device. Finally, the first device establishes a single WIFI connection with the second device on the target working channel.
[0015] In this application, if the same concurrent frequency band does not exist in the first concurrent frequency band list and the second concurrent frequency band list, it means that the first device and the second device cannot perform dual WIFI connection, that is, the first device can only perform single WIFI connection with the second device. Therefore, the first device needs to determine the target working channel that matches the target working frequency band, so that the first device can establish a WIFI connection with the second device on the target working channel. In this way, the occurrence of WIFI connection failure due to different working channels can be reduced, which provides convenience for subsequent data transmission between devices.
[0016] In a possible implementation of the first aspect, the process of the first device determining the target working channel may specifically include: when the connection channel of the first device is the same as the connection channel of the second device, and the working channel list of the first device and the working channel list of the second device both include the connection channel of the first device / second device, the target working channel is the connection channel of the first device / second device.
[0017] In this application, if the connection channel of the first device is the same as the connection channel of the second device, and both the working channel list of the first device and the working channel list of the second device include the connection channel, the connection channel can be directly determined as the target working channel, thereby providing a basis for subsequent establishment of a WIFI connection.
[0018] In a possible implementation of the first aspect, the process of the first device determining a target working channel may further include: when the connection channel of the first device is different from the connection channel of the second device, and the working channel list of the first device and the working channel list of the second device both include the connection channel of the first device and the connection channel of the second device, the first device determining a first switching time corresponding to switching the connection channel of the first device to the connection channel of the second device, and the second device determining a second switching time corresponding to switching the connection channel of the second device to the connection channel of the first device. Thereafter, if the first switching time is less than the second switching time, the target working channel is the connection channel of the second device; or, if the first switching time is greater than the second switching time, the target working channel is the connection channel of the first device.
[0019] In the present application, if the connection channel of the first device is different from the connection channel of the second device, and the working channel list of the first device and the working channel list of the second device both contain the connection channel of the first device and the connection channel of the second device, then it is necessary to determine the target working channel based on the channel switching time. In this way, the occurrence of slow data transmission due to long channel switching time can be reduced, which provides a basis for subsequent data transmission.
[0020] In a possible implementation of the first aspect, the process of the first device determining the target working channel may also include: when the connection channel of the first device or the connection channel of the second device belongs to the working channel list of the first device and the working channel list of the second device, the target working channel is the connection channel belonging to the working channel list of the first device and the working channel list of the second device.
[0021] In the present application, if only one of the connection channels of the first device and the connection channels of the second device belongs to the working channel list of the first device and the working channel list of the second device, the first device will use the connection channel belonging to the above two working channel lists as the target working channel, thereby providing a basis for subsequent establishment of a WIFI connection.
[0022] In a possible implementation of the first aspect, the method also includes: when the number of identical concurrent frequency bands is greater than 1, the first device determines a target concurrent frequency band from the identical concurrent frequency bands according to a target strategy, wherein the target strategy is pre-set according to a standard transmission rate corresponding to the concurrent frequency band.
[0023] In this application, since the target concurrent frequency band is determined based on the target strategy, and the target strategy is determined according to the standard transmission rate corresponding to the concurrent frequency band, the target concurrent frequency band determined by the standard transmission rate can improve the accuracy of the target concurrent frequency band determination, and provide a basis for the subsequent establishment of dual WIFI connections.
[0024] In a possible implementation of the first aspect, the process of the first device determining a target concurrent frequency band from the same concurrent frequency bands according to the target policy may specifically include: the first device obtaining a standard transmission rate corresponding to each concurrent frequency band in the same concurrent frequency bands. Thereafter, the first device selects the concurrent frequency band with the highest standard transmission rate as the target concurrent frequency band.
[0025] In this application, the target concurrent frequency band is the concurrent frequency band with the highest standard transmission rate, so that fast data transmission can be achieved and the transmission rate of the wireless network can be improved.
[0026] In a possible implementation of the first aspect, the process of establishing a first WIFI connection between the first device and the second device may specifically include: the first device creates a first role as a traditional access point. Then, the first device sends first target information to the second device, wherein the first target information includes a first basic service set identifier, a first service set identifier, and a first target password, the first basic service set identifier refers to the MAC address of the first device, the first service set identifier refers to the device name of the first device, and the first target password refers to the network password pre-set by the first device. Finally, when the second device receives the first target information, it establishes a WIFI connection with the first device to establish the first WIFI connection.
[0027] In this application, during the first WIFI connection process, the first device is equivalent to a router, and the second device is connected to the router through the first target information in the role of a site. In this way, the establishment of the first WIFI connection can be achieved, providing a basis for subsequent dual WIFI connections.
[0028] In a possible implementation of the first aspect, the first target information further includes information about a first operating channel. The first operating channel represents a highest-quality channel among operating channels corresponding to a first operating frequency band supported by the first device. The process of establishing a Wi-Fi connection between the second device and the first device may specifically include: the second device establishing a Wi-Fi connection with the first device over the first operating channel.
[0029] In the present application, during the first WIFI connection process, the second device establishes a WIFI connection with the first device on the first working channel. This can reduce the occurrence of WIFI connection failures due to different working channels and facilitate subsequent data transmission between devices.
[0030] The quality of the working channel can be represented by the number of hotspots and / or the degree of signal interference in the working channel. The fewer the number of hotspots in the working channel and the lower the degree of signal interference, the higher the quality of the working channel.
[0031] In this application, the first device selects the working channel with the least number of hotspots as the first working channel. This can reduce the impact of a large number of hotspots on data transmission, providing a basis for subsequent data transmission. Alternatively, the first device selects the working channel with the least signal interference as the first working channel. This can reduce the impact of a large signal interference on data transmission, providing a basis for subsequent data transmission.
[0032] In a possible implementation of the first aspect, the second device and the first device can establish a Wi-Fi connection based on a point-to-point connection mode, wherein the point-to-point connection mode includes one or more of a point-to-point discovery process, a point-to-point Go negotiation process, and two Wi-Fi connection processes.
[0033] In this application, a WIFI connection is established through a point-to-point connection method, which can realize the establishment of a WIFI connection and thus realize data transmission.
[0034] In a possible implementation of the first aspect, the second device and the first device may perform a Wi-Fi connection based on a wireless access point connection mode, where the wireless access point connection mode includes a scanning phase, an authentication phase, an association phase, and a four-way handshake phase.
[0035] In this application, WIFI connection is performed through a wireless access point connection method, which can reduce the number of frame interactions, not only reducing the failure rate of WIFI connection, but also saving WIFI connection time, thereby realizing rapid data transmission and improving the transmission rate of the wireless network.
[0036] For example, when one of the first and second roles is a STA and the other is a Legacy AP, the first device can establish a Wi-Fi connection with the second device using a point-to-point connection method or a wireless access point connection method. The point-to-point connection method here may include a point-to-point discovery process, a point-to-point Go negotiation process, and two Wi-Fi connection processes.
[0037] When one of the first and second roles is Go and the other is STA, the first device can establish a Wi-Fi connection with the second device using a point-to-point connection. Since the Go role is already determined, there is no need to negotiate which of the first and second devices is the Go role. Therefore, the point-to-point connection mode may not include a point-to-point Go negotiation process and may include two Wi-Fi connection processes.
[0038] In a possible implementation of the first aspect, the method further includes: upon completion of the first Wi-Fi connection establishment, the second device generating a prompt message. Then, the second device sends the prompt message to the first device. Upon receiving the prompt message, the first device establishes a second Wi-Fi connection with the second device.
[0039] In this application, after the first WIFI connection is established, the second device sends the generated prompt information to the first device to notify the first device that "the first WIFI connection has been established and the second WIFI connection needs to be established". In this way, the first device can understand the WIFI connection status in a timely manner, save connection time, and improve the efficiency of establishing dual WIFI connections.
[0040] In a possible implementation of the first aspect, the process of establishing a second WIFI connection between the first device and the second device may specifically include: the second device creates a fourth role as a traditional access point. Then, the second device sends second target information to the first device, wherein the second target information includes a second basic service set identifier, a second service set identifier, and a second target password, the second basic service set identifier refers to the MAC address of the second device, the second service set identifier refers to the device name of the second device, and the second target password refers to the network password pre-set by the second device. Finally, when the first device receives the second target information, it establishes a WIFI connection with the second device to establish the second WIFI connection.
[0041] In this application, during the second WIFI connection process, the second device is equivalent to a router, and the first device performs a WIFI connection with the router through the second target information in the role of a site. In this way, the second WIFI connection can be established, providing a basis for realizing dual WIFI connections.
[0042] In a possible implementation of the first aspect, the second target information further includes information about a second operating channel. The second operating channel represents a highest-quality channel among the operating channels corresponding to the second operating frequency band supported by the second device. The process of establishing a Wi-Fi connection between the first device and the second device may specifically include: the first device establishing a Wi-Fi connection with the second device over the second operating channel.
[0043] In the present application, during the second WIFI connection process, the first device establishes a WIFI connection with the second device on the second working channel. This can reduce the occurrence of WIFI connection failures due to different working channels and facilitate subsequent data transmission between devices.
[0044] In a possible implementation of the first aspect, the third antenna is the same as the first antenna, and the fourth antenna is the same as the second antenna. Based on this technical solution, multiplexing between antennas can be achieved, thereby realizing dual WIFI connection data transmission and reducing the number of antennas occupied.
[0045] In a second aspect, the present application provides an electronic device, comprising a display screen, a memory, a Bluetooth module, a WIFI module (or a WIFI chip), multiple antennas, and one or more processors; the display screen, the memory, the Bluetooth module, the WIFI module, the multiple antennas, and the processor are coupled; the Bluetooth module is used for Bluetooth communication, the WIFI module is used for WIFI communication, the display screen is used to display an image generated by the processor, the multiple antennas are used to transmit and / or receive data signals, and the memory is used to store computer program code, the computer program code including computer instructions; when the processor executes the computer instructions, the electronic device performs the method described above.
[0046] In a third aspect, the present application provides a computer-readable storage medium comprising computer instructions, which, when executed on an electronic device, enables the electronic device to execute the method described above.
[0047] In a fourth aspect, the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute the method described above.
[0048] In a fifth aspect, a chip is provided, comprising: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method as described above.
[0049] It can be understood that the beneficial effects that can be achieved by the electronic device described in the second aspect, the computer-readable storage medium described in the third aspect, the computer program product described in the fourth aspect, and the chip described in the fifth aspect provided above can refer to the beneficial effects in the first aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] FIG1 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0051] FIG2 is a schematic diagram of the structure of a data transmission system provided in an embodiment of the present application;
[0052] FIG3 is a timing diagram of a WIFI connection based on a wireless access point connection mode provided in an embodiment of the present application;
[0053] FIG4 is a schematic diagram of an interface displaying multiple available WLAN networks provided by an embodiment of the present application;
[0054] FIG5 is a schematic diagram of an interface for displaying a password input provided in an embodiment of the present application;
[0055] FIG6 is a timing diagram of a Wi-Fi connection based on a point-to-point connection mode provided in an embodiment of the present application;
[0056] FIG7 is a timing diagram of another WIFI connection based on a point-to-point connection mode provided in an embodiment of the present application;
[0057] FIG8 is a schematic diagram of establishing a WIFI connection between two laptop computers according to an embodiment of the present application;
[0058] FIG9 is a schematic diagram of establishing a dual WIFI connection between two laptop computers according to an embodiment of the present application;
[0059] FIG10 is a timing diagram of a data transmission method provided in an embodiment of the present application;
[0060] FIG11 is a schematic diagram of an interface showing a data migration business scenario provided by an embodiment of the present application;
[0061] FIG12 is a schematic diagram of an interface displaying multiple available computers provided by an embodiment of the present application;
[0062] FIG13 is a timing diagram of establishing a first WIFI connection between a first computer and a second computer according to an embodiment of the present application;
[0063] FIG14 is a timing diagram of establishing a dual WIFI connection between a first computer and a second computer provided by an embodiment of the present application. DETAILED DESCRIPTION
[0064] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
[0065] The technical solution in this application will be described below with reference to the accompanying drawings.
[0066] FIG1 is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application. As shown in FIG1 , the electronic device 100 may include a processor 110, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, sensor module 180, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, button 190, motor 191, indicator 192, cameras 1-N 193, display 194, and subscriber identification module (SIM) card interfaces 1-N 195. Among them, the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc. In this embodiment, the electronic device may be a tablet computer, a desktop computer, a laptop computer, etc., and the embodiment of the present application does not impose any restrictions on the specific type of the electronic device.
[0067] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0068] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor, a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0069] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0070] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0071] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, etc.
[0072] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0073] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0074] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0075] In the application embodiment, the mobile communication module may also be referred to as a cellular module, and the two may be described interchangeably.
[0076] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker, a receiver, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0077] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (WIFI) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. In some embodiments, at least some functional modules of the wireless communication module 160 can be set in the processor 110.
[0078] The wireless communication module 160 may include a Bluetooth module and a WIFI module. The Bluetooth module is used to transmit data, that is, the electronic device 100 can transmit data via Bluetooth. The WIFI module is used to transmit data, that is, the electronic device 100 can transmit data via WIFI.
[0079] Exemplarily, the operating modes corresponding to the above-mentioned WIFI module may include single-band single concurrent (SBSC), dual-band single concurrent (DBSC), and dual-band dual concurrent (DBDC). It is understood that single-band single concurrent means that the electronic device (or the WIFI module described in the electronic device) supports only one operating frequency band and can only use this operating frequency band for WIFI connection. In other words, only this operating frequency band can be used for WIFI communication. Among them, the operating frequency band corresponding to the single-band single concurrent mode may be 2.4GHz operating frequency band, 5GHz operating frequency band, 6GHz operating frequency band, etc. Dual-band single concurrent means that the electronic device supports two operating frequency bands, but can only use one of the operating frequency bands for WIFI connection. Dual-band dual concurrent means that the electronic device supports two operating frequency bands and can use both operating frequency bands for WIFI connection simultaneously. In other words, both operating frequency bands can be used simultaneously for WIFI communication. Among them, the operating frequency band of the WIFI module may be 2.4GHz, 5GHz, 6GHz, etc.
[0080] In some embodiments, when the electronic device transmits data based on a single-frequency single-transmit mode, it can perform data transmission in the following two ways. In one example, the electronic device can use a single input single output (SISO) method to perform data transmission. Exemplarily, a WIFI connection is established on the working frequency band supported by the electronic device. For the WIFI connection, when the electronic device transmits data based on the WIFI connection, it uses one antenna for data transmission, that is, the WIFI connection uses one antenna for transmission. This method of using one antenna for WIFI connection to achieve data transmission can be called SISO mode. For example, the WIFI module in the electronic device establishes a WIFI connection under the 2.4GHz working frequency band, and the WIFI connection uses one antenna for data transmission, that is, the electronic device uses one antenna for data transmission under the 2.4GHz working frequency band.
[0081] In another example, the electronic device can use a multiple input multiple output (MIMO) mode for data transmission. Exemplarily, a WIFI connection is established on the working frequency band supported by the electronic device. For the WIFI connection, when the electronic device transmits data based on the WIFI connection, it uses two antennas for data transmission, that is, the WIFI connection uses two antennas for transmission. This method of using two antennas for WIFI connection to achieve data transmission can be called MIMO mode. For example, the WIFI module in the electronic device establishes a WIFI connection in the 2.4GHz working frequency band, and the WIFI connection uses two antennas for data transmission, that is, the electronic device uses two antennas for data transmission in the 2.4GHz working frequency band.
[0082] It should be noted that an operating frequency band corresponds to multiple operating bandwidths, that is, the operating bandwidth refers to the frequency width of the signal that can be transmitted within the operating frequency band. Specifically, when the electronic device performs data transmission based on the WIFI connection, it will select the target operating bandwidth from the corresponding multiple operating bandwidths according to the actual situation and the current operating frequency band. Afterwards, the electronic device performs data transmission with the target operating bandwidth under the operating frequency band. In other words, the operating bandwidth is the transmission frequency width when the electronic device implements the WIFI transmission data (such as files). The operating bandwidth corresponding to the operating frequency band can be 40Mhz, 80Mhz or other values, and this application is not limited to it.
[0083] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0084] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0085] The charging management module 140 is configured to receive charging input from a charger. While charging the battery 142 , the charging management module 140 can also provide power to the electronic device 100 through the power management module 141 .
[0086] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0087] The display screen 194 is used to display images, videos, etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
[0088] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0089] The ISP is used to process data fed back by the camera 193. The camera 193 is used to capture still images or videos. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0090] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0091] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, speakers, receivers, microphones, headphone jacks, and application processors.
[0092] Among them, the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The speaker, also known as "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker. The receiver, also known as "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or voice message, the voice can be heard by placing the receiver close to the human ear. The microphone, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. The headphone jack is used to connect wired headphones. The headphone jack can be a USB interface 130, or it can be a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0093] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
[0094] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0095] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.
[0096] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or touch vibration feedback. Indicator 192 can be an indicator light that can be used to indicate charging status, power level changes, messages, missed calls, notifications, etc.
[0097] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and disconnected from the electronic device 100 by inserting or removing the SIM card into or from the SIM card interface 195. The electronic device 100 may support one or N SIM card interfaces, where N is a positive integer greater than one.
[0098] In some embodiments, when two electronic devices 100 are performing services such as machine cloning, data migration, or file sharing, a dual-band single-transmission mode can be used to establish a WIFI connection between the electronic devices to achieve data transmission. That is, an electronic device (such as a first device) can select one of the two supported working frequency bands and establish a WIFI connection with another electronic device (such as a second device). Afterwards, the two electronic devices can transmit data based on the WIFI connection. However, using a single WIFI connection to transmit data between electronic devices will reduce the data transmission efficiency.
[0099] Therefore, in order to improve data transmission efficiency, a dual WIFI connection can be established between the first device and the second device to utilize the dual WIFI connection to concurrently transmit data and improve data transmission efficiency. Exemplarily, when a first operation for triggering data transmission between the first device and the second device is received, in response to the first operation, the first device can establish a first WIFI connection with the second device having a second role in a first working frequency band in a first role, and the first device can establish a second WIFI connection with the second device having a fourth role in a third role in a second working frequency band, wherein the first role is one of a site, a traditional access point, and a group owner, the second role is in a relative relationship with the first role, and the third role is in a relative relationship with the fourth role, and the relative relationship indicates that when the role of one of the two devices is Legacy AP or Go, the role of the other device is STA, and the first role is different from the third role, one of the first role and the third role is a site, the second role is different from the fourth role, and one of the second role and the fourth role is a site, thereby achieving the successful establishment of the dual WIFI connection. Afterwards, the first device can transmit data to the second device via the first Wi-Fi connection using two antennas, and can also transmit data to the second device via the second Wi-Fi connection using two antennas. In this way, data transmission between electronic devices via dual Wi-Fi connections can achieve concurrent data transmission and improve data transmission efficiency. Furthermore, each Wi-Fi connection transmits data based on two antennas, which can effectively improve data transmission efficiency, reduce data transmission time, and increase the transmission rate of the wireless network compared to using a single antenna to transmit data, thereby improving the user experience.
[0100] For example, the electronic device 100 may be a device capable of WIFI communication, such as a laptop computer, a mobile phone, a tablet computer, or a wearable device.
[0101] The above briefly summarizes the solutions of the embodiments of the present application. The following will introduce the technologies involved in the solutions of the embodiments of the present application.
[0102] 1.WIFI connection method
[0103] In some embodiments, the electronic device 100 can establish a Wi-Fi connection with other devices through a wireless access point (AP), i.e., perform Wi-Fi communication. The role of the electronic device 100 can represent a station (STA). The following describes the process of Wi-Fi communication between the electronic device 100 and other devices in conjunction with the data transmission system shown in FIG2 .
[0104] As shown in Figure 2, the data transmission system may include multiple sites 300 and a wireless access point 200. The site 300 can establish a WIFI connection with the wireless access point 200. After the WIFI connection is completed, the site 300 can transmit data via the WIFI connection to implement services such as machine cloning, data migration, and file sharing between sites (i.e., between devices). Among them, the site is a terminal that can connect to a wireless network, and the above-mentioned electronic device 100 can be any site among the multiple sites 300. Sites within the coverage area of the AP signal can communicate with each other through the AP, and the AP is equivalent to a wireless router (or router).
[0105] In one possible implementation, the WIFI connection process (or wireless access point connection method) may include four phases: scanning, authentication, association, and a four-way handshake. It is understood that the WIFI connection process may refer to the process of connecting a station to a wireless access point. For example, as shown in FIG3 , the scanning phase may include the station sending a probe request frame to the wireless access point, and upon receiving the probe request frame sent by the station, the wireless access point sending a probe response frame to the station. The authentication phase may include the station sending an authentication request frame to the wireless access point via an open system upon receiving the probe response frame. The wireless access point sending an authentication response frame to the station upon receiving the authorization request frame. The association phase may include the station sending an association request frame to the wireless access point upon receiving the authorization response frame. The wireless access point sending an association response frame to the station upon receiving the association request frame.
[0106] The four-way handshake phase may include that after the wireless access point sends an association response frame to the station, it may also send a key information frame (eapol key) carrying a random number (AP number once, ANonce) generated by the wireless access point to the station to complete the first handshake (M1). Thereafter, the station may send a key information frame carrying a random number (station number once, SNonce) generated by the station and a message integrity code (MIC) to the wireless access point to complete the second handshake (M2). Thereafter, the wireless access point may send a key information frame (eapol key) carrying an encrypted group transient key (GTK) and a message integrity code to the station to complete the third handshake (M3). Thereafter, the station may send a key information frame carrying a message integrity code to the wireless access point to complete the fourth handshake (M4).
[0107] The message integrity check code is a hash value calculated for a set of protected data to prevent data tampering. The group temporal key is used to encrypt multicast / broadcast data packets between the wireless access point and stations. It is understood that all stations connected to the wireless access point can share a single group temporal key. The encrypted group temporal key refers to the encrypted group temporal key.
[0108] In one example, the above-mentioned site (or the above-mentioned electronic device 100) is a laptop computer, and the wireless access point is a router. The laptop computer can be connected to any working router. As shown in Figure 4, in response to the user's trigger operation on the "WLAN" icon A, the laptop computer 400 can display the identification information of the available WLAN networks, that is, the identification information of all available routers. Afterwards, in response to the user's selection operation on the identification information of any available WLAN network (such as the WLAN network identified as "zhongzhi"), the laptop computer 400 can use the available WLAN network selected by the user as the target WLAN network, and display the password input interface shown in Figure 5. Exemplarily, the identification information of the above-mentioned WLAN network or the identification information of the router can be the MAC address of the router, the name of the router, etc.
[0109] It can be understood that the scanning phase in the above-mentioned WIFI connection process is equivalent to the process of displaying multiple available WLAN networks on the laptop computer 400 after the user clicks the "WLAN" icon A, and determining the target WLAN network. The identification information of the available WLAN networks displayed by the above-mentioned laptop computer 400 is equivalent to the result generated by the above-mentioned station based on the received probe response frames sent by each wireless access point. In other words, during the scanning phase, the station can obtain basic information of the target wireless access point. Here, the target wireless access point can be a target router, that is, the router corresponding to the above-mentioned target WLAN network. Among them, this basic information includes the media access control (MAC) address of the router, the router name, etc.
[0110] Afterwards, the user can enter the password on the password input interface shown in Figure 5. After the password input is completed, the user can click the connection control on the password input interface.
[0111] Afterwards, in response to the user clicking on the connection control, the laptop 400 determines whether the laptop can establish a WIFI connection with the target router (i.e., the router corresponding to the target WLAN network) based on the password entered by the user. It can be understood that the authentication phase in the above-mentioned WIFI connection process is equivalent to the process by which the laptop determines whether it can establish a WIFI connection with the router. Exemplarily, whether the laptop can connect to the router is equivalent to the response result corresponding to the authorization response frame sent by the wireless access point received by the station, that is, the laptop determines that the laptop can connect to the above-mentioned router, which is equivalent to the wireless router receiving the authorization response frame.
[0112] For example, after determining that the laptop and router can connect, the laptop associates with the router, performing the association phase of the Wi-Fi connection process described above. After successfully associating with the router, the laptop negotiates with the router for encryption during this Wi-Fi connection. The laptop and router then perform the four-way handshake phase of the Wi-Fi connection process described above. After the four-way handshake phase, the Wi-Fi connection between the laptop and the router is successful, meaning Wi-Fi communication between the laptop and the router is possible.
[0113] After the electronic device 100 successfully establishes a Wi-Fi connection with the wireless access point, it can communicate with other devices that have established Wi-Fi connections with the wireless access point through the wireless access point. For example, a laptop computer can communicate with other devices through the wireless access point through Wi-Fi, such as transferring files between laptop computers, to achieve functions such as file sharing, device cloning, and file migration.
[0114] The above describes the process of the electronic device 100 communicating with other devices through a wireless access point through WIFI. The electronic device 100 can also communicate with other devices through WIFI peer-to-peer (WIFI P2P) connection. Among them, WIFI peer-to-peer connection is also called WIFI direct connection (WIFI Direct). The WIFI P2P connection method can support two or more devices to form a P2P network (also called a P2P group) and communicate with each other without a wireless access point. The P2P network includes a group owner (group owner, Go) and at least one group client (group client, Gc). It can be understood that the group owner is equivalent to the above-mentioned wireless access point (or described as a router), and the group client is equivalent to the above-mentioned site.
[0115] The following will describe a process in which the electronic device 100 establishes a WIFI connection with other devices through a WIFI point-to-point connection, thereby enabling WIFI communication between the electronic devices.
[0116] Exemplarily, the process of establishing a WIFI connection through a WIFI point-to-point connection mode may include P2P discovery, P2P Go negotiation, and two WIFI connection processes. Specifically, as shown in FIG6 , the P2P discovery process includes electronic device B sending a probe request frame to electronic device A. Upon receiving the probe request frame sent by electronic device B, electronic device A sends a probe response frame to electronic device B. Subsequently, upon receiving the probe response frame, electronic device B sends a provision discovery request frame to electronic device A. Upon receiving the provision discovery request frame, electronic device A sends a provision discovery response frame to electronic device B. The P2P Go negotiation process may include electronic device B sending a group negotiation request frame to electronic device A upon receiving the provision discovery response frame. Upon receiving the group negotiation request frame, electronic device A sends a group negotiation response frame to electronic device B. Electronic device A may also send a group negotiation confirm frame to electronic device B. Afterwards, when electronic devices A and B complete the negotiation and confirmation, they establish two Wi-Fi connections: the first Wi-Fi connection and the second Wi-Fi connection. Here, both electronic devices A and B can function as P2P devices, with one device acting as the Go and the other as the Gc. For example, electronic device A is the Go and electronic device B is the Gc.
[0117] In one example, electronic device A is laptop A, and electronic device B is laptop B. Laptop A and laptop B are connected via Wi-Fi. After the Wi-Fi connection is established, laptops A and B can transfer files to each other to implement functions such as file sharing, device cloning, and file migration.
[0118] In another example, let's say electronic device A is a laptop and electronic device B is a TV. The laptop can connect to the TV via Wi-Fi direct connection in response to a user's selection. Once the connection is successful, the content displayed on the laptop can be projected onto the TV to achieve the screen projection function. It should be noted that the connection process between the laptop and the TV is equivalent to the Wi-Fi P2P connection process described above.
[0119] It is understood that the P2P discovery process during a Wi-Fi P2P connection can include an inquiry phase and a configuration discovery phase. The P2P Go negotiation process includes a group negotiation phase. The inquiry phase corresponds to the process of displaying multiple available devices on the laptop after the user clicks the "WLAN Direct" icon, and then determining the target device. The group negotiation phase corresponds to the process of determining the corresponding roles of the two P2P devices, that is, determining whether the P2P device is a group owner or a group client.
[0120] For example, as shown in FIG7 , the process of establishing a Wi-Fi connection between two electronic devices using a Wi-Fi P2P approach may include: first, a wireless access point (or group owner, equivalent to an electronic device providing Wi-Fi hotspot functionality) may send a beacon frame carrying a Wi-Fi simple configuration (WSC) information element (IE) to an electronic device (or group client, such as a computer). It will be understood that the group owner is actually an electronic device, but its role corresponds to the function of a wireless access point. Subsequently, upon receiving the beacon frame, the electronic device may send a probe request frame carrying the WSC IE to the wireless access point. Subsequently, upon receiving the probe request frame, the wireless access point may send a probe response frame carrying the WSC IE to the electronic device. The beacon frame carries an indication of support for automatic triggering of wireless LAN connection establishment. The process described here represents the P2P discovery process within the entire Wi-Fi P2P connection process. During this P2P discovery process, the electronic device may search for nearby wireless access points using beacon frames or probe request frames. For wireless access points with WSC enabled, these frames must carry the WSC IE. Frames without the WSC IE indicate that the wireless access point does not support or has WSC enabled. Furthermore, the P2P discovery process described above is equivalent to the mutual discovery process between an electronic device acting as a group owner and an electronic device acting as a group client. The WSC IE includes the site identifier.
[0121] Afterwards, the user can enter the target router's password on the electronic device's settings interface to complete the configuration of the security information. The target router's password can be a personal identification number (PIN), which is a passcode consisting of a string of digits. It will be understood that after completing the configuration of the security information, when the electronic device establishes a second Wi-Fi connection with the target router, it can compare the received PIN with the preset target router's PIN to determine whether the electronic device and the target router can establish a second Wi-Fi connection.
[0122] The PIN code of the target router can be determined in the following two ways.
[0123] In one example, the user can view the PIN code on the target router, or can enter the Internet Protocol (IP) address of the target router on a web page of a browser and determine the PIN code of the target router based on a page generated after entering the IP address.
[0124] In another example, the user can modify the initial PIN code of the target router according to their needs to obtain a target PIN code. After that, the user can directly enter the target PIN code on the electronic device to complete the password input.
[0125] In addition, the electronic device may send an authorization request frame to the wireless access point, and upon receiving the authorization request frame, the wireless access point may send an authorization response frame to the electronic device. Thereafter, upon receiving the authorization response frame, the electronic device may send an association request frame carrying a WSC IE to the wireless access point. Upon receiving the association request frame, the wireless access point may send an association response frame carrying a WSC IE to the electronic device. Exemplarily, the process of the electronic device sending a PIN code to the target router and comparing the received PIN code with a preset PIN code is equivalent to the above-mentioned process of "the electronic device sending an authorization request frame to the wireless access point, and the wireless access point sending an authorization response frame to the electronic device upon receiving the authorization request frame."
[0126] Afterwards, when the target router determines that the received PIN code is consistent with the preset PIN code, the process of associating the target router with the electronic device is equivalent to the process of "the electronic device, upon receiving the authorization response frame, sends an association request frame carrying the WSC IE to the wireless access point. Upon receiving the association request frame, the wireless access point sends an association response frame carrying the WSC IE to the electronic device."
[0127] Afterwards, the electronic device can send an EAPOL-Start frame to the wireless access point. Upon receiving the EAPOL-Start frame, the wireless access point can send an Extensible Authentication Protocol Request (EAP-Request) frame regarding identity to the electronic device. Upon receiving the EAP-Request (identity) frame, the electronic device can send an Extensible Authentication Protocol Response (EAP-Response) frame regarding identity to the wireless access point. Afterwards, upon receiving the EAP-Response (identity) frame, the wireless access point can send an EAP-Request frame to the electronic device to begin identity authentication and transmission of security configuration information. Upon receiving the EAP-Request frame, the electronic device can send an EAP-Response frame to the wireless access point to complete the first handshake (M1).
[0128] Afterwards, upon receiving the EAP-Response frame, the wireless access point can send an EAP-Request frame to the electronic device to complete the second handshake (M2). Upon receiving the EAP-Request frame, the electronic device can send an EAP-Response frame to the wireless access point to complete the third handshake (M3). Afterwards, upon receiving the EAP-Response frame, the wireless access point can send an EAP-Request frame to the electronic device to complete the fourth handshake (M4).
[0129] Upon receiving an EAP-Request frame, the electronic device may send an EAP-Response frame to the wireless access point to complete the fifth handshake (M5). Subsequently, upon receiving an EAP-Response frame, the wireless access point may send an EAP-Request frame to the electronic device to complete the sixth handshake (M6). Upon receiving an EAP-Request frame, the electronic device may send an EAP-Response frame to the wireless access point to complete the seventh handshake (M7). Subsequently, upon receiving an EAP-Response frame, the wireless access point may send an EAP-Request frame to the electronic device to complete the eighth handshake (M8), thereby completing identity authentication.
[0130] After the electronic device and the wireless access point complete the eighth handshake, they can send an EAP-Response frame to the wireless access point to complete the negotiation of security configuration information. Subsequently, upon receiving the EAP-Response frame, the wireless access point can send an Extensible Authentication Protocol Failure (EAP-Fail) frame to the electronic device to confirm that the initial Wi-Fi connection failed. Furthermore, the wireless access point sends a deauthentication frame to the electronic device. This deauthentication frame is used to disconnect the Wi-Fi connection between the electronic device and the wireless access point.
[0131] The first Wi-Fi connection requires the negotiation of security configuration information such as passwords through the Wi-Fi Simple Configuration Protocol. The WSC process (i.e., all processes corresponding to information configuration based on the WSC protocol) can begin with the "Extensible Authentication Protocol over LAN (EAPOL) Start Frame (EAPOL-Start)" as shown in Figure 7 and end with the "Extensible Authentication Protocol (EAP) End Frame (EAP-Fail)." The WSC process involves a total of 14 EAPOL / EAP frame exchanges. During these 14 frame exchanges, Go and Gc will negotiate security configuration information, including authentication methods, encryption methods, and pre-shared keys (PSKs).
[0132] It can be understood that the wireless access point described in Figure 7 above is actually equivalent to Go, and the electronic device (i.e., the station) is equivalent to Gc. The M1-M8 interaction process in Figure 7 above is part of the EAP-WSC algorithm, which is used by Go and Gc to confirm their identities and transmit security configuration information. EAP-WSC will ultimately end the process with an EAP-Fail frame. However, Gc and Go have successfully completed the negotiation of security configuration information using M1-M8, so Gc has already obtained Go's security configuration. In addition, because the electronic device received an EAP-Fail frame, the first Wi-Fi connection between Gc and Go failed, and a second Wi-Fi connection began.
[0133] Afterwards, Gc will reassociate with Go using the negotiated security configuration information, marking the second Wi-Fi connection. This second Wi-Fi connection process is identical to the connection between the station and the wireless access point described in Figure 3 above, consisting of four phases: scanning, authentication, association, and a four-way handshake. This completes a Wi-Fi connection between the electronic device and the wireless access point (or simply, a Wi-Fi point-to-point connection) based on Wi-Fi point-to-point connectivity.
[0134] In some embodiments, due to the instability of the WIFI signal, the problem of interaction failure between the station and the wireless access point may occur, such as the wireless access point not receiving the request sent by the station, and the number of frame interactions during the WIFI point-to-point connection process is large. Therefore, the probability of interaction failure between the station and the wireless access point is high, resulting in a high WIFI point-to-point connection failure rate. In addition, the connection time corresponding to the WIFI point-to-point connection is long, and the connection time usually exceeds 5 seconds, while the connection time corresponding to the WIFI connection based on the AP usually does not exceed 1 second. Therefore, in order to save connection time and improve WIFI transmission efficiency, when two electronic devices are performing WIFI communication, they can perform WIFI connection based on the AP, that is, use a wireless access point connection method to perform WIFI connection. Specifically, when the electronic devices are connected to each other through WIFI based on the AP, one electronic device can act as a traditional access point (Legacy Access Point, Legacy AP), or called a soft AP (softAP). The traditional access point is equivalent to the above-mentioned router, i.e., AP, and the other electronic device can act as a station. For example, as shown in Figure 8, laptop A creates a traditional access point, which can act as an AP. Afterwards, laptop B accesses laptop A, which is a traditional access point, as a station, to establish a WIFI connection between laptop B and laptop A, thereby establishing a WIFI transmission link.
[0135] In some embodiments, the WIFI module in the above-mentioned electronic device (such as laptop computer A) may also support a dual-band dual-transmission mode. That is, the electronic device can use two working frequency bands at the same time for WIFI connection, thereby realizing the establishment of two WIFI connections. Among them, the dual-band dual-transmission mode may include at least one of 2.4GHz and 5GHz dual-transmission, 2.4GHz and 6GHz dual-transmission, 5GHz and 6GHz dual-transmission, and 5.2GHz and 5.8GHz dual-transmission. For example, taking the electronic device being allowed to operate on two working frequency bands of 2.4GHz and 5GHz as an example, the electronic device can establish WIFI connections on the 2.4GHz working frequency band and the 5GHz working frequency band respectively. Among them, such an electronic device supporting the dual-band dual-transmission mode is usually provided with two radio frequency antennas (hereinafter referred to as antennas).
[0136] 2. Dual-band dual-transmitter mode
[0137] In some embodiments, when the electronic device is in dual-band dual-transmission mode, that is, when transmitting data based on two WIFI connections, each WIFI connection can use two antennas in the electronic device to transmit data in the following two ways.
[0138] In one example, the electronic device can use the SISO method for transmission. For example, WIFI connections are established on two working frequency bands respectively. For each WIFI connection, the electronic device uses one antenna for transmission when transmitting data based on the WIFI connection, that is, one WIFI connection uses one of the antennas of the electronic device for transmission. For example, the WIFI chip establishes WIFI connections in the 2.4GHz working frequency band and the 5GHz working frequency band respectively, and each WIFI connection uses one antenna for data transmission, that is, the electronic device uses one antenna for data transmission in the 2.4GHz working frequency band and uses another antenna for data transmission in the 5GHz working frequency band, that is, 2.4GHz 1*1+5GHz1*1, where the first 1 in 1*1 represents one transmitting antenna, and the second 1 represents one receiving antenna. It can be understood that the SISO method is equivalent to one WIFI connection corresponding to one antenna, that is, corresponding to one data stream.
[0139] In another example, the electronic device can use MIMO mode for transmission. WIFI connections are established on two working frequency bands respectively. For each WIFI connection, the electronic device uses two antennas for transmission when transmitting data based on the WIFI connection, that is, one WIFI connection uses two antennas for transmission. For example, the WIFI chip establishes WIFI connections in the 2.4GHz working frequency band and the 5GHz working frequency band respectively, and each WIFI connection uses two antennas for data transmission. Specifically, the electronic device uses two antennas for data transmission in the 2.4GHz working frequency band, and the electronic device can also use the above two antennas for data transmission in the 5GHz working frequency band, that is, 2.4GHz 2*2+5GHz 2*2, where the first 2 in 2*2 represents 2 transmitting antennas, and the second 2 represents 2 receiving antennas. It can be understood that the MIMO mode is equivalent to one WIFI connection corresponding to two antennas, that is, corresponding to two data streams.
[0140] In some embodiments, the electronic device may adopt dual-band simultaneous (DBS) technology, or dual-band concurrent technology to achieve a dual-band dual-transmission mode. Dual-band synchronization refers to the unification of two working frequency band signals, which is equivalent to a service set identifier (SSID) connecting the two working frequency bands at the same time, and transmitting data simultaneously on the two working frequency bands. The dual-band synchronization technology is implemented by forming two radio frequency areas inside an integrated circuit (IC) to integrate two complete sets of pathways. It should be understood that DBS technology can also be called four-stream dual-band concurrent technology. The service set identifier refers to the WIFI name corresponding to the router.
[0141] Dual-band concurrency means the router can support two operating frequency bands simultaneously, creating two independent wireless networks. These two independent wireless networks can use different SSIDs or the same SSID, with no specific restrictions. This means the two wireless networks operate independently. This dual-band concurrency technology is implemented by using two integrated circuits to establish corresponding radio frequency zones, creating two complete pathways.
[0142] In some embodiments, the transmission rates of Wi-Fi connections established in different operating frequency bands are different, that is, the transmission rates (or theoretical transmission rates, standard transmission rates) corresponding to different operating frequency bands are different. Furthermore, the theoretical transmission rates of Wi-Fi connections in different operating modes are also different. For example, as shown in Table 1, the theoretical transmission rate corresponding to the 2.4 GHz operating frequency band in single-frequency single-transmit mode is 573.5 Mbps, and the theoretical transmission rate corresponding to the 5 GHz operating frequency band in single-frequency single-transmit mode is 1201 Mbps. The theoretical transmission rate corresponding to the 2.4 GHz and 5 GHz dual operating frequency bands in the dual-frequency dual-transmit mode based on the SISO method is 887.3 (1201 / 2 + 573.5 / 2) Mbps. The theoretical transmission rate corresponding to the 2.4 GHz and 5 GHz dual operating frequency bands in the dual-frequency dual-transmit mode based on the MIMO method is 1774.5 (1201 + 573.5) Mbps. It can be understood that the dual-band dual-transmit mode based on the SISO method means that the WiFi connection uses the SISO method to transmit data, that is, the WiFi connection corresponding to each operating frequency band uses a single antenna to transmit data. The dual-band dual-transmit mode based on the MIMO method means that the WiFi connection uses the MIMO method to transmit data, that is, the WiFi connection corresponding to each operating frequency band uses two antennas to transmit data, thus achieving four-stream dual-band concurrent technology.
[0143] From the above content, it can be seen that the theoretical transmission rate corresponding to file transfer in the dual-working frequency bands in the dual-band dual-transmit mode based on the MIMO method is higher than the theoretical transmission rate corresponding to file transfer in the dual-working frequency bands in the dual-band dual-transmit mode based on the SISO method. In other words, using dual WIFI connections concurrently to transmit data can improve the WIFI transmission rate.
[0144] Table 1
[0145] It should be noted that in this embodiment, the theoretical transmission rate is calculated based on a maximum operating bandwidth of 80 MHz for the 5 GHz operating frequency band, and a maximum operating bandwidth of 40 MHz for the 2.4 GHz operating frequency band. It is understood that the larger the operating bandwidth, the higher the theoretical transmission rate.
[0146] The 5 GHz operating frequency band may not refer solely to 5 GHz; it may represent a frequency band range. The values within the frequency band range corresponding to the 5 GHz operating frequency band may all represent the theoretical transmission rates corresponding to the 5 GHz operating frequency band. For example, the 5 GHz operating frequency band may also include 5.2 GHz and 5.8 GHz. The theoretical transmission rates corresponding to the 5.2 GHz and 5.8 GHz operating frequency bands are the same as the theoretical transmission rates corresponding to the 5 GHz operating frequency band, both being 1201 Mbps. Specifically, as shown in Table 2, the theoretical transmission rate corresponding to the 5.2 GHz and 5.8 GHz dual operating frequency bands in the SISO dual-band dual-transmit mode is 1201 (1201 / 2 + 1201 / 2) Mbps, while the theoretical transmission rate corresponding to the 5.2 GHz and 5.8 GHz dual operating frequency bands in the MIMO dual-band dual-transmit mode is 2402 Mbps.
[0147] Table 2
[0148] It can be seen from Tables 1 and 2 above that the method of performing data transmission through dual WIFI connections concurrently on electronic devices that support DBS technology can double the theoretical transmission rate. That is, performing data transmission through dual-band concurrent connection can increase the WIFI transmission rate, thereby improving the user experience.
[0149] Therefore, in order to improve the transmission rate of WIFI, when the electronic device needs to transmit data based on the WIFI connection with other electronic devices, it can use the dual-band concurrent mode to connect to WIFI. Exemplarily, the electronic device can determine the concurrent frequency bands supported by the electronic device and other electronic devices. Afterwards, the electronic device can select the target concurrent frequency band from the concurrent frequency bands, and then the electronic device establishes corresponding WIFI connections according to the target concurrent frequency band and the two antennas (or radio frequency antennas) on the electronic device, that is, establishes a WIFI connection corresponding to each working frequency band in the target concurrent frequency band, and each WIFI connection reuses two antennas. When the WIFI connection corresponding to the target concurrent frequency band is established, the electronic device can concurrently transmit data with other electronic devices through two WIFI connections. In this way, two WIFI connections are established using four-stream dual-band concurrent technology, which can realize data transmission, thereby improving the transmission rate of WIFI.
[0150] It can be understood that each working frequency band corresponds to a channel range. For example, the channel range corresponding to the 2.4GHz working frequency band is channels 1 to 13 (or called channels), and the channel range corresponding to the 5GHz working frequency band includes channels 36, 40, 48, 149 to 157, etc. Among them, the channel is equivalent to the path for data transmission, that is, if two electronic devices need to select the target channel from the channel range corresponding to the working frequency band before performing a WIFI connection, in order to realize WIFI connection in the target channel. For example, if two electronic devices perform a WIFI connection on the 5GHz working frequency band, they need to select the target channel (such as channel 36) from the channel range corresponding to the 5GHz working frequency band. Afterwards, the two electronic devices can establish a WIFI connection in channel 36 to realize data transmission.
[0151] In dual-band concurrent mode, the electronic device or other electronic devices can function as two different roles: station, traditional access point, group owner, and group client. The roles of the electronic device and other electronic devices are different. For example, a laptop computer running a Windows operating system can function as station, traditional access point, group owner, and group client.
[0152] It is understandable that in Windows system design, a station needs to use a dedicated port, which can be a default port. Traditional access points, group owners, and group clients share a single Wi-Fi Direct role port. Since these three roles are mutually exclusive, the Wi-Fi Direct role port can only be used by one role at a time.
[0153] Specifically, as shown in Table 3, when a laptop computer functions as a site, it can also function as any of the traditional access point, group owner, and group client roles. When a laptop computer functions as a traditional access point, it can also function as a site, but cannot function as any of the traditional access point, group owner, and group client roles. When a laptop computer functions as a group owner, it can also function as a site, but cannot function as any of the traditional access point, group owner, and group client roles. When a laptop computer functions as a group client, it can also function as a site, but cannot function as any of the traditional access point, group owner, and group client roles. In other words, the two roles of site and traditional access point in a laptop computer can coexist, the two roles of site and group owner in a laptop computer can coexist, and the two roles of site and group client in a laptop computer can also coexist. In other cases, the two roles in the laptop computer cannot coexist.
[0154] Table 3
[0155] For example, as shown in Figure 9, taking two electronic devices, a first computer and a second computer, as an example, a Wi-Fi connection can be established between the first computer and the second computer based on the 5GHz operating frequency band, i.e., a Wi-Fi connection corresponding to the 5GHz operating frequency band. The first computer can act as a traditional access point, and the second computer can act as a station. Furthermore, a Wi-Fi connection can be established between the first computer and the second computer based on the 2.4GHz operating frequency band, i.e., a Wi-Fi connection corresponding to the 2.4GHz operating frequency band. The first computer can act as a station, and the second computer can act as a traditional access point.
[0156] It should be understood that the roles of the first and second computers described above are merely examples. For example, for a Wi-Fi connection corresponding to the 5 GHz operating frequency band, the first computer may play the role of a station, while the second computer may play the role of a traditional access point. For a Wi-Fi connection corresponding to the 2.4 GHz operating frequency band, the first computer may play the role of a traditional access point, while the second computer may play the role of a station. For another example, for a Wi-Fi connection corresponding to the 5 GHz operating frequency band, the first computer may play the role of a station, while the second computer may play the role of a group owner. For a Wi-Fi connection corresponding to the 2.4 GHz operating frequency band, the first computer may play the role of a group owner, while the second computer may play the role of a station.
[0157] In some embodiments, as shown in Table 3 above, a device cannot simultaneously assume the same role when establishing two Wi-Fi connections. This means that the roles of the device corresponding to the two Wi-Fi connections are different. For example, if a first computer establishes one Wi-Fi connection as a station, it cannot establish another Wi-Fi connection as a station. This overcomes Windows port restrictions and facilitates the subsequent establishment of dual Wi-Fi connections.
[0158] It should be noted that, as shown in Table 3 above, while the Group Client and STA roles can coexist when establishing dual Wi-Fi connections, for example, one laptop (e.g., the first computer) can have a STA role on one Wi-Fi connection and a Group Client role on the other, while another laptop (e.g., the second computer) can have a traditional access point role on one Wi-Fi connection and a Group Owner role on the other. However, due to port restrictions, and as shown in Table 3 above, traditional access points and group owners cannot coexist. Therefore, when establishing dual Wi-Fi connections, the first computer cannot establish dual Wi-Fi connections as both a STA and a Group Client.
[0159] The above describes the technology involved in the embodiment of the present application. The following will continue to introduce in detail how to achieve dual WIFI connection transmission with the help of the accompanying drawings. As shown in Figure 10, the process includes the following steps:
[0160] S1001, in response to a first operation, the first computer sends a concurrent frequency band list of the first computer to the second computer.
[0161] The first operation is used to trigger data transmission between the first computer and the second computer. The first operation will be described below in conjunction with the application scenario of the technical solution of the present application.
[0162] In one example, the present application can be applied to a device-changing cloning service scenario, where a first operation can be used to trigger a first computer to perform a device-changing cloning operation. In the device-changing cloning service scenario, the first computer can display identification information (such as a name) of at least one available computer in response to a user triggering operation (such as a click operation) on a device-changing cloning control displayed on the first computer. Afterwards, the first computer receives a user click operation (equivalent to the first operation) on the name of a second computer displayed on the first computer, indicating that the first computer needs to transfer the cloned files of the first computer to the second computer based on a WIFI connection. In response to this operation, the first computer can send the first computer's concurrent frequency band list to the second computer so that the second computer can establish a WIFI connection with the first computer using the first computer's concurrent frequency band list. For example, as shown in FIG11 , a device-changing cloning control H is displayed on the first computer 500. If the device-changing cloning control H is triggered, the first computer 500 displays an interface as shown in FIG12 , which displays identification information AAA and identification information DDD of available devices. If the identification information AAA corresponding to the available device is triggered, the device corresponding to the identification information AAA is the second computer. Afterwards, the first computer 500 may send the concurrent frequency band list of the first computer to the available device AAA. In other words, the first computer 500 performs the device cloning service with the available device AAA.
[0163] In one example, the present application can be applied to a data migration business scenario, and the first operation can be used to trigger the first computer to perform a data migration operation. In the data migration business scenario, the first computer determines the selected data as the target data in response to the user's selection operation on the data displayed on the first computer. Afterwards, the first computer can display the identification information (such as the name) of at least one available computer in response to the user's trigger operation (such as a click operation) on the data migration control displayed on the first computer. Afterwards, the first computer receives a click operation (equivalent to the first operation) by the user on the name of the second computer displayed on the first computer, indicating that the first computer needs to transmit the target data of the first computer to the second computer based on the WIFI connection. In response to the operation, the first computer can send the concurrent frequency band list of the first computer to the second computer.
[0164] In another example, the present application can be applied to a file sharing business scenario, and the first operation can be used to trigger the first computer to perform a file sharing operation. In the file sharing business scenario, the first computer determines the selected file as the target file in response to the user's selection operation on the file displayed on the first computer. Afterwards, the first computer can display the identification information (such as the name) of at least one available computer in response to the user's triggering operation (such as a click operation) on the file sharing control displayed on the first computer. Afterwards, the first computer receives a click operation (equivalent to the first operation) by the user on the name of the second computer displayed on the first computer, indicating that the first computer needs to transfer the target file of the first computer to the second computer based on the WIFI connection. In response to the operation, the first computer can send the concurrent frequency band list of the first computer to the second computer.
[0165] It should be noted that the above three application scenarios are only examples. The technical solution introduced in this application can also be applied to scenarios where WIFI connection is required between other devices to transmit data. Accordingly, the first operation can also be used to trigger the first computer to perform other types of operations, which is not limited by this application.
[0166] The concurrent frequency band list of the first computer (or referred to as the first concurrent frequency band list) includes all concurrent frequency bands supported by the first computer. Exemplarily, the concurrent frequency band list of the first computer may include at least one concurrent frequency band of 5.2 GHz and 5.8 GHz dual-band concurrent, 2.4 GHz and 6 GHz dual-band concurrent, 2.4 GHz and 5 GHz dual-band concurrent, and 5 GHz and 6 GHz dual-band concurrent. For example, the concurrent frequency band list of the first computer may include two concurrent frequency bands: 2.4 GHz and 5 GHz dual-band concurrent, and 5 GHz and 6 GHz dual-band concurrent.
[0167] In an embodiment of the present application, in response to the above-mentioned first operation, the first computer can obtain the concurrent frequency band list of the first computer itself, and send the concurrent frequency band list of the first computer to the second computer via the first preset communication method. Exemplarily, the first preset communication method can be a Bluetooth communication method. First, the first computer can establish a Bluetooth connection with the second computer, that is, pair the first computer with the second computer. Afterwards, after the first computer and the second computer are successfully paired, that is, after the first computer and the second computer establish a Bluetooth connection, the first computer can send the concurrent frequency band list of the first computer to the second computer based on the Bluetooth connection. Of course, the first preset communication method can be other types of communication methods. For example, if the first preset communication method is a wired transmission method, this application does not limit it, and it only requires that the first computer and the second computer can communicate.
[0168] In some embodiments, in addition to sending the first computer's concurrent frequency band list to the second computer, the first computer may also send the first computer's connection channel and the first computer's working channel list to the second computer. The connection channel of the first computer refers to the working channel of the first computer, such as the working channel when the first computer is connected to the wireless access point (i.e., the actual router to which the first computer is connected) as a site for WIFI connection. For example, if the first computer is not currently connected to the wireless access point for WIFI, that is, the first computer is in a non-WIFI network environment, the connection channel of the first computer can be 0 or -1, which is not specifically limited; if the first computer is currently connected to the wireless access point for WIFI, the connection channel of the first computer is the working channel of the first computer, for example, the connection channel of the first computer can be channel 5.
[0169] The operating channel list of the first computer refers to information about all operating channels supported by the first computer as a traditional access point. The operating channel information may include an identifier of the operating channel (e.g., the identifier of channel 36 may be 36). For example, the operating channel list of the first computer may include 10, 13, 40, and so on.
[0170] Specifically, in response to the above-mentioned first operation, the first computer can obtain the first computer's own concurrent frequency band list, the first computer's connection channel and the first computer's working channel list, and send the first computer's concurrent frequency band list, the first computer's connection channel and the first computer's working channel list to the second computer through the above-mentioned first preset communication method.
[0171] S1002: The second computer receives the concurrent frequency band list of the first computer.
[0172] In some embodiments, in addition to receiving the concurrent frequency band list of the first computer, the second computer also needs to receive the connection channel list of the first computer and the working channel list of the first computer.
[0173] S1003: The second computer sends a concurrent frequency band list of the second computer to the first computer.
[0174] The concurrent frequency band list of the second computer (or referred to as the second concurrent frequency band list) includes all concurrent frequency bands supported by the second computer. Exemplarily, the concurrent frequency band list of the second computer may include at least one concurrent frequency band of 5.2 GHz and 5.8 GHz dual-band concurrent, 2.4 GHz and 6 GHz dual-band concurrent, 2.4 GHz and 5 GHz dual-band concurrent, and 5 GHz and 6 GHz dual-band concurrent. For example, the concurrent frequency band list of the second computer may include two concurrent frequency bands: 2.4 GHz and 5 GHz dual-band concurrent, and 5.2 GHz and 5.8 GHz dual-band concurrent.
[0175] In an embodiment of the present application, the second computer can, upon receiving the concurrent frequency band list of the first computer, send the concurrent frequency band list of the second computer to the first computer through the second preset communication method. Exemplarily, the above-mentioned second preset communication method can be a Bluetooth communication method. First, the second computer is connected to the first computer by Bluetooth, that is, the first computer and the second computer are paired. Afterwards, after the first computer and the second computer are successfully paired, that is, after the second computer and the first computer establish a Bluetooth connection, the second computer can send the concurrent frequency band list of the second computer to the first computer. Of course, the second preset communication method can be other types of communication methods, such as the second preset communication method is a wired transmission method, which is not limited by the present application, as long as the first computer and the second computer can communicate with each other.
[0176] It should be understood that the above-mentioned first preset communication mode and the above-mentioned second preset communication mode may be the same or different, and there is no specific limitation. For example, the first computer may send the concurrent frequency band list of the first computer to the second computer via Bluetooth communication. Afterwards, the second computer may send the concurrent frequency band list of the second computer to the first computer via wired transmission. For another example, the above-mentioned first preset communication mode and the second preset communication mode are both Bluetooth communication modes. If a Bluetooth connection has been established between the first computer and the second computer, and the Bluetooth connection used by the above-mentioned first computer to send the concurrent frequency band list of the first computer has not been disconnected, the second computer may directly send the concurrent frequency band list of the second computer to the first computer based on the Bluetooth connection.
[0177] In some embodiments, in addition to sending the second computer's concurrent frequency band list to the first computer, the second computer may also send the second computer's connection channel and the second computer's working channel list to the first computer. The connection channel of the second computer refers to the working channel where the second computer is located, such as the working channel corresponding to when the second computer is connected to the wireless access point (i.e., the actual router to which the second computer is connected) as a site for WIFI connection. For example, if the second computer is not currently connected to the wireless access point for WIFI, that is, the second computer is in a non-WIFI network environment, the connection channel of the second computer can be 0 or -1, which is not specifically limited; if the second computer is not currently connected to the wireless access point for WIFI, the connection channel of the second computer is the working channel where the second computer is currently located, for example, the connection channel of the second computer can be channel 10.
[0178] The operating channel list of the second computer refers to information about all operating channels supported by the second computer as a traditional access point. The operating channel information may include an identifier of the operating channel (e.g., the identifier of channel 36 may be 36). For example, the operating channel list of the second computer may include 9, 11, 48, etc.
[0179] Specifically, upon receiving the concurrent frequency band list, the connection channel of the first computer, and the working channel list of the first computer, the second computer can send the concurrent frequency band list, the connection channel of the second computer, and the working channel list of the second computer to the first computer through the second preset communication method.
[0180] In some embodiments, the first computer and the second computer can read the concurrent frequency band list from the preset position when it is necessary to determine the target concurrent frequency band through the concurrent frequency band list. For example, the first computer can read the concurrent frequency band list of the first computer from the first preset position when receiving the first operation. Or the first computer can read the concurrent frequency band list of the first computer from the first preset position in advance and save it to the cache, so that when it is necessary to obtain the concurrent frequency band list of the first computer, it can be read directly from the cache, thereby improving the reading efficiency of the concurrent frequency band list of the first computer, such as the first computer can read the concurrent frequency band list of the first computer when it is turned on. Similarly, the second computer can also read the concurrent frequency band list of the second computer from the second preset position in advance. Among them, the second preset position and the first preset position can be the same position or different positions, and there is no specific limitation.
[0181] It should be understood that the concurrent frequency bands supported by the first computer are determined based on the configuration parameters of the WiFi module (or WiFi chip) in the first computer, and the concurrent frequency bands supported by the second computer are determined based on the configuration parameters of the WiFi module (or WiFi chip) in the second computer. For example, taking the first computer as an example, if the WiFi chip in the first computer supports 5.2GHz and 5.8GHz dual-band mode, the concurrent frequency bands supported by the first computer are 5.2GHz and 5.8GHz dual-band concurrent. In other words, the concurrent frequency band list of the first computer and the concurrent frequency band list of the second computer are pre-configured.
[0182] S1004: The first computer receives the concurrent frequency band list of the second computer.
[0183] In some embodiments, in addition to receiving the concurrent frequency band list of the second computer, the first computer also needs to receive the connection channel list of the second computer and the working channel list of the second computer.
[0184] It should be noted that the numbering of the steps shown in FIG10 above does not represent the order in which the steps are executed. For example, the above S1003 and S1004 may be performed before S1001 "the first computer sends the concurrent frequency band list of the first computer to the second computer", for example, the second computer needs to be cloned. In response to the user performing a trigger operation (such as a click operation) on the identification information of the first computer displayed on the second computer, the second computer may send the concurrent frequency band list of the second computer to the first computer in response to the trigger operation. The first computer receives the concurrent frequency band list of the second computer. The trigger operation here may be the above-mentioned first operation.
[0185] In some embodiments, the first computer can connect to a wireless network provided by the second computer. In other words, the first computer can connect to a Wi-Fi hotspot provided by the second computer. Alternatively, the second computer can connect to a wireless network provided by the first computer. In other words, the second computer can connect to a Wi-Fi hotspot provided by the first computer.
[0186] S1005: The first computer determines a target concurrent frequency band from the concurrent frequency band list of the first computer and the concurrent frequency band list of the second computer.
[0187] The target concurrent frequency band refers to a concurrent frequency band that exists in both the concurrent frequency band list of the first computer and the concurrent frequency band list of the second computer. That is, the target concurrent frequency band is a concurrent frequency band supported by both the first computer and the second computer.
[0188] For example, the concurrent frequency band list of the first computer includes two concurrent frequency bands: 5GHz and 2.4GHz dual-band concurrent, and 5GHz and 6GHz dual-band concurrent. The concurrent frequency band list of the second computer includes one concurrent frequency band: 5GHz and 2.4GHz dual-band concurrent. The concurrent frequency bands supported by the first computer and the second computer are 5GHz and 2.4GHz dual-band concurrent, that is, the target concurrent frequency band is 5GHz and 2.4GHz dual-band concurrent.
[0189] In one possible implementation, the first computer determines whether the concurrent frequency band list of the first computer and the concurrent frequency band list of the second computer contain the same concurrent frequency band, i.e., concurrent frequency bands supported by both the first computer and the second computer. If the concurrent frequency band list of the first computer and the concurrent frequency band list of the second computer do not contain the same concurrent frequency band, the first computer may determine that the first computer and the second computer cannot establish a dual Wi-Fi connection, i.e., the first computer and the second computer can only establish a single Wi-Fi connection.
[0190] Afterwards, when the first computer determines that the first computer and the second computer are connected to a single Wi-Fi connection, the first computer can determine a target operating frequency band from the concurrent frequency band list of the first computer and the concurrent frequency band list of the second computer. The target operating frequency band represents an operating frequency band supported by both the first computer and the second computer.
[0191] For example, the concurrent frequency band list of the first computer is 5GHz and 2.4GHz dual-band concurrent, and the concurrent frequency band list of the second computer is 5GHz and 6GHz dual-band concurrent. The concurrent frequency band list of the first computer and the concurrent frequency band list of the second computer do not have the same concurrent frequency bands. Therefore, the target working frequency band can be determined as the 5GHz working frequency band from the concurrent frequency band list of the first computer and the concurrent frequency band list of the second computer.
[0192] The first computer then determines a target operating channel corresponding to the target operating frequency band from the first computer's connection channel, the first computer's operating channel list, the second computer's connection channel, and the second computer's operating channel list. Finally, the first computer can establish a single Wi-Fi connection with the second computer on the target operating channel corresponding to the target operating frequency band.
[0193] In which case, when the connection channel of the first computer and the connection channel of the second computer both belong to the channel range corresponding to the target working frequency band, the target working channel can be determined by the methods described in the following two embodiments.
[0194] In one embodiment, if the connection channel of the first computer is the same as the connection channel of the second computer, and both the working channel list of the first computer and the working channel list of the second computer include the connection channels of the first computer / the second computer, then the target working channel is determined to be the connection channel of the first computer, that is, the connection channel of the second computer.
[0195] Continuing with the above example, the connection channel of the first computer is 36, the connection channel of the second computer is 36, the working channel list of the first computer includes channel 10, channel 36, channel 40 and channel 48, and the working channel list of the second computer includes channel 10, channel 36 and channel 48. For example, the target working channel is channel 36, that is, the first computer can establish a Wi-Fi connection with the second computer on channel 36 corresponding to 5GHz.
[0196] In another embodiment, if the connection channel of the first computer is different from the connection channel of the second computer, and the working channel list of the first computer includes the connection channel of the first computer and the connection channel of the second computer, and the working channel list of the second computer also includes the connection channel of the first computer and the connection channel of the second computer, that is, the working channel list of the first computer and the working channel list of the second computer both include the connection channel of the first computer and the connection channel of the second computer, then the first computer can predict the time required to switch the connection channel of the first computer to the connection channel of the second computer and use this as the first switching time. The second computer can then predict the time required to switch the connection channel of the second computer to the connection channel of the first computer and use this as the second switching time. The second computer can then send the second switching time to the first computer. If the first switching time is less than the second switching time, it indicates that the time required to switch from the connection channel of the first computer to the connection channel of the second computer is less than the time required to switch from the connection channel of the second computer to the connection channel of the first computer. To reduce the switching time, the connection channel of the first computer can be switched to the connection channel of the second computer. That is, the first computer can determine that the target working channel is the connection channel of the second computer, and the first computer can establish a Wi-Fi connection with the second computer on the connection channel of the second computer.
[0197] If the first switching time is greater than the second switching time, it indicates that the time required to switch from the connection channel of the first computer to the connection channel of the second computer is greater than the time required to switch from the connection channel of the second computer to the connection channel of the first computer. To reduce the time required for switching, the connection channel of the second computer can be switched to the connection channel of the first computer. That is, the first computer can determine that the target working channel is the connection channel of the first computer, and then the first computer can establish a WiFi connection with the second computer on the connection channel of the first computer. The channel switching time is determined based on the configuration information of the computer. It is understood that the higher the computer's related hardware configuration (such as a wireless network card, etc.), the faster the channel switching time.
[0198] For example, if the first computer's connection channel is 36 and the second computer's connection channel is 48, and the first computer's working channel list includes channels 10, 36, 40, and 48, while the second computer's working channel list includes channels 10, 36, and 48, then both the first computer's working channel list and the second computer's working channel list include channels 36 and 48. Therefore, the first computer needs to determine the first switching time corresponding to its own switching from channel 36 to channel 48, and the second computer needs to determine the second switching time corresponding to its own switching from channel 48 to channel 36. If the first switching time is less than the second switching time, it indicates that the first computer's hardware configuration is higher than that of the second computer, and therefore, the first computer can establish a Wi-Fi connection with the second computer on channel 48. If the first switching time is greater than the second switching time, it indicates that the first computer's hardware configuration is lower than that of the second computer, and therefore, the first computer can establish a Wi-Fi connection with the second computer on channel 36. This can reduce the occurrence of slow data transmission caused by long channel switching times, facilitating subsequent data transmission.
[0199] It should be noted that the target operating channel can also be determined by the second computer. For example, the first computer can send the first switching time to the second computer, so that the second computer can use the first switching time and the second switching time to determine the target operating channel. The second computer can then send the identifier of the target operating channel to the first computer. Alternatively, both the first computer and the second computer can determine the target operating channel, and this application is not limited thereto.
[0200] In some embodiments, when the connection channel of the first computer or the connection channel of the second computer belongs to the working channel list of the first computer and the working channel list of the second computer, the first computer determines the connection channel belonging to the working channel list of the first computer and the working channel list of the second computer as the target working channel.
[0201] For example, if the connection channel of the first computer is 56 and the connection channel of the second computer is 48, and the working channel list of the first computer includes channels 10, 13, 40, and 48, and the working channel list of the second computer includes channels 10, 40, and 48, then the connection channel in both the working channel lists of the first computer and the second computer is channel 48, that is, the target working channel is channel 48. Therefore, the first computer can establish a Wi-Fi connection with the second computer on channel 48.
[0202] In a possible implementation, when the concurrent frequency band list of the first computer and the concurrent frequency band list of the second computer have the same concurrent frequency bands, the first computer may determine the number of the same concurrent frequency bands.
[0203] In the case where the number of the aforementioned identical concurrent frequency bands is 1, the first computer can directly determine the identical concurrent frequency band as the target concurrent frequency band. For example, taking the case where the concurrent frequency band list of the aforementioned first computer includes 5GHz and 2.4GHz dual-band concurrent and 5GHz and 6GHz dual-band concurrent, and the case where the concurrent frequency band list of the aforementioned second computer includes 5GHz and 2.4GHz dual-band concurrent, the concurrent frequency bands commonly supported by the first computer and the second computer, i.e., the identical concurrent frequency bands are 5GHz and 2.4GHz dual-band concurrent, and the number of concurrent frequency bands commonly supported by the first computer and the second computer is 1, therefore, the first computer can determine the target concurrent frequency band to be 5GHz and 2.4GHz dual-band concurrent.
[0204] In the case that the number of the above-mentioned identical concurrent frequency bands is greater than 1, the first computer may determine the target concurrent frequency band from the identical concurrent frequency bands through the following implementation methods.
[0205] In one implementation, when the number of the same concurrent frequency bands is greater than 1, the first computer determines a target concurrent frequency band from the same concurrent frequency bands according to a target strategy.
[0206] Among them, the target strategy is pre-set based on the theoretical transmission rate corresponding to the concurrent frequency band. The larger the theoretical transmission rate, the higher the priority of the concurrent frequency band corresponding to the theoretical transmission rate. Accordingly, the above-mentioned target concurrent frequency band can be the concurrent frequency band with the highest theoretical transmission rate among the same concurrent frequency bands. For example, if the same concurrent frequency bands of the first computer and the second computer include 5GHz and 2.4GHz dual-band concurrency and 5.2GHz and 5.8GHz dual-band concurrency, and it can be seen from Tables 1 and 2 above that the theoretical transmission rate corresponding to 5GHz and 2.4GHz dual-band concurrency can be 1774.5Mbps, and the theoretical transmission rate corresponding to 5.2GHz and 5.8GHz dual-band concurrency can be 2402Mbps, then the first computer can determine, based on the target strategy, that the priority of 5.2GHz and 5.8GHz dual-band concurrency is higher than that of 5GHz and 2.4GHz dual-band concurrency. Accordingly, the above-mentioned target concurrent frequency band can be 5.2GHz and 5.8GHz dual-band concurrency. For another example, the above-mentioned same concurrent frequency bands include 5GHz and 6GHz dual-band concurrency, 5.2GHz and 5.8GHz dual-band concurrency, 6GHz and 2.4GHz dual-band concurrency, and 5GHz and 2.4GHz dual-band concurrency. Based on the target strategy, it can be determined that the priority ranking of the same concurrent frequency bands is 5G and 6G dual-band concurrency > 5.2G and 5.8G dual-band concurrency > 6G and 2.4G dual-band concurrency > 5G and 2.4G dual-band concurrency. That is, 5GHz and 6GHz dual-band concurrency has the highest priority, that is, 5GHz and 6GHz dual-band concurrency has the highest theoretical transmission rate. Accordingly, the target concurrent frequency band can be 5GHz and 6GHz dual-band concurrency.
[0207] In another implementation, the first computer may arbitrarily select one concurrent frequency band from a plurality of identical concurrent frequency bands as the target concurrent frequency band.
[0208] In some embodiments, steps S1001 to S1004 shown in FIG. 10 above may not need to be performed, and the first computer may directly obtain the corresponding target concurrent frequency band. The target concurrent frequency band is determined based on the historical WIFI communication between the first computer and the second computer. For example, the first computer and the second computer have previously determined the target concurrent frequency band when performing WIFI communication, and the first computer may store the target concurrent frequency band. Generally speaking, the concurrent frequency bands supported by electronic devices will not change. Therefore, when the first computer needs to establish a WIFI connection with the second computer, it may first determine whether the target concurrent frequency band corresponding to the second computer is stored locally. If so, the first computer may directly obtain the target concurrent frequency band corresponding to the second computer. If not, the first computer may continue to execute steps S1001 to S1004 above to determine the target concurrent frequency band.
[0209] In some embodiments, after determining the target concurrent frequency band, the first computer may send the target concurrent frequency band to the second computer so that the second computer can directly use the target concurrent frequency band without having to re-determine the target concurrent frequency band.
[0210] S1006: The second computer determines a target concurrent frequency band from the concurrent frequency band list of the first computer and the concurrent frequency band list of the second computer.
[0211] In some embodiments, when the first computer determines the target concurrent frequency band, the second computer can also determine the target concurrent strategy. That is, the first computer and the second computer can determine the target concurrent frequency band separately. In this way, there is no need to send the determined target concurrent frequency band to the other computer, and the accuracy of the target concurrent frequency band determination can be improved. Exemplarily, the first computer and the second computer can determine the target concurrent frequency band according to the target strategy respectively. Since the target strategy is the same, and the first computer and the second computer both contain the concurrent frequency band list of the first computer and the concurrent frequency band list of the second computer, the target concurrent frequency band determined by the first computer and the target concurrent frequency band determined by the second computer are the same.
[0212] In other embodiments, the first computer may not need to perform step S1005, that is, the target concurrent frequency band may be determined solely by the second computer, and after the second computer determines the target concurrent frequency band, the second computer may directly send the target concurrent frequency band to the first computer, so that the first computer can directly use the target concurrent frequency band without having to redetermine the target concurrent frequency band. It should be noted that the process of the second computer determining the target concurrent frequency band is similar to the process of the first computer determining the target concurrent frequency band, and will not be repeated here. In the solution where the first computer is not required to determine the target concurrent frequency band, the above S1003 and S1004 may not need to be performed, that is, the second computer does not need to send its own concurrent frequency band list to the first computer.
[0213] Optionally, after determining the target concurrent frequency band, the second computer may send the target concurrent frequency band to the first computer. In other words, the first computer may not need to perform the above process of determining the target concurrent frequency band.
[0214] In some other embodiments, the second computer may not need to execute S1006 above. That is, the target concurrent frequency band can be determined independently by the first computer and sent to the second computer after the first computer determines the target concurrent frequency band. In scenarios where the second computer does not need to determine the target concurrent frequency band, the "first computer sends the first computer's concurrent frequency band list to the second computer" in S1001 and S1002 above may not be executed. That is, the first computer does not need to send its own concurrent frequency band list to the second computer.
[0215] S1007: The first computer establishes a first Wi-Fi connection with the second computer based on the first operating frequency band in the target concurrent frequency band.
[0216] The role of the first computer corresponding to the first Wi-Fi connection is the first role, and the role of the second computer corresponding to the first Wi-Fi connection is the second role. The second role is relative to the first role, indicating that if the role of one of the two computers is LegacyAP or Go, the role of the other device is STA. For example, the first role can be a legacy access point and the second role can be a station, or the first role can be a station and the second role can be a legacy access point. For another example, the first role can be a group owner and the second role can be a station, or the first role can be a station and the second role can be a group owner.
[0217] For example, taking the target concurrent frequency band as 5GHz and 2.4GHz dual-band concurrent as an example, the first operating frequency band can be the 5GHz operating frequency band, and the second operating frequency band can be the 2.4GHz operating frequency band. Accordingly, it is necessary to establish a first WIFI connection in the 5GHz operating frequency band, and establish a second WIFI connection in the 2.4GHz operating frequency band. Alternatively, the first operating frequency band can be the 2.4GHz operating frequency band, and the second operating frequency band can be the 5GHz operating frequency band. Accordingly, it is necessary to establish a first WIFI connection in the 2.4GHz operating frequency band, and establish a second WIFI connection in the 5GHz operating frequency band. Each WIFI connection reuses two antennas, thereby achieving dual-band concurrency.
[0218] For example, the process of establishing the first WIFI connection will be described below with reference to FIG13 , taking the first role as a traditional access point and the second role as a station as an example.
[0219] First, the first computer can execute S1101 and create the role of the first computer (or referred to as the first role) as a traditional access point. It can be understood that creating the role of a traditional access point is equivalent to making the first computer a wireless access point (i.e., a router) to provide wireless access services to the second computer. In other words, creating a role can mean setting the mode of the wireless network (such as a WIFI hotspot) to the mode corresponding to the created role. For example, creating the first role as a traditional access point can mean setting the first wireless network of the first computer to AP mode (or referred to as soft AP mode).
[0220] Afterwards, the first computer may execute S1102 and send the first target information to the second computer. The first target information includes one or more of a first basic service set identifier (BSSID), a first service set identifier (SSID), and a first target password. The first basic service set identifier is the MAC address of the first computer. The first service set identifier is the device name of the first computer. The first target password is a network password pre-set by the first computer, such as a WiFi hotspot password.
[0221] In some embodiments, the first target information may further include information about a first operating channel. The first operating channel represents the highest-quality channel among the operating channels corresponding to the first operating frequency band supported by the first computer. Specifically, the first operating channel represents the highest-quality channel among the operating channels corresponding to the first operating frequency band supported by the first computer when the first computer functions as a traditional access point. The first operating channel may be determined from a list of operating channels of the first computer.
[0222] The quality of the working channel can be represented by the number of hotspots and / or the degree of signal interference in the working channel. The fewer the number of hotspots in the working channel and the lower the degree of signal interference, the higher the quality of the working channel.
[0223] In one example, the quality of a working channel is indicated by the number of hotspots. For each working channel in the working channel list for the first computer that corresponds to the first working frequency band, the first computer can perform a hotspot scan on that working channel and obtain a scan result corresponding to that working channel, which includes the number of hotspots in that working channel. The first computer can then select the working channel with the fewest hotspots as the first working channel. This can reduce the impact of a large number of hotspots on data transmission, ensuring data transmission speed.
[0224] In another example, the quality of the working channel is represented by the degree of signal interference. For each working channel corresponding to the first working frequency band in the working channel list of the first computer, the first computer can determine the degree of signal interference of the working channel. Afterwards, the first computer can use the working channel with the least signal interference as the first working channel. The degree of signal interference can be determined based on the received signal strength indication (RSSI), that is, the stronger the received signal strength, the smaller the degree of signal interference. In this way, the occurrence of situations where data transmission is affected by large signal interference can be reduced, thereby ensuring the data transmission rate.
[0225] In another example, the quality of the working channel is represented by the number of hotspots and the degree of signal interference. For each working channel corresponding to the first working frequency band in the working channel list of the first computer, the first computer can determine the signal interference degree and the number of hotspots of the working channel. Afterwards, the first computer can calculate the quality value of the working channel according to E=w1*R+w2*S, where w1 represents the first preset weight, w2 represents the second preset weight, R represents the signal interference degree corresponding to the working channel, S represents the number of hotspots in the working channel, and E represents the quality value of the working channel. The smaller the quality value of the working channel, the higher the quality of the working channel. Afterwards, the first computer can use the working channel with the smallest quality value as the above-mentioned first working channel.
[0226] In some embodiments, a first computer can send first target information to a second computer via Bluetooth communication. Subsequently, upon receiving the first target information, the second computer can establish a Wi-Fi connection with the first computer on a first operating channel, thereby establishing the first Wi-Fi connection. The following describes two possible implementations of how the second computer establishes the first Wi-Fi connection with the first computer based on the first target information. In one possible implementation, the first Wi-Fi connection between the first and second computers can be established using the same method as described above for wireless access points to connect to other devices. As shown in Figure 13, upon receiving the first target information, the second computer can execute S1103 and send a probe request frame to the first computer. Upon receiving the probe request frame, the first computer can execute S1104 and send a probe response frame to the second computer. Subsequently, upon receiving the probe response frame, the second computer can execute S1105 and send an authorization request frame to the first computer. Upon receiving the authorization request frame, the first computer can execute S1106 and send an authorization response frame to the second computer. Afterwards, upon receiving the authorization response frame, the second computer may execute S1107 and send an association request frame to the first computer. Upon receiving the association request frame, the first computer may execute S1108 and send an association response frame to the second computer. Afterwards, the first computer may execute S1109 and send a key information frame carrying a random number generated by the first computer to the second computer, thereby completing the first handshake. Afterwards, the second computer may execute S1110 and send a key information frame carrying a random number generated by the second computer and a message integrity check code to the first computer, thereby completing the second handshake. Afterwards, the first computer may execute S1111 and send a key information frame carrying an encryption group temporary key and a message integrity check code to the second computer, thereby completing the third handshake. Afterwards, the second computer may execute S1112 and send a key information frame carrying a message integrity check code to the first computer, thereby completing the fourth handshake, thereby completing the establishment of the first Wi-Fi connection.
[0227] In another possible implementation, a first Wi-Fi connection can be established between the first computer and the second computer based on the above-mentioned Wi-Fi point-to-point connection method. Upon receiving the first target information, the second computer can send a probe request frame to the first computer. Upon receiving the probe request frame, the first computer sends a probe response frame to the second computer. Thereafter, upon receiving the probe response frame, the second computer sends a configuration discovery request frame to the first computer. Upon receiving the configuration discovery request frame, the first computer sends a configuration discovery response frame to the second computer. Thereafter, upon receiving the configuration discovery response frame, the second computer sends a group negotiation request frame to the first computer. Upon receiving the group negotiation request frame, the first computer sends a group negotiation response frame to the second computer. At the same time, the first computer also sends a group negotiation confirmation frame to the second computer. Thereafter, after the first computer and the second computer complete the negotiation and confirmation, it is necessary to establish two Wi-Fi connections between the first computer and the second computer to complete the establishment of the first Wi-Fi connection.
[0228] In the embodiment of the present application, in order to improve the efficiency and success rate of establishing a WIFI connection, a first WIFI connection can be established between the first computer and the second computer based on the above-mentioned method of establishing a WIFI connection between a wireless access point and other devices.
[0229] In some embodiments, when the two roles corresponding to the first Wi-Fi connection are not STA and LegacyAP, such as when the first role is STA and the second role is Go, or when the first role is Go and the second role is STA, the first Wi-Fi connection is established based on the Wi-Fi point-to-point connection method described above, rather than based on the Wi-Fi connection method between the wireless access point and other devices described above. However, since the Go and STA roles are pre-set, the process of establishing the first Wi-Fi connection between the first computer and the second computer does not require the P2P discovery process and the P2P Go negotiation process, and the two Wi-Fi connection processes can be directly completed.
[0230] It should be understood that, generally speaking, LegacyAP and STA are relative roles, while Go and Gc are relative roles. That is, if the first computer plays the role of LegacyAP, the second computer can play the role of STA; if the first computer plays the role of Go, the second computer can play the role of Gc. However, in actual development, by modifying the Wi-Fi connection protocol, it is possible to establish a Wi-Fi connection between STA and Go. Simply by having one role act as a terminal and the other as a router, the specific role is not limited.
[0231] S1008: The first computer establishes a second Wi-Fi connection with the second computer based on the second operating frequency band in the target concurrent frequency band.
[0232] The role of the first computer corresponding to the second Wi-Fi connection is the third role, and the role of the second computer corresponding to the second Wi-Fi connection is the fourth role. The fourth role is relative to the third role, indicating that if the role of one of the two computers is LegacyAP or Go, the role of the other device is STA. For example, the third role can be a station and the fourth role can be a legacy access point, or the third role can be a legacy access point and the fourth role can be a station. For another example, the third role can be a station and the fourth role can be a group owner, or the third role can be a group owner and the fourth role can be a station.
[0233] It should be noted that the first role of the first computer in the first WIFI connection is different from the third role of the first computer in the second WIFI connection, and one of the roles is a site. The second role of the second computer in the first WIFI connection is different from the fourth role of the second computer in the second WIFI connection, and one of the roles is a site. That is, one of the first and second roles is a site, and one of the third and fourth roles is a site. For example, if the first role is a traditional access point, the second role is a site, and the third role is also a site. The fourth role may not be a site, but may be a traditional access point or a group owner. For another example, if the first role is a group owner, the second role is a site, and the third role is also a site.
[0234] In some embodiments, once the first Wi-Fi connection is established, the first computer can directly establish a second Wi-Fi connection with the second computer based on the second operating frequency band in the target concurrent frequency band. Alternatively, the second computer can generate a prompt message and send it to the first computer, notifying it that the first Wi-Fi connection has been established and that a second Wi-Fi connection needs to be established. The prompt message triggers the first computer to establish a second Wi-Fi connection with the second computer. This allows the first computer to promptly monitor the Wi-Fi connection status, saving connection time and improving the efficiency of establishing dual Wi-Fi connections.
[0235] Afterwards, in response to the prompt information, the first computer establishes a second WIFI connection with the second computer based on the second working frequency band in the target concurrent frequency band.
[0236] Of course, the first WIFI connection and / or the second WIFI connection can also be established by the second computer actively with the first computer based on the target concurrent frequency band. For example, when the first WIFI connection is established, the second computer can establish the second WIFI connection with the first computer based on the second operating frequency band. Alternatively, the first WIFI connection and the second WIFI connection can be established concurrently, such as when the first computer is in the process of establishing the first WIFI connection, it can also establish the second WIFI connection, rather than waiting until the first WIFI connection is established before establishing the second WIFI connection.
[0237] It should be noted that since the first computer and the second computer both include at least two antennas, the first computer can use the first antenna and the second antenna in a MIMO manner to establish a first WIFI connection with the second computer. The second computer can also use the third antenna and the fourth antenna in a MIMO manner to establish a second WIFI connection with the second computer. In one case, the third antenna can be the first antenna, and the fourth antenna can be the second antenna, thereby realizing antenna multiplexing, thereby realizing dual WIFI connection data transmission and reducing the number of antennas occupied. In another case, the third antenna is different from the first antenna and the second antenna, and the fourth antenna is different from the first antenna and the second antenna. By using four different antennas, dual WIFI connection data transmission is realized.
[0238] Specifically, the second computer can create a second computer role (or third role) as a traditional access point. Thereafter, the second computer can send second target information to the first computer. The second target information includes a second basic service set identifier, a second service set identifier, and a second target password. The second basic service set identifier is the MAC address of the second computer. The second service set identifier is the device name of the second computer. The second target password is the network password pre-set by the second computer.
[0239] In some embodiments, the second target information may further include information about a second operating channel. The second operating channel represents the highest-quality channel among the operating channels corresponding to the second operating frequency band supported by the second computer. Specifically, the second operating channel represents the highest-quality channel among the operating channels corresponding to the second operating frequency band supported by the second computer when the second computer functions as a traditional access point. The second operating channel may be determined from a list of operating channels of the second computer.
[0240] The quality of the working channel can be represented by the number of hotspots and / or the degree of signal interference in the working channel. The fewer the number of hotspots in the working channel and the lower the degree of signal interference, the higher the quality of the working channel.
[0241] In one example, the quality of a working channel is indicated by the number of hotspots. For each working channel in the second computer's working channel list corresponding to the second working frequency band, the second computer can perform a hotspot scan on that working channel and obtain a scan result corresponding to that working channel, which includes the number of hotspots in that working channel. The second computer can then use the working channel with the fewest hotspots as the second working channel. This can reduce the impact of a large number of hotspots on data transmission, ensuring data transmission speed.
[0242] In another example, the quality of the operating channel is represented by the degree of signal interference. For each operating channel in the second computer's operating channel list corresponding to the second operating frequency band, the second computer can determine the degree of signal interference for that operating channel. The second computer can then use the operating channel with the lowest degree of signal interference as the second operating channel. The degree of signal interference can be determined based on received signal strength; that is, the stronger the received signal strength, the lower the degree of signal interference. This can reduce the impact of significant signal interference on data transmission, ensuring the data transmission rate.
[0243] In another example, the quality of the working channel is represented by the number of hotspots and the degree of signal interference. For each working channel corresponding to the second working frequency band in the working channel list of the second computer, the second computer can determine the signal interference degree and the number of hotspots of the working channel. Afterwards, the second computer can calculate the quality value of the working channel according to E=w1*R+w2*S, where w1 represents the first preset weight, w2 represents the second preset weight, R represents the signal interference degree corresponding to the working channel, S represents the number of hotspots in the working channel, and E represents the quality value of the working channel. The smaller the quality value of the working channel, the higher the quality of the working channel. Afterwards, the second computer can use the working channel with the smallest quality value as the above-mentioned first working channel.
[0244] It is understood that the second computer can send the second target information to the first computer via Bluetooth communication. Afterwards, when the first computer receives the second target information, it can establish a Wi-Fi connection with the second computer on the second working channel, thereby completing the establishment of the second Wi-Fi connection.
[0245] Among them, the process of the first computer establishing the second WIFI connection with the second computer based on the second target information is similar to the process of the second computer establishing the first WIFI connection with the first computer based on the first target information, that is, the second WIFI connection can be established based on the WIFI connection between the wireless access point and other devices, or based on the WIFI point-to-point connection, which will not be repeated here.
[0246] In some embodiments, to improve the efficiency and success rate of establishing the first and second Wi-Fi connections, the two roles corresponding to the first Wi-Fi connection can be a station and a traditional access point, and the two roles corresponding to the second Wi-Fi connection can also be a station and a traditional access point. In other words, both the first and second Wi-Fi connections can be established based on the connection mode of wireless access points.
[0247] S1009, the first computer transmits data to the second computer via the first WIFI connection and the second WIFI connection.
[0248] For example, after the first WIFI connection and the second WIFI connection are established, data can be transmitted between the first computer and the second computer via the first WIFI connection and the second WIFI connection, respectively. The first WIFI connection and the second WIFI connection each use two antennas to transmit data. For example, when the first computer transmits data using the first WIFI connection, the first antenna and the second antenna of the first computer can be used for transmission. When the first computer transmits data using the second WIFI connection, the third antenna and the fourth antenna of the first computer can be used for transmission.
[0249] Specifically, when the first computer sends data to the second computer based on the first WIFI connection, the first computer transmits the data signal through two antennas, and when the second computer receives the data signal, it can receive the data signal through the two antennas. When the first computer sends data to the second computer based on the second WIFI connection, the first computer also transmits the data signal through two antennas, and when the second computer receives the data signal, it can receive the data signal through the two antennas. Similarly, when the first computer receives data sent by the second computer based on the first WIFI connection, the first computer receives the data signal through two antennas. When the first computer receives data sent by the second computer based on the second WIFI connection, the first computer also receives the data signal through two antennas, realizing dual-antenna data transmission of dual WIFI connections, thereby effectively improving data transmission efficiency.
[0250] It should be noted that when the first computer / second computer is connected based on the first WIFI, the two antennas that transmit data signals and the two antennas that receive data signals can be the same two antennas (such as the first and second antennas mentioned above) or two different antennas. Similarly, when the first computer / second computer is connected based on the second WIFI, the two antennas that transmit data signals and the two antennas that receive data signals can be the same two antennas (such as the third and fourth antennas mentioned above) or two different antennas.
[0251] For example, if the operating frequency band corresponding to the first Wi-Fi connection is 5 GHz, and the operating frequency band corresponding to the second Wi-Fi connection is 2.4 GHz, then as can be seen from Table 1 above, the transmission rate corresponding to data transmission between the first and second computers via MIMO is 1774.5 Mbps, which is higher than the transmission rates corresponding to data transmission via only the first Wi-Fi connection, data transmission via only the second Wi-Fi connection, or data transmission via the first and second Wi-Fi connections but using SISO. In this way, transmitting data via dual Wi-Fi connections and multiplexing antennas concurrently can increase data transmission rates, achieve fast data transmission, and enhance the user experience.
[0252] In some embodiments, as shown in FIG14 , a second computer can establish a Bluetooth connection with a first computer. The first computer can then, based on the Bluetooth connection, send the first computer's concurrent frequency band list to the second computer. The second computer can then, based on the Bluetooth connection, send the second computer's concurrent frequency band list to the first computer. The first computer can then create a role (i.e., the first role) for the first operating frequency band in the target concurrent frequency band corresponding to the first computer as a traditional access point. The second computer can create a role (i.e., the second role) for the second operating frequency band corresponding to the second computer as a station. The first and second computers can then establish a first Wi-Fi connection on the first operating frequency band to establish the first Wi-Fi connection. If the first Wi-Fi connection is successfully established, the second computer can send a prompt to the first computer, and the second computer can create the second computer's role (i.e., the fourth role) on the second operating frequency band as a traditional access point. In response to the prompt, the first computer can create a role (i.e., the third role) for the first computer's second operating frequency band as a station. The first and second computers can then establish a second Wi-Fi connection on the second operating frequency band to establish the second Wi-Fi connection. In this way, data is transmitted between the first and second computers via dual Wi-Fi connections, achieving fast data transfer, reducing data transmission time, improving wireless network transmission speeds, and enhancing the user experience. Furthermore, because the first computer establishes two Wi-Fi connections with the second computer, acting as a traditional access point and a station, respectively, this overcomes Windows system port restrictions and prevents transmission through a single Wi-Fi connection from fully utilizing the Wi-Fi chip's four-stream, dual-band, concurrent, high-speed transmission capabilities.
[0253] An embodiment of the present application also provides a computer storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes the various functions or steps executed by the first computer or the second computer in the above-mentioned embodiment.
[0254] An embodiment of the present application further provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the functions or steps executed by the first computer or the second computer in the above embodiment.
[0255] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0256] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0257] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0258] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0259] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0260] The above content is only a specific embodiment of this application, but the scope of protection of this application is not limited to this. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A data transmission method, It is characterized in that include: In response to the first operation, the first device, in the first role, establishes a first WIFI connection with the second device whose role is the second role based on the first working frequency band in the target concurrent frequency band; wherein the first operation is used to trigger the first device to perform data transmission with the second device; the target concurrent frequency band represents two working frequency bands supported by both the first device and the second device; the first role is one of the station STA, the traditional access point LegacyAP and the group owner Go, the second role is in a relative relationship with the first role, and the relative relationship indicates that when the role of one of the two devices is LegacyAP or Go, the role of the other device is STA; The first device establishes a second WIFI connection with a second device having a fourth role in a third role based on a second working frequency band in the target concurrent frequency band; wherein the third role is one of STA, LegacyAP and Go, the third role and the fourth role are in a relative relationship, one of the first role and the third role is STA, and one of the second role and the fourth role is STA; The first device transmits data with the second device based on the first WIFI connection, using a first antenna and a second antenna in the first device; the first antenna and the second antenna are different; The first device transmits data with the second device based on the second WIFI connection, using the third antenna and the fourth antenna in the first device; the third antenna and the fourth antenna are different.
2. The method according to claim 1, It is characterized in that Before the first device establishes a first WIFI connection with the second device having a second role based on the first working frequency band in the target concurrent frequency band in the first role, the method further includes: The first device acquires a second concurrent frequency band list of the second device; the second concurrent frequency band includes at least one concurrent frequency band supported by the second device; The first device determines the same concurrent frequency band from a first concurrent frequency band list and a second concurrent frequency band list of the first device to obtain the target concurrent frequency band; the first concurrent frequency band list includes at least one concurrent frequency band supported by the first device.
3. The method according to claim 2, It is characterized in that The first device determines the same concurrent frequency band from the first concurrent frequency band list and the second concurrent frequency band list of the first device to obtain the target concurrent frequency band, including: The first device determines the same concurrent frequency band from the first concurrent frequency band list and the second concurrent frequency band list; When the number of the same concurrent frequency bands is greater than 1, the first device obtains a standard transmission rate corresponding to each of the same concurrent frequency bands; The first device uses the concurrent frequency band with the highest standard transmission rate as the target concurrent frequency band.
4. The method according to claim 2 or 3, It is characterized in that The method further comprises: The first device establishes a first communication connection with the second device; The first device receives the second concurrent frequency band list sent by the second device based on the first communication connection.
5. The method according to any one of claims 1 to 3, It is characterized in that The first device, in a first role, establishes a first WIFI connection with a second device in a second role based on a first working frequency band in a target concurrent frequency band, including: The first device establishes the first WIFI connection with the second device having the second role on the target working channel corresponding to the first working frequency band in the first role, and the target working channel corresponding to the first working frequency band represents the channel with the highest quality in the channel range corresponding to the first working frequency band, and the quality includes the interference degree of the channel and / or the number of hotspots in the channel.
6. The method according to any one of claims 1 to 3, It is characterized in that The first operation is used to trigger the first device to perform one of the following data transmission operations: a machine replacement cloning operation, a data migration operation, and a file sharing operation.
7. The method according to any one of claims 1 to 3, It is characterized in that The third antenna is the same as the first antenna, and the fourth antenna is the same as the second antenna.
8. The method according to any one of claims 1 to 3, It is characterized in that The first device, in the third role, establishes a second WIFI connection with the second device in the fourth role based on the second working frequency band in the target concurrent frequency band, including: The first device receives a prompt message sent by the second device, where the prompt message is sent by the second device when the first WIFI connection is successfully established; In response to the prompt information, the first device establishes the second WIFI connection with the second device in the third role based on the second working frequency band.
9. The method according to any one of claims 1 to 3, It is characterized in that The first WIFI connection is connected in a point-to-point connection mode or through a wireless access point connection mode; the second WIFI connection is connected in the point-to-point connection mode or through the wireless access point connection mode; wherein the wireless access point connection mode includes a scanning phase, an authentication phase, an association phase and a four-way handshake phase, and the point-to-point connection mode includes one or more of a point-to-point discovery process, a point-to-point Go negotiation process and two WIFI connection processes.
10. An electronic device, It is characterized in that The electronic device is a first device, and the electronic device includes a display screen, a memory, a Bluetooth module, a WIFI module, multiple antennas and one or more processors; the display screen, the memory, the Bluetooth module, the WIFI module, the multiple antennas and the processor are coupled; the Bluetooth module is used for Bluetooth communication, the WIFI module is used for WIFI communication, the display screen is used to display an image generated by the processor, the multiple antennas are used to transmit and / or receive data signals, and the memory is used to store computer program codes, and the computer program codes include computer instructions; when the processor executes the computer instructions, the electronic device executes the method as described in any one of claims 1 to 9.
11. A computer-readable storage medium, It is characterized in that The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 9.
12. A data transmission method, It is characterized in that include: In response to the first operation, the first device determines the same concurrent frequency band from the first concurrent frequency band list and the second concurrent frequency band list of the first device to obtain a target concurrent frequency band; The first concurrent frequency band list includes at least one concurrent frequency band supported by the first device; the second concurrent frequency band includes at least one concurrent frequency band supported by the second device; The first device establishes a first WIFI connection with a second device in a second role based on a first working frequency band in the target concurrent frequency band in a first role; wherein the first operation is used to trigger data transmission between the first device and the second device; the target concurrent frequency band indicates that the first device and the second device The first role is a role among a station STA, a traditional access point Legacy AP and a group owner Go, and the second role is in a relative relationship with the first role, and the relative relationship indicates that when the role of one device of the two devices is Legacy AP or Go, the role of the other device is STA; wherein, for the first WIFI connection, the first device and the second device are directly connected; The first device establishes a second WIFI connection with a second device having a fourth role in a third role based on a second working frequency band in the target concurrent frequency band; wherein the third role is one of STA, Legacy AP and Go, the third role and the fourth role are in a relative relationship, the first role and one of the third role are STA, and the second role and one of the fourth role are STA; wherein, for the second WIFI connection, the first device and the second device are directly connected; The first device transmits data with the second device based on the first WIFI connection, using a first antenna and a second antenna in the first device; the first antenna and the second antenna are different; The first device transmits data with the second device based on the second WIFI connection, using the third antenna and the fourth antenna in the first device; the third antenna and the fourth antenna are different.
13. The method according to claim 12, It is characterized in that The first device determines the same concurrent frequency band from the first concurrent frequency band list and the second concurrent frequency band list of the first device to obtain the target concurrent frequency band, including: The first device determines the same concurrent frequency band from the first concurrent frequency band list and the second concurrent frequency band list; When the number of the same concurrent frequency bands is greater than 1, the first device obtains a standard transmission rate corresponding to each of the same concurrent frequency bands; The first device uses the concurrent frequency band with the highest standard transmission rate as the target concurrent frequency band.
14. The method according to claim 12 or 13, It is characterized in that The method further comprises: The first device establishes a first communication connection with the second device; The first device receives the second concurrent frequency band list sent by the second device based on the first communication connection.
15. The method according to any one of claims 12 to 13, It is characterized in that The first device, in a first role, establishes a first WIFI connection with a second device in a second role based on a first working frequency band in a target concurrent frequency band, including: The first device establishes the first WIFI connection with the second device having the second role on the target working channel corresponding to the first working frequency band in the first role, and the target working channel corresponding to the first working frequency band represents the channel with the highest quality in the channel range corresponding to the first working frequency band, and the quality includes the interference degree of the channel and / or the number of hotspots in the channel.
16. The method according to any one of claims 12 to 13, It is characterized in that The first operation is used to trigger the first device to perform one of the following data transmission operations: a machine replacement cloning operation, a data migration operation, and a file sharing operation.
17. The method according to any one of claims 12 to 13, It is characterized in that The third antenna is the same as the first antenna, and the fourth antenna is the same as the second antenna.
18. The method according to any one of claims 12 to 13, It is characterized in that The first device, in the third role, establishes a second WIFI connection with the second device in the fourth role based on the second working frequency band in the target concurrent frequency band, including: The first device receives a prompt message sent by the second device, where the prompt message is sent by the second device when the first WIFI connection is successfully established; In response to the prompt information, the first device establishes the second WIFI connection with the second device in the third role based on the second working frequency band.
19. The method according to any one of claims 12 to 13, It is characterized in that The first WIFI connection is connected in a point-to-point connection mode or through a wireless access point connection mode; the second WIFI connection is connected in the point-to-point connection mode or through the wireless access point connection mode; wherein the wireless access point connection mode includes a scanning phase, an authentication phase, an association phase and a four-way handshake phase, and the point-to-point connection mode includes one or more of a point-to-point discovery process, a point-to-point Go negotiation process and two WIFI connection processes.
Citation Information
Patent Citations
Systems and methods for concurrent device discovery
CN105027592A
Mobile terminal and communication processing method thereof
CN106410372A
Method for establishing connection between terminal devices and terminal devices
CN112291862A
WiFi scanning control method and related device
CN114867035A
Data transmission method based on Wi-Fi P2P and electronic equipment
CN115022849A
