CN115022872B - Data transmission method, electronic equipment and readable storage medium - Google Patents

Data transmission method, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115022872B
CN115022872B CN202111308878.8A CN202111308878A CN115022872B CN 115022872 B CN115022872 B CN 115022872B CN 202111308878 A CN202111308878 A CN 202111308878A CN 115022872 B CN115022872 B CN 115022872B
Authority
CN
China
Prior art keywords
channel
electronic device
module
frequency band
information
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
CN202111308878.8A
Other languages
Chinese (zh)
Other versions
CN115022872A (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 CN202111308878.8A priority Critical patent/CN115022872B/en
Priority to CN202310319694.4A priority patent/CN116489645B/en
Publication of CN115022872A publication Critical patent/CN115022872A/en
Application granted granted Critical
Publication of CN115022872B publication Critical patent/CN115022872B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/068Authentication using credential vaults, e.g. password manager applications or one time password [OTP] applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0268Traffic management, e.g. flow control or congestion control using specific QoS parameters for wireless networks, e.g. QoS class identifier [QCI] or guaranteed bit rate [GBR]
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • 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

Landscapes

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

Abstract

The application provides a data transmission method and electronic equipment, and belongs to the technical field of terminals. The method is applied to first electronic equipment, the first electronic equipment supports 5G capability, when a 5G channel supported by second electronic equipment cannot be acquired, 5G Wi-Fi connection with the second electronic equipment is tried on the 5G channel supported by the first electronic equipment, if the attempt is successful, the first electronic equipment and the second electronic equipment perform data transmission on the 5G channel, the probability of the data transmission of the first electronic equipment and the second electronic equipment on the 5G channel can be improved, and therefore the efficiency of the data transmission is improved.

Description

Data transmission method, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of terminals, and in particular, to a data transmission method, an electronic device, and a readable storage medium.
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 conveniently changing a machine.
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, electronic equipment and a readable storage medium, wherein the method comprises the steps that when the electronic equipment cannot acquire a target frequency band channel supported by opposite-end equipment, one channel is selected from the target frequency band channels supported by the electronic equipment to try to establish Wi-Fi connection with the opposite end, and the problem that the probability of establishing the Wi-Fi connection on the target frequency band 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: acquiring a first channel list of a 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 a second channel list is empty, starting a first target frequency band wireless fidelity Wi-Fi hotspot on a first channel, wherein the second channel list is used for indicating the first target frequency band channel supported by the first electronic device, and the first channel is one of the first target frequency band channels supported by the first electronic device; when a Wi-Fi connection request message sent by the second electronic device through the first channel is acquired within a preset time length, establishing Wi-Fi connection with the second electronic device on the first channel, wherein the Wi-Fi connection request message comprises a Service Set Identifier (SSID) of the Wi-Fi hotspot and a corresponding password, and is a polling message sent by the second electronic device on a first target frequency band channel supported by the second electronic device; and receiving data transmitted by the second electronic equipment through the first channel.
In one implementation, the first target frequency band channel may be a 5G channel, where the 5G channel in this embodiment refers to a Wi-Fi channel on a 5G frequency band.
In one implementation, 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.
In one implementation, the first channel list refers to a first target frequency band channel set supported by the second electronic device; the second channel list refers to a first target frequency band channel set supported by the first electronic device. The intersection of the first channel list and the second channel list is empty, which means that the first electronic device and the second electronic device do not have a first target frequency band channel supported jointly, that is, the first target frequency band channel set supported jointly by the first electronic device and the second electronic device is empty.
It should be understood that, in the embodiment of the present application, the reason that the intersection of the first channel list and the second channel list is empty may be, for example: the second electronic device does not successfully inquire the first target frequency band channel supported by the second electronic device.
According to the data transmission method provided by the implementation manner, when the intersection of the target frequency band channels supported by the receiving device and the sending device is an empty set, the receiving device selects the target frequency band channel supported by the receiving device to try to establish connection with the sending device, and when the connection is tried successfully, the receiving device and the sending device perform clone data transmission on the target frequency band channel, so that the efficiency of clone data transmission can be improved, and the use experience of a user is improved.
With reference to the first aspect, in any implementation manner of the first aspect, the method further includes: when the Wi-Fi connection request message sent by the second electronic device through the first channel is not received within a preset time length, establishing Wi-Fi connection with the second electronic device on a second channel, wherein the second channel is a certain second target frequency band channel commonly supported by the first electronic device and the second electronic device.
In one implementation, the second target frequency band channel may refer to a 2.4G channel, and the 2.4G channel in this embodiment refers to a Wi-Fi channel on a 2.4G frequency band.
It should be understood that the first electronic device and the second electronic device have a second target frequency band commonly supported, and therefore, when the first electronic device and the second electronic device establish a Wi-Fi connection on the first target frequency band, the first electronic device may switch on the Wi-Fi hotspot of the second target frequency band and establish a Wi-Fi connection with the second electronic device on a second channel in the first target frequency band channel.
According to the data transmission method provided by the implementation manner, if the Wi-Fi connection request message sent by the second electronic device is not received within the preset time, the first electronic device may be switched to the Wi-Fi hotspot of the second target frequency band, which may be a 2.4G frequency band, and then the first electronic device and the second electronic device may perform data transmission on the second target frequency band supported by both sides.
With reference to the first aspect, in any implementation manner of the first aspect, when an intersection of the first channel list and the second channel list is empty, the opening a first target frequency band Wi-Fi hotspot on the first channel 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; 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; and starting the first target frequency band Wi-Fi hotspot on the first channel.
According to the data transmission method provided by the implementation manner, before the first electronic device tries to establish Wi-Fi connection with the second electronic device on the first channel, the second electronic device is inquired about the 5G capability of the first electronic device, and after the second electronic device is determined to support the 5G capability, the Wi-Fi hotspot is established on the first channel, so that the possibility that the two parties successfully establish Wi-Fi connection on the 5G channel can be further improved.
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; and 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 the SSID of the Wi-Fi hotspot and a corresponding password.
According to the data transmission method provided by the implementation mode, the first electronic equipment can provide the connection information of the Wi-Fi hotspot of the first target frequency band of the first electronic equipment to the second electronic equipment in a two-dimensional code mode, so that the second electronic equipment can establish Wi-Fi connection with the first electronic equipment based on the Wi-Fi connection information subsequently.
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 a first channel list of the second electronic device.
Optionally, the first electronic device may establish a bluetooth connection with the second electronic device, and then the first electronic device may send the first target frequency band channel to the second electronic device through a bluetooth channel, and may also receive the first channel list sent by the second electronic device through the bluetooth channel.
With reference to the first aspect, in some implementation manners of the first aspect, when an intersection of the first channel list and the second channel list is empty, the starting a first target frequency band wireless fidelity Wi-Fi hotspot on the first channel specifically includes: when the intersection of the first channel list and the second channel list is empty, randomly selecting the first channel from the first target channels supported by the first electronic device; or, when an intersection of the first channel list and the second channel list is empty, selecting the first channel from the first target channels supported by the first electronic device according to signal strength.
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 implementation manners of the first aspect, the first electronic device includes a first application and a first short-range Wi-Fi module, the first application includes a first user experience UX display module, a first bluetooth module, a first clone characteristic module, and a first channel negotiation module, and the acquiring a 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 device; the first Bluetooth module receives the channel query information and sends the channel query information to the second Bluetooth module; 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 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 short-range Wi-Fi module, wherein the second channel query information is used for querying the first target frequency band channel supported by the first electronic device; the first short-range Wi-Fi module sends second channel response information to the first channel negotiation module, wherein the second channel response information comprises the second channel list.
With reference to the first aspect, in some implementation manners of the first aspect, when an intersection of the first channel list and the second channel list is empty, the starting a first target frequency band wireless fidelity Wi-Fi hotspot on the first channel specifically includes: when the intersection of the first target frequency band channel 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 first target frequency band Wi-Fi hotspot opening information to the first short-distance Wi-Fi module; and responding to the start information of the Wi-Fi hotspot of the first target frequency band, and starting the Wi-Fi hotspot of the first target frequency band by the first short-distance Wi-Fi module.
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: and the first channel negotiation module sends the capability inquiry information to the first Bluetooth module.
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 implementations of the first aspect, when the Wi-Fi connection request message sent by the second electronic device via the first channel is not received within a preset time period, establishing a Wi-Fi connection with the second electronic device on a second channel specifically includes: when the Wi-Fi connection request message sent by the second electronic device through the first channel is not received within the preset time length, the first channel negotiation module closes information to a first target frequency band Wi-Fi hotspot of the first short-range 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 short-distance Wi-Fi module; the first channel negotiation module starts information to a Wi-Fi hotspot of a second target frequency band of the first short-distance Wi-Fi module; responding to the Wi-Fi hotspot opening information of the second target frequency band, the first short-distance Wi-Fi module opens the Wi-Fi hotspot of the second target frequency band, and the first short-distance Wi-Fi module and a second short-distance Wi-Fi module of the second electronic equipment establish Wi-Fi connection 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: sending a first channel list to a first electronic device, wherein the first channel list is used for indicating a first target frequency band channel supported by the second electronic device; when a first target frequency band Wi-Fi hotspot is opened on a first channel by the first electronic device, establishing Wi-Fi connection with the first electronic device on the first channel, wherein the first channel is a certain channel selected by the first electronic device from the first target frequency band channels supported by the first electronic device when an intersection of the first channel list and the second channel list is empty, and the first channel is also one of the first target frequency band channels supported by the second electronic device; transmitting data to the first electronic device via 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 device on the first channel is not successfully established within a preset time length, the Wi-Fi connection with the first electronic device on a second channel is established, and the second channel is a certain second target frequency band channel supported by the first electronic device and the second electronic device.
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 band 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 (service set identifier) and the corresponding password of the Wi-Fi hotspot provided by the two-dimensional code.
With reference to the second aspect, in certain implementations of the second aspect, the method further includes: sending a Wi-Fi connection request message, wherein the Wi-Fi connection request message comprises an SSID (service set identifier) of the Wi-Fi hotspot and a corresponding password, and the Wi-Fi connection request message is a polling message sent by the second electronic device on a first target frequency band supported by the second electronic device.
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 short-range Wi-Fi module, the second application includes a second UX display module, a second clone characteristic module, a second bluetooth module, and a second channel negotiation module, and 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 short-range 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 flow starting information of the sending end, 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 and the corresponding password of the Wi-Fi hotspot, and sends the SSID and the corresponding password of the Wi-Fi hotspot to a 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 short-range Wi-Fi module to attempt to connect to the Wi-Fi hotspot; the second short-range 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; in response to the capability query information, the second channel negotiation module queries the second short-range Wi-Fi module for the first target frequency band capability of the second electronic device; the second short-range 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, 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 as described in any of the implementations of the first or second aspects above.
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 schematic structural diagram of another first electronic device 100 according to an embodiment of the present disclosure.
Fig. 5A to 5C are schematic diagrams of GUIs that may be involved in the data transmission method provided in 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 of data flow interaction among modules of a device in an implementation process of a data transmission method 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 flow chart of another method for data transmission 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, "/" indicates an alternative meaning, for example, a/B may indicate 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 and more crowded and cannot meet development requirements, 5G frequency bands are opened in various countries successively, and compared with 2.4Gwi-Fi,5Gwi-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 GDA0003996455570000071
Figure GDA0003996455570000081
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 can be greatly improved. Considering that the available situation of the 5G frequency band is complex, when data cloning is performed on the 5G frequency band, new and old devices need to negotiate and 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), a new device 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 may 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 of a chip 5G channel, and at this time, if the clone application installed on the old device is a third party App, the clone application cannot query a 5G channel list supported by the old device, and the new device and the old device cannot confirm the 5G channel commonly supported by both devices by comparing the channel lists.
In view of the above problems, embodiments of the present application provide a data transmission method, where in a case where a list of 5G channels supported by an old device cannot be obtained, a new device attempts to establish Wi-Fi connection between a 5G channel supported by the new device and an opposite terminal according to a preset rule, 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, for receiving 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 cloning 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 for sending backup data to the first electronic device 100, and the second electronic device 200 may also be described as a sending device (or sender) 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 according to an embodiment of the present application is provided.
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 specifically limit 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. The different processing units may be separate devices or may be integrated into 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 the 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 reuse the instruction or data, 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 bidirectional synchronous serial bus including 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, a charger, a flash, a 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, so 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 through an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through the I2S interface, so as to implement a function of receiving a call through a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit the audio signal to the wireless communication module 160 through the PCM interface, so as to implement the function of answering a call through the 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 shooting 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, I2S interface, UART interface, MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may 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 on 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 transferred 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, the application processor, and the like.
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 layered architecture as an example to exemplarily illustrate 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 an 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, WLAN, maps, bluetooth, music, gallery, talk and clone applications, etc. The clone application may include a UX display module, a clone feature 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 answered, 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 short dwell, and does not require user interaction. Such as a notification manager used to inform 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, an indicator light flashes, and the like.
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. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. 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), short-range 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 short-range 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 of performing clone-change between new and old equipment, namely when a user needs to migrate data on the old equipment to the new equipment, the possibility that the two parties transmit the data on a 5G channel can be improved by the data transmission method provided by the embodiment of the application, and therefore the data transmission efficiency is improved. For example, as shown in fig. 5A to fig. 5C, schematic diagrams of some Graphical User Interfaces (GUIs) that may be involved in a data transmission process provided in an embodiment of the present application are shown. 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 described as a new mobile phone.
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. 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 description of a switch machine cloning function, such as "fire speed migrates data such as contacts, pictures, schedules, etc. to a new device" 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.
Illustratively, 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 (e.g., the new handset is glory, then one of the old device types displayed by the interface may also be glory),
Figure GDA0003996455570000141
Old device type (e.g., old handset if it is other than glory @>
Figure GDA0003996455570000142
The mobile phone can be corresponding to the type) and/or based on the judgment result>
Figure GDA0003996455570000143
Old device type (e.g., old handset if iPhone, iPad, etc. used @>
Figure GDA0003996455570000144
The device of the system, then, may correspond to that type).
In some embodiments, it is assumed that the old handset is a different type of other handset than the new handset
Figure GDA0003996455570000145
A 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 may establish a bluetooth connection with the old mobile phone, and the bluetooth connection establishment process 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, the old mobile phone and the new mobile phone finish pairing authentication, and the Bluetooth connection for transmitting data can be established.
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 "change machine clone" installed, the old device selection interface may also include an install link for the "change machine clone". 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 transmit the installation information of the "clone-changed" application to the old handset through bluetooth communication, so that the old handset installs the "clone-changed" APP 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, the first electronic device is installed with a clone application, which may include a first user experience (UX) display module, a first clone property module, a first discovery connection module, and a first transmission module, wherein the first discovery connection module 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 the Android system layered architecture of the first electronic device (as shown in fig. 4). In addition, the first electronic device may further include a short-range 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 short-range Wi-Fi module, and the short-range 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 in this embodiment of the present application is executed, the clone property module of the first electronic device may receive a first operation input by a user through the 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-end second electronic device, and the like. For example, the first operation may be a user start receiving end clone App operation, an old device type selection operation (which may correspond to operation 502 shown in fig. 5B), or the like. Responding 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, wherein the two-dimensional code comprises SSID and password information of the W-iFi hotspot of the first electronic device.
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, 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 opening 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 (i.e., wi-Fi hotspot 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 acquired two-dimensional code data (i.e., wi-Fi hotspot connection information, including SSID and password information of a Wi-Fi hotspot) to the second clone characteristics module. After the second clone characteristic module receives the Wi-Fi connection information, the Wi-Fi connection information can be sent to the second connection module, and the second connection module is instructed 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 short-range Wi-Fi module after receiving the Wi-Fi connection information, and instruct the second short-range 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 is activated, and the bluetooth module may broadcast a bluetooth message. Optionally, the first clone property module may further send bluetooth activation information to the first bluetooth module in response to the two-dimensional code being scanned, 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 property module, and in response to the notification information that the two-dimensional code is scanned, the first clone property module sends bluetooth activation information to the first bluetooth module to instruct the bluetooth module to establish bluetooth connection.
On the second electronic equipment side, responding to the two-dimension code scanning operation, a second clone characteristic module of the second electronic equipment sends Bluetooth starting information to a second Bluetooth module in a second connecting component; and responding to the Bluetooth starting information, starting the second Bluetooth module, and scanning Bluetooth messages by the Bluetooth module.
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 process of the first channel negotiation module for querying the self-supported 5G channel list may include: the first channel negotiation module sends first electronic equipment 5G channel query information to the first short-distance 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 short-range 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 message to the second short-range Wi-Fi module to query for the 5G channels supported by the second electronic device stored in the second short-range Wi-Fi module. In a possible implementation manner, when the second short-range Wi-Fi module does not have a communication interface, the second short-range Wi-Fi module cannot successfully acquire the 5G channel query information sent by the second channel negotiation module, and then the second channel negotiation module cannot successfully acquire the 5G channel list fed back by the second short-range Wi-Fi module. In this case, the 5G channel list generated by the second channel negotiation module, and the 5G channels included in the 5G channel list 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 short-distance Wi-Fi module after receiving the 5G hotspot opening information, and instructs the first short-distance 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 a 5Gwi-Fi connection through the first short-range Wi-Fi module and the second short-range Wi-Fi module respectively, and finally the first electronic device and the second electronic device can perform data transmission on the 5G channel for establishing the connection 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 short-range 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 randomly select one of the 5G channels supported by the first electronic device itself to attempt a 5G Wi-Fi connection with the second electronic device. If the connection is successful, the subsequent first electronic equipment and the second electronic equipment can perform data transmission on the 5G channel; if the connection is not successful, the first electronic device may close the 5G hotspot, open the 2.4G hotspot, and establish a Wi-Fi connection with the second electronic device on the 2.4G channel.
Or, optionally, if the connection is not successful, the first electronic device may randomly select another channel from the 5G channels supported by the first electronic device, and continuously perform an attempt to establish a 5G Wi-Fi connection with the second electronic device until the 5G channel on which both sides can successfully establish a connection is obtained. If all the 5G channels supported by the first electronic device cannot enable the two parties to successfully establish connection after the attempt, 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.
According to the data transmission method provided by the embodiment of the application, under the condition that the sending equipment cannot provide the 5G channel supported by the sending equipment, the receiving equipment selects the 5G channel supported by the receiving equipment to try to establish connection with the sending equipment, and when the connection is tried successfully, the receiving equipment and the sending equipment perform clone data transmission on the 5G 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 that needs to be backed up by a user when the clone is changed, and the first electronic device may be, for example, a new device of the user.
The first operation may be, for example, a receiver-side flow triggering operation input by the user through the cloned application installed by the first electronic device in the switch-machine cloning scenario, where the first operation may be, for example, a start operation of the cloned application, or may also be an old device type selection operation in the cloned 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:
s802, the first UX display module sends receiving end flow triggering information to the first clone character 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: the method comprises the steps of displaying a two-dimensional code comprising Wi-Fi hotspot connection information, establishing Bluetooth connection with second electronic equipment 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-dimensional 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-dimension code information, the first UX display module may instruct the display screen to display a corresponding two-dimension code, where the two-dimension 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 sending end flow trigger information 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 short-range Wi-Fi module.
And S814, the second short-distance 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 capabilities, the second short-range Wi-Fi module, upon receiving the Wi-Fi connection information, may periodically traverse its supported 5G channel in an attempt to establish a Wi-Fi connection with the first short-range Wi-Fi module. For example, the second electronic device may send a Wi-Fi connection request message on a certain 5G channel supported by itself, 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, 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 characteristic 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, the two 5G channel lists do not intersect.
Case 1A and case 1B are introduced with specific channel list examples. In case 1A, assume that the list of 5G channels supported by the first electronic device is: [36 40 44 46 132 153 161 165], the list of 5G channels supported by the second electronic device is: [36 44 48 149 463 159 161], then the 5G channel intersection supported by the first electronic device and the second electronic device is: [36 40 44 48 153 161 165]. In case 1B, assume that the list of 5G channels supported by the first electronic device is: [40 44 48 128 132 157 165], the list of 5G channels supported by the second electronic device is: [36 46 149 153 155 ], 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 the 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, it may also be represented in other manners, for example, specific information (e.g., null) is carried in 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 present application.
For case 1A, that is, when there is an intersection between the first electronic device and the 5G channel list supported by 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 short-distance Wi-Fi module.
The 5G hotspot opening information is used for indicating the first short-distance Wi-Fi module to open the 5G hotspot.
For example, the specific process that the first channel negotiation module sends the 5G hotspot opening information to the first short-range 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 short-distance Wi-Fi module screens a 5G channel and starts a 5G hotspot.
In some embodiments, after receiving the 5G hotspot opening information, the first short-range 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 the 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 with the optimal signal strength.
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 opens the 5G hot spot and tries to establish 5G Wi-Fi connection.
S822, the first electronic device and the second electronic device establish 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 supported by both 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, the data transmission channel of the first electronic device and the second electronic device may be a 5G channel in step S822, where the 5G channel is a certain 5G channel commonly supported by the first electronic device and the second electronic device.
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, as shown in FIG. 16A. In addition, the number and the size of information included in 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 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 a transmission data selection operation input by the user, and the third operation may be, for example, a click operation of the user on a selection frame 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 the 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, under the condition that the sending equipment cannot provide the 5G channel supported by the sending equipment, the receiving equipment selects the 5G channel supported by the receiving equipment to try to establish connection with the sending equipment, and when the connection is tried successfully, the receiving equipment and the sending equipment perform clone data transmission on the 5G channel, so that the efficiency of clone data transmission can be improved, and the use experience of a user is improved.
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 master device.
S8152, responding to the Bluetooth starting information, 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.
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 as an example. 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 the embodiment of the present application, only the bluetooth connection is taken as an example, but in practical applications, the communication connection may also be another type of communication connection that enables the first electronic device and the second electronic device to interact with each other to negotiate the relevant information.
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 inquiry 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 short-distance Wi-Fi module.
In some embodiments, the second channel negotiation module queries the second short-range 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 cannot successfully acquire the 5G channel query information that is successfully sent to the second short-range Wi-Fi module, and cannot successfully acquire the 5G channel supported by the second electronic device and fed back by the second short-range Wi-Fi module. At this time, the second channel negotiation module may generate 5G channel response information, where a 5G channel list included in the 5G channel response information is empty, that is, the 5G channel list does not include the 5G channel supported by the second electronic device.
It should be noted that, in practical 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 computer 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 both 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, when the second channel negotiation module does not inquire about the 5G channel supported by the second electronic device, generate first 5G channel response information, where the first 5G channel response information includes a 5G channel list supported by the second electronic device, and the 5G channel list is empty.
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 short-distance 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 short-range 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.
S81611, the first channel negotiation module compares the 5G channel list supported by the first electronic device with the 5G channel list supported by the second electronic device, and determines that the 5G channel set supported by both of them is empty.
For example, assume that the list of 5G channels supported by the first electronic device is: 36 40 44 46 132 153 161 165, the list of 5G channels supported by the second electronic device is empty, that is [ ], then the first channel negotiation module may determine, 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, that the set of 5G channels supported by both of them is empty [ ]. Or, when the first channel response information carries specific information (e.g., null) indicating that the 5G channel list of the second electronic device is empty, the first channel negotiation module may determine, according to the 5G channel list supported by the first electronic device and the 5G channel list supported by the second electronic device, that the 5G channel set jointly supported by both of the first and second electronic devices is empty.
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 the 5G capability.
In some embodiments, when the first channel negotiation module determines that the set of 5G channels supported by both parties is empty in step S81611, the first channel negotiation module may send the 5G capability inquiry information to the first bluetooth module.
S8182, the first Bluetooth module sends 5G capability inquiry information to the second Bluetooth module through a 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 short-distance Wi-Fi module.
It should be noted that the second electronic device may have a generic interface for 5G capability query, such as Wi-FiManager: is5GHzBandSupported (). After receiving the 5G capability query information, the second channel negotiation module may send the 5G capability query information to the second short-range Wi-Fi module via the general interface to query whether the second electronic device supports the 5G capability.
And S8185, the second short-distance 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.
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 information 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 of the first electronic device performing corresponding operations in case 2A and case 2B described above is shown.
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:
and S8201, the first channel negotiation module sends 2.4G hot spot opening information to the first short-distance Wi-Fi module.
The 2.4G hotspot opening information is used for indicating the first short-distance 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 short-range 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 the first short-range 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 short-distance Wi-Fi module conducts 2.4G channel screening, and a 2.4G hotspot is opened.
The short-range 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: and screening the channel with the optimal signal strength from the 2.4G channels supported by the two parties according to the signal strength.
For case 2B, that is, when the second electronic device supports the 5G capability, the first electronic device may perform the following steps:
s8211, the first channel negotiation module indicates the timer to set a preset time length.
For example, the preset time period may be 30s, for example, and this is not limited in the embodiment of the present application.
S8212, the first channel negotiation module sends 5G hotspot opening information to the first short-distance Wi-Fi module, and the 5G hotspot opening information is used for indicating the first short-distance Wi-Fi module to open the 5G hotspot.
S8213, the first short-distance Wi-Fi module conducts 5G channel screening and opens a 5G hotspot.
In some embodiments, a short-range Wi-Fi module of the first electronic device may select a channel in a list of 5G channels supported by the first electronic device to attempt to establish a 5G Wi-Fi connection with the second electronic device. The first short-range Wi-Fi module may perform 5G channel screening in multiple ways, including: mode 1, according to the signal strength of the 5G channel supported by the first electronic device, selecting the 5G channel with the optimal signal strength; mode 2, randomly select a 5G channel, and so on.
It should be noted that, in this embodiment of the application, the process of the first electronic device attempting to open the 5G hotspot may include: selecting a 5G channel supported by the first electronic equipment to try to establish 5Gwi-Fi connection with the second electronic equipment within a preset time length; if the 5G Wi-Fi connection is not successfully established within the preset time length, the currently used 5G channel is possibly not supported by the second electronic equipment, the first electronic equipment is switched to the 2.4G hotspot, and the two parties transmit data through the 2.4G channel.
Or, if the 5G Wi-Fi connection is not successfully established within the preset time period, the first electronic device may attempt to establish the 5G Wi-Fi connection with the second electronic device on the 5G channels supported by the other first electronic devices within the new preset time period. According to the process, 5G channels supported by the first electronic device can be traversed to try the 5G Wi-Fi connection, if the Wi-Fi connection of the two sides on one 5G channel is successful in the trying process, the 5G channel can be used for data transmission subsequently, and efficient switch and cloning are achieved; and if the two parties cannot successfully establish the 5G Wi-Fi connection after traversing all the 5G channels supported by the first electronic equipment, the first electronic equipment is switched to the 2.4G hotspot, and the two parties transmit data through the 2.4G channel.
In a possible implementation manner, the second electronic device may use, for example, a 5G channel of a different country with the first electronic device, where there may be a partial intersection between the 5G channels actually supported by the first electronic device and the second electronic device, and through the connection attempting process, a 5G Wi-Fi connection may be established on the 5G channels supported by both sides. Exemplary 5G channel open conditions for different countries are shown in table 2:
TABLE 2
Figure GDA0003996455570000261
Figure GDA0003996455570000271
Assuming that the 5G channel screened by the first short-range Wi-Fi module is also the 5G channel supported by the second electronic device, the first electronic device and the second electronic device may establish a 5G Wi-Fi connection on the 5G channel. Assuming that the 5G channel filtered by the first short-range Wi-Fi module is a 5G channel that is not supported by the second electronic device, the first electronic device and the second electronic device cannot successfully establish a 5G Wi-Fi connection on the 5G channel.
For these two different cases, the first electronic device may perform the following steps:
s8214, if the 5G Wi-Fi connection is successfully established with the second electronic equipment within the preset time length, data transmission is carried out with the second electronic equipment through a 5G channel; and if the 5G Wi-Fi connection with the second electronic equipment is not successfully established within the preset time length, performing data transmission with the second electronic equipment through a 2.4G channel.
It should be noted that, in conjunction with step S814, the second electronic device may periodically poll the 5G channel supported by the second electronic device to attempt to connect to the Wi-Fi hotspot corresponding to the Wi-Fi connection information. If the 5G channel where the 5G hotspot currently opened by the first electronic device is located (assuming that the channel code of the 5G channel is 36) is also the 5G channel actually supported by the second electronic device, when the second electronic device traverses to send the Wi-Fi connection request on the 5G channel (channel code is 36), the first electronic device may receive the Wi-Fi connection request on the 5G channel (channel code is 36), and then the two parties may successfully establish the 5G Wi-Fi connection. If the 5G channel where the 5G hotspot currently opened by the first electronic device is located (assuming that the channel code of the 5G channel is 40) is a 5G channel that is not supported by the second electronic device (that is, the set of 5G channels actually supported by both parties is empty), even if the second electronic device traverses all the 5G channels supported by itself to send the Wi-Fi connection request, the first electronic device cannot acquire the Wi-Fi connection request, and both parties cannot successfully establish a 5G Wi-Fi connection.
In some embodiments, the first electronic device and the second electronic device successfully establish a 5G Wi-Fi connection, and the first electronic device and the second electronic device may create a data transmission channel on the currently screened 5G channel of the first electronic device for data transmission. The process of creating the data channel may be as shown in fig. 14 below, and the specific process will be described below, which is not detailed here for the time being.
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. Illustratively, as shown in fig. 13, the specific process may include the following steps:
s82141, the first channel negotiation module determines that the timer exceeds a preset time period, and the 5G Wi-Fi connection between the first electronic device and the second electronic device is not successfully established.
In some embodiments, the first channel negotiation module may acquire notification information that is sent by the timer and reaches a preset time duration. In addition, the first channel negotiation module can also obtain whether the 5Gwi-Fi connection is successfully established or not through the first short-range Wi-Fi module. The first channel negotiation module may determine that the timer exceeds a preset duration and the first electronic device and the second electronic device are not successfully connected to each other by the 5G Wi-Fi connection according to the notification information sent by the timer and the notification information sent by the first short-range Wi-Fi module. S82142, the first channel negotiation module sends the 5G hotspot closing information to the first short-range Wi-Fi module.
Wherein the 5G hotspot closing information is used for indicating the first short-range Wi-Fi module to close the 5G hotspot.
S82143, responding to the 5G hot spot closing information, and closing the 5G hot spot by the first short-distance Wi-Fi module.
Optionally, after the first short-range Wi-Fi module closes the 5G hotspot, notification information of closing the 5G hotspot may be sent to the first channel negotiation module.
S82144, the first channel negotiation module sends 2.4G hotspot opening information to the first short-range Wi-Fi module, where the 2.4G hotspot opening information is used to indicate that the first short-range Wi-Fi module opens the 2.4G hotspot.
S82145, responding to the 2.4G hotspot closing information, and opening the 2.4G hotspot by the first short-distance Wi-Fi module.
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 for establishing a data transmission channel between a first electronic device and a second electronic device may specifically include the following steps:
s8221, the first short-distance Wi-Fi module and the second short-distance Wi-Fi module establish Wi-Fi connection.
For example, if the first electronic device and the first short-range Wi-Fi module determine that both sides successfully establish the 5G Wi-Fi connection within the preset time period (corresponding to the case of successfully establishing the 5G Wi-Fi in step S8214), the Wi-Fi connection established in this step may be the 5G Wi-Fi connection established on the 5G channel.
Illustratively, the process of establishing a Wi-Fi connection may include: the second short-distance Wi-Fi module periodically traverses a 5G channel supported by the second short-distance Wi-Fi module to send a Wi-Fi connection request message, wherein the Wi-Fi connection request message comprises connection information such as SSID (service set identifier) and passwords of a Wi-Fi hotspot of the first electronic equipment and is used for requesting to establish connection with the Wi-Fi hotspot corresponding to the SSID; and after the first short-range Wi-Fi module starts the 5G hotspot, monitoring a Wi-Fi request message, and if the Wi-Fi connection request sent by the second electronic equipment can be monitored, and the second electronic equipment requests to establish 5G Wi-Fi connection with the first electronic equipment according to the Wi-Fi connection request message, establishing 5Gwi-Fi connection on a 5G channel currently used by the second electronic equipment by the two parties.
S8222, the first short-distance Wi-Fi module sends Wi-Fi connection notification information to the first channel negotiation module, and the Wi-Fi connection communication information is used for notifying that the 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 hint information may be, for example, "the old device has successfully connected to the 5GWi-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 short-distance 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 file transfer start information to the second clone characteristic 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 that needs to be backed up into the first electronic device by inputting a tape transfer data selection operation (corresponding to the third operation) at 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 acquiring 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 characteristics 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, during data transmission, the first UX display module instructs the display screen to display, to a user, prompt information about 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 sending equipment cannot provide the 5G channel supported by the sending equipment, the receiving equipment selects the 5G channel supported by the receiving equipment to try to establish connection with the sending equipment, and when the connection is tried successfully, the receiving equipment and the sending equipment perform clone data transmission on the 5G channel, so that the efficiency of clone data transmission can be improved, and the use experience of a user is improved.
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 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.
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 an SSID of the Wi-Fi hotspot and a corresponding password (which may correspond to the two-dimensional code data in the above embodiment, or Wi-Fi hotspot connection information) provided by the two-dimensional code.
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 in which 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; then, the first electronic device and the second electronic device may establish a bluetooth connection based on a bluetooth communication standard, and the 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 inquiry 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 list includes the first target frequency band channel as empty, and the list of 5G channels that may correspond to the above-described feedback of the second electronic device is empty.
S1702, when an intersection of the first channel list and the second channel list is empty, the first electronic device starts a first target frequency band wireless fidelity Wi-Fi hotspot on the first channel, where the second channel list is used to indicate a first target frequency band channel supported by the first electronic device, and the first channel is one of the first target frequency band channels supported by the first electronic device.
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 second channel query information to the first short-range Wi-Fi module and receive second channel response information sent by the first short-range Wi-Fi module, where the second channel response information 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, the reason that the intersection of the first channel list and the second channel list is empty may be, for example: the second electronic device does not successfully inquire the first target frequency band channel supported by the second electronic device.
In some embodiments, the process of the first electronic device opening the first target frequency band Wi-Fi hotspot on the first channel may include: when the intersection of the first channel list and the second channel list acquired by the first electronic device is empty, a first channel may be selected on a first target frequency band supported by the first electronic device itself, and then a first target frequency band Wi-Fi hotspot is opened on the first channel.
For example, the manner of selecting, by the first electronic device, the first channel from the first target frequency band supported by the first electronic device may include: when the intersection of the first channel list and the second channel list is empty, the first electronic equipment randomly selects a first channel from first target channels supported by the first electronic equipment; or, when the intersection of the first channel list and the second channel list is empty, the first electronic device selects a first channel from first target channels supported by the first electronic device according to the signal strength, and in this case, the first channel may be a channel with optimal signal strength, for example.
In some embodiments, the process of the first electronic device opening the first target frequency band Wi-Fi hotspot on the first channel 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, when a Wi-Fi connection request message sent by a second electronic device through a first channel is obtained within a preset time, the first electronic device and the second electronic device establish Wi-Fi connection on the first channel, the Wi-Fi connection request message comprises an SSID of a Wi-Fi hotspot and a corresponding password, and the Wi-Fi connection request message is a polling message sent by the second electronic device on a first target frequency band channel supported by the second electronic device.
The SSID and the corresponding password included in the Wi-Fi connection request message can correspond to the first target frequency band Wi-Fi hotspot of the first electronic device. In other words, the Wi-Fi connection request message sent by the second electronic device is used to request connection with the 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.
In some embodiments, if the first electronic device does not receive the Wi-Fi connection request message sent by the second electronic device via the first channel within the preset time period, the first electronic device establishes a Wi-Fi connection (of a second target frequency band) with the second electronic device on a second channel, where the second channel is a certain second target frequency band channel supported by both the first electronic device and the second electronic device.
Wherein the second target frequency band may be a 2.4G frequency band.
S1704, the first electronic device receives data transmitted by the second electronic device via the first channel.
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 sending equipment cannot provide the 5G channel supported by the sending equipment, the receiving equipment selects the 5G channel supported by the receiving equipment to try to establish connection with the sending equipment, and when the connection is tried successfully, the receiving equipment and the sending equipment perform clone data transmission on the 5G channel, so that the efficiency of clone data transmission can be improved, and the use experience of a user is improved.
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 in or transmitted over a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optics, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. 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 incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., 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 by 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 (31)

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:
acquiring a first channel list of a second electronic device, wherein the first channel list is used for indicating a first target frequency band channel supported by the second electronic device;
when the intersection of the first channel list and a second channel list is empty, starting a first target frequency band wireless fidelity Wi-Fi hotspot on a first channel, wherein the second channel list is used for indicating the first target frequency band channel supported by the first electronic device, and the first channel is one of the first target frequency band channels supported by the first electronic device;
when a Wi-Fi connection request message sent by the second electronic device through the first channel is acquired within a preset time length, establishing Wi-Fi connection with the second electronic device on the first channel, wherein the Wi-Fi connection request message comprises a Service Set Identifier (SSID) of the first target frequency band Wi-Fi hotspot and a corresponding password, and is a polling message sent by the second electronic device on the first target frequency band channel supported by the second electronic device;
and receiving data transmitted by the second electronic equipment through the first channel.
2. The method of claim 1, further comprising:
when the Wi-Fi connection request message sent by the second electronic device through the first channel is not received within a preset time length, establishing Wi-Fi connection with the second electronic device on a second channel, wherein the second channel is a certain second target frequency band channel commonly supported by the first electronic device and the second electronic device.
3. The method according to claim 1 or 2, wherein when an intersection of the first channel list and the second channel list is empty, the opening of the first target frequency band Wi-Fi hotspot on the first channel 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 starting the first target frequency band Wi-Fi hotspot on the first channel.
4. The method according to any one of claims 1-3, further comprising:
receiving a first operation input by a user;
responding to the first operation, and 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) and a corresponding password of the Wi-Fi hotspot.
5. The method according to any one of claims 1 to 4, 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 the first channel response information sent by the second electronic device, where the first channel response information includes a first channel list of the second electronic device.
6. The method according to claim 1 or 2, wherein when an intersection of the first channel list and the second channel list is empty, the opening of the first target frequency band Wi-Fi hotspot on the first channel specifically includes:
when the intersection of the first channel list and the second channel list is empty, randomly selecting the first channel from the first target frequency band Wi-Fi channels supported by the first electronic equipment; or,
and when the intersection of the first channel list and the second channel list is empty, selecting the first channel from the first target frequency band Wi-Fi channels supported by the first electronic equipment according to the signal strength.
7. The method of claim 1 or 2, wherein the first target frequency band is a 5G frequency band, and wherein the second target frequency band is a 2.4G frequency band.
8. The method of claim 1, wherein the first electronic device comprises a first application and a first short-range 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 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 device;
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.
9. The method of claim 8, further comprising:
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 target frequency band.
10. The method of claim 9, 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;
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.
11. The method of claim 10, further comprising:
the first Bluetooth module sends Bluetooth connection establishment information to the 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.
12. The method according to claim 11, characterized in that the method comprises in particular:
the first channel negotiation module sends second channel query information to the first short-range Wi-Fi module, wherein the second channel query information is used for querying the first target frequency band channel supported by the first electronic device;
the first short-range Wi-Fi module sends second channel response information to the first channel negotiation module, wherein the second channel response information comprises the second channel list.
13. The method according to claim 12, wherein when an intersection of the first channel list and the second channel list is empty, the turning on a first target frequency band Wi-Fi hotspot on the first channel 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 to be empty according to the first channel list and the second channel list, the first channel negotiation module sends first target frequency band Wi-Fi hotspot opening information to the first short-distance Wi-Fi module;
responding to the first target frequency band Wi-Fi hotspot starting information, and starting the first target frequency band Wi-Fi hotspot by the first short-distance Wi-Fi module.
14. The method according to any one of claims 8 to 13, 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:
and the first channel negotiation module sends the capability inquiry information to the first Bluetooth module.
15. The method according to any one of claims 8 to 13, 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 capability;
and the first Bluetooth module sends the capability response information to the first channel negotiation module.
16. The method according to any one of claims 8 to 13, wherein when the Wi-Fi connection request message sent by the second electronic device via the first channel is not received within a preset time period, establishing a Wi-Fi connection with the second electronic device on a second channel, specifically includes:
when the Wi-Fi connection request message sent by the second electronic device through the first channel is not received within the preset time length, the first channel negotiation module sends first target frequency band Wi-Fi hotspot closing information to the first short-distance 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 short-distance Wi-Fi module;
the first channel negotiation module sends Wi-Fi hotspot opening information of a second target frequency band to the first short-distance Wi-Fi module;
responding to the second target frequency band Wi-Fi hotspot starting information, the first short-distance Wi-Fi module starts the second target frequency band Wi-Fi hotspot, and the first short-distance Wi-Fi module and a second short-distance Wi-Fi module of the second electronic equipment establish Wi-Fi connection on the second channel.
17. The method according to any one of claims 9 to 13, wherein the first electronic device further includes a first display screen, and in response to the first operation, displays a first interface, the first interface including a two-dimensional code, specifically including:
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.
18. A method for data transmission, applied to a second electronic device, wherein the second electronic device supports a first target frequency band capability, the method comprising:
sending a first channel list to first electronic equipment, wherein the first channel list is used for indicating a first target frequency band channel supported by the second electronic equipment;
when a first target frequency band Wi-Fi hotspot is opened on a first channel by the first electronic device, establishing Wi-Fi connection with the first electronic device on the first channel, where the first channel is one channel selected by the first electronic device from the first target frequency band channels supported by the first electronic device when an intersection of the first channel list and a second channel list is empty, the first channel is also one channel of the first target frequency band channels supported by the second electronic device, and the second channel list is used to indicate the first target frequency band channel supported by the first electronic device;
transmitting data to the first electronic device via the first channel.
19. The method of claim 18, further comprising:
if the Wi-Fi connection with the first electronic device on the first channel is not successfully established within a preset time length, the Wi-Fi connection with the first electronic device on a second channel is established, and the second channel is a certain second target frequency band channel supported by the first electronic device and the second electronic device.
20. The method of claim 18 or 19, further comprising:
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 capability;
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.
21. The method according to any one of claims 18-20, further comprising:
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 band channel which is empty.
22. The method according to any one of claims 18-21, further comprising:
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 (service set identifier) and the corresponding password of the Wi-Fi hotspot provided by the two-dimensional code.
23. The method according to any one of claims 18-22, further comprising:
sending a Wi-Fi connection request message, wherein the Wi-Fi connection request message comprises an SSID (service set identifier) of the Wi-Fi hotspot and a corresponding password, and the Wi-Fi connection request message is a polling message sent by the second electronic device on a first target frequency band channel supported by the second electronic device.
24. The method of claim 19, wherein the first target frequency band is a 5G frequency band and the second target frequency band is a 2.4G frequency band.
25. The method of any of claims 18-24, wherein the second electronic device comprises a second application and a second short-range Wi-Fi module, wherein the second application comprises 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 short-range Wi-Fi module for the first target frequency band channel supported by the second electronic device;
when the query is failed, 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.
26. The method of claim 25, wherein the second electronic device further comprises a second display screen and a camera, the method further comprising:
the second UX display module receives a second operation input by a user;
responding to the second operation, the second UX display module sends sending end flow starting information to the second clone characteristic module;
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.
27. The method according to claim 26, wherein 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 and the corresponding password of the Wi-Fi hotspot, and sends the SSID and the corresponding password of the Wi-Fi hotspot to a 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 short-range Wi-Fi module to attempt to connect to the Wi-Fi hotspot;
the second short-range Wi-Fi module sends the Wi-Fi connection request message.
28. The method according to claim 25, wherein receiving the capability query information sent by the first electronic device specifically comprises:
and the second Bluetooth module receives the capability inquiry information sent by the first Bluetooth module of the first electronic device.
29. The method according to claim 25, wherein sending capability response information to the first electronic device specifically comprises:
the second Bluetooth module sends capability inquiry information to the second channel negotiation module;
in response to the capability query information, the second channel negotiation module queries the second short-range Wi-Fi module for the first target frequency band capability of the second electronic device;
the second short-range 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.
30. An electronic device, comprising:
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 of any of claims 1-17 or 18-29.
31. 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 of any one of claims 1 to 17 or 18 to 29.
CN202111308878.8A 2021-11-05 2021-11-05 Data transmission method, electronic equipment and readable storage medium Active CN115022872B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111308878.8A CN115022872B (en) 2021-11-05 2021-11-05 Data transmission method, electronic equipment and readable storage medium
CN202310319694.4A CN116489645B (en) 2021-11-05 2021-11-05 Data transmission method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111308878.8A CN115022872B (en) 2021-11-05 2021-11-05 Data transmission method, electronic equipment and readable storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202310319694.4A Division CN116489645B (en) 2021-11-05 2021-11-05 Data transmission method and electronic equipment

