CN114390501B - Data transmission method and electronic equipment - Google Patents

Data transmission method and electronic equipment Download PDF

Info

Publication number
CN114390501B
CN114390501B CN202210283002.0A CN202210283002A CN114390501B CN 114390501 B CN114390501 B CN 114390501B CN 202210283002 A CN202210283002 A CN 202210283002A CN 114390501 B CN114390501 B CN 114390501B
Authority
CN
China
Prior art keywords
channel
electronic device
module
information
frequency band
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210283002.0A
Other languages
Chinese (zh)
Other versions
CN114390501A (en
Inventor
朱江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210283002.0A priority Critical patent/CN114390501B/en
Priority to CN202211063500.0A priority patent/CN116980867A/en
Publication of CN114390501A publication Critical patent/CN114390501A/en
Application granted granted Critical
Publication of CN114390501B publication Critical patent/CN114390501B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0453Resources in frequency domain, e.g. a carrier in FDMA
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/02Details of telephonic subscriber devices including a Bluetooth interface
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application provides a data transmission method and electronic equipment, and belongs to the technical field of terminals. The method is applied to a first electronic device supporting a first target frequency band capability, and comprises the following steps: when the first electronic equipment acquires that a first target frequency band channel list supported by second electronic equipment is empty, sequentially inquiring whether Wi-Fi connection request information sent by the second electronic equipment is received on the first target frequency band channel supported by the first electronic equipment; if the Wi-Fi connection request information is received on the first channel, establishing Wi-Fi connection with the second electronic equipment in a first target frequency band on the first channel; and receiving data transmitted by the second electronic equipment through the first channel. The method comprises the steps that the electronic equipment sequentially searches for Wi-Fi requests on a target frequency band channel supported by a local terminal and tries to establish Wi-Fi connection with an opposite terminal, and the problem that the probability of establishing the Wi-Fi connection on the target frequency band channel by the two terminals is too low can be solved.

Description

Data transmission method and electronic equipment
Technical Field
The present application relates to the field of terminals, and in particular, to a data transmission method and an electronic device.
Background
When a user changes the machine, the information in the old equipment is often required to be imported into the new equipment. One existing method is to establish a data transmission channel through a clone application (App) on a new device, and backup data on an old device to the new device, so as to achieve the purpose of changing a machine conveniently.
However, when there is more data to be exported in the old device, the data transfer takes longer and is inefficient, resulting in a poor user experience.
Disclosure of Invention
The application provides a data transmission method and electronic equipment, and the method is characterized in that when the electronic equipment cannot acquire a target frequency channel supported by opposite-end equipment, the electronic equipment tries to establish Wi-Fi connection with the opposite end on the target frequency channel supported by the electronic equipment, so that the problem that the probability of establishing the Wi-Fi connection on the target frequency channel by the two parties is too low is solved.
In a first aspect, a method for data transmission is provided, where the method is applied to a first electronic device, and the first electronic device supports a first target frequency band capability, and the method includes:
establishing communication connection with a second electronic device, and acquiring a first channel list of the second electronic device, wherein the first channel list is used for indicating the first target frequency band channel supported by the second electronic device;
when the intersection of the first channel list and the first target frequency band channel supported by the first electronic device is empty, sequentially inquiring whether Wi-Fi connection request information sent by the second electronic device is received on the first target frequency band channel supported by the first electronic device, wherein the Wi-Fi connection request information is used for requesting to connect with a Wi-Fi hotspot of the first electronic device in the first target frequency band;
if the Wi-Fi connection request information is received on a first channel, establishing Wi-Fi connection with the second electronic equipment on the first channel at a first target frequency band, wherein the first channel is a channel on one first target frequency band supported by the first electronic equipment;
and receiving data transmitted by the second electronic equipment through the first channel.
It should be understood that, in the embodiment of the present application, a case that an intersection of the first channel list and the second channel list is empty may mainly refer to: the second electronic device does not successfully query the first target frequency band channel supported by itself, so that the first channel list used for indicating the first target frequency band channel supported by the second electronic device is empty, and further the intersection of the first channel list and the second channel list is empty. That is to say, the intersection of the first channel list and the second channel list in the embodiment of the present application is empty, specifically, the intersection of the first channel list and the second channel list is empty, so that the intersection of the first channel list and the second channel list is empty.
According to the data transmission method provided by the implementation manner, under the condition that the 5G channel supported by the second electronic device cannot be acquired, the first electronic device may sequentially search for the 5G Wi-Fi connection request of the second electronic device on the 5G channel supported by the local terminal, and try to establish 5G Wi-Fi connection with the second electronic device until the 5G channel which can be successfully established by both sides is acquired. The method can improve the possibility of transmitting the clone data on the 5G WiFi channel, improve the data transmission efficiency and improve the use experience of users.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes:
if the Wi-Fi connection request information sent by the second electronic equipment is not received, establishing Wi-Fi connection with the second electronic equipment on a second channel, wherein the second channel is a channel on a second target frequency band commonly supported by the first electronic equipment and the second electronic equipment.
According to the method provided by the implementation manner, if after the attempt, the 5G channel supported by the first electronic device cannot enable both the first electronic device and the second electronic device to successfully establish connection, the first electronic device can establish Wi-Fi connection with the second electronic device on the 2.4G channel, so that the successful transmission of data is ensured, and the use experience of a user is improved.
With reference to the first aspect, in certain implementation manners of the first aspect, when an intersection between the first channel list and the first target frequency band channel supported by the first electronic device is empty, sequentially querying, on the first target frequency band channel supported by the first electronic device, whether Wi-Fi connection request information sent by the second electronic device is received, specifically including:
when the intersection of the first channel list and the second channel list is empty, sending capability query information to the second electronic device, where the capability query information is used to query whether the second electronic device supports the first target frequency band capability;
receiving capability response information sent by the second electronic device, where the capability response information is used to indicate that the second electronic device supports the first target frequency band capability;
and sequentially inquiring whether the Wi-Fi connection request information sent by the second electronic equipment is received on the first target frequency band channel supported by the first electronic equipment.
According to the data transmission method provided by the implementation manner, whether the second electronic device supports the first target frequency band capability is firstly inquired, and under the supporting condition, the Wi-Fi connection request messages are sequentially searched on the first target frequency band channel supported by the local terminal, so that the success rate of successfully searching the Wi-Fi connection request messages on the first target frequency band by the first electronic device can be provided, and the success rate of successfully establishing the connection between the first electronic device and the second electronic device on the first target frequency band is further improved.
With reference to the first aspect, in some implementation manners of the first aspect, the sequentially querying, on the first target frequency band channel supported by the first electronic device, whether to receive Wi-Fi connection request information sent by the second electronic device specifically includes:
waiting for a preset target duration on the first target frequency band channel supported by the first electronic device in sequence;
and detecting whether the Wi-Fi connection request information sent by the second electronic equipment is received or not in the target time length.
With reference to the first aspect, in some implementation manners of the first aspect, if the Wi-Fi connection request information sent by the second electronic device is not received, establishing a second target frequency band Wi-Fi connection on a second channel with the second electronic device specifically includes:
if the Wi-Fi connection request information sent by the second electronic equipment is not received within the preset time length, establishing Wi-Fi connection with the second electronic equipment on a second channel at a second target frequency band; alternatively, the first and second electrodes may be,
and if all the first target frequency band channels supported by the first electronic equipment are traversed and the Wi-Fi connection request information sent by the second electronic equipment is not received, establishing Wi-Fi connection with the second electronic equipment on a second target frequency band on a second target channel.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes:
receiving a first operation input by a user;
responding to the first operation, displaying a first interface, wherein the first interface comprises a two-dimensional code, and the two-dimensional code is used for providing an SSID (service set identifier) of a Wi-Fi hotspot of the first electronic equipment in the first target frequency band and a corresponding password.
With reference to the first aspect, in some implementation manners of the first aspect, the obtaining a first channel list of a second electronic device specifically includes:
sending first channel query information to the second electronic device, where the first channel query information is used to query the first target frequency band channel supported by the second electronic device;
receiving the first channel response information sent by the second electronic device, where the first channel response information includes the first channel list of the second electronic device.
With reference to the first aspect, in some implementation manners of the first aspect, the first target frequency band is a 5G frequency band, and the second target frequency band is a 2.4G frequency band.
With reference to the first aspect, in certain implementations of the first aspect, the first electronic device includes a first application and a first Wi-Fi module, the first application includes a first user experience UX display module, a first bluetooth module, a first clone feature module, and a first channel negotiation module,
the obtaining of the first channel list of the second electronic device specifically includes:
the first channel negotiation module sends channel query information to the first Bluetooth module, wherein the channel query information is used for querying the first target frequency band channel supported by the second electronic equipment;
the first Bluetooth module receives the channel query information and sends the channel query information to a second Bluetooth module of the second electronic device;
the first Bluetooth module receives channel response information sent by the second Bluetooth module, wherein the channel response information comprises the first channel list;
the first Bluetooth module sends the channel response information to the first channel negotiation module;
and the first channel negotiation module acquires a first channel list of the second electronic equipment according to the channel response information.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes:
the first UX display module receives a first operation input by a user, wherein the first operation is used for triggering the first electronic device to start a receiving end process, and the receiving end process comprises the step of establishing Bluetooth connection;
responding to the first operation, the first UX display module sends receiving end flow triggering information to the first clone characteristic module;
responding to the receiving end process triggering information, the first clone characteristic module generates two-dimension code information and sends the two-dimension code information to the first UX display module, wherein the two-dimension code information comprises an SSID (service set identifier) and a corresponding password of the Wi-Fi hotspot of the first electronic device in the first target frequency band.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes:
in response to sending the two-dimension code information to the first UX display module, the first clone character module sends Bluetooth starting information to the first Bluetooth module;
the first clone characteristic module sends Bluetooth starting information to the first Bluetooth module;
and responding to the Bluetooth starting information, and the first Bluetooth module establishes Bluetooth connection to a second Bluetooth module of the second electronic equipment.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes:
the first Bluetooth module sends Bluetooth connection information to the first channel negotiation module, and the Bluetooth connection establishment information is used for indicating that Bluetooth connection establishment is completed;
and responding to the Bluetooth connection establishment information, and the first channel negotiation module sends channel inquiry information to the first Bluetooth module.
With reference to the first aspect, in certain implementations of the first aspect, the method specifically includes:
the first channel negotiation module sends second channel query information to the first Wi-Fi module, wherein the second channel query information is used for querying the first target frequency band channel supported by the first electronic equipment;
the first Wi-Fi module sends second channel response information to the first channel negotiation module, the second channel response information including the second channel list.
With reference to the first aspect, in certain implementation manners of the first aspect, when an intersection between the first channel list and the first target frequency band channel supported by the first electronic device is empty, sequentially querying, on the first target frequency band channel supported by the first electronic device, whether Wi-Fi connection request information sent by the second electronic device is received, specifically including:
when the intersection of the first target frequency band channels commonly supported by the first electronic device and the second electronic device is acquired to be empty according to the first channel list and the second channel list, the first channel negotiation module sends channel detection indication information to the first channel detection module, wherein the channel detection indication information is used for indicating that the Wi-Fi request message is inquired on the first target frequency band channel supported by the first electronic device in sequence;
responding to the detection indication information, the first channel detection module sequentially inquires whether Wi-Fi connection request information sent by the second electronic device is received on the first target frequency band channel supported by the first electronic device.
With reference to the first aspect, in some implementation manners of the first aspect, the sending capability query information to the second electronic device when an intersection of the first channel list and the second channel list is empty specifically includes:
the first channel negotiation module sends the capability inquiry information to the first Bluetooth module;
and the first Bluetooth module sends the capability inquiry information to a second Bluetooth module, wherein the second Bluetooth module is a Bluetooth module in the second electronic device.
With reference to the first aspect, in some implementation manners of the first aspect, the receiving the capability response information sent by the second electronic device specifically includes:
the first Bluetooth module receives the capability response information sent by the second Bluetooth module, wherein the capability response information is used for indicating that the second electronic device supports the first target frequency band;
and the first Bluetooth module sends the capability response information to the first channel negotiation module.
With reference to the first aspect, in some implementation manners of the first aspect, if the Wi-Fi connection request information sent by the second electronic device is not received, establishing a Wi-Fi connection with the second electronic device in a second channel in a second target frequency band, specifically including:
if the Wi-Fi connection request information sent by the second electronic equipment is not received, the first channel negotiation module closes information to a first target frequency band Wi-Fi hotspot of the first Wi-Fi module;
responding to the first target frequency band Wi-Fi hotspot closing information, and closing the first target frequency band Wi-Fi hotspot by the first Wi-Fi module;
the first channel negotiation module starts information to a Wi-Fi hotspot of a second target frequency band of the first Wi-Fi module;
responding to the Wi-Fi hotspot starting information of the second target frequency band, starting the Wi-Fi hotspot of the second target frequency band by the first Wi-Fi module, and establishing Wi-Fi connection between the first Wi-Fi module and a second Wi-Fi module of the second electronic equipment on the second channel.
With reference to the first aspect, in some implementation manners of the first aspect, the first electronic device further includes a first display screen, and the displaying a first interface in response to the first operation, where the first interface includes a two-dimensional code, specifically includes:
and after receiving the two-dimension code information, the first UX display module indicates the first display screen to display a first interface, wherein the first interface comprises the two-dimension code.
In a second aspect, a method for data transmission is provided, where the method is applied to a second electronic device, and the second electronic device supports a first target frequency band capability, and the method includes:
acquiring an SSID (service set identifier) of a Wi-Fi hotspot of the first electronic equipment in the first target frequency band and a corresponding password;
sending a Wi-Fi connection request message on the first target frequency band channel supported by the second electronic device, wherein the Wi-Fi connection request message comprises an SSID (service set identifier) of a Wi-Fi hotspot of the first electronic device in the first target frequency band and a corresponding password;
receiving a Wi-Fi connection response message sent by the first electronic device through a first channel, and establishing a first target frequency band Wi-Fi connection with the first electronic device on the first channel, where the first channel is determined by the first electronic device by sequentially inquiring whether Wi-Fi connection request information sent by the second electronic device is received on the first target frequency band channel supported by the first electronic device, and the first channel is a channel on one of the first target frequency bands supported by the first electronic device;
and transmitting data to the first electronic equipment through the first channel.
With reference to the second aspect, in certain implementations of the second aspect, the method further includes:
if the Wi-Fi connection with the first electronic equipment on the first channel is not successfully established, the Wi-Fi connection with the first electronic equipment on a second channel is established, and the second channel is a certain second target frequency band channel commonly supported by the first electronic equipment and the second electronic equipment.
With reference to the second aspect, in certain implementations of the second aspect, the method further includes:
receiving capability query information sent by the first electronic device, wherein the capability query information is used for querying whether the second electronic device supports the first target frequency band;
and sending capability response information to the first electronic device, wherein the capability response information is used for indicating that the second electronic device supports the first target frequency band.
With reference to the second aspect, in certain implementations of the second aspect, the method further includes:
receiving first channel query information sent by the first electronic device, where the first channel query information is used to query the first target frequency band channel supported by the second electronic device;
responding to the first channel query information, and querying the first target frequency band channel supported by the second electronic equipment;
and when the query fails, sending a first channel list to the first electronic device, wherein the first channel list comprises a first target frequency channel which is empty.
With reference to the second aspect, in certain implementations of the second aspect, the method further includes:
receiving a second operation input by the user;
responding to the second operation, and displaying a second interface, wherein the second interface comprises a two-dimensional code scanning area;
and scanning the two-dimensional code displayed by the first electronic equipment through the second interface, and extracting the SSID and the corresponding password of the Wi-Fi hotspot of the first electronic equipment in the first target frequency band, which are provided by the two-dimensional code.
With reference to the second aspect, in some implementation manners of the second aspect, the first target frequency band is a 5G frequency band, and the second target frequency band is a 2.4G frequency band.
With reference to the second aspect, in some implementations of the second aspect, the second electronic device includes a second application and a second Wi-Fi module, the second application includes a second UX display module, a second clone feature module, a second bluetooth module, and a second channel negotiation module,
the sending the first channel list to the first electronic device specifically includes:
the second Bluetooth module receives first channel query information sent by a first Bluetooth module of the first electronic device, wherein the first channel query information is used for querying the first target frequency band channel supported by the second electronic device;
the second Bluetooth module sends the first channel query information to the second channel negotiation module;
responding to the first channel query information, the second channel negotiation module queries the second Wi-Fi module for the first target frequency band supported by the second electronic device;
when the query fails, the second channel negotiation module generates first channel response information, wherein the first channel response information comprises a first channel list and the first channel list is empty;
the second channel negotiation module sends the first channel response information to the second Bluetooth module;
and the second Bluetooth module receives the first channel response information sent by the second channel negotiation module and sends the first channel response information to the first Bluetooth module.
With reference to the second aspect, in some implementations of the second aspect, the second electronic device further includes a second display screen and a camera, and the method further includes:
the second UX display module receives a second operation input by a user;
responding to the second operation, and sending end flow starting information to the second clone characteristic module by the second UX display interface;
responding to the sending end flow starting information, the second clone characteristic module indicates the camera to be started, and sends two-dimensional code scanning interface starting information to the second UX display module;
and responding to the two-dimension code scanning interface starting information, and the second UX display module indicates a second display screen to display a second interface, wherein the second interface comprises the two-dimension code scanning area.
With reference to the second aspect, in some implementations of the second aspect, the sending the Wi-Fi connection request message specifically includes:
after the second electronic device scans the two-dimensional code displayed by the first electronic device, the second UX display module acquires the SSID of the Wi-Fi hotspot of the first electronic device in the first target frequency band and a corresponding password, and sends the SSID of the Wi-Fi hotspot and the corresponding password to the second clone characteristic module;
the second clone characteristic module sends the SSID of the Wi-Fi hotspot and a corresponding password to the second channel negotiation module;
in response to the SSID of the Wi-Fi hotspot and the corresponding password, the second channel negotiation module instructs the second Wi-Fi module to attempt to connect to the Wi-Fi hotspot;
the second Wi-Fi module sends the Wi-Fi connection request message.
With reference to the second aspect, in some implementation manners of the second aspect, the receiving the capability query information sent by the first electronic device specifically includes:
and the second Bluetooth module receives the capability inquiry information sent by the first Bluetooth module of the first electronic device.
With reference to the second aspect, in some implementations of the second aspect, the sending the capability response information to the first electronic device specifically includes:
the second Bluetooth module sends the capability inquiry information to the second channel negotiation module;
responding to the capability query information, the second channel negotiation module queries the second Wi-Fi module for the first target frequency band capability of the second electronic device;
the second Wi-Fi module acquires the first target frequency band capability of the second electronic device and sends a query result to the second channel negotiation module, wherein the query result indicates that the second electronic device supports the first target frequency band capability;
the second channel negotiation module generates the capability response information according to the query result of the first target frequency band capability and sends the capability response information to the second Bluetooth module;
and the second Bluetooth module sends the capability response information to the first Bluetooth module of the first electronic device.
In a third aspect, an electronic device is provided, including: one or more processors; one or more memories; the one or more memories store one or more computer programs comprising instructions that, when executed by the one or more processors, cause the electronic device to perform the method as described in any implementation of the first or second aspects.
In a fourth aspect, there is provided a computer-readable storage medium storing a computer-executable program which, when invoked by a computer, causes the computer to perform the method according to any of the implementations of the first or second aspect.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method according to any of the implementations of the first or second aspect.
Drawings
FIG. 1 is a schematic flow diagram of data cloning between old and new devices.
Fig. 2 is a schematic diagram of a system architecture applicable to a data transmission method according to an embodiment of the present disclosure.
Fig. 3 is a schematic structural diagram of a first electronic device 100 according to an embodiment of the present disclosure.
Fig. 4 is a block diagram of a software structure of a first electronic device 100 according to an embodiment of the present disclosure.
Fig. 5A to 5C are some GUI diagrams that may be involved in the data transmission method according to the embodiment of the present application.
Fig. 6 is a schematic view of a two-dimensional code scanning interface according to an embodiment of the present application.
Fig. 7 is a schematic diagram illustrating data flow interaction among modules when a data transmission method is executed according to an embodiment of the present application.
Fig. 8 is a timing diagram of a method for data transmission according to an embodiment of the present application.
Fig. 9 is a schematic flowchart of a method for data transmission according to an embodiment of the present application.
Fig. 10 is a schematic flow chart of another data transmission method according to an embodiment of the present application.
Fig. 11 is a schematic flow chart of another data transmission method according to an embodiment of the present application.
Fig. 12 is a schematic flow chart of another method for data transmission according to an embodiment of the present application.
Fig. 13 is a schematic flow chart of another data transmission method according to an embodiment of the present application.
Fig. 14 is a schematic flowchart of another data transmission method according to an embodiment of the present application.
Fig. 15 is a schematic flow chart of another data transmission method according to an embodiment of the present application.
Fig. 16A to 16D are schematic diagrams of GUIs that may be involved in some data transmission processes provided by embodiments of the present application.
Fig. 17 is a schematic flow chart of another method for data transmission according to an embodiment of the present application.
Detailed Description
It is noted that the terminology used in the description of the embodiments of the present application is for the purpose of describing particular embodiments of the present application only and is not intended to be limiting of the present application. In the description of the embodiments of the present application, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" herein is merely an associative relationship describing an associated obstacle, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality" means two or more, and "at least one", "one or more" means one, two or more, unless otherwise specified.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a definition of "a first" or "a second" feature may explicitly or implicitly include one or more of the features.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Wi-Fi (Wireless-Fidelity) refers to Wi-Fi operating in the 5GHz (5150 MHz-5825 MHz) radio frequency band and using the Institute of Electrical and Electronics Engineers (IEEE) standard. With the fact that 2.4G frequency bands used by Wi-Fi networks are more crowded and cannot meet development requirements, 5G frequency bands are opened in various countries successively, and compared with 2.4G Wi-Fi, 5G Wi-Fi has a higher wireless transmission speed. For example, the 2.4G channel and 5G channel information involved in different Wi-Fi standards specified by IEEE may be as shown in table 1:
TABLE 1
Figure 45635DEST_PATH_IMAGE001
At present, most of 5G Wi-Fi channels belong to military and civil mixed use, the development condition is complex, for example, the open 5G Wi-Fi channels in different regions are different; 5G Wi-Fi channel regulations in different countries may also change over time; also, for example, channels in the 5G band are divided into indoor channels and outdoor channels, wherein some countries stipulate that indoor channels cannot be used by devices operating outdoors, and so on. Different regulations cause the availability of 5G Wi-Fi channels to be different at different times in different countries and under different scenarios.
When new and old equipment are cloned by changing the machine, if the data quantity needing to be backed up is large, the 5G frequency band is used for data transmission, and the data transmission efficiency is greatly improved. Considering that the 5G frequency band is complex to use, when data cloning is performed in the 5G frequency band, new and old devices need to negotiate to determine a consistent 5G channel for interaction. In a possible implementation manner, the new device and the old device may select a certain channel from an intersection of 5G channels supported by both the new device and the old device for interaction, so as to implement data cloning on a 5G frequency band. The process may be referred to in particular by the flow chart shown in fig. 1.
Illustratively, as shown in fig. 1, a schematic flow chart of data transmission between old and new devices is shown. The process comprises the following steps:
s101 (a), the new equipment inquires a supported 5G channel list;
s101 (b), the old equipment inquires a supported 5G channel list;
s102, the old equipment sends a 5G channel list supported by the old equipment to the new equipment;
s103, the new device compares whether the 5G channel lists respectively supported by the new device and the old device have intersection or not;
there are two cases of alignment in this step: case 1, the two channels have an intersection; in case 2, there is no intersection between the two channels. Wherein:
if the comparison result is case 1, step S104 is executed, that is, the new device and the old device perform data transmission on the 5G channel supported by both sides;
if the comparison result is case 2, step S105 is executed, that is, the new device and the old device perform data transmission on the 2.4G channel.
The data transmission process shown in fig. 1 can be implemented by an application (App) installed on the new device and the old device (e.g., a clone application), and the process needs to be implemented on the basis that the clone application can obtain a list (or set) of 5G channels supported by the old device. However, in practical applications, some systems do not provide a standard interface for a chip 5G channel, and at this time, if a clone application installed on an old device is a third-party App, the clone application cannot query a 5G channel list supported by the old device, and a comparison between a new device and the old device cannot confirm a 5G channel commonly supported by both devices.
In view of the above problems, an embodiment of the present application provides a data transmission method, where in a case where a 5G channel list supported by an old device cannot be obtained, a new device searches for a Wi-Fi connection request of an old device end on a 5G channel supported by the new device according to a preset rule, and when a Wi-Fi connection request sent by the old device is successfully searched on a certain channel, a Wi-Fi connection is established with an opposite end, so that a possibility that the new device and the old device perform clone data transmission on the 5G channel is improved, and user experience is improved.
Exemplarily, as shown in fig. 2, a schematic diagram of a system architecture to which a data transmission method provided in the embodiment of the present application is applicable is shown. The system architecture includes a first electronic device 100 and a second electronic device 200.
In some embodiments, the first electronic device 100 may be, for example, a receiving device for cloning data, and the first electronic device 100 may also be described as a receiving device or a receiving end below. For example, the first electronic device 100 may be installed with a clone application (e.g., a switch clone App), which may be used for interacting with a user, such as receiving a switch clone request input by the user, presenting the user with an old device type in which data to be transmitted is located, prompting the user for progress of data transmission, and so on. In this embodiment, the clone application may call a 5G channel list query interface of the first electronic device to query the 5G channels supported by the first electronic device 100. In addition, the first electronic device 100 may also have a bluetooth (bluetooth) communication capability, through which the first electronic device 100 may establish a bluetooth connection with the second electronic device 200; the first electronic device 100 supports Wi-Fi communication capabilities, which may include Wi-Fi communication capabilities over a 2.4G band, or Wi-Fi communication capabilities over a 5G band.
In some embodiments, the second electronic device 200 may be a sending device of clone data, and is used to send backup data to the first electronic device 100, and the second electronic device 200 may also be described as a sending device or a sending end below. For example, the second electronic device 200 may be installed with a clone application, which may be a third party application of the second electronic device 200 when the type of the second electronic device 200 is not the same as the type of the first electronic device 100. In this embodiment, the second electronic device 200 may not have a general interface for querying the 5G channel, that is, the clone application cannot actively query the 5G channel supported by the second electronic device 200. In addition, the second electronic device 200 may support a bluetooth communication capability, and may be capable of establishing a bluetooth connection with the first electronic device 100 through the bluetooth communication capability; the second electronic device may also support Wi-Fi communication capabilities, which may be Wi-Fi communication capabilities on a 2.4G frequency band or Wi-Fi communication capabilities on a 5G frequency band.
In some embodiments, the second electronic device 200 may be, for example, an old device used by the user in the past, and the first electronic device 100 may be, for example, a new device newly acquired by the user to replace the second electronic device 200. For example, the first electronic device 100 and the second electronic device 200 may be, for example, a mobile phone, a tablet computer, a wearable device, an in-vehicle device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and other electronic devices, and the embodiment of the present application does not set any limit to a specific type of the first electronic device 100 and the second electronic device 200.
Exemplarily, as shown in fig. 3, a schematic structural diagram of a first electronic device 100 provided in the embodiment of the present application is shown.
The first electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation to the first electronic device 100. In other embodiments of the present application, the first electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), 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), etc. Wherein, the different processing units may be independent devices or may be integrated in one or more processors.
Wherein the controller may be a neural center and a command center of the first electronic device 100. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (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, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, such that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement the touch function of the first electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may communicate audio signals to the wireless communication module 160 via the I2S interface, enabling answering of calls via a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, audio module 170 and wireless communication module 160 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 with peripheral devices such as the display screen 194, the camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, the processor 110 and the camera 193 communicate through a CSI interface to implement the photographing function of the first electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the first electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the first electronic device 100, and may also be used to transmit data between the first electronic device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other terminals, such as AR devices, etc.
It should be understood that the connection relationship between the modules according to the embodiment of the present invention is only illustrative and does not limit the structure of the first electronic device 100. In other embodiments of the present application, the first electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the first electronic device 100. The charging management module 140 may also supply power to the terminal through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the first electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The mobile communication module 150 may provide a solution including wireless communication of 2G/3G/4G/5G, etc. applied to the first electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the first electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
The first electronic device 100 implements the display function through the GPU, the display screen 194, and the application processor. The display screen 194 is used to display images, video, and the like.
The first electronic device 100 may implement a photographing function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, and the application processor, etc.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the first electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy. Video codecs are used to compress or decompress digital video. The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the first electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card. The internal memory 121 may be used to store computer-executable program code, which includes instructions.
The first electronic device 100 can implement an audio function through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playing, recording, etc.
For example, the software system of the first electronic device 100 may adopt a hierarchical architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention uses an Android system with a hierarchical architecture as an example to exemplarily explain a software structure of the first electronic device 100. Fig. 4 is a block diagram of a software structure of the first electronic device 100 according to the embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages. As shown in fig. 4, the application packages may include cameras, calendars, WLANs, maps, bluetooth, music, gallery, talk and clone applications, etc. The clone application may include a user experience (UX) display module, a clone property module, a bluetooth module, a channel negotiation module, and the like.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions. As shown in FIG. 4, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide the communication function of the first electronic device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a brief dwell, and does not require user interaction. Such as a notification manager used to notify download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scrollbar text in a status bar at the top of the system, such as a notification of a running application in the background, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt tone is given, the terminal vibrates, and an indicator light flashes.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application layer and the application framework layer as binary files. The virtual machine is used for performing the functions of barrier life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), Wi-Fi modules, and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The Wi-Fi module is used for establishing a hotspot on a Wi-Fi channel, such as a Wi-Fi hotspot on a 2.4G channel or a 5G channel.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The data transmission method provided by the embodiment of the application is suitable for an application scene that when new and old devices are subjected to clone replacement, the new mobile phone has the capacity of providing a 5G Wi-Fi hotspot, the new and old devices try to establish 5G Wi-Fi connection through the 5G Wi-Fi hotspot, and clone data transmission is performed by using a 5G channel. When a user needs to migrate data on old equipment to new equipment, the method for data transmission provided by the embodiment of the application can improve the possibility that the two parties transmit data on a 5G channel, thereby realizing the improvement of data transmission efficiency.
For example, as shown in fig. 5A to 5C, some Graphical User Interfaces (GUIs) that may be involved in the data transmission process provided in the embodiment of the present application are schematically illustrated. For convenience of understanding, the GUI shown in fig. 5A to 5C is used as an interface in the first electronic device 100, and the first electronic device 100 is a new mobile phone as an example for description.
In some embodiments, the new handset is installed with a change machine clone App, which may be a factory-owned application of the new handset (e.g., an application built into the handset manufacturer according to the android native scheme). After the user opens the switch machine cloning App on the main interface of the new mobile phone, as shown in fig. 5A, the new mobile phone may display the main interface after the switch machine cloning App is opened.
For example, a status bar may be displayed above the App host interface of the clone switch, and the status bar may include: one or more signal strength indicators for mobile communication signals (or cellular signals), one or more signal strength indicators for Wi-Fi signals, a battery level indicator for a handset, a time indicator, etc. Under the status bar, the switch machine cloning APP main interface may further include a relevant description of the switch machine cloning function, such as "migrating data of contacts, pictures, schedules, etc. to a new device at a fire speed" shown in fig. 5A; a device type selection area is also included below the functional description, in which the device types include a new device (this is a new device (reception data) "as shown in fig. 5A) and an old device (this is an old device (transmission data)" as shown in fig. 5A). In some embodiments, if the user currently operates the new mobile phone, the user may click and select an icon corresponding to "this is new equipment"; if the user currently operates the old mobile phone, the icon corresponding to the old equipment can be clicked and selected. For example, if the currently operated mobile phone is a new device, the user may input an operation 501 for an icon corresponding to "this is a new device", where the operation 501 may be, for example, a new device type selection operation such as clicking, long-pressing, and the like; when the new handset receives a new device selection operation 501 input by the user, an old device type selection page as shown in fig. 5B may be displayed in response to the operation 501.
For example, as shown in fig. 5B, the old device type selection interface may include a plurality of old device types for the user to select, such as the same old device type as the new handset (if the new handset is a glory handset, then one of the old device types displayed by the interface may also be glory), Android ® Old device type (e.g. other Android than glory if old handset ® The type can be corresponded to when using the mobile phone), iOS ® Old device type (e.g. old handset using iOS if it is iPhone, iPad, etc ® The devices of the system may correspond to the type).
In some embodiments, the old handset is assumed to be other Android of a different type than the new handset ® The device, the user may input an operation 502 for an icon corresponding to another android device, where the operation 502 may be, for example, an old device type selection operation such as clicking, long pressing, and the like; when the new handset receives an old device type selection operation 502 input by the user, an old device selection interface as shown in fig. 5C may be displayed in response to the operation.
For example, as shown in fig. 5C, the old device selection interface may include a description for guiding the user to perform a connection operation on the old handset, such as "open a ' clone changed machine ' on the old device ', select ' this is the old device ', scan the two-dimensional code below to establish a connection"; the two-dimensional code required for establishing the connection between the new mobile phone and the old mobile phone can be displayed below the description content, wherein the two-dimensional code can be used for indicating a Service Set Identifier (SSID) and a password of a Wi-Fi hotspot of the new mobile phone, so that the new mobile phone and the old mobile phone can negotiate a Wi-Fi channel in the following process. According to the description information, the user can scan the two-dimensional code on the new mobile phone through the switch clone APP installed on the old mobile phone, wherein a schematic diagram of a two-dimensional code scanning interface of the old mobile phone can be as shown in fig. 6.
In response to the operation of scanning the two-dimensional code of the new mobile phone by the old mobile phone, the new mobile phone can establish a Bluetooth connection with the old mobile phone. Illustratively, the bluetooth connection establishment procedure may include: when the new mobile phone is not matched with the old mobile phone and the old mobile phone scans the two-dimensional code displayed by the new mobile phone, triggering the new mobile phone to open the Bluetooth function; then, the new mobile phone can send Bluetooth broadcast to the periphery; when the old mobile phone is in an inquiry Bluetooth scanning (inquiry scan) state, the old mobile phone can scan the Bluetooth broadcast sent by the new mobile phone; in response to the scanned Bluetooth broadcast, the old mobile phone can send a Bluetooth response to the new mobile phone, so that the new mobile phone acquires the old mobile phone as a pairable device option; the new handset may then send a page request to the old handset. The old mobile phone can monitor the paging request of the new mobile phone at a certain frequency modulation frequency within a fixed time window at fixed intervals, and after the paging request of the new mobile phone is monitored, the old mobile phone can send a slave paging response (slave page response) to the new mobile phone at the next time slot; after receiving the slave paging response of the old mobile phone, the new mobile phone can send a master paging response (master page response) to the old mobile phone in the next time slot; and then, completing pairing authentication of the old mobile phone and the new mobile phone, and establishing Bluetooth connection for data transmission.
It should be noted that, in the bluetooth connection process, the new mobile phone and the old mobile phone may establish the bluetooth connection in an implicit manner, that is, when the bluetooth connection is triggered to be established, the new mobile phone and the old mobile phone may not prompt the user to open information such as bluetooth, but may automatically start the bluetooth function, and complete the bluetooth connection establishment process without the user's perception.
In some embodiments, in order to avoid the problem that the bluetooth connection cannot be successfully established through the two-dimensional code, the old device selection interface may further include a prompt area for manually establishing the bluetooth connection between the new mobile phone and the old mobile phone. The prompt area may specifically include a description related to manual bluetooth connection establishment, such as "if scanning the two-dimensional code fails to connect, please click a manual connection below the scan interface of the old device, and connect to the WLAN below", and the local area network WLAN connection information and the password may be displayed below the description content. In addition, for the case where the old handset does not have the "clone-changed" application installed, the old device selection interface may also include an install link for the "clone-changed" application. For example, when the user inputs a selection operation for the "clone-changed" installation link (i.e., "please click here to install") in fig. 5C, the new handset may send installation information of the "clone-changed" application to the old handset through bluetooth communication, so that the old handset installs the "clone-changed" application based on the installation information.
It should be noted that the GUI schematic diagrams shown in fig. 5A to 5C are only examples, and in practical applications, the interface may further include other more icons or description information, which is not limited in this embodiment of the application.
It should be further noted that the method for data transmission provided in the embodiments of the present application may be executed by a plurality of modules in the first electronic device and the second electronic device. In order to more clearly understand the method for data transmission provided by the embodiment of the present application, the following describes data flow and operation of interaction between modules on a device when implementing the method, with reference to the accompanying drawings.
Illustratively, as shown in fig. 7, a schematic diagram of data flow interaction among modules when a data transmission method is executed is provided in this embodiment of the present application.
As shown in fig. 7, the first electronic device is installed with a clone application, which may include a first UX display module, a first clone characteristic module, a first discovery connection component, and a first transmission module, wherein the first discovery connection component may include a first bluetooth module, a first channel negotiation module, and a first connection module. The clone application may be located at an application layer of an Android system layered architecture of the first electronic device (as shown in fig. 4). In addition, the first electronic device may further include a first channel detection module and a first Wi-Fi module, which may be located at a system layer of the Android system layered architecture of the first electronic device (as shown in fig. 4).
Similarly, the second electronic device is also installed with a clone application, which may include a second UX display module, a second clone character module, a second discovery connection component, and a second transmission module, wherein the second discovery connection component may include a second bluetooth module, a second channel negotiation module, and a second connection module. The clone application may be located in an application layer of the Android system layered architecture of the second electronic device. In addition, the second electronic device can further comprise a second Wi-Fi module, and the second Wi-Fi module can be located at a system layer of the Android system layered architecture of the second electronic device.
In some embodiments, when the method for data transmission provided by the embodiment of the present application is executed, the first clone character module of the first electronic device may receive a first operation input by a user via the first UX display module, where the first operation may be used to trigger the first electronic device to start a receiving end process, and the receiving end process may include, for example, displaying a two-dimensional code, establishing a bluetooth connection with an opposite second electronic device, and the like. For example, the first operation may include an operation of the user opening the receiving-end cloning application, an operation of selecting an old device type (which may correspond to operation 502 shown in fig. 5B), and the like. In response to the first operation, the first clone characteristic module generates a two-dimensional code, and sends the two-dimensional code to the first UX display module, where the two-dimensional code includes Wi-Fi connection information of the first electronic device, such as an SSID of a 5G Wi-Fi hotspot and corresponding password information.
In some embodiments, the second clone character module of the second electronic device may receive a second operation input by the user through the second UX display module, where the second operation is used to trigger the second electronic device to start a sending end process, and the sending end process may include, for example, displaying a two-dimensional code scanning interface, obtaining 5G Wi-Fi connection information of the first electronic device, attempting to request 5G Wi-Fi connection based on the connection information, and the like. For example, the second operation may be, for example, a start operation of a two-dimensional code scanning interface; in response to the second operation, the second clone characteristic module of the second electronic device may send two-dimensional code scanning interface start information to the second UX display module; in response to the two-dimension code scanning interface start information, the second UX display module may display a two-dimension code scanning interface (as shown in fig. 6), and scan the two-dimension code displayed by the first electronic device under the operation of the user, to obtain the two-dimension code data (that is, Wi-Fi connection information, such as SSID and password information of a Wi-Fi hotspot) of the first electronic device.
In some embodiments, the second UX display module of the second electronic device may send the obtained two-dimensional code data (i.e., Wi-Fi connection information, such as SSID and password information including a Wi-Fi hotspot) to the second clone feature module. After receiving the Wi-Fi connection information, the second clone characteristic module can send the Wi-Fi connection information to the second connection module, and instruct the second connection module to try to establish Wi-Fi connection based on SSID and password information of a Wi-Fi hotspot included in the Wi-Fi connection information; the second connection module may send the connection information to a second Wi-Fi module after receiving the Wi-Fi connection information, and instruct the second Wi-Fi module to attempt to connect to a Wi-Fi hotspot of the first electronic device.
In some embodiments, on the first electronic device side, in response to sending the two-dimensional code information to the first UX display module, the first clone characteristics module of the first electronic device may send bluetooth activation information to the first bluetooth module in the first discovery connection component; in response to the bluetooth activation information, the first bluetooth module may activate a broadcast bluetooth message. Optionally, the first clone character module may further send bluetooth activation information to the first bluetooth module in response to the two-dimensional code being scanned (by the second electronic device), for example, after the two-dimensional code displayed by the first UX display module is scanned, the first UX display module may send notification information that the two-dimensional code is scanned to the first clone character module, and in response to the notification information that the two-dimensional code is scanned, the first clone character module sends bluetooth activation information to the first bluetooth module to instruct the bluetooth module to establish bluetooth connection.
In response to the two-dimension code scanning operation or the operation of sending the two-dimension code scanning interface starting information to the second UX display module, the second clone characteristic module of the second electronic device sends Bluetooth starting information to a second Bluetooth module in the second connecting component; in response to the bluetooth activation information, the second bluetooth module may activate an operation of scanning for bluetooth messages.
And then, the first Bluetooth module and the second Bluetooth module establish Bluetooth connection. The specific process of establishing the bluetooth connection may be implemented according to the existing bluetooth connection standard, which may specifically refer to the above related descriptions, and will not be described herein again.
In some embodiments, on the first electronic device side, after the first bluetooth module and the second bluetooth module establish the bluetooth connection, the first bluetooth module may send bluetooth connection establishment information to the first channel negotiation module, indicating that the bluetooth connection is completed. After the first channel negotiation module determines that the bluetooth connection establishment is completed based on the bluetooth connection establishment information, the following operations may be performed: (1) inquiring a 5G channel list supported by the user; (2) and inquiring a 5G channel list supported by the second electronic equipment at the opposite end.
The first Wi-Fi module stores 5G channel information supported by the first electronic equipment, and the second Wi-Fi module stores whether the second electronic equipment supports 5G capability, supported 5G channel information and the like. For example, the first channel negotiation module may perform a process of querying a self-supported 5G channel list, including: the first channel negotiation module sends first electronic equipment 5G channel query information to the first Wi-Fi module so as to query a 5G channel supported by the first electronic equipment; after receiving the 5G channel query information, the first Wi-Fi module may feed back a 5G channel list supported by the first electronic device to the first channel negotiation module, where the 5G channel list includes at least one 5G channel supported by the first electronic device.
The first channel negotiation module performing a process of querying a 5G channel list supported by the second electronic device may include: the first channel negotiation module sends 5G channel query information of the second electronic equipment to the first Bluetooth module; after receiving the 5G channel query information of the second electronic device, the first bluetooth module may send the 5G channel query information to the second bluetooth module via the bluetooth channel.
In some embodiments, on the second electronic device side, after receiving the 5G channel query information of the second electronic device, the second bluetooth module may send the 5G channel query information to the second channel negotiation module; thereafter, the second channel negotiation module may send the 5G channel query information to the second Wi-Fi module to query for the 5G channel supported by the second electronic device stored in the second Wi-Fi module. In a possible implementation manner, when the second Wi-Fi module does not have a general interface, the second Wi-Fi module cannot successfully acquire the 5G channel query information sent by the second channel negotiation module, and then does not perform 5G channel query, so that the second channel negotiation module cannot successfully acquire the 5G channel list fed back by the second Wi-Fi module. In this case, the second channel negotiation module may generate a 5G channel list, and the 5G channel list includes 5G channels that are empty.
In some embodiments, the second channel negotiation module may send a list of 5G channels supported by the second electronic device to the second bluetooth module; the second bluetooth module may transmit the 5G channel list to the first bluetooth module through a bluetooth channel. In some embodiments, on the first electronic device side, after receiving the list of 5G channels supported by the second electronic device, the first bluetooth module may send it to the first channel negotiation module. The first channel negotiation module may determine, according to the 5G channel list supported by the first electronic device and the received 5G channel list supported by the second electronic device, whether an intersection exists between the 5G channel sets supported by the two parties, that is, whether a jointly supported 5G channel exists between the first electronic device and the second electronic device.
In an implementation manner, if there is an intersection between the 5G channels supported by the two parties, the first channel negotiation module may negotiate, through the first bluetooth module, with the second channel negotiation module via the bluetooth channel to establish a 5G Wi-Fi connection on a certain 5G channel in the intersection, and then perform a data transmission process on the 5G channel. In one implementation, the first clone characteristic module may further send 5G hotspot opening information to the first connection module; the first connection module can send the 5G hotspot opening information to the first Wi-Fi module after receiving the 5G hotspot opening information, and instructs the first Wi-Fi module to open the 5G hotspot on a 5G channel supported by both sides. And then, the first electronic device and the second electronic device establish 5G Wi-Fi connection through the first Wi-Fi module and the second Wi-Fi module respectively, and finally the first electronic device and the second electronic device can perform data transmission on the 5G channel with the connection established through the first transmission module and the second transmission module respectively.
In another implementation manner, if there is no intersection between the 5G channels supported by the two parties (the data transmission method provided in this embodiment of the present application is mainly for this situation), the first channel negotiation module may generate 5G capability query information, where the 5G capability query information is used to query whether the second electronic device supports the 5G Wi-Fi communication capability. The first channel negotiation module sends the 5G capability inquiry information to the first Bluetooth module; after receiving the 5G capability query information, the first Bluetooth module can send the 5G capability query information to the second Bluetooth module through a Bluetooth channel.
And on the second electronic equipment side, the second Bluetooth module sends the 5G capability query information to the second channel negotiation module after receiving the 5G capability query information. After receiving the 5G capability query information, the second channel negotiation module may send the 5G capability query information to the second Wi-Fi short-range communication module through a general interface, where, for example, the general interface for 5G capability query may be: Wi-FiManager is5GHzBandSupported (). After receiving the 5G capability query information, the second Wi-Fi module may feed back a result of whether the second electronic device supports the 5GWi-Fi communication capability to the second channel negotiation module. Thereafter, the second channel negotiation module may transmit the 5G capability inquiry result to the second bluetooth module. After receiving the 5G capability inquiry result, the second bluetooth module may send the result to the first bluetooth module via a bluetooth channel.
On the first electronic device side, after receiving the 5G capability query result, the first bluetooth module may send it to the first channel negotiation module.
In some embodiments, if the 5G capability query result indicates that the second electronic device supports the 5G Wi-Fi communication capability, the first channel negotiation module may send channel probing information to the first channel probing module, and in response to the channel probing information, the first channel probing module may probe for 5G Wi-Fi connection requests of the second electronic device on 5G channels supported by the first electronic device itself, until the second electronic device performs 5G Wi-Fi connection, or completes the probing on all the supported 5G channels. If the first electronic device finds a 5G Wi-Fi connection request on a certain 5G channel, the two electronic devices can establish a 5G Wi-Fi connection on the 5G channel, and the subsequent first electronic device and the second electronic device can perform data transmission on the 5G channel; if the 5G Wi-Fi connection request of the second electronic device is not found on all 5G channels supported by the first electronic device, the first electronic device may close the 5G hotspot, open the 2.4G hotspot, establish Wi-Fi connection with the second electronic device on the 2.4G channel, and subsequently, the first electronic device and the second electronic device may perform data transmission on the 2.4G channel.
According to the data transmission method provided by the embodiment of the application, under the condition that the 5G channel supported by the second electronic device cannot be acquired, the first electronic device can sequentially search for the 5G Wi-Fi connection request of the second electronic device on the 5G channel supported by the local terminal, and try to establish 5G Wi-Fi connection with the second electronic device until the two sides of the 5G channel which can be successfully established are acquired. If after the attempt, all the 5G channels supported by the first electronic device cannot enable the two parties to successfully establish connection, the first electronic device may close the 5G hotspot, open the 2.4G hotspot, and establish Wi-Fi connection with the second electronic device on the 2.4G channel.
Illustratively, as shown in fig. 8, a timing diagram of a method for data transmission according to an embodiment of the present application is provided. The method comprises the following steps:
s801, a first UX display module receives a first operation input by a user.
The first UX display module is a module in a clone application installed in the first electronic device. The first electronic device may be, for example, a receiving device (or called receiving end) for receiving data in a switch cloning process, and is used to receive data that needs to be backed up by a user.
The first operation may be, for example, a receiver-side flow triggering operation input by the user through a clone application installed on the first electronic device in a switch-on-clone scenario, where the first operation may be, for example, a start operation of the clone application, or may also be an old device type selection operation in the clone application (which may correspond to operation 502 shown in fig. 5B).
First, at the receiving end, the first electronic device may perform the following steps:
and S802, the first UX display module sends receiving end process triggering information to the first clone characteristic module.
The receiving end flow triggering information is used for indicating the first clone characteristic module to start a switch clone flow of the receiving end. For example, the switch machine cloning flow of the receiving end may include: displaying a two-dimensional code comprising Wi-Fi hotspot connection information, establishing Bluetooth connection with a second electronic device, and the like.
And S803, responding to the receiving end process trigger information, and generating two-dimensional code information by the first clone characteristic module.
The two-dimension code information comprises Wi-Fi connection information of the first electronic device, such as an SSID and a password of a Wi-Fi hotspot. Specifically, the Wi-Fi connection information may be connection information of a 5G Wi-Fi hotspot, and may include an SSID of the 5G Wi-Fi hotspot and a corresponding password.
S804, the first clone characteristic module sends two-dimensional code information to the first UX display module.
And S805, the first UX display module indicates a display screen to display the two-dimensional code.
In some embodiments, after receiving the two-dimensional code information, the first UX display module may instruct the display screen to display a corresponding two-dimensional code, where the two-dimensional code is used to instruct Wi-Fi connection information (such as an SSID of a Wi-Fi hotspot and a corresponding password). For example, the interface of the first electronic device displaying the two-dimensional code may be as shown in fig. 5C.
Thereafter, at the transmitting end, the second electronic device may perform the following steps:
and S806, the second UX display module receives a second operation input by the user.
The second UX display module is a module in clone application installed in the second electronic device. The second electronic device may be a sending device (or called sending end) for sending data that needs to be backed up by a user when the clone is changed, and the second electronic device may be, for example, an old device of the user.
The second operation may be, for example, a sender flow triggering operation input by the user through a clone application installed by the second electronic device in a machine-changing clone scenario. For example, the second operation may be a two-dimensional code scanning interface opening operation input by the user through a clone application installed on the second electronic device, and the two-dimensional code scanning interface may be as shown in fig. 6, for example.
And S807, the second UX display module sends sending end flow triggering information to the second clone characteristic module.
And S808, the second clone characteristic module responds to the trigger information of the flow of the sending end to indicate that the camera is started.
For example, the second clone characteristic module may indicate a camera (e.g., a rear camera) of the second electronic device to be turned on in response to the sending-end flow trigger information, so as to perform two-dimensional code scanning next.
And S809, the second clone characteristic module sends two-dimensional code scanning interface starting information to the second UX display module.
And S810, the second UX display module indicates a display screen to display a two-dimensional code scanning interface.
In some embodiments, after receiving the two-dimensional code scanning interface opening information, the second UX display module may instruct the display screen to display the two-dimensional code scanning interface based on the information. Illustratively, the two-dimensional code scanning interface displayed by the second electronic device may be as shown in fig. 6, for example.
S811, the second electronic device scans the two-dimensional code of the first electronic device and obtains Wi-Fi connection information indicated by the two-dimensional code.
The second electronic device can scan the two-dimensional code displayed by the first electronic device through the two-dimensional code scanning interface. Then, the second UX display module may acquire Wi-Fi hotspot connection information indicated by the two-dimensional code, where the Wi-Fi hotspot connection information may include an SSID of a Wi-Fi hotspot of the first electronic device 5G and a corresponding password.
And S812, the second UX display module sends Wi-Fi connection information to the second clone characteristic module.
S813, the second clone characteristics module sends Wi-Fi connection information to the second Wi-Fi module.
And S814, the second Wi-Fi module tries to connect the Wi-Fi indicated by the Wi-Fi connection information according to the Wi-Fi connection information.
In some embodiments, if the second electronic device supports 5G Wi-Fi communication capability, after receiving the Wi-Fi connection information, the second Wi-Fi module may send Wi-Fi connection request information (e.g., a wifi prop request frame) on a 5G channel supported by itself according to the Wi-Fi connection information, and request to establish a connection with the first electronic device on the 5G Wi-Fi channel indicated by the connection information. For example, the second electronic device may periodically send Wi-Fi connection information through a 5G channel supported by the second electronic device, for example, the second electronic device may send a Wi-Fi connection request message on a certain 5G channel supported by the second electronic device, where the Wi-Fi connection request message may include an SSID of a Wi-Fi hotspot of the first electronic device and a corresponding password; when the Wi-Fi connection is not successfully established on the 5G channel, the second electronic device can switch to other 5G channels supported by the second electronic device to resend the Wi-Fi connection request message. When the 5G Wi-Fi connection with the first electronic device is not successfully established after traversing all the 5G channels supported by the second electronic device, the second electronic device may perform the Wi-Fi connection request process again at a certain time interval.
It should be noted that the sending of the Wi-Fi connection request information by the second electronic device may be continued until the connection with the 5G channel is successfully established with the first electronic device, or the connection with the first electronic device is established on the 2.4G channel. For example, the second electronic device sending the Wi-Fi connection information may be continuously performed during the process of the first electronic device querying the 5G channel list of the second electronic device, querying whether the second electronic device supports 5G capability, the first electronic device searching for Wi-Fi connection request information, and the like.
It should be further noted that, at the first electronic device side, the operation of sending the two-dimensional code information to the first UX display module by the first clone characteristic module may trigger the first clone characteristic module to send bluetooth activation information to the first bluetooth module. On the second electronic device side, the second clone-specific module acquires Wi-Fi connection information and can trigger the second clone-specific module to send Bluetooth starting information to the second Bluetooth module. Thereafter, the first electronic device and the second electronic device may perform a bluetooth connection establishment procedure.
S815, the first electronic device and the second electronic device perform a bluetooth connection establishment procedure.
For example, the bluetooth connection establishment process may refer to a schematic flowchart shown in fig. 9, and a specific process will be described below and will not be described in detail here.
In some embodiments, after the first electronic device and the second electronic device establish a bluetooth connection, the first electronic device may perform the following steps:
s816, the first electronic device performs a 5G channel list comparison process.
For example, the 5G channel list comparison process can refer to the schematic flowchart shown in fig. 10, and a specific process will be described below and will not be described in detail here.
It should be noted that after the first electronic device compares the 5G channel lists supported by both parties, two cases may exist in the obtained comparison result: in case 1A, the 5G channel lists of both parties have an intersection; in case 1B, there is no intersection between the 5G channel lists of both parties.
Case 1A and case 1B are introduced with specific channel list examples. In case 1A, it is assumed that the list of 5G channels supported by the first electronic device is: [ 3638404446132153157161165 ], the list of 5G channels supported by the second electronic device is: [ 36404448149463159161165 ], then the intersection of the 5G channels supported by the first electronic device and the second electronic device is: [36404448153161165]. In case 1B, assume that the list of 5G channels supported by the first electronic device is: [ 404448128132157165 ], the list of 5G channels supported by the second electronic device is: [ 364246149153155161 ], at this time, the intersection of the 5G channels supported by the first electronic device and the second electronic device is [ ], that is, the set of 5G channels supported by both devices is empty. Wherein, the element in the channel list is a channel number (channel number).
Optionally, when the 5G channel list fed back by the second electronic device is empty, the indication may also be expressed in other manners, for example, specific information (e.g., null) is carried in the channel response information sent by the second electronic device to the first electronic device to indicate that the channel list is empty, which is not limited in this embodiment of the application.
For case 1A, that is, when there is an intersection between the first electronic device and the supported 5G channel list of the second electronic device, the first electronic device may perform the following steps:
and S817, the first channel negotiation module sends 5G hotspot opening information to the first Wi-Fi module.
The 5G hotspot opening information is used for indicating the first Wi-Fi module to open the 5G hotspot.
For example, the specific process of the first channel negotiation module sending the 5G hotspot opening information to the first Wi-Fi module may include: the first channel negotiation module first sends the 5G hotspot opening information to the first connection module, and then the first connection module sends the 5G hotline opening information to the first Wi-Fi module (fig. 8 does not show the first connection module).
And S818, the first Wi-Fi module screens the 5G channels and starts a 5G hotspot.
In some embodiments, after receiving the 5G hotspot opening information, the first Wi-Fi module may perform 5G channel screening in an intersection of 5G channels supported by the first electronic device and the second electronic device, and open a 5G hotspot on the screened 5G channel. For example, when there are multiple 5G channels included in the intersection of the 5G channel lists of the first electronic device and the second electronic device, the first electronic device may select to open a 5G hotspot on the 5G channel where the signal strength is optimal.
For case 1B, that is, when there is no intersection between the first electronic device and the 5G channels supported by the second electronic device (for example, the 5G channel list fed back by the second electronic device is empty), the first electronic device may perform the following steps:
s819, the first electronic device queries whether the second electronic device supports the 5G capability.
For example, the capability query process of the second electronic device 5G can refer to the schematic flow chart shown in fig. 11, and the specific process will be described below and will not be detailed here.
Wherein the 5G capability query result of the second electronic device may include the following situations: case 2A, the second electronic device does not support the 5G capability; case 2B, the second electronic device supports 5G capabilities.
For case 2A, that is, when the second electronic device does not support the 5G capability, the first electronic device may perform the following steps:
s820, the first electronic device starts a 2.4G hotspot.
For case 2B, that is, when the second electronic device supports the 5G capability, the first electronic device may perform the following steps:
s821, the first electronic device searches Wi-Fi connection request information on a self-supported 5G channel and tries to establish 5G Wi-Fi connection with the second electronic device.
In some embodiments, the first electronic device may search for Wi-Fi Probe Request frames of the sending end one by one on a 5G channel already supported by the local end, wherein when a Probe Request frame of a specified SSID is received on a certain 5G channel, the 5G channel is selected to reply to Probe Response to initiate a 5G Wi-Fi connection with the second electronic device, and a 5G data transmission channel is established.
It should be noted that, in the process of searching for the Wi-Fi connection request information, the first electronic device is not affected by whether the first electronic device opens the 5G Wi-Fi hotspot, for example, the process may be performed in a situation that the first electronic device does not open the 5G Wi-Fi hotspot; alternatively, the method can also be carried out under the condition that the first electronic device turns on the 5G Wi-Fi hotspot.
The specific implementation process of the first electronic device searching for the Wi-Fi connection request information on the self-supported 5G channel will be described in more detail in the embodiment of fig. 12 below, and will not be described in detail here.
S822, the first electronic device and the second electronic device create a data transmission channel.
For example, the implementation process of step S820 in case 2A, step S821 in case 2B, and step S822 can refer to the schematic flowcharts shown in fig. 12 to fig. 14 below, and specific processes will be described below and will not be described in detail here.
It should be noted that in case 2A, that is, when the second electronic device does not support the 5G capability, the data transmission channel created by the first electronic device and the second electronic device in step S822 is a 2.4G channel, where the 2.4G channel is a 2.4G channel commonly supported by the first electronic device and the second electronic device. The process of establishing the 2.4G channel by the first electronic device and the second electronic device may refer to an existing flow, which is not described herein again. In case 2B, that is, when the second electronic device supports the 5G capability, after the first electronic device searches for the Wi-Fi connection request information of the sending end on the 5G channel supported by the local end and successfully establishes the 5G WiFi connection with the second electronic device, the data transmission channel of the first electronic device and the second electronic device is the 5G channel in step S822.
In some embodiments, after the first electronic device and the second electronic device establish the data transmission channel, the second clone character module may support the second UX display module to display the transmission data selection interface. For example, the transmission data display interface may include a plurality of application icons and selection frames, such as a contact icon, an information icon, a call record icon, an album icon, a mail icon, a WeChat icon, and their corresponding selection frames, which are selectable by the user, as shown in fig. 16A. In addition, the quantity and the size of information included by each application program can be respectively displayed below each application program, and a full selection box and a cancel box, a transmission starting control and a transmission canceling control can be further displayed below the application program display area.
It should be noted that the types of the application icons and the amount and size of the information corresponding to each application included in the transmission data selection interface shown in fig. 16A are merely examples, and are not limited.
S823, the second electronic device receives a third operation input by the user.
The third operation is transmission data selection operation input by a user and used for selecting files to be transmitted. The third operation may be, for example, a click operation of the user on a selection box corresponding to the application program in the interface shown in fig. 16A. Taking the data in the contact, the information, the call record, the photo album and the mail which need to be transmitted by the user as an example, the third operation may be an operation of clicking a selection frame in front of the contact icon, the information icon, the call record icon, the photo album icon and the mail icon by the user.
In some embodiments, after the user selects to transmit data, the first electronic device and the second electronic device may perform the following steps:
s824, the first electronic device and the second electronic device perform data transmission.
For example, the implementation process of step S824 can refer to the schematic flowchart shown in fig. 15 below, and a specific process will be described below and will not be detailed here.
According to the data transmission method provided by the embodiment of the application, the first electronic device can traverse the 5G channel supported by the first electronic device under the condition that the 5G channel supported by the second electronic device cannot be acquired, search for the 5G Wi-Fi connection request of the second electronic device, and try to establish 5G Wi-Fi connection with the second electronic device until the 5G channel which can be successfully established by both sides is acquired. If after the attempt, all the 5G channels supported by the first electronic device cannot enable the two parties to successfully establish connection, the first electronic device may close the 5G hotspot, open the 2.4G hotspot, and establish Wi-Fi connection with the second electronic device on the 2.4G channel.
The bluetooth connection establishment procedure in step S815 will be described below with reference to the accompanying drawings. Illustratively, as shown in fig. 9, a schematic flow chart of a process for establishing a bluetooth connection between a first electronic device and a second electronic device. The process comprises the following steps:
first, at the receiving end, the first electronic device may perform the following steps:
s8151, the first clone character module sends Bluetooth starting information to the first Bluetooth module.
In some embodiments, the operation of the first clone property module sending the two-dimensional code to the first UX display module (corresponding to step S804 described above) may trigger the first clone property module to send bluetooth activation information to the first bluetooth module, where the bluetooth activation information is used to instruct the first bluetooth module to activate the bluetooth function. More specifically, the bluetooth activation information may be used to instruct the first bluetooth module to perform a bluetooth connection function of the host device (i.e., the first electronic device).
And S8152, responding to the Bluetooth starting information, and the first Bluetooth module sends Bluetooth broadcast.
Accordingly, at the transmitting end, the second electronic device may perform the following steps:
and S8153, the second clone characteristic module sends Bluetooth starting information to the second Bluetooth module.
In some embodiments, the operation of the second clone property module obtaining Wi-Fi connection information (corresponding to step S812 above) may trigger the second clone property module to send bluetooth enable information to the second bluetooth module of the second electronic device, where the bluetooth enable information is used to instruct the bluetooth module to enable a bluetooth function. More specifically, the bluetooth activation information may be used to instruct the second bluetooth module to perform a bluetooth connection function of the slave device.
And S8154, responding to the Bluetooth starting information, and performing Bluetooth scanning by the second Bluetooth module.
And S8155, the second Bluetooth module and the first Bluetooth module establish Bluetooth connection.
The specific process of establishing the bluetooth connection may refer to the above related description, and is not described herein again.
It should be noted that, in the embodiment of the present application, a process of establishing a bluetooth connection is described by taking a first electronic device as a master device and a second electronic device as a slave device. However, in other embodiments, in the bluetooth connection establishment process, the first electronic device may also serve as a slave device, and the second electronic device may also serve as a master device, which is not limited in this embodiment of the present application.
It should be further noted that the bluetooth connection established between the first electronic device and the second electronic device is mainly used for negotiation between the two parties to perform Wi-Fi channel negotiation, for example, the first electronic device may query, through the bluetooth channel, a 5G channel supported by an opposite end, whether a 5G capability is supported, or not. In this embodiment of the present application, only a bluetooth connection is taken as an example, but in practical applications, the communication connection type used for Wi-Fi channel negotiation may be other types, which is not limited in this embodiment of the present application.
S8156, the first Bluetooth module sends Bluetooth connection establishment information to the first channel negotiation module, and the Bluetooth connection establishment information is used for indicating that Bluetooth connection establishment is completed.
After receiving the bluetooth connection information, the first channel negotiation module may perform a 5G channel comparison procedure in response to the bluetooth connection information (i.e., step S816). The following describes the 5G channel list comparison process in step S816 with reference to fig. 10. Illustratively, the process includes the steps of:
at the receiving end, the first electronic device may perform the following steps:
s8161, the first channel negotiation module sends first 5G channel query information to the first Bluetooth module, and the first 5G channel query information is used for querying a 5G channel supported by the second electronic device.
In some embodiments, the first channel negotiation module may send, to the first bluetooth module, first 5G channel query information in response to the bluetooth connection establishment information received in step S8156, where the first 5G channel query information is used to query a list of 5G channels (or a 5G channel set) supported by the second electronic device.
S8162, the first Bluetooth module sends the first 5G channel query information to the second Bluetooth module through the Bluetooth channel.
At the transmitting end, the second electronic device may perform the following steps:
and S8163, the second Bluetooth module sends the first 5G channel query information to the second channel negotiation module.
And S8164, the second channel negotiation module sends the first 5G channel query information to the second Wi-Fi module.
In some embodiments, the second channel negotiation module queries the second Wi-Fi module for 5G channels supported by the second electronic device in response to the first 5G channel query information.
In some embodiments, when the second electronic device does not have a general interface for querying the 5G channel, the second channel negotiation module may not successfully acquire the 5G channel query information that is successfully sent to the second Wi-Fi module, nor the 5G channel supported by the second electronic device and fed back by the second Wi-Fi module. At this time, the second channel negotiation module may generate a 5G channel list, and the 5G channel list is empty, that is, the 5G channel list does not include the 5G channels supported by the second electronic device.
It should be noted that, in an actual application, when the clone application is a third-party application installed on the second electronic device, and the second electronic device does not have a general interface for querying the 5G channel, in the process of changing the switch and cloning, even if the clone application is installed on the second electronic device, the clone application cannot query the 5G channel list supported by the second electronic device, and further cannot enable the first electronic device to select the 5G channel for data transmission based on the intersection of the 5G channels supported by the two sides. The data transmission method provided by the embodiment of the application can solve the problem that the 5G channel cannot be negotiated in the scene. Therefore, the present embodiment is mainly described in terms of a situation where the first electronic device cannot inquire about the 5G channel supported by the second electronic device (for example, a situation where the 5G channel list fed back by the second electronic device is empty).
S8165, generating first 5G channel response information.
In some embodiments, when the second channel negotiation module does not inquire the 5G channel supported by the second electronic device, first 5G channel response information is generated, where the first 5G channel response information includes a list of 5G channels supported by the second electronic device, and the list of 5G channels is empty.
In some embodiments, the second electronic device may send an empty 5G channel list to the first electronic device through the first 5G channel response information.
Optionally, the second electronic device may also indicate that the second electronic device does not query the 5G channel supported by the second electronic device by carrying other indication information (e.g., null) in the first 5G channel response information, and the embodiment of the present application does not limit how to specifically indicate that the second electronic device does not query the 5G channel.
S8166, the second channel negotiation module sends the first 5G channel response information to the second Bluetooth module.
S8167, the second Bluetooth module sends the first 5G channel response information to the first Bluetooth module through the Bluetooth channel.
At the receiving end, the first electronic device may perform the following steps:
s8168, the first bluetooth module sends the first 5G channel response information to the first channel negotiation module.
In some embodiments, the first channel negotiation module may obtain a 5G channel list supported by the second electronic device according to the 5G channel response information.
S8169, the first channel negotiation module sends second 5G channel query information to the first Wi-Fi module, and the second 5G channel query information is used for querying a 5G channel supported by the first electronic device.
S81610, the first Wi-Fi module sends second 5G channel response information to the first channel, and the second 5G channel response information comprises a 5G channel list supported by the first electronic device.
It should be noted that the steps (i.e., step S8169 and step S81610) of the first electronic device acquiring the self-contained 5G channel list are not limited to be executed after acquiring the 5G channel list (corresponding to steps S8161 to S8168) of the second electronic device. In other embodiments, the operation of querying the own 5G channel list by the first electronic device may be performed simultaneously with the operation of querying the second electronic device 5G channel list, or may be performed before querying the second electronic device 5G channel list, which is not limited in this embodiment of the application.
And S81611, determining that the 5G channel set supported by the two parties is empty.
In some embodiments, the first channel negotiation module of the first electronic device compares the list of 5G channels supported by the first electronic device with the list of 5G channels supported by the second electronic device, and determines that the set of 5G channels supported by both of the first electronic device and the second electronic device is empty.
For example, assume that the list of 5G channels supported by the first electronic device is: 3638404446132153157161165, the list of 5G channels supported by the second electronic device is empty, that is [ ], and then the first channel negotiation module may determine the set of 5G channels supported by both of the first electronic device and the second electronic device as empty [ ] according to the list of 5G channels supported by the first electronic device and the list of 5G channels supported by the second electronic device. Or, when the first channel response information carries specific indication information (e.g., null) indicating that the second electronic device does not inquire the 5G channel of the second electronic device, the first channel negotiation module may determine that the 5G channel set jointly supported by the two electronic devices is empty according to the 5G channel list supported by the first electronic device and the specific indication information carried in the first response information.
It should be noted that, in other embodiments, after the first electronic device receives the first channel list, if it is determined that the first channel list is empty, the comparison operation on the first channel list and the second channel list may not be performed, and it may be directly determined that the 5G channel set commonly supported by the first electronic device and the second electronic device is empty.
It should be further noted that, in still other embodiments, after the first electronic device receives the first channel list, if it is determined that the first channel list is empty, the operation of determining that the set of 5G channels supported by the first electronic device and the second electronic device are empty may not be performed, and the next step in the flow is performed (e.g., step S8181). In other words, if the first channel list acquired by the first electronic device is empty, the first electronic device may be triggered to execute a query process for the 5G capability of the second electronic device.
When there is no intersection between the first electronic device and the second electronic device that supports the 5G channels (e.g., the list of 5G channels fed back by the second electronic device is empty), the first electronic device may query the second electronic device for the 5G capability (corresponding to step S819 described above). The 5G capability query process of the second electronic device in step S819 is described below with reference to fig. 11. Illustratively, the process includes the steps of:
at the receiving end, the first electronic device may perform the following steps:
s8181, the first channel negotiation module sends 5G capability query information to the first Bluetooth module, and the 5G capability query information is used for querying whether the second electronic device supports 5G capability.
In some embodiments, the first channel negotiation module may send the 5G capability query information to the first bluetooth module when determining that the set of 5G channels supported by both parties is empty in step S81611.
S8182, the first bluetooth module sends the 5G capability inquiry information to the second bluetooth module via the bluetooth channel.
At the transmitting end, the second electronic device may perform the following steps:
and S8183, the second Bluetooth module sends 5G capability inquiry information to the second channel negotiation module.
And S8184, the second channel negotiation module sends the 5G capability inquiry information to the second Wi-Fi module.
It should be noted that the second electronic device has a common interface for 5G capability query, where the common interface may be, for example: Wi-FiManager is5GHzBandSupported (). After the second channel negotiation module receives the 5G capability query message, the 5G capability query message may be sent to the second Wi-Fi module via the general interface, so as to query whether the second electronic device supports the 5G capability.
And S8185, the second Wi-Fi module sends 5G capability response information to the second channel negotiation module.
Wherein the 5G capability response information includes a query result of whether the second electronic device supports the 5G capability. Optionally, when the second electronic device does not support the 5G capability, the capability supported by the second electronic device, such as the 2.4G capability, may also be indicated in the 5G capability response information.
And S8186, the second channel negotiation module sends 5G capability response information to the second Bluetooth module.
S8187, the second bluetooth module sends the 5G capability response message to the first bluetooth module.
Thereafter, at the receiving end, the first electronic device may perform the following steps:
s8188, the first bluetooth module sends 5G capability response information to the first channel negotiation module.
In some embodiments, the first channel negotiation module may obtain a query result of whether the second electronic device supports the 5G capability according to the 5G capability response information.
According to different query results, two situations can be distinguished: case 2A, the second electronic device does not support the 5G capability; case 2B, the second electronic device supports 5G capabilities.
Illustratively, as shown in fig. 12, a schematic flow chart is shown for the first electronic device to perform corresponding operations in case 2A and case 2B described above, respectively.
For case 2A, that is, when the second electronic device does not support the 5G capability, the first electronic device may perform the following steps:
s8201, the first channel negotiation module sends 2.4G hotspot opening information to the first Wi-Fi module.
The 2.4G hotspot opening information is used for indicating the first Wi-Fi module to open the 2.4G hotspot.
In some embodiments, the specific process of the first channel negotiation module sending the 2.4G hotspot opening information to the first Wi-Fi module may include: the first channel negotiation module sends the 2.4G hotspot opening information to a first connection module of the first electronic device; then, the first connection module sends the 2.4G hotspot opening information to a first Wi-Fi module (the first connection module may specifically refer to fig. 7, and the first connection module is not shown in fig. 12).
S8202, the first Wi-Fi module conducts 2.4G channel screening, and a 2.4G hotspot is opened.
The Wi-Fi module of the first electronic device can respond to the 2.4G hotspot opening information, perform 2.4G channel screening, and open the 2.4G hotspot based on the screened 2.4G channel.
Exemplary, the screening of the 2.4G channel may include: the method selects a channel with the best signal strength from the 2.4G channels supported by both parties according to the signal strength, or performs random selection from the 2.4G channels supported by both parties, which is not limited in the embodiment of the present application.
For case 2B, that is, when the second electronic device supports the 5G capability, the first electronic device may perform the following steps:
optionally, in S8211, the first channel negotiation module instructs the timer to set a preset time duration.
For example, the preset time period may be 30s, 40s, 1min, and the like, which is not limited in the embodiment of the present application. The preset time length is used for the first electronic equipment to search Wi-Fi connection request information at a squatting point on a 5G channel supported by the local terminal, and to try to establish Wi-Fi connection with the second electronic equipment on the 5G channel.
In some embodiments, if the first electronic device does not seek the Wi-Fi connection request within the preset time period, the first electronic device and the second electronic device may be considered to have no commonly supported 5G channel, and the first electronic device may turn on a 2.4G Wi-Fi hotspot and perform data transmission with the second electronic device on the 2.4G channel.
It should be noted that step S8211 is an optional step, that is, the first electronic device may also directly and sequentially search for the Wi-Fi connection request information at the squat point on the 5G channel supported by the first electronic device without setting the preset time duration until the Wi-Fi connection request is successfully searched, or all 5G channels are traversed.
S8212, the first channel negotiation module sends channel probing indication information to the first channel probing module.
The channel detection information is used for instructing the first channel detection module to search the Wi-Fi connection request information on a 5G channel supported by the home terminal of the first electronic device.
In some embodiments, the manner for triggering the first channel negotiation module to send the channel sounding information to the first channel sounding module may include multiple manners, such as: after the first channel negotiation module obtains the 5G capability supported by the second electronic device, the first channel negotiation module can send channel detection indication information to the first channel detection module; alternatively, the first channel negotiation module may send the channel sounding indication information to the first channel sounding module when the indication timer starts to count.
S8213, the first channel detection module searches for Wi-Fi connection request information on a 5G channel supported by the home terminal of the first electronic device.
In some embodiments, the first channel probing module may query, by the first Wi-Fi module, a 5G channel supported by the first electronic device after receiving the channel probing information sent by the first channel negotiation module; alternatively, the first channel negotiation module may carry the 5G channels supported by the first electronic device in the channel finding information.
Then, the first channel detection module may sequentially squat at a point on the 5G channel supported by the first electronic device to query whether Wi-Fi connection request information is received on the currently queried 5G channel. For example, the first channel sounding module may stay on each 5G channel for a target duration in turn, and search for whether the Wi-Fi connection request information is received within the target duration.
In some embodiments, the first channel sounding module may sequentially seek Wi-Fi connection request information on the 5G channels according to numbers (e.g., numbers from small to large) of the 5G channels supported by the first electronic device.
For example, it is assumed that the numbers of the 5G channels supported by the first electronic device are: 3638404446132153157161165, the first channel sounding module may first wait for a target duration (e.g., 2 s) on channel # 36, 5G, to query whether Wi-Fi connection request information is received within the target duration. If the Wi-Fi connection request information is received, inquiring whether the Wi-Fi connection information (such as an SSID (service set identifier) and a corresponding password) carried by the Wi-Fi connection request information is the connection information of the 5G Wi-Fi hotspot of the first electronic device, if so, sending Wi-Fi connection Response information (Probe Response) by the first electronic device, and initiating Wi-Fi connection; if not, after the target duration is reached, the first channel detection module may switch to the 5G channel with the next number (number 38) to continue searching, and repeat the searching process until the first channel detection module obtains the Wi-Fi connection request including the connection information of the 5G Wi-Fi hotspot of the first electronic device; or when the Wi-Fi connection request comprising the connection information of the 5G Wi-Fi hotspot of the first electronic device is not continuously acquired, until the first channel detection module traverses all the supported 5G channels; or when the Wi-Fi connection request of the connection information of the first electronic device 5G Wi-Fi hotspot is not acquired continuously, the preset target time length is reached.
When the first channel detection module detects Wi-Fi connection request information including 5G Wi-Fi hotspot connection information of the first electronic device on a 5G channel supported by the home terminal, the first electronic device may establish Wi-Fi connection with the second electronic device on the 5G channel. For the convenience of distinction, the embodiment of the present application refers to the 5G channel which detects the Wi-Fi connection request information including the 5G Wi-Fi hotspot connection information of the first electronic device as a first channel. Specifically, the first electronic device may perform the steps of:
s8214, the first channel probing module sends channel probing response information to the first channel negotiation module.
Wherein the channel detection response information may be used to indicate that Wi-Fi connection request information is detected on a 5G channel supported by the first electronic device, the Wi-Fi connection request information including connection information of a 5G Wi-Fi hotspot of the first electronic device. The channel probe response information may also include an identification (e.g., a number) of the first channel.
S8215, the first channel negotiation module sends 5G hotspot opening information to the first Wi-Fi module.
The first channel negotiation module may send, in response to the channel probe response information, 5G hotspot opening information to the first Wi-Fi module, and instruct the first Wi-Fi module to open the 5G hotspot on the first channel.
S8216, the first Wi-Fi module opens the 5G hot spot.
In some embodiments, the first Wi-Fi module opens the 5G hotspot on the first channel in response to the 5G hotspot opening information, and establishes a data transmission channel with the second electronic device. The creation process of the data channel may be as shown in fig. 14 below, and a specific process will be described below, which will not be described in detail here.
In some embodiments, if the first electronic device and the second electronic device do not successfully establish the 5G Wi-Fi connection, the first electronic device switches to the 2.4G hotspot and establishes a 2.4G connection with the second electronic device. Wherein, the situation of unsuccessfully establishing the 5G Wi-Fi connection can comprise: (1) after traversing all 5G channels supported by the local terminal, the first electronic equipment does not receive Wi-Fi connection request information comprising 5G Wi-Fi connection information of the first electronic equipment; (2) the first electronic device does not receive Wi-Fi connection request information comprising 5G Wi-Fi connection information of the first electronic device within a preset target time length.
For example, as shown in fig. 13, in the case that the 5G Wi-Fi connection is not successfully established, a specific process of establishing a 2.4G connection between the first electronic device and the second electronic device may include the following steps:
s8217, the first channel negotiation module determines that the 5G Wi-Fi connection with the second electronic device is not successfully established.
S8218, the first channel negotiation module sends 5G hotspot closing information to the first Wi-Fi module.
Wherein the 5G hotspot closing information is used for indicating the first Wi-Fi module to close the 5G hotspot.
S8219, responding to the 5G hot spot closing information, and closing the 5G hot spot by the first Wi-Fi module.
Optionally, after the first Wi-Fi module closes the 5G hotspot, notification information of closing the 5G hotspot may be sent to the first channel negotiation module, and the first channel negotiation module is notified that the 5G hotspot is closed.
S82110, the first channel negotiation module sends 2.4G hotspot opening information to the first Wi-Fi module, where the 2.4G hotspot opening information is used to indicate that the first Wi-Fi module opens the 2.4G hotspot.
S82111, in response to the 2.4G hotspot closing information, the first Wi-Fi module opens the 2.4G hotspot.
It should be understood that after the first electronic device starts a Wi-Fi hotspot (5G Wi-Fi hotspot or 2.4G Wi-Fi hotspot) through the above steps, the first electronic device may establish a data transmission channel with the second electronic device. For example, as shown in fig. 14, a schematic flowchart of establishing a data transmission channel between a first electronic device and a second electronic device may specifically include the following steps:
s8221, the first Wi-Fi module and the second Wi-Fi module establish Wi-Fi connection.
In some embodiments, after the first Wi-Fi module opens the 5G Wi-Fi hotspot on the first channel (corresponding to step S8216 above), a Wi-Fi connection may be established with the second electronic device.
S8222, the first Wi-Fi module sends Wi-Fi connection notification information to the first channel negotiation module, and the Wi-Fi connection notification information is used for notifying that Wi-Fi connection is successfully established.
S8223, in response to the Wi-Fi connection notification message, the first channel negotiation module sends a data transmission start message to the first clone characteristic module.
The data transmission starting information is used for indicating the starting of a data transmission process.
S8224, in response to the data transmission start information, the first clone characteristic module sends a data transmission prompt message to the first UX display module.
The data transmission prompt message can be used for prompting a user to start a data transmission process.
S8225, responding to the data transmission prompt message, the first UX display module indicates the display screen to display the data transmission prompt message.
For example, the data transmission prompt message displayed on the display screen may be as shown in fig. 16B. The reminder may be, for example, "the old device has successfully connected to the 5G Wi-Fi hotspot, and data transfer may begin. Please select the data to be transmitted on the old device ".
Accordingly, at the transmitting end, the second electronic device may perform the following steps:
s8226, the second Wi-Fi module sends a Wi-Fi connection notification message to the second channel negotiation module, and the Wi-Fi connection communication information is used for notifying the Wi-Fi connection to be successfully established.
S8227, the second channel negotiation module sends the file transfer opening information to the second clone property module.
And S8228, the second clone characteristic module sends transmission interface opening information to the second UX display module.
And S8229, the second UX display module indicates the display screen to display the data to be transmitted.
For example, the data to be transmitted displayed on the display screen may be as shown in fig. 16A.
In some embodiments, the user may select the data to be backed up to the first electronic device by inputting a data selection operation (corresponding to the third operation) to be transmitted on the interface.
It should be noted that, in the embodiment of the present application, a sequence of the first electronic device performing steps S8222 to S8225 and the second electronic device performing steps S8226 to S8229 is not limited, in other words, after the Wi-Fi connection is established, the first electronic device and the second electronic device may perform respective operations independently.
S82210, the second channel negotiation module sends transmission channel creation information to the second transmission module.
S82211, the first channel negotiation module sends transmission channel creation information to the first transmission module.
S82212, the first transmission module and the second transmission module establish a data transmission channel.
The transmission channel may be a transmission channel on a 5G frequency band.
It should be noted that, in the embodiment of the present application, a sequence of the first electronic device performing step S8211 and the first electronic device performing step S8223 to step S8225 is not limited, and a sequence of the second electronic device performing step S8210 and the second electronic device performing step S8226 to step S8229 is also not limited.
After the data transmission channel is established, the first electronic device and the second electronic device may perform a data transmission process (corresponding to step S824). For example, the process of data transmission between the first electronic device and the second electronic device can be seen in fig. 15.
And S8241, sending the data path summary to the second clone characteristic module by the second UX display module.
In some embodiments, the process of obtaining the file path summary by the UX display module of the second electronic device may include: a user selects data to be transmitted from the data options to be transmitted displayed on the second electronic device interface (such as the interface shown in fig. 16A), and in response to the selection operation of the user, the second UX display module obtains, according to the data to be transmitted, a storage path summary of the data in the second electronic device. The data path summary may include an application name corresponding to the data to be transmitted, and the like.
S8242, the second clone characteristic module sends the data path summary to the second transmission module.
S8243, the second transmission module obtains the data to be transmitted according to the data path in a summary mode.
S8244, the second transmission module sends transmission data to the first transmission module.
S8245, the first transmission module sends transmission data to the first clone characteristic module.
In some embodiments, the first clone characteristics module may store the received file data in a file corresponding to each application program in the memory of the first electronic device.
S8246, the first clone characteristic module sends a data transmission progress to the first UX display module, and the first UX display module is instructed to refresh a data transmission progress page.
Illustratively, in the data transmission process, the first UX display module instructs the display screen to display, to the user, prompt information related to data transmission, such as a data transmission progress, an application name corresponding to data currently being transmitted, a data transmission rate, a time required for completing data transmission, and the like. For example, the data transmission interface displayed on the first electronic device may be as shown in fig. 16C, and correspondingly, the data transmission interface displayed on the second electronic device may be as shown in fig. 16D.
According to the data transmission method provided by the embodiment of the application, under the condition that the 5G channel supported by the second electronic device cannot be acquired, the first electronic device can sequentially search for the 5G Wi-Fi connection request of the second electronic device on the 5G channel supported by the local terminal, and try to establish 5G Wi-Fi connection with the second electronic device until the two sides of the 5G channel which can be successfully established are acquired. If after the attempt, all the 5G channels supported by the first electronic device cannot enable the two parties to successfully establish connection, the first electronic device may close the 5G hotspot, open the 2.4G hotspot, and establish Wi-Fi connection with the second electronic device on the 2.4G channel.
Illustratively, as shown in fig. 17, a schematic flow chart of a method for data transmission according to an embodiment of the present application is provided. The method comprises the following steps:
s1701, the first electronic device establishes a communication connection with the second electronic device, and obtains a first channel list of the second electronic device, where the first channel list is used to indicate a first target frequency band channel supported by the second electronic device.
The communication connection established between the first electronic device and the second electronic device may be a bluetooth connection. The specific process of establishing the communication connection between the first electronic device and the second electronic device may refer to the description in the embodiments of fig. 8 and fig. 9, and is not described herein again.
In some embodiments, the first electronic device may be a data receiving device in a switch clone scenario, and the second electronic device may be a data sending device in a switch clone scenario. The first electronic device is a device that supports the first target frequency band capability, that is, the first electronic device supports the capability of Wi-Fi communication on the first target frequency band. The first target frequency band may be a 5G frequency band, and the first target frequency band channel may be a 5G channel.
In some embodiments, the first channel list may correspond to the 5G channel response information in the foregoing embodiments, and may specifically be used to indicate the first target frequency band channel supported by the second electronic device.
In some embodiments, the first electronic device may receive a first operation input by a user, and the first operation may be, for example, a receiving end flow opening operation, such as operation 501 shown in fig. 5A; or may be an old device type selection operation entered by the user in the clone application, which may correspond to operation 502 shown in fig. 5B, for example.
In some embodiments, the first electronic device, in response to the first operation, may display a two-dimensional code for providing connection information of a Wi-Fi hotspot of the first electronic device, such as an SSID of the Wi-Fi hotspot and a corresponding password.
In some embodiments, the second electronic device may receive a second operation input by the user, where the second operation may be, for example, a two-dimensional code scanning interface opening operation of the second electronic device, where the two-dimensional code scanning interface may be, for example, as shown in fig. 6; responding to the second operation, and displaying a two-dimensional code scanning interface by the second electronic equipment; then, the second electronic device may scan the two-dimensional code displayed by the first electronic device through the two-dimensional code scanning interface, and then extract the SSID of the Wi-Fi hotspot and the password provided by the two-dimensional code (which may correspond to the two-dimensional code data in the above-mentioned embodiment, or Wi-Fi hotspot connection information).
In some embodiments, the first electronic device and the second electronic device may establish a bluetooth connection. For example, the first electronic device may send a bluetooth inquiry request in response to a two-dimensional code display operation or in response to an operation that a two-dimensional code is scanned; the second electronic device can respond to the two-dimension code scanning interface starting operation or respond to the two-dimension code scanning operation to carry out Bluetooth scanning; after that, the first electronic device and the second electronic device may establish a bluetooth connection based on a bluetooth communication standard, and a specific process of establishing the bluetooth connection may refer to the above related description, which is not described herein again.
Then, in some embodiments, the first electronic device may send first channel query information to the second electronic device via the bluetooth channel, where the first channel query information is used to query a first target frequency band channel supported by the second electronic device; the second electronic equipment receives first channel query information sent by the first electronic equipment through a Bluetooth channel; in response to the first channel query information, the second electronic device may query a first target frequency band channel supported by the second electronic device; thereafter, the second electronic device may transmit first channel response information to the first electronic device via the bluetooth channel, the first channel response information including the first channel list. Wherein the first channel query information may correspond to the 5G channel query information in the above embodiment.
In some embodiments, when the second electronic device fails to query the first target frequency band channel (for example, the second electronic device does not have a channel query generic interface, so that the first target frequency band channel cannot be queried), the first target frequency band channel included in the first list is empty, and the list of 5G channels that may correspond to the above-described feedback of the second electronic device is empty.
And S1702, when an intersection of the first channel list and a first target frequency band channel supported by the first electronic device is empty, sequentially inquiring whether Wi-Fi connection request information sent by the second electronic device is received on the first target frequency band channel supported by the first electronic device, wherein the Wi-Fi connection request information is used for requesting to connect to a Wi-Fi hotspot of the first electronic device in the first target frequency band.
In some embodiments, the first electronic device may obtain a second channel list, where the second channel list may be used to indicate the first target frequency band channel supported by the first electronic device itself. Specifically, the first channel negotiation module of the first electronic device may send a second channel query message to the first Wi-Fi module and receive a second channel response message sent by the first Wi-Fi module, and the second channel response message may include a second channel list.
In some embodiments, the first electronic device may obtain that an intersection of the first channel list and the second channel list is empty according to the first channel list and the second channel list. The intersection of the first channel list and the second channel list being empty may indicate that the first electronic device and the second electronic device do not have the first target frequency band channel commonly supported, that is, the first target frequency band channel set commonly supported by the first electronic device and the second electronic device is empty.
It should be understood that, in the embodiment of the present application, a case that an intersection of the first channel list and the second channel list is empty may mainly refer to: the second electronic device does not successfully query the first target frequency band channel supported by itself, so that the first channel list used for indicating the first target frequency band channel supported by the second electronic device is empty, and further the intersection of the first channel list and the second channel list is empty. That is to say, the intersection of the first channel list and the second channel list in the embodiment of the present application is empty, specifically, the intersection of the first channel list and the second channel list is empty, so that the intersection of the first channel list and the second channel list is empty.
In some embodiments, when an intersection of a first target frequency band channel supported by the first electronic device and a first target frequency band channel supported by the second electronic device is empty, the first electronic device may sequentially query, on the first target frequency band channel supported by the first electronic device, whether Wi-Fi connection request information sent by the second electronic device is received, where the Wi-Fi connection request information may include Wi-Fi hotspot connection information of the first electronic device on the first target frequency band, for example, an SSID of the Wi-Fi hotspot and a corresponding password, and the Wi-Fi connection request information is used to request connection of a Wi-Fi hotspot of the first electronic device on the first target frequency band.
In some embodiments, the triggering of the first electronic device to perform a sequential query on a first target frequency band channel supported by the first electronic device whether Wi-Fi connection request information sent by the second electronic device is received may include: setting a preset time length; if the Wi-Fi connection request information sent by the second electronic equipment is not received within the preset time length, establishing Wi-Fi connection with the second electronic equipment on a second channel at a second target frequency band; or if the Wi-Fi connection request information sent by the second electronic equipment is not received after all the first target frequency band channels supported by the first electronic equipment are traversed and the Wi-Fi connection request information is inquired, establishing Wi-Fi connection with the second electronic equipment on a second channel by using the second target frequency band channel.
The second target frequency band may be a 2.4G frequency band, and the second channel may be a certain second target frequency band channel supported by the first electronic device and the second electronic device.
In some embodiments, the manner that the first electronic device sequentially queries, on the first target frequency band channel supported by the first electronic device, whether the Wi-Fi connection request information sent by the second electronic device is received may include: the first electronic device may wait for a preset target duration in sequence on a first target frequency band channel supported by the first electronic device; and whether the Wi-Fi connection request information sent by the second electronic equipment is received or not is detected in the target time length.
In some embodiments, before the first electronic device sequentially inquires whether the Wi-Fi connection request information sent by the second electronic device is received on the first target frequency band channel supported by the first electronic device, the method may further include: when the first electronic device acquires that the intersection of the first channel list and the second channel list is empty, the first electronic device may send capability query information (which may correspond to the 5G capability query information in the foregoing embodiment) to the second electronic device, where the capability query information is used to query whether the second electronic device supports the first target frequency band capability; the second electronic device may obtain, in response to the capability query information, a query result of the first target frequency band capability, where the query result may be that the second electronic device supports the first target frequency band capability, and then, the second electronic device sends, to the first electronic device, capability response information (which may correspond to the 5G capability response information in the above embodiment) indicating that the second electronic device supports the first target frequency band capability; then, the first electronic device receives capability response information sent by the second electronic device, and acquires that the second electronic device supports the first target frequency band according to the capability response information; and then, the first electronic equipment starts a first target frequency point Wi-Fi hotspot on the first channel.
It should be noted that, in this embodiment of the application, the second electronic device has a general interface for querying a capability of the first target frequency band (for example, 5G), and therefore, the first electronic device may obtain the capability of the first target frequency band of the second electronic device.
It should be further noted that, before the first electronic device attempts to establish the Wi-Fi connection with the second electronic device on the first channel, by querying the second electronic device for the first target frequency band capability, and after determining that the second electronic device supports the first target frequency band capability, establishing the Wi-Fi hotspot on the first channel, the possibility that the two parties successfully establish the Wi-Fi connection on the first target frequency band channel can be further improved.
S1703, if the Wi-Fi connection request information is received on the first channel, establishing a first target frequency band Wi-Fi connection on the first channel with the second electronic device, where the first channel is a channel on a certain first target frequency band supported by the first electronic device.
The Wi-Fi connection request message comprises an SSID and a corresponding password, and can be used for requesting connection to a first target frequency band Wi-Fi hotspot of the first electronic device.
In some embodiments, after acquiring the SSID of the Wi-Fi hotspot of the first electronic device and the corresponding password, the second electronic device may send a polling message for establishing the Wi-Fi connection request on a first target frequency band supported by the second electronic device. Specifically, the second electronic device may periodically traverse a first target channel supported by itself, attempting to establish a Wi-Fi connection (of the first target frequency band) with the first electronic device. For example, the second electronic device may broadcast a Wi-Fi connection request message on a certain first target frequency channel supported by the second electronic device, where the broadcast message of the Wi-Fi connection request may include an SSID and a password of a Wi-Fi hotspot of the first electronic device (of the first target frequency channel); if the Wi-Fi connection is not successfully established on the first target frequency band channel, switching to other first target frequency band channels to rebroadcast the Wi-Fi connection request message. When the Wi-Fi connection with the first electronic device is not successfully established after traversing all the first target frequency band channels supported by the second electronic device, the Wi-Fi connection request process may be performed again at a certain time interval.
S1704, data transmitted by the second electronic device via the first channel is received.
The data transmitted in the embodiment of the application can be the data which is selected by the user and needs to be backed up to the first electronic device. The data transmission process can be referred to the specific description of the above embodiments.
According to the data transmission method provided by the embodiment of the application, under the condition that the 5G channel supported by the second electronic device cannot be acquired, the first electronic device can sequentially search for the 5G Wi-Fi connection request of the second electronic device on the 5G channel supported by the local terminal, and try to establish 5G Wi-Fi connection with the second electronic device until the two sides of the 5G channel which can be successfully established are acquired. If after the attempt, all the 5G channels supported by the first electronic device cannot enable the two parties to successfully establish connection, the first electronic device may close the 5G hotspot, open the 2.4G hotspot, and establish Wi-Fi connection with the second electronic device on the 2.4G channel.
Based on the same technical concept, an embodiment of the present application further provides an electronic device, including: a display; one or more processors; one or more memories; the one or more memories store one or more computer programs comprising instructions that, when executed by the one or more processors, cause the electronic device to perform one or more steps of any of the methods described above.
Based on the same technical concept, the embodiment of the present application further provides a computer-readable storage medium, which stores instructions that, when executed on a computer or a processor, cause the computer or the processor to execute one or more steps of any one of the methods.
Based on the same technical concept, the embodiment of the present application further provides a computer program product containing instructions. The computer program product, when run on a computer or processor, causes the computer or processor to perform one or more steps of any of the methods described above.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on or transmitted over a computer-readable storage medium. The computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optics, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), among others.
One of ordinary skill in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the above method embodiments. And the aforementioned storage medium includes: various media capable of storing program codes, such as ROM or RAM, magnetic or optical disks, etc.
The above description is only a specific implementation of the embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiments of the present application should be covered within the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (20)

