CN110730448A - Method for establishing connection between devices and electronic device - Google Patents

Method for establishing connection between devices and electronic device Download PDF

Info

Publication number
CN110730448A
CN110730448A CN201910883033.8A CN201910883033A CN110730448A CN 110730448 A CN110730448 A CN 110730448A CN 201910883033 A CN201910883033 A CN 201910883033A CN 110730448 A CN110730448 A CN 110730448A
Authority
CN
China
Prior art keywords
ssid
sending
equipment
connection
handset
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.)
Pending
Application number
CN201910883033.8A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910883033.8A priority Critical patent/CN110730448A/en
Publication of CN110730448A publication Critical patent/CN110730448A/en
Priority to PCT/CN2020/102530 priority patent/WO2021051986A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B11/00Transmission systems employing sonic, ultrasonic or infrasonic waves
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/69Identity-dependent

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

According to the method, the transmitting equipment transmits the WI-FI capability information of the transmitting equipment to the receiving equipment through a sound wave communication technology with the working frequency band of more than 10KHz, so that the frequency band of 0-6 KHz where a person sends sound is avoided, in-band interference is reduced, and the reliability of transmission between an old mobile phone and a new mobile phone is improved; in addition, the transmitting equipment can encrypt the WI-FI capability information, and then the WI-FI capability information is coded and modulated and transmitted through sound waves, so that the safety of the transmission process is improved.

Description