Publications (2)

Publication Number Publication Date
CN115022872A CN115022872A (en) 2022-09-06
CN115022872B true CN115022872B (en) 2023-04-07

Family

ID=83064609

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202310319694.4A Active CN116489645B (en) 2021-11-05 2021-11-05 Data transmission method and electronic equipment
CN202111308878.8A Active CN115022872B (en) 2021-11-05 2021-11-05 Data transmission method, electronic equipment and readable storage medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202310319694.4A Active CN116489645B (en) 2021-11-05 2021-11-05 Data transmission method and electronic equipment

Country Status (1)

Country Link
CN (2) CN116489645B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118283713A (en) * 2022-12-30 2024-07-02 华为技术有限公司 Channel determining method and related device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112785069A (en) * 2021-01-29 2021-05-11 北京明略昭辉科技有限公司 Prediction method and device for terminal equipment changing machine, storage medium and electronic equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015161434A1 (en) * 2014-04-22 2015-10-29 华为技术有限公司 Method, device and communication system for performing data communication using unlicensed spectrum
CN105912421A (en) * 2016-04-06 2016-08-31 广东欧珀移动通信有限公司 Backup method and device for storing data in mobile terminals, mobile terminals and terminals
CN106775445B (en) * 2016-09-14 2019-12-06 Oppo广东移动通信有限公司 Data migration method and device
CN106162829A (en) * 2016-09-19 2016-11-23 青岛海信电器股份有限公司 WIFI method of attachment and device
US20190073273A1 (en) * 2017-09-06 2019-03-07 Phillippe Lorson Data Backup Software Application
CN107911818B (en) * 2017-12-27 2021-07-30 北京安云世纪科技有限公司 Method and device for data transmission between mobile terminals and mobile terminal
CN108377483A (en) * 2018-01-25 2018-08-07 维沃移动通信有限公司 A kind of processing method and mobile terminal of bluetooth channel
CN110730448A (en) * 2019-09-18 2020-01-24 华为技术有限公司 Method for establishing connection between devices and electronic device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112785069A (en) * 2021-01-29 2021-05-11 北京明略昭辉科技有限公司 Prediction method and device for terminal equipment changing machine, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN116489645A (en) 2023-07-25
CN115022872A (en) 2022-09-06
CN116489645B (en) 2024-06-14