1. A method for data transmission, applied to a first electronic device, wherein the first electronic device supports a first target frequency band capability, the method comprising:
establishing communication connection with a second electronic device, and acquiring a first channel list of the second electronic device, wherein the first channel list is used for indicating the first target frequency band channel supported by the second electronic device;
when the intersection of the first channel list and the first target frequency band channel supported by the first electronic device is empty, sequentially inquiring whether Wi-Fi connection request information sent by the second electronic device is received on the first target frequency band channel supported by the first electronic device, wherein the Wi-Fi connection request information is used for requesting to connect with a Wi-Fi hotspot of the first electronic device in the first target frequency band;
if the Wi-Fi connection request information is received on a first channel, establishing Wi-Fi connection with the second electronic equipment on the first channel at a first target frequency band, wherein the first channel is a channel on one first target frequency band supported by the first electronic equipment;
and receiving data transmitted by the second electronic equipment through the first channel.
2. The method of claim 1, further comprising:
if the Wi-Fi connection request information sent by the second electronic equipment is not received, establishing Wi-Fi connection with the second electronic equipment on a second channel, wherein the second channel is a channel on a second target frequency band commonly supported by the first electronic equipment and the second electronic equipment.
3. The method according to claim 1 or 2, wherein when an intersection between the first channel list and the first target frequency band channel supported by the first electronic device is empty, sequentially querying whether the Wi-Fi connection request information sent by the second electronic device is received on the first target frequency band channel supported by the first electronic device, specifically includes:
when the intersection of the first channel list and the second channel list is empty, sending capability query information to the second electronic device, where the capability query information is used to query whether the second electronic device supports the first target frequency band capability;
receiving capability response information sent by the second electronic device, where the capability response information is used to indicate that the second electronic device supports the first target frequency band capability;
and sequentially inquiring whether the Wi-Fi connection request information sent by the second electronic equipment is received on the first target frequency band channel supported by the first electronic equipment.
4. The method according to claim 1 or 2, wherein the sequentially querying whether the Wi-Fi connection request information sent by the second electronic device is received on the first target frequency band channel supported by the first electronic device specifically includes:
waiting for a preset target duration on the first target frequency band channel supported by the first electronic device in sequence;
and detecting whether the Wi-Fi connection request information sent by the second electronic equipment is received or not in the target time length.
5. The method according to claim 2, wherein if the Wi-Fi connection request message sent by the second electronic device is not received, establishing a second target frequency band Wi-Fi connection with the second electronic device on a second channel, specifically including:
setting a preset time length;
if the Wi-Fi connection request information sent by the second electronic equipment is not received within the preset time length, establishing Wi-Fi connection with the second electronic equipment on the second channel at a second target frequency band; alternatively, the first and second electrodes may be,
and if the Wi-Fi connection request information sent by the second electronic equipment is not received after all the first target frequency band channels supported by the first electronic equipment are traversed and the Wi-Fi connection request information is inquired, establishing Wi-Fi connection with the second electronic equipment on a second channel by the second electronic equipment.
6. The method according to claim 1 or 2, characterized in that the method further comprises:
receiving a first operation input by a user;
responding to the first operation, displaying a first interface, wherein the first interface comprises a two-dimensional code, and the two-dimensional code is used for providing an SSID (service set identifier) of a Wi-Fi hotspot of the first electronic equipment in the first target frequency band and a corresponding password.
7. The method according to claim 1 or 2, wherein the obtaining the first channel list of the second electronic device specifically includes:
sending first channel query information to the second electronic device, where the first channel query information is used to query the first target frequency band channel supported by the second electronic device;
receiving first channel response information sent by the second electronic device, where the first channel response information includes the first channel list of the second electronic device.
8. The method of claim 2, wherein the first target frequency band is a 5G frequency band and the second target frequency band is a 2.4G frequency band.
9. The method of claim 1 or 2, wherein the first electronic device comprises a first application and a first Wi-Fi module, wherein the first application comprises a first user experience (UX) display module, a first Bluetooth module, a first clone feature module, and a first channel negotiation module,
the acquiring of the first channel list of the second electronic device specifically includes:
the first channel negotiation module sends channel query information to the first Bluetooth module, wherein the channel query information is used for querying the first target frequency band channel supported by the second electronic equipment;
the first Bluetooth module receives the channel query information and sends the channel query information to a second Bluetooth module of the second electronic device;
the first Bluetooth module receives channel response information sent by the second Bluetooth module, wherein the channel response information comprises the first channel list;
the first Bluetooth module sends the channel response information to the first channel negotiation module;
and the first channel negotiation module acquires a first channel list of the second electronic equipment according to the channel response information.
10. The method of claim 1 or 2, wherein the first electronic device comprises a first application and a first Wi-Fi module, wherein the first application comprises a first user experience, UX, display module, a first bluetooth module, a first clone feature module, and a first channel negotiation module, and wherein the method further comprises:
the first UX display module receives a first operation input by a user, wherein the first operation is used for triggering the first electronic device to start a receiving end process, and the receiving end process comprises the step of establishing Bluetooth connection;
responding to the first operation, the first UX display module sends receiving end flow triggering information to the first clone characteristic module;
responding to the receiving end process triggering information, the first clone characteristic module generates two-dimension code information and sends the two-dimension code information to the first UX display module, wherein the two-dimension code information comprises an SSID (service set identifier) and a corresponding password of the Wi-Fi hotspot of the first electronic device in the first target frequency band.
11. The method of claim 10, further comprising:
in response to sending the two-dimension code information to the first UX display module, the first clone character module sends Bluetooth starting information to the first Bluetooth module;
and responding to the Bluetooth starting information, and the first Bluetooth module establishes Bluetooth connection to a second Bluetooth module of the second electronic equipment.
12. The method of claim 11, further comprising:
the first Bluetooth module sends Bluetooth connection establishment information to a first channel negotiation module, wherein the Bluetooth connection establishment information is used for indicating that Bluetooth connection establishment is completed;
and responding to the Bluetooth connection establishment information, and the first channel negotiation module sends channel inquiry information to the first Bluetooth module.
13. The method according to claim 12, characterized in that it comprises in particular:
the first channel negotiation module sends second channel query information to a first Wi-Fi module, wherein the second channel query information is used for querying the first target frequency band channel supported by the first electronic equipment;
the first Wi-Fi module sends second channel response information to the first channel negotiation module, the second channel response information including a second channel list.
14. The method according to claim 13, wherein when an intersection between the first channel list and the first target frequency band channel supported by the first electronic device is empty, sequentially querying whether Wi-Fi connection request information sent by the second electronic device is received on the first target frequency band channel supported by the first electronic device, specifically includes:
when the intersection of the first target frequency band channels commonly supported by the first electronic device and the second electronic device is obtained according to the first channel list and the second channel list and is empty, the first channel negotiation module sends channel detection indication information to a first channel detection module, wherein the channel detection indication information is used for indicating that Wi-Fi connection request information is inquired on the first target frequency band channels supported by the first electronic device in sequence;
responding to the detection indication information, the first channel detection module sequentially inquires whether Wi-Fi connection request information sent by the second electronic device is received on the first target frequency band channel supported by the first electronic device.
15. The method according to claim 14, wherein when an intersection of the first channel list and the second channel list is empty, sending capability query information to the second electronic device, specifically includes:
the first channel negotiation module sends the capability inquiry information to the first Bluetooth module;
and the first Bluetooth module sends the capability inquiry information to a second Bluetooth module, wherein the second Bluetooth module is a Bluetooth module in the second electronic device.
16. The method according to claim 15, wherein receiving the capability response message sent by the second electronic device specifically includes:
the first Bluetooth module receives the capability response information sent by the second Bluetooth module, wherein the capability response information is used for indicating that the second electronic device supports the first target frequency band;
and the first Bluetooth module sends the capability response information to the first channel negotiation module.
17. The method of claim 16, wherein if the Wi-Fi connection request information sent by the second electronic device is not received, establishing a second target frequency band Wi-Fi connection with the second electronic device on a second channel, specifically comprising:
if the Wi-Fi connection request information sent by the second electronic equipment is not received, the first channel negotiation module closes information to a first target frequency band Wi-Fi hotspot of the first Wi-Fi module;
responding to the first target frequency band Wi-Fi hotspot closing information, and closing the first target frequency band Wi-Fi hotspot by the first Wi-Fi module;
the first channel negotiation module starts information to a Wi-Fi hotspot of a second target frequency band of the first Wi-Fi module;
responding to the Wi-Fi hotspot starting information of the second target frequency band, starting the Wi-Fi hotspot of the second target frequency band by the first Wi-Fi module, and establishing Wi-Fi connection between the first Wi-Fi module and a second Wi-Fi module of the second electronic equipment on the second channel.
18. The method according to claim 17, wherein the first electronic device further includes a first display screen, and the displaying a first interface in response to the first operation, the first interface including a two-dimensional code, specifically includes:
and after receiving the two-dimension code information, the first UX display module indicates the first display screen to display a first interface, wherein the first interface comprises the two-dimension code.
19. An electronic device, comprising:
one or more processors;
one or more memories;
the one or more memories store one or more computer programs, the one or more computer programs comprising instructions, which when executed by the one or more processors, cause the electronic device to perform the method of any of claims 1-18.
20. A computer-readable storage medium, characterized in that it stores a computer-executable program which, when invoked by a computer, causes the computer to perform the method according to any one of claims 1 to 18.
CN202210283002.0A 2022-03-22 2022-03-22 Data transmission method and electronic equipment Active CN114390501B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210283002.0A CN114390501B (en) 2022-03-22 2022-03-22 Data transmission method and electronic equipment
CN202211063500.0A CN116980867A (en) 2022-03-22 2022-03-22 Data transmission method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210283002.0A CN114390501B (en) 2022-03-22 2022-03-22 Data transmission method and electronic equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202211063500.0A Division CN116980867A (en) 2022-03-22 2022-03-22 Data transmission method and electronic equipment