Method for establishing connection between devices and electronic device
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a method for establishing a connection between devices and an electronic device.
Background
The mutual information transmission between devices has become a very common application scene in life. For example, when a user replaces an electronic device, data are mutually transmitted between new and old devices through mobile phone backup, mobile phone cloning and the like. Before data is transmitted between the old and new devices, a short-distance wireless connection, such as a wireless fidelity (WI-FI) connection, is generally established between the old and new devices.
In the process of data transmission, if a large amount of data is transmitted, the frequency point with the highest transmission rate and the optimal transmission rate is used for transmission, and the user experience is best. However, the different capabilities of the WI-FI connections supported by the old and new devices may affect the manner in which the connections between the old and new devices are established.
Disclosure of Invention
The method can enable the receiving equipment to open the WI-FI hot spot according to the WI-FI capability information of the sending equipment, reduce the interactive process of switching from 2.4GHz WI-FI connection to 5GHz WI-FI connection between the equipment, shorten the time of establishing the WI-FI connection between the equipment and improve the user experience.
In a first aspect, a method for establishing a connection between devices is provided, including: the method comprises the steps that a sending device obtains first hotspot information of a receiving device, wherein the first hotspot information comprises a first Service Set Identifier (SSID); the sending device sends an acoustic wave signal to the receiving device, wherein the acoustic wave signal comprises wireless fidelity (WI-FI) capability information of the sending device which is subjected to coding modulation processing, so that the receiving device sends second hotspot information of the receiving device according to the WI-FI capability information of the sending device, and the second hotspot information comprises a second Service Set Identifier (SSID); and the sending equipment sends a request for establishing the WI-FI connection with the receiving equipment according to the second hotspot information.
In this application, the first hotspot information includes a first SSID, the second hotspot information includes a second SSID, and the first SSID is different from the second SSID. Optionally, the frequency band of the WI-FI network corresponding to the second SSID is adapted to the WI-FI capability information of the old handset, for example, the operating frequency band of the WI-FI network corresponding to the second SSID is 5GHz, and the operating frequency band of the WI-FI network corresponding to the first SSID is 2.4 GHz.
In the present application, the working frequency band of the 2.4GHz WI-FI connection may be a frequency band range of 2.4 GHz-2.4835 GHz, and the working frequency band of the 5GHz WI-FI connection may be a frequency band range of 5.150 GHz-5.850 GHz, etc. For example, in the present application, the WI-FI capability information of the legacy handset 20 indicates that the legacy handset 20 may support 2.4GHz WI-FI connections and support 5GHz WI-FI connections.
It should be understood that, in the embodiments of the present application, a method for establishing a connection between devices is described by taking an example in which a user changes a mobile phone and performs data transmission or data migration between an old mobile phone and a new mobile phone by means of mobile phone cloning. The new mobile phone serves as a hotspot and can also be called as an access point, and provides a WI-FI hotspot for the old mobile phone, namely the receiving device of the application; the old mobile phone is used as a station for connecting the hot spot, namely the sending equipment of the application.
Through the technical scheme, the old mobile phone sends the WI-FI capability information of the old mobile phone to the new mobile phone through the sound wave communication technology. The frequency band used by the sound wave communication technology is a high frequency band above 10KHz, and the frequency band of 0-6 KHz where a person generates sound is avoided, so that in-band interference in an application scene can be reduced, the success rate of sound wave transmission is ensured, and the reliability of transmission between an old mobile phone and a new mobile phone is improved. In addition, the acoustic wave communication technology is suitable for short-distance and small-data-volume transmission. In the application, in the transmission process of the sound wave signals, the action distance between the devices meeting the reliability transmission requirement is 30cm, and when the distance between the devices is larger than 50cm, the sound wave signals can hardly be decoded, so that the WI-FI transmission capability through the sound wave communication technology can resist attack. In other words, when an attacker cannot approach the equipment in a too close distance, the sound wave signal cannot be decoded to acquire the WI-FI information, so that the sound wave communication technology is applied to the process of establishing connection between the equipment, and the reliability of information transmission can be ensured.
With reference to the first aspect, in some implementation manners of the first aspect, the acquiring, by the sending device, first hotspot information of the receiving device includes: the sending device extracts the first SSID and the corresponding first password from the two-dimensional code by scanning the two-dimensional code displayed by the receiving device.
The new mobile phone synthesizes the first SSID and WI-FI password information into a two-dimensional code and displays the two-dimensional code on the new mobile phone, and the old mobile phone obtains the first hot spot information of the new mobile phone by scanning the two-dimensional code. In addition, in a possible implementation manner, the new mobile phone can also send the hot spot information of the new mobile phone to the old mobile phone through the sound wave communication technology. Or, in another possible implementation manner, the new mobile phone may also send the information of the first network hotspot to the old mobile phone by using a bluetooth communication technology.
The old mobile phone obtains first hot spot information of the new mobile phone sent by the new mobile phone by scanning the two-dimensional code, and then transmits the WI-FI capability information of the old mobile phone to the new mobile phone. After the old mobile phone scans the two-dimensional code of the new mobile phone, the sound wave signal can be sent to the new mobile phone, in other words, the old mobile phone triggers the old mobile phone to send the sound wave signal to the new mobile phone by scanning the two-dimensional code of the new mobile phone, and the sound wave signal comprises the WI-FI capability information of the old mobile phone.
With reference to the first aspect and the foregoing implementations, in some implementations of the first aspect, before the sending device sends the acoustic wave signal to the receiving device, the method further includes: the sending device obtains a public key of a key pair; the transmitting device encrypts the WI-FI capability information through the public key; the sound wave signal transmitted by the transmitting device to the receiving device comprises the WI-FI capability information which is processed by coding modulation and encrypted by the public key.
Since the WI-FI connection is usually established before data is transmitted between the two mobile terminals, the security requirement is high because the data is personal information. In the practical application process, if an attacker is connected with the WI-FI in a preemptive manner, the WI-FI hotspot information is directly transmitted through the sound wave signal, surrounding attackers can be connected with the WI-FI hotspot through receiving the sound wave signal, and the safety cannot be guaranteed.
Optionally, the acoustic wave signal sent by the old handset to the new handset includes the WI-FI capability information which is processed by encoding and modulation and encrypted by the public key. And at the old mobile phone side, encrypting the WI-FI capability information by a public key, coding and modulating the ciphertext of the WI-FI capability information encrypted by the public key, and sending the information subjected to coding and modulating by using sound waves.
Correspondingly, on the new mobile phone side, after receiving the sound wave signal, the sound wave signal is demodulated and decoded, and then the WI-FI capability information is obtained through decryption by a private key corresponding to the public key.
According to the technical scheme, in the process that the WI-FI capability information of the old mobile phone is transmitted to the new mobile phone, the WI-FI capability information is encrypted, coded and modulated, and transmitted through sound waves, so that the safety of the transmission process can be improved, and when an attacker appears in a close range around or the attacker preempts the WI-FI, the safety of data can be ensured through the encryption of the WI-FI capability information. Meanwhile, the new mobile phone can accurately acquire information such as WI-FI frequency points supported by the old mobile phone, so that the new mobile phone directly starts WI-FI hot spots for the old mobile phone according to the WI-FI frequency points supported by the old mobile phone 10, the interactive process of switching 2.4GHz WI-FI connection to 5GHz WI-FI connection between the old mobile phone and the new mobile phone is reduced, the time for establishing WI-FI connection is shortened, and the user experience is improved.
With reference to the first aspect and the foregoing implementation manners, in some implementation manners of the first aspect, the WI-FI capability information includes at least one of WI-FI standard number, operating frequency range, compatibility, bandwidth, physical transmission rate, and modulation mode supported by the sending device.
With reference to the first aspect and the implementations described above, in certain implementations of the first aspect, the frequency of the acoustic wave signal is greater than 10 kHz.
Through the technical scheme, the frequency band used by the sound wave communication technology is a high frequency band above 10KHz, and the frequency band of 0-6 KHz where a person generates sound is avoided, so that in-band interference in an application scene can be reduced, the success rate of sound wave transmission is ensured, and the reliability of transmission between an old mobile phone and a new mobile phone is improved.
With reference to the first aspect and the foregoing implementations, in some implementations of the first aspect, the method further includes: when the transmitting device transmits a sound wave signal to the receiving device, the transmitting device displays a prompt interface that the sound wave signal is being transmitted.
With reference to the first aspect and the foregoing implementation manners, in some implementation manners of the first aspect, an operating frequency band of the WI-FI network corresponding to the second SSID is 5 GHz; the request for establishing the WI-FI connection with the receiving device carries the second SSID and the first password.
In a second aspect, a method for establishing a connection between devices is provided, including: the method comprises the steps that a receiving device transmits first hotspot information of the receiving device to a sending device, wherein the first hotspot information comprises a first Service Set Identifier (SSID); the receiving equipment receives the sound wave signal sent by the sending equipment, wherein the sound wave signal comprises the wireless fidelity WI-FI capability information of the sending equipment subjected to coding modulation processing; the receiving equipment sends second hotspot information according to the WI-FI capability information of the sending equipment, wherein the second hotspot information comprises a second SSID; the receiving equipment receives a request for establishing the WI-FI connection, which is sent by the sending equipment according to the second hotspot information; the receiving equipment establishes the WI-FI connection with the sending equipment according to the request for establishing the WI-FI connection, and the request for establishing the WI-FI connection comprises a second SSID.
With reference to the second aspect, in some implementations of the second aspect, the transferring, by the receiving device, the first hotspot information of the receiving device to the sending device includes: the receiving equipment generates and displays a two-dimensional code, wherein the two-dimensional code comprises the first SSID and a corresponding first password; the receiving device transmits the first hotspot information to the sending device through the two-dimensional code.
With reference to the second aspect and the foregoing implementation manners, in some implementation manners of the second aspect, before the receiving device receives the acoustic wave signal transmitted by the transmitting device, the method further includes: the receiving device sends the public key of the key pair to the sending device; and after the receiving device receives the sound wave signal sent by the sending device, the method further comprises: the receiving equipment demodulates and decodes the sound wave signal sent by the sending equipment to obtain the WI-FI capability information encrypted by the public key; and the receiving equipment decrypts the WI-FI capability information through a private key corresponding to the public key.
With reference to the second aspect and the foregoing implementation manners, in some implementation manners of the second aspect, the WI-FI capability information includes at least one of WI-FI standard number, operating frequency range, compatibility, bandwidth, physical transmission rate, and modulation method supported by the sending device.
With reference to the second aspect and the implementations described above, in certain implementations of the second aspect, the frequency of the acoustic wave signal is greater than 10 kHz.
With reference to the second aspect and the foregoing implementations, in some implementations of the second aspect, the first SSID is different from the second SSID; and the frequency band of the WI-FI network corresponding to the second SSID is adapted to the WI-FI capability information of the sending equipment.
With reference to the second aspect and the foregoing implementation manners, in some implementation manners of the second aspect, an operating frequency band of the WI-FI network corresponding to the second SSID is 5 GHz; the sending equipment carries a second SSID and a first password according to a request for establishing the WI-FI connection sent by the second hotspot information.
In a third aspect, a transmitting device is provided, including: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory, which when executed by the processor, cause the transmitting device to perform the steps of: acquiring first hotspot information of receiving equipment, wherein the first hotspot information comprises a first Service Set Identifier (SSID); sending an acoustic wave signal to receiving equipment, wherein the acoustic wave signal comprises wireless fidelity WI-FI capability information subjected to coding modulation processing, so that the receiving equipment sends second hotspot information of the receiving equipment according to the WI-FI capability information, and the second hotspot information comprises a second SSID; and sending a request for establishing the WI-FI connection with the receiving equipment according to the second hotspot information.
With reference to the third aspect, in certain implementations of the third aspect, the one or more programs, when executed by the processor, cause the sending device to perform the steps of: and extracting the first SSID and the corresponding first password from the two-dimensional code by scanning the two-dimensional code displayed by the receiving equipment.
With reference to the third aspect and the foregoing implementations, in some implementations of the third aspect, the one or more programs, when executed by the processor, cause the sending device to perform the steps of: obtaining a public key of a key pair; encrypting the WI-FI capability information through the public key; the acoustic wave signal transmitted to the receiving device includes the WI-FI capability information that is subjected to the encoding modulation process and encrypted by the public key.
With reference to the third aspect and the foregoing implementation manners, in some implementation manners of the third aspect, the WI-FI capability information includes at least one of WI-FI standard number, operating frequency range, compatibility, bandwidth, physical transmission rate, and modulation mode supported by the sending device.
With reference to the third aspect and the foregoing implementations, in certain implementations of the third aspect, the frequency of the acoustic wave signal is greater than 10 kHz.
With reference to the third aspect and the foregoing implementations, in some implementations of the third aspect, the one or more programs, when executed by the processor, cause the sending device to perform the steps of: when the sound wave signal is transmitted to the receiving device, a prompt interface that the sound wave signal is being transmitted is displayed.
With reference to the third aspect and the foregoing implementations, in certain implementations of the third aspect, the first SSID is different from the second SSID; and the frequency band of the WI-FI network corresponding to the second SSID is adapted to the WI-FI capability information of the sending equipment.
With reference to the third aspect and the foregoing implementation manners, in some implementation manners of the third aspect, an operating frequency band of the WI-FI network corresponding to the second SSID is 5 GHz; the request for establishing the WI-FI connection with the receiving device carries the second SSID and the first password.
In a fourth aspect, there is provided a receiving apparatus comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory, which when executed by the processor, cause the receiving device to perform the steps of: transmitting first hotspot information of the receiving device to a sending device, wherein the first hotspot information comprises a first Service Set Identifier (SSID); receiving an acoustic signal sent by the sending equipment, wherein the acoustic signal comprises wireless fidelity (WI-FI) capability information of the sending equipment subjected to coding modulation processing; sending second hotspot information according to the WI-FI capability information of the sending equipment, wherein the second hotspot information comprises a second SSID; receiving a request for establishing the WI-FI connection sent by the sending equipment according to the second hotspot information; and establishing the WI-FI connection with the sending equipment according to the request for establishing the WI-FI connection, wherein the request for establishing the WI-FI connection comprises a second SSID.
With reference to the fourth aspect, in certain implementations of the fourth aspect, the one or more programs, when executed by the processor, cause the receiving device to perform the steps of: generating and displaying a two-dimensional code, wherein the two-dimensional code comprises the first SSID and a corresponding first password; the receiving device transmits the first hotspot information to the sending device through the two-dimensional code.
With reference to the fourth aspect and the implementations described above, in some implementations of the fourth aspect, the one or more programs, when executed by the processor, cause the receiving device to perform the steps of: sending the public key of the key pair to the sending device; demodulating and decoding the sound wave signal sent by the sending equipment to obtain the WI-FI capability information encrypted by the public key; and decrypting the WI-FI capability information by using a private key corresponding to the public key to obtain the WI-FI capability information.
With reference to the fourth aspect and the foregoing implementation manners, in some implementation manners of the fourth aspect, the WI-FI capability information includes at least one of WI-FI standard number, operating frequency range, compatibility, bandwidth, physical transmission rate, and modulation mode supported by the sending device.
With reference to the fourth aspect and implementations described above, in certain implementations of the fourth aspect, the frequency of the acoustic wave signal is greater than 10 kHz.
With reference to the fourth aspect and the foregoing implementations, in certain implementations of the fourth aspect, the first SSID is different from the second SSID; and the frequency band of the WI-FI network corresponding to the second SSID is adapted to the WI-FI capability information of the sending equipment.
With reference to the fourth aspect and the foregoing implementation manners, in some implementation manners of the fourth aspect, an operating frequency band of the WI-FI network corresponding to the second SSID is 5 GHz; the sending equipment carries a second SSID and a first password according to a request for establishing the WI-FI connection sent by the second hotspot information.
In a fifth aspect, the present application provides an electronic device, comprising: a touch display screen, wherein the touch display screen comprises a touch sensitive surface and a display; a camera; one or more processors; a memory; a plurality of application programs; and one or more computer programs. Wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions. The instructions, when executed by the electronic device, cause the electronic device to perform a method of establishing a connection between devices in any of the possible implementations of any of the above aspects.
In a sixth aspect, the present application provides an electronic device comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors and the one or more memories are configured to store computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform a method of establishing a connection between devices in any of the possible implementations of any of the aspects described above.
In a seventh aspect, the present application provides a computer storage medium comprising computer instructions that, when executed on an electronic device, cause the electronic device to perform a method for establishing a connection between any of the above-mentioned devices.
In an eighth aspect, the present application provides a computer program product for causing an electronic device to perform a method for establishing a connection between any of the possible devices of any of the above aspects, when the computer program product is run on the electronic device.
Drawings
Fig. 1 is a schematic structural diagram of an example of an electronic device provided in the present application.
Fig. 2 is a block diagram of a software structure of an electronic device according to an embodiment of the present application.
Fig. 3 is a schematic diagram of an exemplary graphical user interface for establishing a connection between devices according to an embodiment of the present disclosure.
Fig. 4 is a schematic diagram of a graphical user interface for establishing a connection between devices according to another embodiment of the present application.
Fig. 5 is an interaction diagram illustrating an example of a new handset and an old handset establishing a connection.
Fig. 6 is a schematic diagram of an example of a signal coding modulation processing procedure according to an embodiment of the present application.
Fig. 7 is a schematic diagram of an example of possible components of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which 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 than two.
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 feature defined as "first" or "second" may explicitly or implicitly include one or more of the feature, such as "first network", "second network", "first channel set", "second channel set", and "third channel set" in embodiments of the present application, and so on.
The embodiment of the application provides a method for establishing connection between two pieces of electronic equipment, and the method can enable the two pieces of electronic equipment to quickly establish connection. The electronic device of the present application may be 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 limit the specific type of the electronic device.
For example, fig. 1 is a schematic structural diagram of an example of an electronic device provided in the present application. The 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 key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification 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 electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, 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 Processor (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.
The controller may be, among other things, a neural center and a command center of the electronic device 100. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to 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 bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K via an I2C interface, such that the processor 110 and the touch sensor 180K communicate via an I2C bus interface to implement the touch functionality of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may communicate audio signals to the wireless communication module 160 via the I2S interface, enabling answering of calls via a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, 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 audio signals to the wireless communication module 160 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
MIPI interfaces may be used to connect processor 110 with peripheral devices such as display screen 194, camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a display screen serial interface (DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the capture functionality of electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the 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 electronic devices, such as AR devices and the like.
It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the 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 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 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 antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), 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 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.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou satellite navigation system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the 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 electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
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. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the 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 processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic apparatus 100 can listen to music through the speaker 170A or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 100 receives a call or voice information, it can receive voice by placing the receiver 170B close to the ear of the person.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
For example, in the present application, when the sound wave signal is transmitted by using the sound wave communication technology, the sending device may transmit the audio signal through the microphone and the speaker, so as to transfer the audio signal to another electronic device located near the electronic device, thereby realizing the sound wave transmission between the devices. It should be appreciated that acoustic communication techniques are well suited for short-range, small data volume transmissions. In the application, in the transmission process of the sound wave signals, the action distance between the devices meeting the reliability transmission requirement is 30cm, and when the distance between the devices is larger than 50cm, the sound wave signals can hardly be decoded, so that the WI-FI transmission capability through the sound wave communication technology can resist attack. In other words, when an attacker cannot approach the equipment in a too close distance, the sound wave signal cannot be decoded to acquire the WI-FI information, so that the sound wave communication technology is applied to the process of establishing connection between the equipment, and the reliability of information transmission can be ensured.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
Besides, in the electronic device 100 shown in fig. 1, various sensors are further included, such as a pressure sensor 180A for sensing a pressure signal, which can be converted into an electrical signal; the gyro sensor 180B may be used to determine the motion attitude of the electronic device 100; the air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a hall sensor; the acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes); a distance sensor 180F for measuring a distance, the electronic device 100 may measure the distance by infrared or laser; the proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode; the ambient light sensor 180L is configured to sense ambient light brightness, and the electronic device 100 may adaptively adjust the brightness of the display screen 194 according to the sensed ambient light brightness; the fingerprint sensor 180H is used for collecting fingerprints; the temperature sensor 180J is used for detecting temperature; the touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 constitute a touch screen, and the touch sensor 180K is configured to detect a touch operation acting thereon or nearby; the bone conduction sensor 180M may acquire a vibration signal, and the audio module 170 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 180M, so as to implement a voice function. In addition to various sensors, the electronic device 100 further includes keys 190, such as a power-on key, a volume key, and the like, and the keys 190 may be mechanical keys or touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100. The motor 191 may generate a vibratory alert and the motor 191 may be used for an incoming vibratory alert as well as for touch vibratory feedback. Further details regarding other components or modules that may be included in electronic device 100 are not provided herein.
The software system of the electronic device 100 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. It should be understood that the method for establishing connection between devices provided by the embodiment of the present application may be applicable to Android, iOS and other systems, and the method has no dependency relationship with a system platform of the device. Here, a possible software structure of the electronic device 100 will be exemplified by an Android system of a hierarchical architecture.
Fig. 2 is a block diagram of a software structure of the electronic device 100 according to the embodiment of the present application. The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom. The application layer may include a series of application packages.
As shown in fig. 2, the application package may include applications such as a camera, a gallery, a calendar, a call, a map, a navigation, a WLAN, bluetooth, music, a short message, a gallery, a call, and a mobile phone clone provided in this embodiment.
In the application, the sound wave communication function of the electronic equipment can be independently integrated into an application sharing library, and after a user starts an application program cloned by a mobile phone at an application program layer, the application sharing library can be called, so that the sound wave communication function is called. The application framework layer provides an Application Programming Interface (API) and a programming framework for the application programs of the application layer. Specifically, in the process of establishing a connection between devices of the present application, after the application sharing library is called, any interface of the application framework layer may be called, where the any interface may be a native interface of the system or another newly added functional interface, so as to implement the method for establishing a connection between devices provided in the embodiment.
The application framework layer may also include some predefined functions.
As shown in FIG. 2, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the 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 scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
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 object 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), 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 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.
For example, in the process of establishing a connection between devices of the present application, after the application sharing library is called, the application sharing library may further call any interface of the application framework layer. For example, the content provider may obtain WI-FI capability information and generate an audio signal, the application sharing library obtains the audio signal from the content manager, and after modulation and coding processing integrated inside the application sharing library, the application sharing library calls audio driving of the kernel layer and sends the audio signal out in a sound wave manner.
It should be understood that in the process of establishing connection between devices of the present application, the application of the application layer of the device may call the functions of other layers, borrow the capability of the device, implement the connection process, and transmit data.
Illustratively, after the connection is established between the devices of the application, any interface of the application framework layer is called, data of the old mobile phone, such as contacts, pictures, video files and the like, is acquired, and the acquired data is transmitted to the new mobile phone.
For convenience of understanding, in the following embodiments of the present application, an electronic device having a structure shown in fig. 1 and fig. 2 is taken as an example, and data migration and mobile phone cloning between a new mobile phone and an old mobile phone are taken as examples in conjunction with the accompanying drawings and application scenarios, so as to specifically describe a method for establishing a connection between devices provided in the embodiments of the present application.
Fig. 3 is a schematic diagram of an exemplary Graphical User Interface (GUI) for establishing a connection between devices according to an embodiment of the present application, which takes a mobile phone as an electronic device, specifically, takes an example in which a user changes a mobile phone and performs data transmission between two mobile phones, and details a method for establishing a connection between devices according to the present application are described in detail in the present application
In the course of data transmission between the new handset and the old handset, operations as shown in fig. 3 may be performed. Fig. 3 (a) illustrates that, in the unlock mode of the mobile phone, the screen display system of the mobile phone displays a currently output main interface 301, and the main interface 301 displays multiple applications (apps), such as photo albums, music, settings, mobile phone cloning, and the like. It should be understood that the interface content 301 may also include other and more applications, which are not limited in this application.
In particular, fig. 3 shows a graphical user interface diagram of a new handset during the process of establishing a connection between devices. As shown in fig. 3 (a), the user may click on "handset clone" of the main interface 301, and in response to the user's click operation, the handset displays an interface 302 as shown in fig. 3 (b). The interface 302 may be used for the user to set the current cell phone, for example, click on the new cell phone to "this is the new cell phone" option, and set the current cell phone as the cell phone that opens the hot spot for receiving data. As shown in fig. 3 (b), after clicking the "this is a new cell phone" option, the user enters an interface 303 shown in fig. 3 (c), where the interface 303 is used for the user to select the type of the old cell phone, for example, if the old cell phone is a hua-qi cell phone, the user clicks the "hua-qi" option, and the user may select a corresponding option according to the type of the old cell phone.
In response to the click operation of the user, the mobile phone enters an interface 304 shown in (d) of fig. 3, the interface 304 comprises a two-dimensional code and a connection password which are provided by the new mobile phone for the WI-FI connection, and the old mobile phone can be connected to the hot spot of the new mobile phone by scanning the two-dimensional code of the interface 304 and inputting the connection password, so as to establish the WI-FI connection with the new mobile phone. The interface 304 may further include more prompt information, for example, prompt information such as "open a mobile phone clone in an old mobile phone, select the old mobile phone, scan a two-dimensional code below to establish a connection", "if the two-dimensional code cannot be connected by scanning, please click a manual connection below the code scanning interface of the old mobile phone", "if the old mobile phone does not install the mobile phone clone, please click the installation here", and the like, is used to guide the user to operate, and the content and the number of the prompt information included in the interface content are not limited in the present application. Figure 4 shows a graphical user interface diagram of an old handset during the process of establishing a connection between devices. As shown in fig. 4 (a), the user may click on "handset clone" of the old handset home interface 401, and in response to the user's click operation, the handset displays an interface 402 as shown in fig. 4 (b). The interface 402 may be used for user to set the current handset, for example, clicking the "this is the old handset" option on the old handset interface 402 to set the current handset as the old handset connected to the hotspot for sending data. As shown in fig. 4 (b), after clicking the "this is the old handset" option, the user enters the interface 404 shown in fig. 4 (c), and the interface 404 is used for scanning the two-dimensional code of the interface 304 of the new handset, connecting to the hot spot of the new handset, and thus establishing a WI-FI connection with the new handset.
As shown in fig. 4 (d), after the old handset scans the two-dimensional code of the new handset shown in fig. 3 (d), the procedure for establishing connection between the new handset and the old handset is shown. On the display interface 404 of the old handset, prompt information for prompting the user about the current state of the old handset, such as "connect new handset" or "connect by sound wave", etc., is included. In addition, the display interface 404 may further include a motion picture for showing a connection process between the new mobile phone and the old mobile phone, for example, a dynamic ripple of sound waves, and the dynamic ripple may be presented on the display interface 404 in a flashing manner, which is not limited in this application.
After the new handset and the old handset establish a WI-FI connection, the new handset may jump to an interface 305 shown in fig. 3 (e), where the interface 305 is used to prompt the user that the new handset and the old handset have established a connection.
Accordingly, an interface 405 as shown in (e) of fig. 4 may be skipped to display on the old mobile phone, where the interface 405 includes a data list that can be currently transmitted to the new mobile phone, such as different data types of contacts, information, call records, sound recordings, pictures, etc., and the user clicks the data that needs to be transmitted to the new mobile phone in the selected data list, and then clicks the "start migration" option, and in response to the migration operation of the user, the data of the old mobile phone is sent to the new mobile phone.
The operation process of the user when the new mobile phone and the old mobile phone establish the WI-FI connection is introduced above, and fig. 5 is an interaction diagram illustrating an example of establishing the WIFI connection between the new mobile phone and the old mobile phone. Wherein, the new handset 10 is used as a hotspot, which may also be referred to as an Access Point (AP), and the old handset 20 is used as a station (station) connected to the hotspot, as shown in fig. 5, the method includes the following steps:
501, the new handset 10 transmits the first hot spot information of the new handset 10 to the old handset 20 by generating and displaying the two-dimensional code.
502, the old handset 20 scans the two-dimensional code of the new handset 10 to obtain the first hot spot information of the new handset 10.
Optionally, the hotspot information of the new handset 10 may include Service Set Identifier (SSID) information. The SSID includes an Extended Service Set Identifier (ESSID) and a Basic Service Set Identifier (BSSID) for distinguishing different networks, the SSID may be understood as a name of a local area network, and may have 32 characters at most, and the old handset 20 scans a two-dimensional code provided by the new handset 10 to obtain hotspot information of the new handset 10. In the present application, the first hotspot information of the new handset 10 includes a first SSID.
In step 501, the new handset 10 synthesizes the first SSID and WI-FI password information into a two-dimensional code, and displays the two-dimensional code on the new handset 10 as shown in (d) of fig. 3, and the old handset 20 obtains the first hotspot information of the new handset 10 by scanning the two-dimensional code.
In addition, in a possible implementation, the new handset 10 can also send the hot spot information of the new handset 10 to the old handset 20 through the sound wave communication technology.
Alternatively, in another possible implementation, the new handset 10 may also send the information of the first network hotspot to the old handset 20 by means of bluetooth communication technology.
503, the old handset 20 sends WI-FI capability information to the new handset 10 via acoustic communication technology.
In step 501 and 502, the old handset 20 obtains the first hotspot information of the new handset 10 sent by the new handset 10 by scanning the two-dimensional code, and then transmits the WI-FI capability information of the old handset 20 to the new handset 10. After the old handset 20 scans the two-dimensional code of the new handset 10, it may send a sound wave signal to the new handset 10, in other words, the old handset 20 triggers the old handset 20 to send a sound wave signal to the new handset by scanning the two-dimensional code of the new handset 10, where the sound wave signal includes information of WI-FI capability of the old handset 20.
It should be understood that the acoustic wave communication technology is suitable for short-distance and small-data-volume transmission, and can realize successful transmission in a short distance (1 s-2 s) because of relatively less data packets transmitted by the acoustic wave communication technology. In the application, the process of establishing the WI-FI connection between the devices can be realized based on the characteristics of low cost, light weight transmission and short consumed time of the sound wave communication technology. In addition, in the transmission process of the sound wave signals in the application, the action distance meeting the requirement of reliable transmission is 30cm, and when the distance between the new mobile phone and the old mobile phone is more than 50cm, the sound wave signals can hardly be decoded. Since the energy of the acoustic wave signal is attenuated in the air with the increase of the distance, the acoustic wave communication technology can naturally resist the attack. In other words, when an attacker cannot approach the device at a too close distance, the acoustic wave signal cannot be decoded to acquire WI-FI information, so that the reliability of information transmission can be ensured by applying the acoustic wave communication technology to the process of establishing connection between devices, for example, data migration between a new mobile phone and an old mobile phone, mobile phone cloning and the like.
Optionally, the WI-FI capability information may include at least one of WI-FI standard number, operating frequency range, compatibility, bandwidth, physical transmission rate, modulation method, and the like, which is not limited in this application.
Illustratively, table 1 lists what WI-FI capability information of legacy handset 20 may include.
TABLE 1
Figure BDA0002206452800000141
Figure BDA0002206452800000151
Specifically, the WI-FI standard number in table 1 may be a relevant standard of the Institute of Electrical and Electronic Engineers (IEEE), such as ieee802.11n, ieee802.11ac, etc.; the working frequency range can be a frequency band range of 2.4 GHz-2.4835 GHz, or a frequency band range of 5.150 GHz-5.850 GHz and the like; the compatibility, i.e. the WI-FI version that the old handset can be compatible with, is not described here again.
In the present application, the working frequency band of the 2.4GHz WI-FI connection may be a frequency band range of 2.4 GHz-2.4835 GHz, and the working frequency band of the 5GHz WI-FI connection may be a frequency band range of 5.150 GHz-5.850 GHz, etc. For example, in the present application, the WI-FI capability information of the legacy handset 20 indicates that the legacy handset 20 may support 2.4GHz WI-FI connections and support 5GHz WI-FI connections.
In this application, the first hotspot information includes a first SSID, the second hotspot information includes a second SSID, and the first SSID is different from the second SSID.
Optionally, the frequency band of the WI-FI network corresponding to the second SSID is adapted to the WI-FI capability information of the old handset 20, for example, the operating frequency band of the WI-FI network corresponding to the second SSID is 5GHz, and the operating frequency band of the WI-FI network corresponding to the first SSID is 2.4 GHz.
For example, taking the working frequency range and bandwidth of WI-FI as an example, the old handset 20 sends the working frequency range and bandwidth supported by itself to the new handset 10 by means of acoustic communication, and the new handset can obtain the working frequency range and bandwidth supported by the old handset 20, thereby determining the available channel set in the working frequency range.
It should be understood that the new handset 10 may provide different operating bands for the old handset 20, for example, the current WI-FI commonly used operating bands are 2.4GHz band and 5GHz band. The 5GHz frequency band has small interference compared with the 2.4GHz frequency band, the speed is high, when the same amount of data is transmitted, the 5GHz frequency band saves electricity, and the user experience is good. At present, the coverage rate of the 5GHz band is lower than that of the 2.4GHz band, and specifically, the advantages and disadvantages of the 2.4GHz band and the 5GHz band are shown in table 2.
TABLE 2
Figure BDA0002206452800000152
As can be seen from table 2, since the interference of the 5GHz band is small, the bandwidth is wide enough, and a higher transmission rate can be supported, but the coverage of the 5GHz band is not high enough, and not all mobile phones can support transmission of the 5GHz band. When the old mobile phone 20 supports 5GHz WI-FI connection, the old mobile phone preferentially establishes 5GHz WI-FI connection with the new mobile phone 10, so that a higher transmission rate can be ensured.
Optionally, the old handset 20 subjects the WI-FI capability information to a coding modulation process, and transmits the WI-FI capability information subjected to the coding modulation process by using a sound wave.
Fig. 6 is a schematic diagram of an example of a signal coding modulation processing procedure according to an embodiment of the present application. For example, after the old handset 20 acquires the first hotspot information of the new handset 10, the old handset 20 may perform a code modulation process on the WI-FI capability information containing itself. For example, as shown in fig. 6, the WI-FI capability information of the old handset 20 may be sequentially subjected to signal processing such as code modulation and time-frequency conversion, and the processed information is transmitted to the new handset 10 by means of sound waves.
Specifically, the WI-FI capability information may be subjected to Cyclic Redundancy Check (CRC) check, channel coding, modulation, time-frequency transformation, and the like, and the processed information may be transmitted to the new handset 10 in a sound wave manner. The channel coding may be in a form of a convolutional code, the modulation process may be modulated by, for example, a quadrature differential phase shift keying (QPSK), and the time-frequency transformation may generate an audio stream to be transmitted after the modulated signal is subjected to Inverse Fast Fourier Transform (IFFT), and the audio stream is transmitted by an audio device (such as the audio module 170 of the electronic device 100 in fig. 1) of the old mobile phone 20.
Accordingly, at the hot spot side, the new handset 10 performs the reverse process of signal processing after receiving the audio signal sent by the audio device of the old handset 20. For example, the received audio signal is subjected to time-frequency conversion, and then to demodulation, channel decoding, and CRC check, so as to obtain original bit information. In other words, how to generate the audio signal containing the self WI-FI capability information at the old handset 20 end, and analyze the audio signal at the new handset 10 end through the corresponding inverse process, thereby obtaining the WI-FI capability information of the old handset 20.
Optionally, when the present application transmits WI-FI capability information through a sound wave communication technology, the frequency of the sound wave signal is greater than 10 kHz.
Further, when the old handset 20 transmits the sound wave signal to the new handset 10, the old handset 20 may display a prompt interface that the sound wave signal is being transmitted. For example, old handset 20 may display a prompt interface as shown in (d) of fig. 4. Through the technical scheme, the old mobile phone 20 transmits the WI-FI capability information of the old mobile phone to the new mobile phone 10 by using the sound wave communication technology, the frequency band used by the sound wave communication technology is a high frequency band above 10KHz, and the frequency band of 0-6 KHz where a person sends sound is avoided, so that in-band interference in an application scene can be reduced, the success rate of sound wave transmission is ensured, and the reliability of transmission between the old mobile phone and the new mobile phone is improved.
Optionally, the new handset 10 may listen to the audio signal of the old handset 20 for a certain period of time during the course of the old handset 20 sending its own WI-FI capability information to the new handset 10.
Illustratively, after the old handset 20 obtains the hotspot information of the new handset 10, the new handset 10 listens for 5 seconds to see if the old handset 20 sends an audio signal. After 5 seconds, the new handset 10 may default to the old handset 20 not transmitting audio signals.
And 504, the new mobile phone 10 receives the sound wave signal sent by the old mobile phone 20, decodes the sound wave signal to obtain WI-FI capability information of the old mobile phone, and sends second hot spot information according to the WI-FI capability information of the old mobile phone 20, wherein the second hot spot information includes a second SSID.
Optionally, the working frequency band of the WI-FI network corresponding to the second SSID is 5GHz, and the working frequency band of the WI-FI network corresponding to the first SSID is 2.4 GHz.
Illustratively, the new handset 10 determines that the old handset 20 supports a 5GHz WI-FI connection and sends the 5GHz WI-FI hotspot to the old handset 20.
In the present application, through step 503 and step 504, the old handset 20 transmits the WI-FI capability information of itself to the new handset 10 by using the acoustic wave communication technology, and the new handset can know the 5GHz WI-FI connection supported by the old handset 20, at this time, the new handset 10 directly starts the 5GHz WI-FI hotspot and sends the 5GHz WI-FI hotspot information, that is, the SSID of the 5GHz WI-FI network, to the old handset 20.
It should be understood that after the new handset 10 opens the WI-FI hotspot at 5GHz, from the user's perspective, the connection is performed without scanning the two-dimensional code again, and only the communication channel between the old handset 20 and the new handset 10 needs to be switched.
505, the old handset 20 scans peripheral WI-FI hotspots at 5GHz, scans the SSID of the WI-FI hotspot at 5GHz sent by the new handset 10, and sends a connection request to establish WI-FI connection at 5GHz by the new handset 10.
It can be understood that, the processes of scanning the SSID and sending the connection request by the old handset 20 may refer to related implementations of establishing the WI-FI connection in the prior art, which is not limited in this embodiment of the present invention. The 5GHz WI-FI connection can be accessed without a password or can be accessed only by the password.
For ways that require the use of a password, the password obtained using the 2.4GHz WI-FI connection may be used. Namely, the connection request sent by the old mobile phone carries the SSID of the WI-FI hotspot of 5GHz and the password of the WI-FI connection of 2.4GHz, and the new mobile phone can pass the verification based on the SSID of the WI-FI network of 5GHz and the password of the WI-FI connection of 2.4 GHz.
The old handset 20 and the new handset 10 transmit data over channels in the 5GHz band 506.
Through the above process, the new handset 10 can directly acquire the WI-Fi capability information of the old handset 20 without establishing a WI-Fi connection of a 2.4GHz band with the old handset 20, and the new handset 10 can perform a verification process of the capability intersection information after determining the capability information of the old handset 20.
Illustratively, the first set of communication channels supported by the new handset 10, the second set of communication channels supported by the old handset 20, and the intersection between the first set of communication channels and the second set of communication channels, which is referred to as a "third communication channel", may determine that both of the new handset 10 and the old handset 20 may support a WI-FI connection in a 5GHz band if the third communication channel includes a channel in the 5GHz band.
Through the verification process of the capability intersection information between the devices described above, it can be determined that both the new handset 10 and the old handset 20 support WI-FI connection in the 5GHz band. The new handset 10 directly opens a WI-FI hotspot in the 5GHz frequency band for the old handset 20, and at this time, the new handset 10 and the old handset 20 can establish WI-FI connection in the 5GHz frequency band and transmit data through a channel in the 5GHz frequency band.
If the capability information of the old handset 20 indicates that the old handset 20 does not support transmission in the 5GHz band, the new handset 10 opens a WI-FI hotspot in the 2.4GHz band for the old handset 20, and the new handset 10 and the old handset 20 can establish WI-FI connection in the 2.4GHz band and transmit data through a channel in the 2.4GHz band.
In the existing scheme, after scanning the two-dimensional code of the new handset 10, the old handset 20 acquires the hot spot information of the new handset 10, and then can establish a WI-FI connection with the new handset in a 2.4GHz band. After the new handset 10 and the old handset 20 establish a 2.4GHz WI-FI connection, capability information may be exchanged between the new handset 10 and the old handset 20. For example, the verification process of the capability intersection information is performed between the new handset 10 and the old handset 20. For example, the new handset 10 and the old handset 20 currently communicate via a 2.4GHz band, a first communication channel set supported by the new handset 10, a second communication channel set supported by the old handset 20, and an intersection between the first communication channel set and the second communication channel set, which are referred to as a "third communication channel", where if the third communication channel includes a 5GHz band channel, the new handset 10 and the old handset 20 may determine that both can support a WI-FI connection in the 5GHz band. Through the verification process of the capability intersection information between the devices, it can be determined that both the new handset 10 and the old handset 20 support WI-FI connection in the 5GHz band. Then, the old handset 20 (site) can be switched from the 2.4GHz band to the 5GHz band, and the new handset 10 and the old handset 20 need to be reconnected. Therefore, the existing WI-FI connection switching mode has the advantages that the time consumption for reconnection is long, the longest time can reach 10s, the interaction times are many, the time is prolonged, and the user experience is influenced.
According to the technical scheme of the embodiment of the application, before the new mobile phone 10 is connected with the old mobile phone 20, the old mobile phone 20 transmits the WI-FI capability information of the old mobile phone to the new mobile phone 10 through sound waves, and the new mobile phone 10 can acquire information such as WI-FI frequency points supported by the old mobile phone 10, so that the new mobile phone directly opens the WI-FI hot spot for the old mobile phone 20 according to the WI-FI frequency band supported by the old mobile phone 10, the old mobile phone 20 can directly establish the WI-FI connection with the new mobile phone 10, the interactive process that the 2.4GHz WI-FI connection is switched to the 5GHz WI-FI connection between the old mobile phone 20 and the new mobile phone 10 is reduced, the time for switching the WI-FI connection between the devices is shortened, and the user experience.
In addition, in the process of sending the WI-FI capability information to the new mobile phone 10 by the old mobile phone 20, the transmission can be performed through the channel of the WI-FI frequency band supported by both the new mobile phone and the old mobile phone, through the process of establishing the WI-FI connection once, the new mobile phone 10 and the old mobile phone 20 can acquire the capability of the bottom layer of the channel, and in the subsequent process of establishing the WI-FI connection, the information can be directly transmitted through the determined channel, so that the transmission reliability is improved. The implementation process of the above technical solution depends on less hardware, and only two devices need to have audio devices (such as a microphone and a speaker), for example, the old mobile phone 20 may send a sound wave signal through the audio device, and the new mobile phone 10 may receive the audio signal through the audio device.
It should also be understood that the technical scheme can be applied to Android, iOS and other systems, has no dependency relationship with a system platform of the equipment, and is high in applicability.
Since the WI-FI connection is usually established before data is transmitted between the two mobile terminals, the security requirement is high because the data is personal information. In the practical application process, if an attacker is connected with the WI-FI in a preemptive manner, the WI-FI hotspot information is directly transmitted through the sound wave signal, surrounding attackers can be connected with the WI-FI hotspot through receiving the sound wave signal, and the safety cannot be guaranteed.
In a possible implementation manner, optionally, the acoustic wave signal transmitted by the old handset 20 to the new handset 10 includes the WI-FI capability information which is processed by encoding and modulation and encrypted by the public key.
Optionally, on the old handset 20 side, the old handset 20 encrypts the WI-FI capability information by using a public key, performs coding modulation processing on a ciphertext of the WI-FI capability information encrypted by using the public key, and transmits the information subjected to the coding modulation processing by using a sound wave.
Correspondingly, on the new mobile phone 10 side, after receiving the sound wave signal, the sound wave signal is demodulated and decoded, and then the WI-FI capability information is obtained by decryption through the private key corresponding to the public key.
It should be understood that the keys are divided into two types, encryption keys and decryption keys. The sending end can encrypt the signal by using the encryption key, and the receiving end decrypts the ciphertext signal by using the decryption key. The encryption key is generally public and called as a public key, the public key can be derived by cloning, and the generated public key can be public and cannot be stolen; the manner of disclosure is not limited. For example, the public key may be sent directly to the receiving end by mail, or may be advertised in other ways.
Accordingly, the decryption key is not publicly known, called the private key. The public key and the private key are in one-to-one correspondence, and a pair of the public key and the private key is called a key pair, so that a ciphertext encrypted by the public key can be decrypted only by using the private key matched with the public key. There is a very close relationship between the two keys in the key pair, so the public key and the private key cannot be generated separately. The public key is generally sent to others, and the private key is reserved for the private key to be used by the private key, which is an asymmetric encryption mode, such as an RSA encryption mode, and the like.
Specifically, in step 501, the new handset 10 transmits the first hotspot information of the new handset 10 to the old handset 20 by generating the two-dimensional code. The two-dimensional code may include SSID, WI-FI password, and public key information.
In step 502, the old handset 20 scans the two-dimensional code to obtain the first hot spot information and the public key information of the new handset, encrypts the WI-FI capability information through the public key, and then performs coding modulation processing on the ciphertext.
In step 503, the old handset 20 sends the WI-FI capability information, which is processed by encoding and modulation and encrypted by the public key, to the new handset 10 through the acoustic communication technology. In step 504, the new handset 10 receives the acoustic wave signal sent by the old handset 20, demodulates and decodes the acoustic wave signal, and then decrypts the acoustic wave signal by using the private key corresponding to the public key to obtain the WI-FI capability information. The new handset 10 sends a second hotspot message matching the WI-FI capabilities of the old handset.
Step 505 and 506 refer to the aforementioned process, which is not described herein again.
Through the technical scheme, in the process of transmitting the own WI-FI capability information to the new mobile phone 10, the old mobile phone 20 encrypts the WI-FI capability information, performs coding modulation processing and transmits sound waves, so that the safety of the transmission process can be improved, and when an attacker appears in a close range around or the attacker preempts the WI-FI, the safety of data can be ensured through the encryption of the WI-FI capability information. Meanwhile, the new mobile phone can accurately acquire information such as WI-FI frequency points supported by the old mobile phone 10, so that the new mobile phone directly starts WI-FI hot spots for the old mobile phone 20 according to the WI-FI frequency points supported by the old mobile phone 10, the interactive process of switching from 2.4GHz WI-FI connection to 5GHz WI-FI connection between the old mobile phone 20 and the new mobile phone 10 is reduced, the time for establishing WI-FI connection is shortened, and the user experience is improved.
It should be understood that, the method for establishing the WI-FI connection between the devices provided in the present application is described above by taking, as an example, a process in which a user changes a mobile phone and performs data transmission between two mobile phones, and the method may also be applied to various intelligent terminal devices, such as intelligent glasses, a bracelet, a watch, and the like, which is not limited in the present application.
It should also be understood that, when connection is established between the devices described above, taking an established network hotspot as an example, for example, a currently used 2.4GHz band and a currently used 5GHz band, which is not limited in this application.
It will be appreciated that the electronic device, in order to implement the above-described functions, comprises corresponding hardware and/or software modules for performing the respective functions. The present application is capable of being implemented in hardware or a combination of hardware and computer software in conjunction with the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, with the embodiment described in connection with the particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In this embodiment, the electronic device may be divided into functional modules according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in the form of hardware. It should be noted that the division of the modules in this embodiment is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In a case of dividing each function module by corresponding functions, fig. 7 is a schematic diagram of a possible composition of an example of an electronic device provided in the embodiment of the present application, and as shown in fig. 7, the electronic device 700 may include: a processor 710, a memory 720, and a transceiver 730. The processor 710 may be configured to control and manage actions of the electronic device, for example, may be configured to support the electronic device to perform the steps described in the method 500. Memory 720 may be used to support electronic device execution, to store program codes and data, and so forth. The transceiver 730, which in this application may correspond to an audio device, such as a microphone or speaker, may be used to support acoustic communications between the new handset and the old handset.
The processor 710 may implement or execute the various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein. Processor 710 may also be any combination of computing functionality, including for example, one or more microprocessors, Digital Signal Processing (DSP) and microprocessors, and the like. The transceiver 730 may be specifically an audio device, a radio frequency circuit, a bluetooth chip, a WI-FI chip, or the like that interacts with other electronic devices.
In one embodiment, the electronic device according to the present embodiment may be a device having a structure shown in fig. 1.
The present embodiment also provides a computer storage medium, where computer instructions are stored in the computer storage medium, and when the computer instructions are run on an electronic device, the electronic device is caused to execute the above related method steps to implement the method for establishing a connection between devices in the above embodiments.
The present embodiment also provides a computer program product, which when running on a computer, causes the computer to execute the relevant steps described above, so as to implement the method for establishing connection between devices in the above embodiments.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component or a module, and may include a processor and a memory connected to each other; the memory is used for storing computer execution instructions, and when the device runs, the processor can execute the computer execution instructions stored in the memory, so that the chip can execute the method for establishing the connection between the devices in the method embodiments.
The electronic device, the computer storage medium, the computer program product, or the chip provided in this embodiment are all configured to execute the corresponding method provided above, so that the beneficial effects achieved by the electronic device, the computer storage medium, the computer program product, or the chip may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Through the description of the above embodiments, those skilled in the art will understand that, for convenience and simplicity of description, only the division of the above functional modules is used as an example, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a module or a unit may be divided into only one logic function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (18)