Similar Documents

Publication Publication Date Title
CN114390501B (en) Data transmission method and electronic equipment
EP4247031A1 (en) Access method and system and electronic device
US20060229016A1 (en) Apparatus and method for displaying information in Bluetooth communication mode of wireless terminal
EP4344268A1 (en) Communication method and electronic device
CN114679708A (en) Communication method, system and electronic equipment
CN116114239B (en) Volume management method and electronic equipment
CN117014859A (en) Address book-based device discovery method, audio and video communication method and electronic device
CN112654074B (en) Wi-Fi P2P connection method, electronic equipment and computer-readable storage medium
US20240196454A1 (en) File sharing method and terminal device
CN113676902B (en) System, method and electronic equipment for providing wireless internet surfing
CN113383603A (en) Indication method and device for transmission data, communication equipment and storage medium
CN113918110A (en) Screen projection interaction method, device, system, storage medium and product
CN115022872B (en) Data transmission method, electronic equipment and readable storage medium
CN116349382A (en) Random access resource allocation method, device, equipment and storage medium
CN114916054A (en) Communication method, device and terminal equipment
CN115022853B (en) Device discovery method and electronic device
CN116471707B (en) Method, device and system for connecting router
CN116419202B (en) Method and device for remotely accessing Subscriber Identity Module (SIM) card
CN117119097B (en) Method, equipment and storage medium for incoming call resonance
WO2024193086A1 (en) Network connection method, electronic device and readable storage medium
WO2023051204A1 (en) Cross-device connection method, electronic device and storage medium
CN118264709A (en) Service discovery method and electronic equipment
CN118353900A (en) Network access method and electronic equipment
CN118102321A (en) Method, equipment and system for configuring network
CN118055469A (en) Communication method, communication system and electronic 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