Publications (2)

Publication Number Publication Date
CN114390501A CN114390501A (en) 2022-04-22
CN114390501B true CN114390501B (en) 2022-09-09

Family

ID=81205814

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202210283002.0A Active CN114390501B (en) 2022-03-22 2022-03-22 Data transmission method and electronic equipment
CN202211063500.0A Pending CN116980867A (en) 2022-03-22 2022-03-22 Data transmission method and electronic equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202211063500.0A Pending CN116980867A (en) 2022-03-22 2022-03-22 Data transmission method and electronic equipment

Country Status (1)

Country Link
CN (2) CN114390501B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115562570B (en) * 2022-04-27 2023-09-12 荣耀终端有限公司 Data migration method, system and electronic equipment
CN117331471A (en) * 2022-06-27 2024-01-02 华为技术有限公司 Interaction method and related equipment
CN116133161B (en) * 2023-04-14 2023-08-22 荣耀终端有限公司 Data transmission method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106162829A (en) * 2016-09-19 2016-11-23 青岛海信电器股份有限公司 WIFI method of attachment and device
CN106233813A (en) * 2014-04-22 2016-12-14 华为技术有限公司 A kind of unlicensed spectrum carries out the method for data communication, equipment and communication system
CN110870353A (en) * 2018-06-07 2020-03-06 华为技术有限公司 WiFi connection method and terminal
CN113645693A (en) * 2021-10-14 2021-11-12 荣耀终端有限公司 WiFi P2P connection method, electronic device, program product, and medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586857B (en) * 2019-02-15 2022-04-05 华为技术有限公司 Transmission method and communication device of reference signal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106233813A (en) * 2014-04-22 2016-12-14 华为技术有限公司 A kind of unlicensed spectrum carries out the method for data communication, equipment and communication system
CN106162829A (en) * 2016-09-19 2016-11-23 青岛海信电器股份有限公司 WIFI method of attachment and device
CN110870353A (en) * 2018-06-07 2020-03-06 华为技术有限公司 WiFi connection method and terminal
CN113645693A (en) * 2021-10-14 2021-11-12 荣耀终端有限公司 WiFi P2P connection method, electronic device, program product, and medium