1. A method for establishing a connection between devices, comprising:
the method comprises the steps that a sending device obtains first hotspot information of a receiving device, wherein the first hotspot information comprises a first Service Set Identifier (SSID);
the sending equipment sends an acoustic wave signal to the receiving equipment, wherein the acoustic wave signal comprises wireless fidelity (WI-FI) capability information of the sending equipment which is subjected to coding modulation processing, so that the receiving equipment sends second hotspot information of the receiving equipment according to the WI-FI capability information of the sending equipment, and the second hotspot information comprises a second Service Set Identifier (SSID);
and the sending equipment sends a request for establishing the WI-FI connection with the receiving equipment according to the second hotspot information.
2. The method of claim 1, wherein the obtaining, by the sending device, the first hotspot information of the receiving device comprises:
and the sending equipment extracts the first SSID and the corresponding first password from the two-dimensional code by scanning the two-dimensional code displayed by the receiving equipment.
3. The method of claim 1 or 2, wherein prior to the transmitting device transmitting the acoustic signal to the receiving device, the method further comprises:
the sending equipment acquires a public key of a key pair;
the transmitting equipment encrypts the WI-FI capability information through the public key;
and the sound wave signal sent to the receiving equipment by the sending equipment comprises the WI-FI capability information which is subjected to coding modulation processing and encrypted by the public key.
4. The method of any of claims 1-3, wherein the WI-FI capability information comprises at least one of WI-FI standard number, operating frequency range, compatibility, bandwidth, physical transmission rate, and modulation supported by the sending device.
5. The method of any of claims 1 to 4, wherein the frequency of the acoustic signal is greater than 10 kHz.
6. The method of any of claims 1 to 5, further comprising:
when the sending equipment sends the sound wave signal to the receiving equipment, the sending equipment displays a prompt interface for sending the sound wave signal.
7. The method of any of claims 1-6, wherein the first SSID is different from the second SSID;
and the working frequency band of the WI-FI network corresponding to the second SSID is adapted to the WI-FI capability information of the sending equipment.
8. The method of claim 7, wherein the operating frequency band of the WI-FI network corresponding to the second SSID is 5 GHz;
the request for establishing the WI-FI connection with the receiving equipment carries the second SSID and the first password.
9. A method for establishing a connection between devices, comprising:
the method comprises the steps that a receiving device transmits first hotspot information of the receiving device to a sending device, wherein the first hotspot information comprises a first Service Set Identifier (SSID);
the receiving equipment receives an acoustic wave signal sent by the sending equipment, wherein the acoustic wave signal comprises wireless fidelity (WI-FI) capability information of the sending equipment subjected to coding modulation;
the receiving equipment sends second hotspot information according to the WI-FI capability information of the sending equipment, wherein the second hotspot information comprises a second SSID;
the receiving equipment receives a request for establishing the WI-FI connection, which is sent by the sending equipment according to the second hotspot information; and the receiving equipment establishes the WI-FI connection with the sending equipment according to the request for establishing the WI-FI connection, wherein the request for establishing the WI-FI connection comprises the second SSID.
10. The method of claim 9, wherein the receiving device communicates the first hotspot information of the receiving device to a sending device, and wherein the communicating comprises:
the receiving equipment generates and displays a two-dimensional code, wherein the two-dimensional code comprises the first SSID and a corresponding first password;
and the receiving equipment transmits the first hotspot information to the sending equipment through the two-dimensional code.
11. The method of claim 9 or 10, wherein before the receiving device receives the acoustic signal transmitted by the transmitting device, the method further comprises:
the receiving device sends a public key of a key pair to the sending device; and after the receiving device receives the sound wave signal sent by the sending device, the method further comprises:
the receiving equipment demodulates and decodes the sound wave signal sent by the sending equipment to obtain the WI-FI capability information encrypted by the public key;
and the receiving equipment decrypts the WI-FI capability information through a private key corresponding to the public key.
12. The method of any of claims 9-11, wherein the WI-FI capability information comprises at least one of WI-FI standard number, operating frequency range, compatibility, bandwidth, physical transmission rate, and modulation supported by the sending device.
13. The method of any of claims 9 to 12, wherein the frequency of the acoustic signal is greater than 10 kHz.
14. The method of any of claims 9-13, wherein the first SSID is different from the second SSID;
and the frequency band of the WI-FI network corresponding to the second SSID is adapted to the WI-FI capability information of the transmitting equipment.
15. The method of claim 14, wherein the operating frequency band of the WI-FI network corresponding to the second SSID is 5 GHz; and the sending equipment carries the second SSID and the first password according to the request for establishing the WI-FI connection sent by the second hotspot information.
16. An electronic device, comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory, which when executed by the processor, cause the electronic device to perform the method of establishing a connection between devices of any of claims 1-15.
17. A computer storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform a method of establishing a connection between devices as claimed in any one of claims 1 to 15.
18. A computer program product, characterized in that it causes a computer to carry out a method of establishing a connection between devices according to any one of claims 1 to 15, when said computer program product is run on said computer.
CN201910883033.8A 2019-09-18 2019-09-18 Method for establishing connection between devices and electronic device Pending CN110730448A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910883033.8A CN110730448A (en) 2019-09-18 2019-09-18 Method for establishing connection between devices and electronic device
PCT/CN2020/102530 WO2021051986A1 (en) 2019-09-18 2020-07-17 Method for establishing connection between apparatuses, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910883033.8A CN110730448A (en) 2019-09-18 2019-09-18 Method for establishing connection between devices and electronic device

Publications (1)

Publication Number Publication Date
CN110730448A true CN110730448A (en) 2020-01-24

Family

ID=69219156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910883033.8A Pending CN110730448A (en) 2019-09-18 2019-09-18 Method for establishing connection between devices and electronic device

Country Status (2)

Country Link
CN (1) CN110730448A (en)
WO (1) WO2021051986A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291862A (en) * 2020-10-27 2021-01-29 中兴通讯股份有限公司 Method for establishing connection between terminal devices and terminal devices
WO2021051986A1 (en) * 2019-09-18 2021-03-25 华为技术有限公司 Method for establishing connection between apparatuses, and electronic device
CN112581658A (en) * 2020-12-02 2021-03-30 广州朗国电子科技有限公司 Intelligent door lock and network configuration method and network configuration device thereof
CN112747450A (en) * 2021-02-02 2021-05-04 杭州凯澜能源科技有限公司 Noise reduction system for centrally installed central air conditioner group
CN113015264A (en) * 2021-02-22 2021-06-22 斑马网络技术有限公司 Method for realizing connection establishment of double hotspots, electronic equipment and readable storage medium
US20210345240A1 (en) * 2020-04-30 2021-11-04 Arris Enterprises Llc Wi-fi power reduction system, method and media
CN114157659A (en) * 2022-02-10 2022-03-08 荣耀终端有限公司 File sharing method and terminal equipment
CN114845290A (en) * 2022-06-30 2022-08-02 荣耀终端有限公司 Data migration method, electronic device and computer-readable storage medium
CN115022872A (en) * 2021-11-05 2022-09-06 荣耀终端有限公司 Data transmission method and electronic equipment
CN115119284A (en) * 2022-07-11 2022-09-27 珠海格力电器股份有限公司 Rapid network distribution method based on sound waves, mobile terminal and equipment to be distributed

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117130826A (en) * 2023-02-28 2023-11-28 荣耀终端有限公司 Data backup method, electronic equipment, data backup system and storage medium

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103796280A (en) * 2012-10-30 2014-05-14 中兴通讯股份有限公司 Method, device and system for discovering and selecting hotspot 2.0 access network
CN104158597A (en) * 2014-07-23 2014-11-19 深圳市揽胜科技有限公司 Method and system for configuring WIFI network product to be connected to router
CN105049129A (en) * 2015-07-21 2015-11-11 杭州创辉农业科技有限公司 Wi-Fi configuration system and method based on acoustic waves
CN105636023A (en) * 2014-10-28 2016-06-01 福建天晴数码有限公司 Smart device binding method and system
CN105764024A (en) * 2016-05-09 2016-07-13 广东欧珀移动通信有限公司 Method and device for testing handling capacity of wireless device
CN105790854A (en) * 2016-03-01 2016-07-20 济南中维世纪科技有限公司 Short distance data transmission method and device based on sound waves
CN106230820A (en) * 2016-07-31 2016-12-14 许琴琴 A kind of sound wave safe transmission method
CN106453496A (en) * 2016-09-05 2017-02-22 北京小米移动软件有限公司 File transmission method and device
CN106973424A (en) * 2017-03-28 2017-07-21 维沃移动通信有限公司 The creation method and terminal of a kind of WAP
CN107222937A (en) * 2017-06-30 2017-09-29 广东欧珀移动通信有限公司 A kind of data transmission method, device and terminal
US20170288805A1 (en) * 2015-05-26 2017-10-05 Dansol Plus Co., Ltd. Device and method for sound wave communication
CN107396290A (en) * 2017-07-25 2017-11-24 上海小蚁科技有限公司 Establish the method and device, storage medium, terminal of WI FI connections
CN107426781A (en) * 2017-08-16 2017-12-01 深圳市中兴物联科技有限公司 A kind of double frequency WiFi automatic switching methods, device and computer-readable recording medium
CN107920353A (en) * 2016-10-08 2018-04-17 中兴通讯股份有限公司 A kind of method and hot spot access device of Wireless Fidelity connection switching hot spot
CN108198296A (en) * 2017-12-27 2018-06-22 广东林盟科技有限公司 A kind of guard method and system based on WIFI positioning
CN108307529A (en) * 2016-09-26 2018-07-20 宇龙计算机通信科技(深圳)有限公司 A kind of hotspot connection method and its mobile terminal
CN108353265A (en) * 2015-11-19 2018-07-31 三星电子株式会社 Use the wireless communications method and electronic equipment of near-field communication

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10070345B2 (en) * 2013-12-31 2018-09-04 British Telecommunications Public Limited Company Method and corresponding wireless access point for adjusting data rate of secondary users
CN105912421A (en) * 2016-04-06 2016-08-31 广东欧珀移动通信有限公司 Backup method and device for storing data in mobile terminals, mobile terminals and terminals
CN106454805A (en) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 Data migration method and mobile terminal
CN106815649B (en) * 2017-01-25 2020-06-12 北京安云世纪科技有限公司 Terminal recovery method and device and mobile terminal
CN109640310B (en) * 2019-02-12 2021-07-06 Oppo广东移动通信有限公司 Data transmission control method and related product
CN110730448A (en) * 2019-09-18 2020-01-24 华为技术有限公司 Method for establishing connection between devices and electronic device

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103796280A (en) * 2012-10-30 2014-05-14 中兴通讯股份有限公司 Method, device and system for discovering and selecting hotspot 2.0 access network
CN104158597A (en) * 2014-07-23 2014-11-19 深圳市揽胜科技有限公司 Method and system for configuring WIFI network product to be connected to router
CN105636023A (en) * 2014-10-28 2016-06-01 福建天晴数码有限公司 Smart device binding method and system
US20170288805A1 (en) * 2015-05-26 2017-10-05 Dansol Plus Co., Ltd. Device and method for sound wave communication
CN105049129A (en) * 2015-07-21 2015-11-11 杭州创辉农业科技有限公司 Wi-Fi configuration system and method based on acoustic waves
CN108353265A (en) * 2015-11-19 2018-07-31 三星电子株式会社 Use the wireless communications method and electronic equipment of near-field communication
CN105790854A (en) * 2016-03-01 2016-07-20 济南中维世纪科技有限公司 Short distance data transmission method and device based on sound waves
CN105764024A (en) * 2016-05-09 2016-07-13 广东欧珀移动通信有限公司 Method and device for testing handling capacity of wireless device
CN106230820A (en) * 2016-07-31 2016-12-14 许琴琴 A kind of sound wave safe transmission method
CN106453496A (en) * 2016-09-05 2017-02-22 北京小米移动软件有限公司 File transmission method and device
CN108307529A (en) * 2016-09-26 2018-07-20 宇龙计算机通信科技(深圳)有限公司 A kind of hotspot connection method and its mobile terminal
CN107920353A (en) * 2016-10-08 2018-04-17 中兴通讯股份有限公司 A kind of method and hot spot access device of Wireless Fidelity connection switching hot spot
CN106973424A (en) * 2017-03-28 2017-07-21 维沃移动通信有限公司 The creation method and terminal of a kind of WAP
CN107222937A (en) * 2017-06-30 2017-09-29 广东欧珀移动通信有限公司 A kind of data transmission method, device and terminal
CN107396290A (en) * 2017-07-25 2017-11-24 上海小蚁科技有限公司 Establish the method and device, storage medium, terminal of WI FI connections
CN107426781A (en) * 2017-08-16 2017-12-01 深圳市中兴物联科技有限公司 A kind of double frequency WiFi automatic switching methods, device and computer-readable recording medium
CN108198296A (en) * 2017-12-27 2018-06-22 广东林盟科技有限公司 A kind of guard method and system based on WIFI positioning

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021051986A1 (en) * 2019-09-18 2021-03-25 华为技术有限公司 Method for establishing connection between apparatuses, and electronic device
US20210345240A1 (en) * 2020-04-30 2021-11-04 Arris Enterprises Llc Wi-fi power reduction system, method and media
US11617132B2 (en) * 2020-04-30 2023-03-28 Arris Enterprises Llc Wi-Fi power reduction system, method and media
CN112291862A (en) * 2020-10-27 2021-01-29 中兴通讯股份有限公司 Method for establishing connection between terminal devices and terminal devices
CN112581658A (en) * 2020-12-02 2021-03-30 广州朗国电子科技有限公司 Intelligent door lock and network configuration method and network configuration device thereof
CN112747450A (en) * 2021-02-02 2021-05-04 杭州凯澜能源科技有限公司 Noise reduction system for centrally installed central air conditioner group
CN113015264A (en) * 2021-02-22 2021-06-22 斑马网络技术有限公司 Method for realizing connection establishment of double hotspots, electronic equipment and readable storage medium
CN115022872A (en) * 2021-11-05 2022-09-06 荣耀终端有限公司 Data transmission method and electronic equipment
CN116489645A (en) * 2021-11-05 2023-07-25 荣耀终端有限公司 Data transmission method and electronic equipment
CN116489645B (en) * 2021-11-05 2024-06-14 荣耀终端有限公司 Data transmission method and electronic equipment
CN114157659B (en) * 2022-02-10 2022-06-21 荣耀终端有限公司 File sharing method and terminal equipment
CN114157659A (en) * 2022-02-10 2022-03-08 荣耀终端有限公司 File sharing method and terminal equipment
CN114845290A (en) * 2022-06-30 2022-08-02 荣耀终端有限公司 Data migration method, electronic device and computer-readable storage medium
CN115119284A (en) * 2022-07-11 2022-09-27 珠海格力电器股份有限公司 Rapid network distribution method based on sound waves, mobile terminal and equipment to be distributed

Also Published As

Publication number Publication date
WO2021051986A1 (en) 2021-03-25

Similar Documents

Publication Publication Date Title
WO2021051986A1 (en) Method for establishing connection between apparatuses, and electronic device
CN112291764B (en) Content connection system
EP3958533B1 (en) Method for accessing wireless local area network and terminal
CN111602379B (en) Voice communication method, electronic equipment and system
CN113873444B (en) Positioning method and electronic equipment
WO2021017894A1 (en) Method for using remote sim module, and electronic apparatus
CN113170279B (en) Communication method based on low-power Bluetooth and related device
CN111464689A (en) Audio output method and terminal equipment
CN113973398B (en) Wireless network connection method, electronic equipment and chip system
CN114079892A (en) Bluetooth communication method, wearable device and system
CN111556479B (en) Information sharing method and related device
CN113676902B (en) System, method and electronic equipment for providing wireless internet surfing
CN114980048A (en) NFC communication method, electronic device and system
CN114338913B (en) Fault diagnosis method, electronic device and readable storage medium
CN114531742A (en) Dual Wi-Fi connection method and electronic equipment
CN117332398A (en) Method, device and system for issuing device certificate
CN117425227A (en) Method and device for establishing session based on WiFi direct connection
CN114489876A (en) Text input method, electronic equipment and system
CN114390569B (en) Method and device for measuring synchronous signal block and mobile terminal
CN114449492B (en) Data transmission method and terminal equipment
CN114845297B (en) Application program access method, electronic device and storage medium
CN111801931B (en) Method for switching on and hanging up telephone when call occurs SRVCC switch
CN114980045A (en) Bluetooth connection method and electronic equipment
CN118586914A (en) Digital currency wallet management method and electronic equipment
CN117295040A (en) Message sending method, electronic equipment and communication system

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200124

WD01 Invention patent application deemed withdrawn after publication