Also Published As

Publication number Publication date
CN116980867A (en) 2023-10-31
CN114390501A (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN114390501B (en) Data transmission method and electronic equipment
CN111837425B (en) Access method, access device and storage medium
KR101698094B1 (en) Apparatus and method for providing service corresponding to a service zone
WO2020233538A1 (en) Method for accessing wireless local area network and terminal
KR20140146362A (en) Method and apparatus for transmitting contents in a portable terminal
US20060229016A1 (en) Apparatus and method for displaying information in Bluetooth communication mode of wireless terminal
CN112130788A (en) Content sharing method and device
JP7234379B2 (en) Methods and associated devices for accessing networks by smart home devices
WO2023160265A1 (en) Incoming call response method and corresponding terminal and communication system
CN116114239B (en) Volume management method and electronic equipment
WO2022116974A1 (en) Access method and system and electronic device
KR20170081910A (en) Device and method for establishing communication connection
CN110870353B (en) WiFi connection method and terminal
EP4350540A1 (en) Account login method and electronic device
CN114157659B (en) File sharing method and terminal equipment
KR20180121178A (en) Method for wireless connection and electronic device thereof
US20110077012A1 (en) Method and system of power saving and portable device using the same
CN115022872B (en) Data transmission method, electronic equipment and readable storage medium
CN114916054A (en) Communication method, device and terminal equipment
CN116471707B (en) Method, device and system for connecting router
CN114915619B (en) File sharing method and electronic equipment
CN113676902B (en) System, method and electronic equipment for providing wireless internet surfing
CN116349382A (en) Random access resource allocation method, device, equipment and storage medium
CN114980045A (en) Bluetooth connection method and electronic equipment
CN115982106A (en) File sharing method and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant