WO2021017785A1 - Data transmission method and terminal device - Google Patents

Data transmission method and terminal device Download PDF

Info

Publication number
WO2021017785A1
WO2021017785A1 PCT/CN2020/100919 CN2020100919W WO2021017785A1 WO 2021017785 A1 WO2021017785 A1 WO 2021017785A1 CN 2020100919 W CN2020100919 W CN 2020100919W WO 2021017785 A1 WO2021017785 A1 WO 2021017785A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
wifi
sound wave
wifi password
information
Prior art date
Application number
PCT/CN2020/100919
Other languages
French (fr)
Chinese (zh)
Inventor
杜莉莉
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021017785A1 publication Critical patent/WO2021017785A1/en

Links

Images

Classifications

    • 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/06Authentication
    • H04W12/068Authentication using credential vaults, e.g. password manager applications or one time password [OTP] applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the embodiments of the present disclosure relate to the field of communication technologies, and in particular, to a data transmission method and terminal equipment.
  • WIFI wireless Fidelity
  • users can obtain the WIFI password of a certain WIFI network by scanning the QR code. Specifically, the user can turn on the camera function of the terminal device to scan the QR code in the wireless network setting interface of another terminal device to obtain the WIFI password of the WIFI network.
  • the user when obtaining the WIFI password of the WIFI network, the user needs to trigger the terminal device to turn on the camera function before scanning the QR code corresponding to the WIFI password of the WIFI network, so the user's operation is relatively cumbersome.
  • the embodiments of the present disclosure provide a data transmission method and a terminal device, which can solve the problem that the user's operation is relatively complicated when obtaining the WIFI password of the WIFI network.
  • a data transmission method is provided, which is applied to a first terminal device.
  • the data transmission method includes: in a case where the first terminal device obtains the WIFI identifier of the target WIFI, sending data to a preset condition
  • the second terminal device sends a WIFI password request, the WIFI password request includes a WIFI identifier, and the preset condition is: within the preset range of the first terminal device, and the first terminal device includes the information of the second terminal device; receiving The WIFI password of the target WIFI sent by the second terminal device; the WIFI password is used to connect to the target WIFI.
  • a second aspect of the embodiments of the present disclosure provides a data transmission method applied to a second terminal device.
  • the data transmission method includes: receiving a WIFI password request sent by the first terminal device, and the WIFI password request includes the WIFI of the target WIFI Identification; if the second terminal device includes the WIFI password of the target WIFI, and the second terminal device is associated with the first terminal device, then the WIFI password is sent to the first terminal device.
  • a third aspect of the embodiments of the present disclosure provides a terminal device.
  • the terminal device is a first terminal device.
  • the terminal device includes a sending module, a receiving module, and a connecting module.
  • the sending module is used to send a WIFI password request to a second terminal device that meets a preset condition when the first terminal device obtains the WIFI identity of the target WIFI.
  • the WIFI password request includes the WIFI identity and the preset condition It is: within the preset range of the first terminal device, and the first terminal device includes the information of the second terminal device.
  • the receiving module is used to receive the WIFI password of the target WIFI sent by the second terminal device.
  • the connection module is used to connect to the target WIFI using the WIFI password received by the receiving module.
  • a fourth aspect of the embodiments of the present disclosure provides a terminal device, the terminal device is a second terminal device, and the terminal device includes: a receiving module and a sending module.
  • the receiving module is configured to receive a WIFI password request sent by the first terminal device, and the WIFI password request includes the WIFI identifier of the target WIFI.
  • the sending module is configured to send the WIFI password to the first terminal device if the second terminal device includes the WIFI password of the target WIFI and the second terminal device is associated with the first terminal device.
  • a terminal device in a fifth aspect of the embodiments of the present disclosure, includes a processor, a memory, and a computer program that is stored in the memory and can run on the processor. The steps of the data transmission method described in one aspect, or the steps of the data transmission method described in the second aspect.
  • a computer-readable storage medium stores a computer program.
  • the steps of the data transmission method as described in the first aspect are implemented.
  • the steps of the data transmission method as described in the second aspect are implemented.
  • the first terminal device can provide information to users who meet a preset condition (the preset condition is: within a preset range of the first terminal device and the first terminal device includes information about the second terminal device)
  • the second terminal device sends a WIFI password request to obtain the WIFI password of the target WIFI from the second terminal device, and then uses the WIFI password to connect to the target WIFI. Since the first terminal device can directly obtain the WIFI password of the target WIFI by sending a WIFI password request to the second terminal device that meets the preset conditions, the WIFI password can be used to connect to the target WIFI without the user's input to perform the target WIFI Connection, this can simplify the user's operation and save time in the WIFI connection process.
  • FIG. 1 is a schematic diagram of the architecture of an Android operating system provided by an embodiment of the disclosure
  • FIG. 2 is one of the schematic diagrams of a data transmission method provided by an embodiment of the disclosure
  • FIG. 3 is one of the schematic diagrams of an example of a mobile phone interface provided by an embodiment of the disclosure.
  • FIG. 4 is a second schematic diagram of an example of a mobile phone interface provided by an embodiment of the disclosure.
  • FIG. 5 is the second schematic diagram of a data transmission method provided by an embodiment of the disclosure.
  • FIG. 6 is the third schematic diagram of a data transmission method provided by an embodiment of the disclosure.
  • FIG. 7 is one of the schematic structural diagrams of a terminal device provided by an embodiment of the disclosure.
  • FIG. 8 is the second structural diagram of a terminal device provided by an embodiment of the disclosure.
  • FIG. 9 is a schematic diagram of hardware of a terminal device provided by an embodiment of the disclosure.
  • first and second in the description and claims of the embodiments of the present disclosure are used to distinguish different objects, rather than to describe a specific order of objects.
  • first terminal device and the second terminal device are used to distinguish different terminal devices, rather than to describe a specific sequence of the terminal devices.
  • plural means two or more.
  • a plurality of elements refers to two elements or more than two elements.
  • words such as “exemplary” or “for example” are used as examples, illustrations, or illustrations. Any embodiment or design solution described as “exemplary” or “for example” in the embodiments of the present disclosure should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as “exemplary” or “for example” are used to present related concepts in a specific manner.
  • the embodiments of the present disclosure provide a data transmission method and terminal device.
  • the first terminal device can satisfy a preset condition (the preset condition is: within a preset range of the first terminal device, and the first terminal device includes the first terminal device).
  • the second terminal device of the second terminal device sends a WIFI password request to obtain the WIFI password of the target WIFI from the second terminal device, and then uses the WIFI password to connect to the target WIFI. Since the first terminal device can directly obtain the WIFI password of the target WIFI by sending a WIFI password request to the second terminal device that meets the preset conditions, the WIFI password can be used to connect to the target WIFI without the user's input to perform the target WIFI Connection, this can simplify the user's operation and save time in the WIFI connection process.
  • the data transmission method and terminal device provided by the embodiments of the present disclosure can be applied to a process in which the first terminal device makes a WIFI connection. Specifically, it can be applied to the process in which the first terminal device uses the WIFI password obtained from the second terminal device to connect to the target WIFI.
  • the terminal device in the embodiment of the present disclosure may be a terminal device with an operating system.
  • the operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present disclosure.
  • the following takes the Android operating system as an example to introduce the software environment to which the data transmission method provided in the embodiments of the present disclosure is applied.
  • FIG. 1 it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present disclosure.
  • the architecture of the Android operating system includes 4 layers, namely: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
  • the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
  • the application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
  • the system runtime layer includes a library (also called a system library) and an Android operating system runtime environment.
  • the library mainly provides various resources needed by the Android operating system.
  • the Android operating system operating environment is used to provide a software environment for the Android operating system.
  • the kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software level.
  • the kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
  • developers can develop software programs that implement the data transmission method provided by the embodiments of the present disclosure based on the system architecture of the Android operating system as shown in FIG. 1, so that the data
  • the transmission method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the terminal device can implement the data transmission method provided by the embodiment of the present disclosure by running the software program in the Android operating system.
  • the terminal device in the embodiment of the present disclosure may be a mobile terminal device or a non-mobile terminal device.
  • the mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • the non-mobile terminal device may be a personal computer (PC), television (television, TV), teller machine, or self-service machine, etc., which are not specifically limited in the embodiment of the present disclosure.
  • the user when a user obtains the WIFI password of the WIFI network, the user needs to trigger the terminal device to turn on the camera function before scanning the QR code corresponding to the WIFI password of the WIFI network, so the user's operation is relatively cumbersome.
  • FIG. 2 shows a flowchart of a data transmission method provided by an embodiment of the present disclosure. The method can be applied to a data transmission method as shown in FIG. Terminal equipment with Android operating system. As shown in FIG. 2, the data transmission method provided by the embodiment of the present disclosure may include the following steps 201 to 205.
  • Step 201 In a case where the first terminal device obtains the WIFI identifier of the target WIFI, the first terminal device sends a WIFI password request to the second terminal device meeting a preset condition.
  • the aforementioned WIFI password request includes a WIFI identifier
  • the preset condition is that it is within a preset range of the first terminal device and the first terminal device includes information of the second terminal device.
  • the aforementioned WIFI password request is used to request the WIFI password of the target WIFI.
  • the first terminal device may obtain the WIFI identifier of the target WIFI according to the user's first input (the first input is the input that the user can input to the WIFI identifier of the target WIFI).
  • the above-mentioned first input may be a user's input on the WIFI setting interface of the first terminal device.
  • the aforementioned WIFI identifier may be a WIFI account.
  • the first terminal device is a mobile phone as an example for description.
  • the mobile phone 10 displays a WIFI setting interface 11, and the WIFI setting interface 11 displays multiple WIFI accounts.
  • the WIFI setting interface 11 the user sets the WIFI account of the target WIFI (for example, the account "abcde").
  • the mobile phone 10 can send a WIFI password request to the second terminal device according to the WIFI account, and display the password input interface 12 as shown in (B) in FIG. 3.
  • the first terminal device may establish a connection with the second terminal device through Bluetooth, and then send a WIFI password request to the second terminal device.
  • the above-mentioned information of the second terminal device may include the device information of the second terminal device, and the device information of the second terminal device may include at least one of the following: the device identifier of the second terminal device and Subscriber Identity Module ((Subscriber Identity Module, SIM) card information of the second terminal device.
  • SIM Subscriber Identity Module
  • the terminal device may first search for the terminal device within the preset range of the first terminal device, and obtain the information of the terminal device (for example, the terminal device’s Device identification), and then determine whether the first terminal device includes the terminal device information, if the first terminal device includes the terminal device information, the first terminal device determines the terminal device as the second terminal device, and sends The second terminal device sends a WIFI password request.
  • the terminal device may first search for the terminal device within the preset range of the first terminal device, and obtain the information of the terminal device (for example, the terminal device’s Device identification), and then determine whether the first terminal device includes the terminal device information, if the first terminal device includes the terminal device information, the first terminal device determines the terminal device as the second terminal device, and sends The second terminal device sends a WIFI password request.
  • the aforementioned WIFI password request may also include the device information of the first terminal device.
  • the device information of the first terminal device is used by the second terminal device to determine whether it is associated with the first terminal device.
  • the device information of the first terminal device may include at least one of the following: a device identifier of the first terminal device and SIM card information of the first terminal device.
  • the second terminal device can determine whether the first terminal device is an associated device of the second terminal device according to the device information of the first terminal device in the received WIFI password request.
  • the second terminal device determines that the second terminal device is associated with the first terminal device, that is, the first terminal device is the second terminal device.
  • the associated equipment of the terminal equipment if the second terminal device includes the device information of the first terminal device, the second terminal device determines that the second terminal device is associated with the first terminal device, that is, the first terminal device is the second terminal device. The associated equipment of the terminal equipment.
  • the aforementioned WIFI password request may also include number information corresponding to the target application in the first terminal device.
  • the above-mentioned target application may be a contact application.
  • Step 202 The second terminal device receives the WIFI password request sent by the first terminal device.
  • Step 203 If the second terminal device includes the WIFI password of the target WIFI, and the second terminal device is associated with the first terminal device, the second terminal device sends the WIFI password to the first terminal device.
  • the second terminal device may first search for the WIFI password of the target WIFI in the second terminal device, and after finding the WIFI password, report A terminal device sends the WIFI password.
  • the second terminal device may send the WIFI password to the first terminal device through Bluetooth.
  • the above WIFI password request may also include the device information of the first terminal device, and the device information of the first terminal device may include at least one of the following: the device identifier of the first terminal device and the first terminal device. SIM card information of a terminal device.
  • the above-mentioned association of the second terminal device with the first terminal device may be understood as: the second terminal device includes the device information of the first terminal device.
  • the second terminal device may search for the WIFI password of the target WIFI in the second terminal device, and in the case of finding the WIFI password, according to the received To determine whether the first terminal device is an associated device of the second terminal device.
  • the above-mentioned associated device can be understood as a device that can perform WIFI password transmission by the second terminal device.
  • the second terminal device may search for the device information of the first terminal device from the second terminal device, and if the device information of the first terminal device is found, determine the first terminal device The device is an associated device of the second terminal device.
  • the second terminal device may also determine whether the first terminal device is an associated device of the second terminal device according to the number information corresponding to the contact application program sent by the first terminal device.
  • the second terminal device before sending the WIFI password to the first terminal device, may display prompt information on the display screen of the second terminal device, and the prompt information is used to prompt the user whether to allow the second terminal device.
  • the terminal device sends the WIFI password; the second terminal device can receive a second input from the user (the second input is used to trigger the second terminal device to send the WIFI password to the first terminal device), and send the WIFI password to the first terminal according to the second input
  • the device sends the WIFI password.
  • the second terminal device is a mobile phone as an example for description.
  • the mobile phone 13 may display a prompt message on the display screen 14 to prompt the user whether to allow the mobile phone 13 to send the WIFI password, and after the user performs a second input for the prompt message, the WIFI password is sent to the mobile phone 10.
  • the second terminal device may send the WIFI password of the target WIFI to the first terminal device by means of acoustic wave transmission.
  • the second terminal device determines that the first terminal device is not an associated device of the second terminal device, the second terminal device is prohibited from sending the WIFI password to the first terminal device.
  • Step 204 The first terminal device receives the WIFI password of the target WIFI sent by the second terminal device.
  • the first terminal device may receive the WIFI password of the target WIFI through Bluetooth.
  • Step 205 The first terminal device uses the WIFI password to connect to the target WIFI.
  • the first terminal device may directly use the WIFI password to connect to the target WIFI, that is, the user does not need to input the WIFI password of the target WIFI.
  • the first terminal device can automatically add the WIFI password to the password input area corresponding to the target WIFI, verify the WIFI password, and then connect to the target WIFI after the WIFI password is successfully verified. .
  • the embodiment of the present disclosure provides a data transmission method.
  • a first terminal device can satisfy a preset condition (the preset condition is: within a preset range of the first terminal device, and the first terminal device includes the second terminal device).
  • the second terminal device sends a WIFI password request to obtain the WIFI password of the target WIFI from the second terminal device, and then uses the WIFI password to connect to the target WIFI. Since the first terminal device can directly obtain the WIFI password of the target WIFI by sending a WIFI password request to the second terminal device that meets the preset conditions, the WIFI password can be used to connect to the target WIFI without the user's input to perform the target WIFI Connection, this can simplify the user's operation and save time in the WIFI connection process.
  • the above step 201 may be specifically implemented by the following step 201a, and the above step 204 may be specifically implemented by the following step 204a.
  • Step 201a When the first terminal device obtains the WIFI identifier of the target WIFI, the first terminal device sends the first sound wave data to the second terminal device.
  • the above-mentioned first sound wave data is sound wave data generated by the first terminal device, and the first sound wave data includes a WIFI password request.
  • the first terminal device may send the WIFI password request to the second terminal device in a sound wave transmission manner.
  • Step 204a The first terminal device receives the second sound wave data sent by the second terminal device.
  • the above-mentioned second sound wave data is sound wave data generated by the second terminal device, and the second sound wave data includes a WIFI password.
  • the first terminal device and the second terminal device may transmit the WIFI password request and the WIFI password by means of acoustic wave transmission, so that the first terminal device can quickly obtain the WIFI password.
  • the above step 203 may be specifically implemented by the following step 203a, and the above step 204 may be specifically implemented by the following step 204b.
  • Step 203a If the second terminal device includes the WIFI password of the target WIFI, and the second terminal device is associated with the first terminal device, the second terminal device broadcasts the target sound wave data to at least one terminal device.
  • the aforementioned target sound wave data is sound wave data generated by a second terminal device, the target sound wave data includes a WIFI password, and at least one terminal device includes the first terminal device.
  • the aforementioned target acoustic wave data corresponds to the second acoustic wave data.
  • the second terminal device may broadcast the target sound wave data to at least one terminal device in a broadcast manner, thereby broadcasting the WIFI password.
  • Step 204b The first terminal device receives the target sound wave data sent by the second terminal device.
  • the above-mentioned target sound wave data includes a WIFI password.
  • the second terminal device may send the WIFI password in a broadcast mode, so that at least one terminal device can receive the WIFI password, so that the WIFI password can be sent to multiple terminal devices quickly, so that at least one terminal device Quickly connect to the target WIFI.
  • FIG. 7 shows a schematic diagram of a possible structure of a terminal device involved in an embodiment of the present disclosure, and the terminal device is a first terminal device.
  • the terminal device 70 may include: a sending module 71, a receiving module 72, and a connecting module 73.
  • the sending module 71 is configured to send a WIFI password request to a second terminal device that meets a preset condition when the first terminal device obtains the WIFI identity of the target WIFI.
  • the WIFI password request includes the WIFI identity and is preset The condition is: it is within the preset range of the first terminal device and the first terminal device includes the information of the second terminal device.
  • the receiving module 72 is configured to receive the WIFI password of the target WIFI sent by the second terminal device.
  • the connection module 73 is configured to use the WIFI password received by the receiving module 72 to connect to the target WIFI.
  • the above-mentioned information of the second terminal device may include the device information of the second terminal device, and the device information of the second terminal device may include at least one of the following: the device identifier of the second terminal device and the first terminal device. 2. SIM card information of the terminal device.
  • the aforementioned WIFI password request may also include device information of the first terminal device.
  • the device information of the first terminal device is used by the second terminal device to determine whether it is associated with the first terminal device.
  • the device information of a terminal device may include at least one of the following: the device identifier of the first terminal device and the SIM card information of the first terminal device.
  • the sending module 71 is specifically configured to send first acoustic wave data to the second terminal device.
  • the first acoustic wave data is acoustic wave data generated by the first terminal device.
  • the data includes a WIFI password request.
  • the above-mentioned receiving module 72 is specifically configured to receive second sound wave data sent by a second terminal device.
  • the second sound wave data is sound wave data generated by the second terminal device, and the second sound wave data includes a WIFI password.
  • the terminal device provided by the embodiment of the present disclosure can implement each process implemented by the first terminal device in the foregoing method embodiment. To avoid repetition, the detailed description will not be repeated here.
  • the embodiments of the present disclosure provide a terminal device, and the first terminal device can provide information to those that meet a preset condition (the preset condition is: within a preset range of the first terminal device and the first terminal device includes the second terminal device) Information)
  • the second terminal device sends a WIFI password request to obtain the WIFI password of the target WIFI from the second terminal device, and then uses the WIFI password to connect to the target WIFI. Since the first terminal device can directly obtain the WIFI password of the target WIFI by sending a WIFI password request to the second terminal device that meets the preset conditions, the WIFI password can be used to connect to the target WIFI without the user's input to perform the target WIFI Connection, this can simplify the user's operation and save time in the WIFI connection process.
  • FIG. 8 shows a schematic diagram of a possible structure of a terminal device involved in an embodiment of the present disclosure, and the terminal device is a second terminal device.
  • the terminal device 80 may include: a receiving module 81 and a sending module 82.
  • the receiving module 81 is configured to receive a WIFI password request sent by the first terminal device, and the WIFI password request includes the WIFI identifier of the target WIFI.
  • the sending module 82 is configured to send the WIFI password to the first terminal device if the second terminal device includes the WIFI password of the target WIFI and the second terminal device is associated with the first terminal device.
  • the aforementioned WIFI password request may also include device information of the first terminal device.
  • the device information of the first terminal device is used by the second terminal device to determine whether it is associated with the first terminal device.
  • the device information of a terminal device may include at least one of the following: the device identifier of the first terminal device and the SIM card information of the first terminal device.
  • the foregoing second terminal device being associated with the first terminal device includes: the second terminal device includes device information of the first terminal device.
  • the aforementioned sending module 82 is specifically configured to broadcast target sound wave data to at least one terminal device.
  • the target sound wave data is sound wave data generated by a second terminal device.
  • the target sound wave data includes a WIFI password.
  • the at least one terminal device includes the first terminal device.
  • the embodiments of the present disclosure provide a terminal device.
  • the second terminal device can send the WIFI password of the target WIFI to the first terminal device according to the WIFI password request sent by the first terminal device, so that the first terminal device can use the WIFI password to connect
  • the target WIFI does not require user input to connect to the target WIFI, which can simplify the user's operation and save time in the WIFI connection process.
  • FIG. 9 is a hardware schematic diagram of a terminal device that implements various embodiments of the present disclosure.
  • the terminal device may be the first terminal device or the second terminal device in the embodiments of the disclosure.
  • the terminal device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, The processor 110, and the power supply 111 and other components.
  • terminal device does not constitute a limitation on the terminal device.
  • the terminal device may include more or less components than those shown in FIG. Some components, or different component arrangements.
  • terminal devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
  • the radio frequency unit 101 is configured to send a WIFI password request to a second terminal device meeting preset conditions when the first terminal device obtains the WIFI identity of the target WIFI.
  • the WIFI password request includes the WIFI identity and is preset The condition is: within the preset range of the first terminal device, and the first terminal device includes the information of the second terminal device; and receiving the WIFI password of the target WIFI sent by the second terminal device.
  • the processor 110 is configured to use the WIFI password received by the radio frequency unit 101 to connect to the target WIFI.
  • the radio frequency unit 101 is used to receive a WIFI password request sent by a first terminal device, and the WIFI password request includes the WIFI identification of the target WIFI; if the second terminal device includes the WIFI password of the target WIFI, and the second terminal device and the first When the terminal device is associated, the WIFI password is sent to the first terminal device.
  • the embodiment of the present disclosure provides a terminal device, because the first terminal device can meet the preset condition (the preset condition is: within the preset range of the first terminal device, and the first terminal device includes the second terminal Device information)
  • the second terminal device sends a WIFI password request to directly obtain the WIFI password of the target WIFI, so that the WIFI password is used to connect to the target WIFI, and the target WIFI can be connected without the user's input, which can simplify the user's operation , And save time in the WIFI connection process.
  • the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; Uplink data is sent to the base station.
  • the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
  • the terminal device provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the input unit 104 is used to receive audio or video signals.
  • the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame can be displayed on the display unit 106.
  • the image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102.
  • the microphone 1042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
  • the terminal device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 1061 and the display panel 1061 when the terminal device 100 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of the terminal device (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 106 is used to display information input by the user or information provided to the user.
  • the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), etc.
  • LCD Liquid Crystal Display
  • OLED Organic Light-Emitting Diode
  • the user input unit 107 can be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the terminal device.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072.
  • the touch panel 1071 also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operating).
  • the touch panel 1071 may include two parts: a touch detection device and a touch controller.
  • the interface unit 108 is an interface for connecting an external device with the terminal device 100.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the terminal device 100 or can be used to connect to the terminal device 100 and external Transfer data between devices.
  • the memory 109 can be used to store software programs and various data.
  • the memory 109 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones.
  • the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 110 is the control center of the terminal device. It uses various interfaces and lines to connect the various parts of the entire terminal device, runs or executes the software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , Perform various functions of the terminal equipment and process data, so as to monitor the terminal equipment as a whole.
  • the processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc.
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
  • the terminal device 100 may also include a power source 111 (such as a battery) for supplying power to various components.
  • a power source 111 such as a battery
  • the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • an embodiment of the present disclosure further provides a terminal device, including a processor 110 as shown in FIG. 9, a memory 109, a computer program stored in the memory 109 and running on the processor 110, the computer
  • a terminal device including a processor 110 as shown in FIG. 9, a memory 109, a computer program stored in the memory 109 and running on the processor 110, the computer
  • the program is executed by the processor 110, each process of the foregoing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored.
  • a computer program is stored.
  • the computer program is executed by a processor, each process of the foregoing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, I won’t repeat them here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.

Landscapes

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

Abstract

The embodiments of the present disclosure disclose a data transmission method and a terminal device. Said method comprises: in the case where a first terminal device acquires the Wi-Fi identifier of a target Wi-Fi, sending a Wi-Fi password request to a second terminal device satisfying a preset condition, the Wi-Fi password request comprising the Wi-Fi identifier, and the preset condition being as follows: being within a preset range of the first terminal device, and the first terminal device comprising information of the second terminal device; receiving a Wi-Fi password of the target Wi-Fi sent by the second terminal device; and using the Wi-Fi password to connect the target Wi-Fi.

Description

数据传输方法及终端设备Data transmission method and terminal equipment
相关申请的交叉引用Cross references to related applications
本申请主张在2019年07月31日在中国提交的中国专利申请号201910698601.7的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201910698601.7 filed in China on July 31, 2019, the entire content of which is incorporated herein by reference.
技术领域Technical field
本公开实施例涉及通信技术领域,尤其涉及一种数据传输方法及终端设备。The embodiments of the present disclosure relate to the field of communication technologies, and in particular, to a data transmission method and terminal equipment.
背景技术Background technique
通常,用户通过终端设备在某个区域连接无线保真(Wireless Fidelity,WIFI)网络时,可以打开无线网络设置界面,并在该无线网络设置界面中选择需要连接的WIFI网络,然后再输入该WIFI网络的WIFI密码以连接该WIFI网络。Generally, when a user connects to a wireless fidelity (Wireless Fidelity, WIFI) network in a certain area through a terminal device, he can open the wireless network setting interface and select the WIFI network to be connected in the wireless network setting interface, and then enter the WIFI The WIFI password of the network to connect to the WIFI network.
目前,用户可以通过扫描二维码的方式,获取某个WIFI网络的WIFI密码。具体的,用户可以打开终端设备的摄像头功能,以扫描另一个终端设备的无线网络设置界面中的二维码,从而以获取WIFI网络的WIFI密码。Currently, users can obtain the WIFI password of a certain WIFI network by scanning the QR code. Specifically, the user can turn on the camera function of the terminal device to scan the QR code in the wireless network setting interface of another terminal device to obtain the WIFI password of the WIFI network.
但是,上述方法中,由于用户在获取WIFI网络的WIFI密码时,需要先触发终端设备开启摄像头功能,然后才能扫描WIFI网络的WIFI密码对应的二维码,因此用户的操作比较繁琐。However, in the above method, when obtaining the WIFI password of the WIFI network, the user needs to trigger the terminal device to turn on the camera function before scanning the QR code corresponding to the WIFI password of the WIFI network, so the user's operation is relatively cumbersome.
发明内容Summary of the invention
本公开实施例提供一种数据传输方法及终端设备,可以解决在获取WIFI网络的WIFI密码时,用户的操作比较繁琐的问题。The embodiments of the present disclosure provide a data transmission method and a terminal device, which can solve the problem that the user's operation is relatively complicated when obtaining the WIFI password of the WIFI network.
为了解决上述技术问题,本公开实施例采用如下技术方案:In order to solve the above technical problems, the embodiments of the present disclosure adopt the following technical solutions:
本公开实施例的第一方面,提供一种数据传输方法,应用于第一终端设备,该数据传输方法包括:在第一终端设备获取到目标WIFI的WIFI标识的情况下,向满足预设条件的第二终端设备发送WIFI密码请求,该WIFI密码请求中包括WIFI标识,预设条件为:处 于第一终端设备的预设范围内、且第一终端设备中包括第二终端设备的信息;接收第二终端设备发送的目标WIFI的WIFI密码;采用WIFI密码连接目标WIFI。In a first aspect of the embodiments of the present disclosure, a data transmission method is provided, which is applied to a first terminal device. The data transmission method includes: in a case where the first terminal device obtains the WIFI identifier of the target WIFI, sending data to a preset condition The second terminal device sends a WIFI password request, the WIFI password request includes a WIFI identifier, and the preset condition is: within the preset range of the first terminal device, and the first terminal device includes the information of the second terminal device; receiving The WIFI password of the target WIFI sent by the second terminal device; the WIFI password is used to connect to the target WIFI.
本公开实施例的第二方面,提供一种数据传输方法,应用于第二终端设备,该数据传输方法包括:接收第一终端设备发送的WIFI密码请求,该WIFI密码请求中包括目标WIFI的WIFI标识;若第二终端设备中包括目标WIFI的WIFI密码、且第二终端设备与第一终端设备关联,则向第一终端设备发送WIFI密码。A second aspect of the embodiments of the present disclosure provides a data transmission method applied to a second terminal device. The data transmission method includes: receiving a WIFI password request sent by the first terminal device, and the WIFI password request includes the WIFI of the target WIFI Identification; if the second terminal device includes the WIFI password of the target WIFI, and the second terminal device is associated with the first terminal device, then the WIFI password is sent to the first terminal device.
本公开实施例的第三方面,提供一种终端设备,该终端设备为第一终端设备,该终端设备包括:发送模块、接收模块和连接模块。其中,发送模块,用于在第一终端设备获取到目标WIFI的WIFI标识的情况下,向满足预设条件的第二终端设备发送WIFI密码请求,该WIFI密码请求中包括WIFI标识,预设条件为:处于第一终端设备的预设范围内、且第一终端设备中包括第二终端设备的信息。接收模块,用于接收第二终端设备发送的目标WIFI的WIFI密码。连接模块,用于采用接收模块接收的WIFI密码连接目标WIFI。A third aspect of the embodiments of the present disclosure provides a terminal device. The terminal device is a first terminal device. The terminal device includes a sending module, a receiving module, and a connecting module. Among them, the sending module is used to send a WIFI password request to a second terminal device that meets a preset condition when the first terminal device obtains the WIFI identity of the target WIFI. The WIFI password request includes the WIFI identity and the preset condition It is: within the preset range of the first terminal device, and the first terminal device includes the information of the second terminal device. The receiving module is used to receive the WIFI password of the target WIFI sent by the second terminal device. The connection module is used to connect to the target WIFI using the WIFI password received by the receiving module.
本公开实施例的第四方面,提供一种终端设备,该终端设备为第二终端设备,该终端设备包括:接收模块和发送模块。其中,接收模块,用于接收第一终端设备发送的WIFI密码请求,该WIFI密码请求中包括目标WIFI的WIFI标识。发送模块,用于若第二终端设备中包括目标WIFI的WIFI密码、且第二终端设备与第一终端设备关联,则向第一终端设备发送WIFI密码。A fourth aspect of the embodiments of the present disclosure provides a terminal device, the terminal device is a second terminal device, and the terminal device includes: a receiving module and a sending module. The receiving module is configured to receive a WIFI password request sent by the first terminal device, and the WIFI password request includes the WIFI identifier of the target WIFI. The sending module is configured to send the WIFI password to the first terminal device if the second terminal device includes the WIFI password of the target WIFI and the second terminal device is associated with the first terminal device.
本公开实施例的第五方面,提供一种终端设备,该终端设备包括处理器、存储器及存储在存储器上并可在处理器上运行的计算机程序,该计算机程序被处理器执行时实现如第一方面所述的数据传输方法的步骤,或者如第二方面所述的数据传输方法的步骤。In a fifth aspect of the embodiments of the present disclosure, a terminal device is provided. The terminal device includes a processor, a memory, and a computer program that is stored in the memory and can run on the processor. The steps of the data transmission method described in one aspect, or the steps of the data transmission method described in the second aspect.
本公开实施例的第六方面,提供一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如第一方面所述的数据传输方法的步骤,或者如第二方面所述的数据传输方法的步骤。In a sixth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the steps of the data transmission method as described in the first aspect are implemented. , Or the steps of the data transmission method as described in the second aspect.
在本公开实施例中,第一终端设备可以向满足预设条件(该预设条件为:处于第一终端设备的预设范围内、且第一终端设备中包括第二终端设备的信息)的第二终端设备发送WIFI密码请求,以从第二终端设备获取目标WIFI的WIFI密码,然后采用该WIFI密码连 接目标WIFI。由于第一终端设备可以通过向满足预设条件的第二终端设备发送WIFI密码请求,直接获取到目标WIFI的WIFI密码,从而采用该WIFI密码连接目标WIFI,而无需用户的输入才能进行目标WIFI的连接,如此可以简化用户的操作,且节省WIFI连接过程中的耗时。In the embodiment of the present disclosure, the first terminal device can provide information to users who meet a preset condition (the preset condition is: within a preset range of the first terminal device and the first terminal device includes information about the second terminal device) The second terminal device sends a WIFI password request to obtain the WIFI password of the target WIFI from the second terminal device, and then uses the WIFI password to connect to the target WIFI. Since the first terminal device can directly obtain the WIFI password of the target WIFI by sending a WIFI password request to the second terminal device that meets the preset conditions, the WIFI password can be used to connect to the target WIFI without the user's input to perform the target WIFI Connection, this can simplify the user's operation and save time in the WIFI connection process.
附图说明Description of the drawings
图1为本公开实施例提供的一种安卓操作系统的架构示意图;FIG. 1 is a schematic diagram of the architecture of an Android operating system provided by an embodiment of the disclosure;
图2为本公开实施例提供的一种数据传输方法的示意图之一;FIG. 2 is one of the schematic diagrams of a data transmission method provided by an embodiment of the disclosure;
图3为本公开实施例提供的一种手机的界面的实例示意图之一;3 is one of the schematic diagrams of an example of a mobile phone interface provided by an embodiment of the disclosure;
图4为本公开实施例提供的一种手机的界面的实例示意图之二;4 is a second schematic diagram of an example of a mobile phone interface provided by an embodiment of the disclosure;
图5为本公开实施例提供的一种数据传输方法的示意图之二;FIG. 5 is the second schematic diagram of a data transmission method provided by an embodiment of the disclosure;
图6为本公开实施例提供的一种数据传输方法的示意图之三;FIG. 6 is the third schematic diagram of a data transmission method provided by an embodiment of the disclosure;
图7为本公开实施例提供的一种终端设备的结构示意图之一;FIG. 7 is one of the schematic structural diagrams of a terminal device provided by an embodiment of the disclosure;
图8为本公开实施例提供的一种终端设备的结构示意图之二;FIG. 8 is the second structural diagram of a terminal device provided by an embodiment of the disclosure;
图9为本公开实施例提供的一种终端设备的硬件示意图。FIG. 9 is a schematic diagram of hardware of a terminal device provided by an embodiment of the disclosure.
具体实施方式Detailed ways
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present disclosure.
本公开实施例的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一终端设备和第二终端设备等是用于区别不同的终端设备,而不是用于描述终端设备的特定顺序。The terms "first" and "second" in the description and claims of the embodiments of the present disclosure are used to distinguish different objects, rather than to describe a specific order of objects. For example, the first terminal device and the second terminal device are used to distinguish different terminal devices, rather than to describe a specific sequence of the terminal devices.
在本公开实施例的描述中,除非另有说明,“多个”的含义是指两个或两个以上。例如,多个元件是指两个元件或两个以上元件。In the description of the embodiments of the present disclosure, unless otherwise specified, the meaning of "plurality" means two or more. For example, a plurality of elements refers to two elements or more than two elements.
本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如, 显示面板和/或背光,可以表示:单独存在显示面板,同时存在显示面板和背光,单独存在背光这三种情况。本文中符号“/”表示关联对象是或者的关系,例如输入/输出表示输入或者输出。The term "and/or" in this article refers to an association relationship that describes associated objects, which means that there can be three relationships. For example, a display panel and/or backlight can mean that the display panel exists alone, and the display panel and backlight exist at the same time. There are three cases of backlight alone. The symbol "/" in this document indicates the relationship that the associated object is or, for example, input/output indicates input or output.
在本公开实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本公开实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present disclosure, words such as "exemplary" or "for example" are used as examples, illustrations, or illustrations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present disclosure should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as "exemplary" or "for example" are used to present related concepts in a specific manner.
本公开实施例提供一种数据传输方法及终端设备,第一终端设备可以向满足预设条件(该预设条件为:处于第一终端设备的预设范围内、且第一终端设备中包括第二终端设备的信息)的第二终端设备发送WIFI密码请求,以从第二终端设备获取目标WIFI的WIFI密码,然后采用该WIFI密码连接目标WIFI。由于第一终端设备可以通过向满足预设条件的第二终端设备发送WIFI密码请求,直接获取到目标WIFI的WIFI密码,从而采用该WIFI密码连接目标WIFI,而无需用户的输入才能进行目标WIFI的连接,如此可以简化用户的操作,且节省WIFI连接过程中的耗时。The embodiments of the present disclosure provide a data transmission method and terminal device. The first terminal device can satisfy a preset condition (the preset condition is: within a preset range of the first terminal device, and the first terminal device includes the first terminal device). The second terminal device of the second terminal device sends a WIFI password request to obtain the WIFI password of the target WIFI from the second terminal device, and then uses the WIFI password to connect to the target WIFI. Since the first terminal device can directly obtain the WIFI password of the target WIFI by sending a WIFI password request to the second terminal device that meets the preset conditions, the WIFI password can be used to connect to the target WIFI without the user's input to perform the target WIFI Connection, this can simplify the user's operation and save time in the WIFI connection process.
本公开实施例提供的数据传输方法及终端设备,可以应用于第一终端设备进行WIFI连接的过程。具体的,可以应用于第一终端设备采用从第二终端设备获取的WIFI密码,连接目标WIFI的过程中。The data transmission method and terminal device provided by the embodiments of the present disclosure can be applied to a process in which the first terminal device makes a WIFI connection. Specifically, it can be applied to the process in which the first terminal device uses the WIFI password obtained from the second terminal device to connect to the target WIFI.
本公开实施例中的终端设备可以为具有操作系统的终端设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本公开实施例不作具体限定。The terminal device in the embodiment of the present disclosure may be a terminal device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present disclosure.
下面以安卓操作系统为例,介绍一下本公开实施例提供的数据传输方法所应用的软件环境。The following takes the Android operating system as an example to introduce the software environment to which the data transmission method provided in the embodiments of the present disclosure is applied.
如图1所示,为本公开实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1, it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present disclosure. In Figure 1, the architecture of the Android operating system includes 4 layers, namely: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方 应用程序)。Among them, the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。The application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime layer includes a library (also called a system library) and an Android operating system runtime environment. The library mainly provides various resources needed by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.
内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software level. The kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
以安卓操作系统为例,本公开实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本公开实施例提供的数据传输方法的软件程序,从而使得该数据传输方法可以基于如图1所示的安卓操作系统运行。即处理器或者终端设备可以通过在安卓操作系统中运行该软件程序实现本公开实施例提供的数据传输方法。Taking the Android operating system as an example, in the embodiments of the present disclosure, developers can develop software programs that implement the data transmission method provided by the embodiments of the present disclosure based on the system architecture of the Android operating system as shown in FIG. 1, so that the data The transmission method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the terminal device can implement the data transmission method provided by the embodiment of the present disclosure by running the software program in the Android operating system.
本公开实施例中的终端设备可以为移动终端设备,也可以为非移动终端设备。示例性的,移动终端设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动终端设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本公开实施例不作具体限定。The terminal device in the embodiment of the present disclosure may be a mobile terminal device or a non-mobile terminal device. Exemplarily, the mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). Assistant, PDA), etc., the non-mobile terminal device may be a personal computer (PC), television (television, TV), teller machine, or self-service machine, etc., which are not specifically limited in the embodiment of the present disclosure.
下面结合附图,通过具体的实施例及其应用场景对本公开实施例提供的一种数据传输方法及终端设备进行详细地说明。The following describes in detail a data transmission method and terminal device provided in the embodiments of the present disclosure through specific embodiments and application scenarios with reference to the accompanying drawings.
目前,相关技术中,用户在获取WIFI网络的WIFI密码时,需要先触发终端设备开启摄像头功能,然后才能扫描WIFI网络的WIFI密码对应的二维码,因此用户的操作比较繁琐。At present, in related technologies, when a user obtains the WIFI password of the WIFI network, the user needs to trigger the terminal device to turn on the camera function before scanning the QR code corresponding to the WIFI password of the WIFI network, so the user's operation is relatively cumbersome.
为了解决上述技术问题,本公开实施例提供的一种数据传输方法,图2示出了本公开实施例提供的一种数据传输方法的流程图,该方法可以应用于具有如图1所示的安卓操作系统的终端设备。如图2所示,本公开实施例提供的数据传输方法可以包括下述的步骤201至步骤205。In order to solve the above technical problems, an embodiment of the present disclosure provides a data transmission method. FIG. 2 shows a flowchart of a data transmission method provided by an embodiment of the present disclosure. The method can be applied to a data transmission method as shown in FIG. Terminal equipment with Android operating system. As shown in FIG. 2, the data transmission method provided by the embodiment of the present disclosure may include the following steps 201 to 205.
步骤201、在第一终端设备获取到目标WIFI的WIFI标识的情况下,第一终端设备向满足预设条件的第二终端设备发送WIFI密码请求。Step 201: In a case where the first terminal device obtains the WIFI identifier of the target WIFI, the first terminal device sends a WIFI password request to the second terminal device meeting a preset condition.
本公开实施例中,上述WIFI密码请求中包括WIFI标识,预设条件为:处于第一终端设备的预设范围内、且第一终端设备中包括第二终端设备的信息。In the embodiment of the present disclosure, the aforementioned WIFI password request includes a WIFI identifier, and the preset condition is that it is within a preset range of the first terminal device and the first terminal device includes information of the second terminal device.
本公开实施例中,上述WIFI密码请求用于请求目标WIFI的WIFI密码。In the embodiment of the present disclosure, the aforementioned WIFI password request is used to request the WIFI password of the target WIFI.
可选地,本公开实施例中,第一终端设备可以根据用户的第一输入(该第一输入为用户可以对目标WIFI的WIFI标识的输入),获取到目标WIFI的WIFI标识。Optionally, in the embodiment of the present disclosure, the first terminal device may obtain the WIFI identifier of the target WIFI according to the user's first input (the first input is the input that the user can input to the WIFI identifier of the target WIFI).
可选地,本公开实施例中,上述第一输入可以为用户在第一终端设备中的WIFI设置界面上的输入。Optionally, in the embodiment of the present disclosure, the above-mentioned first input may be a user's input on the WIFI setting interface of the first terminal device.
可选地,本公开实施例中,上述WIFI标识可以为WIFI账号。Optionally, in the embodiment of the present disclosure, the aforementioned WIFI identifier may be a WIFI account.
示例性的,以第一终端设备为手机为例进行说明。如图3中的(A)所示,手机10显示WIFI设置界面11,该WIFI设置界面11显示多个WIFI账号,用户在该WIFI设置界面11中对目标WIFI的WIFI账号(例如账号“abcde”)进行第一输入之后,手机10可以根据该WIFI账号向第二终端设备发送WIFI密码请求,并显示如图3中的(B)所示的密码输入界面12。Illustratively, the first terminal device is a mobile phone as an example for description. As shown in (A) in Figure 3, the mobile phone 10 displays a WIFI setting interface 11, and the WIFI setting interface 11 displays multiple WIFI accounts. In the WIFI setting interface 11, the user sets the WIFI account of the target WIFI (for example, the account "abcde"). ) After the first input, the mobile phone 10 can send a WIFI password request to the second terminal device according to the WIFI account, and display the password input interface 12 as shown in (B) in FIG. 3.
可选地,本公开实施例中,第一终端设备可以通过蓝牙方式与第二终端设备建立连接,然后向第二终端设备发送WIFI密码请求。Optionally, in the embodiment of the present disclosure, the first terminal device may establish a connection with the second terminal device through Bluetooth, and then send a WIFI password request to the second terminal device.
可选地,本公开实施例中,上述第二终端设备的信息可以包括第二终端设备的设备信息,该第二终端设备的设备信息可以包括以下至少一项:第二终端设备的设备标识和第二终端设备的客户识别模块((Subscriber Identity Module,SIM)卡信息。Optionally, in the embodiment of the present disclosure, the above-mentioned information of the second terminal device may include the device information of the second terminal device, and the device information of the second terminal device may include at least one of the following: the device identifier of the second terminal device and Subscriber Identity Module ((Subscriber Identity Module, SIM) card information of the second terminal device.
可以理解,在第一终端设备获取到目标WIFI的WIFI标识的情况下,终端设备可以先搜索第一终端设备的预设范围内的终端设备,并获取该终端设备的信息(例如该终端设备的设备标识),然后确定第一终端设备中是否包括该终端设备的信息,若第一终端设备中包括该终端设备的信息,则第一终端设备将该终端设备确定为第二终端设备,并向该第二终端设备发送WIFI密码请求。It can be understood that when the first terminal device obtains the WIFI identifier of the target WIFI, the terminal device may first search for the terminal device within the preset range of the first terminal device, and obtain the information of the terminal device (for example, the terminal device’s Device identification), and then determine whether the first terminal device includes the terminal device information, if the first terminal device includes the terminal device information, the first terminal device determines the terminal device as the second terminal device, and sends The second terminal device sends a WIFI password request.
可选地,本公开实施例中,上述WIFI密码请求中还可以包括第一终端设备的设备信息,该第一终端设备的设备信息用于第二终端设备确定是否与第一终端设备关联,该第一终端设备的设备信息可以包括以下至少一项:第一终端设备的设备标识和第一终端设备的SIM卡信息。Optionally, in the embodiment of the present disclosure, the aforementioned WIFI password request may also include the device information of the first terminal device. The device information of the first terminal device is used by the second terminal device to determine whether it is associated with the first terminal device. The device information of the first terminal device may include at least one of the following: a device identifier of the first terminal device and SIM card information of the first terminal device.
可以理解,第二终端设备可以根据接收到的WIFI密码请求中的第一终端设备的设备信息,确定第一终端设备是否为第二终端设备的关联设备。It can be understood that the second terminal device can determine whether the first terminal device is an associated device of the second terminal device according to the device information of the first terminal device in the received WIFI password request.
可选地,本公开实施例中,若第二终端设备中包括第一终端设备的设备信息,则第二终端设备确定第二终端设备与第一终端设备关联,即第一终端设备为第二终端设备的关联设备。Optionally, in the embodiment of the present disclosure, if the second terminal device includes the device information of the first terminal device, the second terminal device determines that the second terminal device is associated with the first terminal device, that is, the first terminal device is the second terminal device. The associated equipment of the terminal equipment.
可选地,本公开实施例中,上述WIFI密码请求中还可以包括第一终端设备中的目标应用程序对应的号码信息。Optionally, in the embodiment of the present disclosure, the aforementioned WIFI password request may also include number information corresponding to the target application in the first terminal device.
可选地,本公开实施例中,上述目标应用程序可以为联系人应用程序。Optionally, in the embodiment of the present disclosure, the above-mentioned target application may be a contact application.
步骤202、第二终端设备接收第一终端设备发送的WIFI密码请求。Step 202: The second terminal device receives the WIFI password request sent by the first terminal device.
步骤203、若第二终端设备中包括目标WIFI的WIFI密码、且第二终端设备与第一终端设备关联,则第二终端设备向第一终端设备发送WIFI密码。Step 203: If the second terminal device includes the WIFI password of the target WIFI, and the second terminal device is associated with the first terminal device, the second terminal device sends the WIFI password to the first terminal device.
本公开实施例中,第二终端设备在接收到第一终端设备发送的WIFI密码请求之后,可以先在第二终端设备中查找目标WIFI的WIFI密码,并在查找到该WIFI密码之后,向第一终端设备发送该WIFI密码。In the embodiment of the present disclosure, after receiving the WIFI password request sent by the first terminal device, the second terminal device may first search for the WIFI password of the target WIFI in the second terminal device, and after finding the WIFI password, report A terminal device sends the WIFI password.
可选地,本公开实施例中,第二终端设备可以通过蓝牙方式向第一终端设备发送WIFI密码。Optionally, in the embodiment of the present disclosure, the second terminal device may send the WIFI password to the first terminal device through Bluetooth.
可选地,本公开实施例中,上述WIFI密码请求中还可以包括第一终端设备的设备信息,该第一终端设备的设备信息可以包括以下至少一项:第一终端设备的设备标识和第一终端设备的SIM卡信息。上述第二终端设备与所述第一终端设备关联可以理解为:第二终端设备中包括第一终端设备的设备信息。Optionally, in the embodiment of the present disclosure, the above WIFI password request may also include the device information of the first terminal device, and the device information of the first terminal device may include at least one of the following: the device identifier of the first terminal device and the first terminal device. SIM card information of a terminal device. The above-mentioned association of the second terminal device with the first terminal device may be understood as: the second terminal device includes the device information of the first terminal device.
可选地,本公开实施例中,第二终端设备在接收到WIFI密码请求之后,可以在第二 终端设备中查找目标WIFI的WIFI密码,并在查找到该WIFI密码的情况下,根据接收到的第一终端设备的设备信息,判断第一终端设备是否为第二终端设备的关联设备。Optionally, in the embodiment of the present disclosure, after receiving the WIFI password request, the second terminal device may search for the WIFI password of the target WIFI in the second terminal device, and in the case of finding the WIFI password, according to the received To determine whether the first terminal device is an associated device of the second terminal device.
需要说明的是,上述关联设备可以理解为:第二终端设备可以进行WIFI密码传输的设备。It should be noted that the above-mentioned associated device can be understood as a device that can perform WIFI password transmission by the second terminal device.
可选地,本公开实施例中,第二终端设备可以从第二终端设备中查找第一终端设备的设备信息,并在查找到该第一终端设备的设备信息的情况下,确定第一终端设备为第二终端设备的关联设备。Optionally, in the embodiment of the present disclosure, the second terminal device may search for the device information of the first terminal device from the second terminal device, and if the device information of the first terminal device is found, determine the first terminal device The device is an associated device of the second terminal device.
可选地,本公开实施例中,第二终端设备还可以根据第一终端设备发送的联系人应用程序对应的号码信息,判断第一终端设备是否为第二终端设备的关联设备。Optionally, in the embodiment of the present disclosure, the second terminal device may also determine whether the first terminal device is an associated device of the second terminal device according to the number information corresponding to the contact application program sent by the first terminal device.
可选地,本公开实施例中,第二终端设备在向第一终端设备发送WIFI密码之前,可以在第二终端设备的显示屏上显示提示信息,该提示信息用于提示用户是否允许第二终端设备发送WIFI密码;第二终端设备可以接收用户的第二输入(该第二输入用于触发第二终端设备向第一终端设备发送WIFI密码),并根据该第二输入,向第一终端设备发送WIFI密码。Optionally, in the embodiment of the present disclosure, before sending the WIFI password to the first terminal device, the second terminal device may display prompt information on the display screen of the second terminal device, and the prompt information is used to prompt the user whether to allow the second terminal device. The terminal device sends the WIFI password; the second terminal device can receive a second input from the user (the second input is used to trigger the second terminal device to send the WIFI password to the first terminal device), and send the WIFI password to the first terminal according to the second input The device sends the WIFI password.
示例性的,以第二终端设备为手机为例进行说明。如图4所示,手机13可以在显示屏14上显示提示信息,以提示用户是否允许手机13发送WIFI密码,并在用户针对提示信息进行第二输入之后,向手机10发送WIFI密码。Illustratively, the second terminal device is a mobile phone as an example for description. As shown in FIG. 4, the mobile phone 13 may display a prompt message on the display screen 14 to prompt the user whether to allow the mobile phone 13 to send the WIFI password, and after the user performs a second input for the prompt message, the WIFI password is sent to the mobile phone 10.
可选地,本公开实施例中,第二终端设备可以通过声波传输方式向第一终端设备发送目标WIFI的WIFI密码。Optionally, in the embodiment of the present disclosure, the second terminal device may send the WIFI password of the target WIFI to the first terminal device by means of acoustic wave transmission.
可选地,本公开实施例中,若第二终端设备确定第一终端设备不是第二终端设备的关联设备,则第二终端设备禁止向第一终端设备发送WIFI密码。Optionally, in the embodiment of the present disclosure, if the second terminal device determines that the first terminal device is not an associated device of the second terminal device, the second terminal device is prohibited from sending the WIFI password to the first terminal device.
步骤204、第一终端设备接收第二终端设备发送的目标WIFI的WIFI密码。Step 204: The first terminal device receives the WIFI password of the target WIFI sent by the second terminal device.
可选地,本公开实施例中,第一终端设备可以通过蓝牙方式接收目标WIFI的WIFI密码。Optionally, in the embodiment of the present disclosure, the first terminal device may receive the WIFI password of the target WIFI through Bluetooth.
步骤205、第一终端设备采用WIFI密码连接目标WIFI。Step 205: The first terminal device uses the WIFI password to connect to the target WIFI.
可选地,本公开实施例中,第一终端设备在接收到目标WIFI的WIFI密码之后,可以直接采用该WIFI密码连接目标WIFI,即无需用户进行目标WIFI的WIFI密码的输入。Optionally, in the embodiment of the present disclosure, after receiving the WIFI password of the target WIFI, the first terminal device may directly use the WIFI password to connect to the target WIFI, that is, the user does not need to input the WIFI password of the target WIFI.
可以理解,第一终端设备在接收到目标WIFI的WIFI密码之后,可以自动将该WIFI密码添加至目标WIFI对应的密码输入区域,并进行WIFI密码的验证,然后在WIFI密码验证成功之后连接目标WIFI。It can be understood that after receiving the WIFI password of the target WIFI, the first terminal device can automatically add the WIFI password to the password input area corresponding to the target WIFI, verify the WIFI password, and then connect to the target WIFI after the WIFI password is successfully verified. .
本公开实施例提供一种数据传输方法,第一终端设备可以向满足预设条件(该预设条件为:处于第一终端设备的预设范围内、且第一终端设备中包括第二终端设备的信息)的第二终端设备发送WIFI密码请求,以从第二终端设备获取目标WIFI的WIFI密码,然后采用该WIFI密码连接目标WIFI。由于第一终端设备可以通过向满足预设条件的第二终端设备发送WIFI密码请求,直接获取到目标WIFI的WIFI密码,从而采用该WIFI密码连接目标WIFI,而无需用户的输入才能进行目标WIFI的连接,如此可以简化用户的操作,且节省WIFI连接过程中的耗时。The embodiment of the present disclosure provides a data transmission method. A first terminal device can satisfy a preset condition (the preset condition is: within a preset range of the first terminal device, and the first terminal device includes the second terminal device). The second terminal device sends a WIFI password request to obtain the WIFI password of the target WIFI from the second terminal device, and then uses the WIFI password to connect to the target WIFI. Since the first terminal device can directly obtain the WIFI password of the target WIFI by sending a WIFI password request to the second terminal device that meets the preset conditions, the WIFI password can be used to connect to the target WIFI without the user's input to perform the target WIFI Connection, this can simplify the user's operation and save time in the WIFI connection process.
可选地,本公开实施例中,结合图2,如图5所示,上述步骤201具体可以通过下述的步骤201a实现,并且上述步骤204具体可以通过下述的步骤204a实现。Optionally, in the embodiment of the present disclosure, with reference to FIG. 2, as shown in FIG. 5, the above step 201 may be specifically implemented by the following step 201a, and the above step 204 may be specifically implemented by the following step 204a.
步骤201a、在第一终端设备获取到目标WIFI的WIFI标识的情况下,第一终端设备向第二终端设备发送第一声波数据。Step 201a: When the first terminal device obtains the WIFI identifier of the target WIFI, the first terminal device sends the first sound wave data to the second terminal device.
本公开实施例中,上述第一声波数据为第一终端设备产生的声波数据,该第一声波数据中包括WIFI密码请求。In the embodiment of the present disclosure, the above-mentioned first sound wave data is sound wave data generated by the first terminal device, and the first sound wave data includes a WIFI password request.
可以理解,在第一终端设备获取到目标WIFI的WIFI标识的情况下,第一终端设备可以以声波传输方式向第二终端设备发送WIFI密码请求。It can be understood that, in the case that the first terminal device obtains the WIFI identifier of the target WIFI, the first terminal device may send the WIFI password request to the second terminal device in a sound wave transmission manner.
步骤204a、第一终端设备接收第二终端设备发送的第二声波数据。Step 204a: The first terminal device receives the second sound wave data sent by the second terminal device.
本公开实施例中,上述第二声波数据为第二终端设备产生的声波数据,该第二声波数据中包括WIFI密码。In the embodiment of the present disclosure, the above-mentioned second sound wave data is sound wave data generated by the second terminal device, and the second sound wave data includes a WIFI password.
本公开实施例中,第一终端设备和第二终端设备可以通过声波传输方式,传输WIFI密码请求和WIFI密码,以使得第一终端设备快速地获取到WIFI密码。In the embodiment of the present disclosure, the first terminal device and the second terminal device may transmit the WIFI password request and the WIFI password by means of acoustic wave transmission, so that the first terminal device can quickly obtain the WIFI password.
可选地,本公开实施例中,结合图2,如图6所示,上述步骤203具体可以通过下述的步骤203a实现,并且上述步骤204具体可以通过下述的步骤204b实现。Optionally, in the embodiment of the present disclosure, in conjunction with FIG. 2, as shown in FIG. 6, the above step 203 may be specifically implemented by the following step 203a, and the above step 204 may be specifically implemented by the following step 204b.
步骤203a、若第二终端设备中包括目标WIFI的WIFI密码、且第二终端设备与第一终端设备关联,则第二终端设备向至少一个终端设备广播目标声波数据。Step 203a: If the second terminal device includes the WIFI password of the target WIFI, and the second terminal device is associated with the first terminal device, the second terminal device broadcasts the target sound wave data to at least one terminal device.
本公开实施例中,上述目标声波数据为第二终端设备产生的声波数据,该目标声波数据中包括WIFI密码,至少一个终端设备中包括第一终端设备。In the embodiment of the present disclosure, the aforementioned target sound wave data is sound wave data generated by a second terminal device, the target sound wave data includes a WIFI password, and at least one terminal device includes the first terminal device.
本公开实施例中,上述目标声波数据与第二声波数据对应。In the embodiment of the present disclosure, the aforementioned target acoustic wave data corresponds to the second acoustic wave data.
可以理解,第二终端设备可以通过广播方式向至少一个终端设备广播目标声波数据,从而以广播WIFI密码。It can be understood that the second terminal device may broadcast the target sound wave data to at least one terminal device in a broadcast manner, thereby broadcasting the WIFI password.
步骤204b、第一终端设备接收第二终端设备发送的目标声波数据。Step 204b: The first terminal device receives the target sound wave data sent by the second terminal device.
本公开实施例中,上述目标声波数据中包括WIFI密码。In the embodiment of the present disclosure, the above-mentioned target sound wave data includes a WIFI password.
本公开实施例中,第二终端设备可以通过广播方式发送WIFI密码,以使得至少一个终端设备可以接收到该WIFI密码,可以实现快速地向多个终端设备发送WIFI密码,从而使得至少一个终端设备快速地连接到目标WIFI。In the embodiment of the present disclosure, the second terminal device may send the WIFI password in a broadcast mode, so that at least one terminal device can receive the WIFI password, so that the WIFI password can be sent to multiple terminal devices quickly, so that at least one terminal device Quickly connect to the target WIFI.
图7示出了本公开实施例中涉及的终端设备的一种可能的结构示意图,该终端设备为第一终端设备。如图7所示,终端设备70可以包括:发送模块71、接收模块72和连接模块73。FIG. 7 shows a schematic diagram of a possible structure of a terminal device involved in an embodiment of the present disclosure, and the terminal device is a first terminal device. As shown in FIG. 7, the terminal device 70 may include: a sending module 71, a receiving module 72, and a connecting module 73.
其中,发送模块71,用于在第一终端设备获取到目标WIFI的WIFI标识的情况下,向满足预设条件的第二终端设备发送WIFI密码请求,该WIFI密码请求中包括WIFI标识,预设条件为:处于第一终端设备的预设范围内、且第一终端设备中包括第二终端设备的信息。接收模块72,用于接收第二终端设备发送的目标WIFI的WIFI密码。连接模块73,用于采用接收模块72接收的WIFI密码连接目标WIFI。The sending module 71 is configured to send a WIFI password request to a second terminal device that meets a preset condition when the first terminal device obtains the WIFI identity of the target WIFI. The WIFI password request includes the WIFI identity and is preset The condition is: it is within the preset range of the first terminal device and the first terminal device includes the information of the second terminal device. The receiving module 72 is configured to receive the WIFI password of the target WIFI sent by the second terminal device. The connection module 73 is configured to use the WIFI password received by the receiving module 72 to connect to the target WIFI.
在一种可能的实现方式中,上述第二终端设备的信息可以包括第二终端设备的设备信息,该第二终端设备的设备信息可以包括以下至少一项:第二终端设备的设备标识和第二终端设备的SIM卡信息。In a possible implementation manner, the above-mentioned information of the second terminal device may include the device information of the second terminal device, and the device information of the second terminal device may include at least one of the following: the device identifier of the second terminal device and the first terminal device. 2. SIM card information of the terminal device.
在一种可能的实现方式中,上述WIFI密码请求中还可以包括第一终端设备的设备信息,该第一终端设备的设备信息用于第二终端设备确定是否与第一终端设备关联,该第一终端设备的设备信息可以包括以下至少一项:第一终端设备的设备标识和第一终端设备的SIM卡信息。In a possible implementation manner, the aforementioned WIFI password request may also include device information of the first terminal device. The device information of the first terminal device is used by the second terminal device to determine whether it is associated with the first terminal device. The device information of a terminal device may include at least one of the following: the device identifier of the first terminal device and the SIM card information of the first terminal device.
在一种可能的实现方式中,上述发送模块71,具体用于向第二终端设备发送第一声波数据,该第一声波数据为第一终端设备产生的声波数据,该第一声波数据中包括WIFI密码请求。上述接收模块72,具体用于接收第二终端设备发送的第二声波数据,该第二声波数据为第二终端设备产生的声波数据,该第二声波数据中包括WIFI密码。In a possible implementation, the sending module 71 is specifically configured to send first acoustic wave data to the second terminal device. The first acoustic wave data is acoustic wave data generated by the first terminal device. The data includes a WIFI password request. The above-mentioned receiving module 72 is specifically configured to receive second sound wave data sent by a second terminal device. The second sound wave data is sound wave data generated by the second terminal device, and the second sound wave data includes a WIFI password.
本公开实施例提供的终端设备能够实现上述方法实施例中第一终端设备实现的各个过程,为避免重复,详细描述这里不再赘述。The terminal device provided by the embodiment of the present disclosure can implement each process implemented by the first terminal device in the foregoing method embodiment. To avoid repetition, the detailed description will not be repeated here.
本公开实施例提供一种终端设备,第一终端设备可以向满足预设条件(该预设条件为:处于第一终端设备的预设范围内、且第一终端设备中包括第二终端设备的信息)的第二终端设备发送WIFI密码请求,以从第二终端设备获取目标WIFI的WIFI密码,然后采用该WIFI密码连接目标WIFI。由于第一终端设备可以通过向满足预设条件的第二终端设备发送WIFI密码请求,直接获取到目标WIFI的WIFI密码,从而采用该WIFI密码连接目标WIFI,而无需用户的输入才能进行目标WIFI的连接,如此可以简化用户的操作,且节省WIFI连接过程中的耗时。The embodiments of the present disclosure provide a terminal device, and the first terminal device can provide information to those that meet a preset condition (the preset condition is: within a preset range of the first terminal device and the first terminal device includes the second terminal device) Information) The second terminal device sends a WIFI password request to obtain the WIFI password of the target WIFI from the second terminal device, and then uses the WIFI password to connect to the target WIFI. Since the first terminal device can directly obtain the WIFI password of the target WIFI by sending a WIFI password request to the second terminal device that meets the preset conditions, the WIFI password can be used to connect to the target WIFI without the user's input to perform the target WIFI Connection, this can simplify the user's operation and save time in the WIFI connection process.
图8示出了本公开实施例中涉及的终端设备的一种可能的结构示意图,该终端设备为第二终端设备。如图8所示,终端设备80可以包括:接收模块81和发送模块82。FIG. 8 shows a schematic diagram of a possible structure of a terminal device involved in an embodiment of the present disclosure, and the terminal device is a second terminal device. As shown in FIG. 8, the terminal device 80 may include: a receiving module 81 and a sending module 82.
其中,接收模块81,用于接收第一终端设备发送的WIFI密码请求,该WIFI密码请求中包括目标WIFI的WIFI标识。发送模块82,用于若第二终端设备中包括目标WIFI的WIFI密码、且第二终端设备与第一终端设备关联,则向第一终端设备发送WIFI密码。The receiving module 81 is configured to receive a WIFI password request sent by the first terminal device, and the WIFI password request includes the WIFI identifier of the target WIFI. The sending module 82 is configured to send the WIFI password to the first terminal device if the second terminal device includes the WIFI password of the target WIFI and the second terminal device is associated with the first terminal device.
在一种可能的实现方式中,上述WIFI密码请求中还可以包括第一终端设备的设备信息,该第一终端设备的设备信息用于第二终端设备确定是否与第一终端设备关联,该第一终端设备的设备信息可以包括以下至少一项:第一终端设备的设备标识和第一终端设备的SIM卡信息。上述第二终端设备与第一终端设备关联,包括:第二终端设备中包括第一终 端设备的设备信息。In a possible implementation manner, the aforementioned WIFI password request may also include device information of the first terminal device. The device information of the first terminal device is used by the second terminal device to determine whether it is associated with the first terminal device. The device information of a terminal device may include at least one of the following: the device identifier of the first terminal device and the SIM card information of the first terminal device. The foregoing second terminal device being associated with the first terminal device includes: the second terminal device includes device information of the first terminal device.
在一种可能的实现方式中,上述发送模块82,具体用于向至少一个终端设备广播目标声波数据,该目标声波数据为第二终端设备产生的声波数据,该目标声波数据中包括WIFI密码,至少一个终端设备中包括第一终端设备。In a possible implementation manner, the aforementioned sending module 82 is specifically configured to broadcast target sound wave data to at least one terminal device. The target sound wave data is sound wave data generated by a second terminal device. The target sound wave data includes a WIFI password. The at least one terminal device includes the first terminal device.
本公开实施例提供的终端设备能够实现上述方法实施例中第二终端设备实现的各个过程,为避免重复,详细描述这里不再赘述。The terminal device provided in the embodiment of the present disclosure can implement each process implemented by the second terminal device in the foregoing method embodiment. To avoid repetition, the detailed description will not be repeated here.
本公开实施例提供一种终端设备,第二终端设备可以根据第一终端设备发送的WIFI密码请求,向第一终端设备发送目标WIFI的WIFI密码,以使得第一终端设备可以采用该WIFI密码连接目标WIFI,而无需用户的输入才能进行目标WIFI的连接,如此可以简化用户的操作,且节省WIFI连接过程中的耗时。The embodiments of the present disclosure provide a terminal device. The second terminal device can send the WIFI password of the target WIFI to the first terminal device according to the WIFI password request sent by the first terminal device, so that the first terminal device can use the WIFI password to connect The target WIFI does not require user input to connect to the target WIFI, which can simplify the user's operation and save time in the WIFI connection process.
图9为实现本公开各个实施例的一种终端设备的硬件示意图,该终端设备可以为本公开实施例中的第一终端设备或第二终端设备。如图9所示,终端设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。FIG. 9 is a hardware schematic diagram of a terminal device that implements various embodiments of the present disclosure. The terminal device may be the first terminal device or the second terminal device in the embodiments of the disclosure. As shown in FIG. 9, the terminal device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, The processor 110, and the power supply 111 and other components.
需要说明的是,本领域技术人员可以理解,图9中示出的终端设备结构并不构成对终端设备的限定,终端设备可以包括比图9所示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开实施例中,终端设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。It should be noted that those skilled in the art can understand that the structure of the terminal device shown in FIG. 9 does not constitute a limitation on the terminal device. The terminal device may include more or less components than those shown in FIG. Some components, or different component arrangements. In the embodiments of the present disclosure, terminal devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
其中,射频单元101,用于在第一终端设备获取到目标WIFI的WIFI标识的情况下,向满足预设条件的第二终端设备发送WIFI密码请求,该WIFI密码请求中包括WIFI标识,预设条件为:处于第一终端设备的预设范围内、且第一终端设备中包括第二终端设备的信息;并接收第二终端设备发送的目标WIFI的WIFI密码。处理器110,用于采用射频单元101接收的WIFI密码连接目标WIFI。Wherein, the radio frequency unit 101 is configured to send a WIFI password request to a second terminal device meeting preset conditions when the first terminal device obtains the WIFI identity of the target WIFI. The WIFI password request includes the WIFI identity and is preset The condition is: within the preset range of the first terminal device, and the first terminal device includes the information of the second terminal device; and receiving the WIFI password of the target WIFI sent by the second terminal device. The processor 110 is configured to use the WIFI password received by the radio frequency unit 101 to connect to the target WIFI.
或者,or,
射频单元101,用于接收第一终端设备发送的WIFI密码请求,该WIFI密码请求中包括目标WIFI的WIFI标识;若第二终端设备中包括目标WIFI的WIFI密码、且第二终端 设备与第一终端设备关联,则向第一终端设备发送WIFI密码。The radio frequency unit 101 is used to receive a WIFI password request sent by a first terminal device, and the WIFI password request includes the WIFI identification of the target WIFI; if the second terminal device includes the WIFI password of the target WIFI, and the second terminal device and the first When the terminal device is associated, the WIFI password is sent to the first terminal device.
本公开实施例提供一种终端设备,由于第一终端设备可以通过向满足预设条件(该预设条件为:处于第一终端设备的预设范围内、且第一终端设备中包括第二终端设备的信息)的第二终端设备发送WIFI密码请求,直接获取到目标WIFI的WIFI密码,从而采用该WIFI密码连接目标WIFI,而无需用户的输入才能进行目标WIFI的连接,如此可以简化用户的操作,且节省WIFI连接过程中的耗时。The embodiment of the present disclosure provides a terminal device, because the first terminal device can meet the preset condition (the preset condition is: within the preset range of the first terminal device, and the first terminal device includes the second terminal Device information) The second terminal device sends a WIFI password request to directly obtain the WIFI password of the target WIFI, so that the WIFI password is used to connect to the target WIFI, and the target WIFI can be connected without the user's input, which can simplify the user's operation , And save time in the WIFI connection process.
应理解的是,本公开实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present disclosure, the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; Uplink data is sent to the base station. Generally, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
终端设备通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The terminal device provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与终端设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。The audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into audio signals and output them as sounds. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal device 100 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。The input unit 104 is used to receive audio or video signals. The input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed. The processed image frame can be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102. The microphone 1042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
终端设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境 光线的明暗来调节显示面板1061的亮度,接近传感器可在终端设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The terminal device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light. The proximity sensor can close the display panel 1061 and the display panel 1061 when the terminal device 100 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of the terminal device (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), etc.
用户输入单元107可用于接收输入的数字或字符信息,以及产生与终端设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 107 can be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the terminal device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071, also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operating). The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed. In addition, the touch panel 1071 can be realized by various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图9中,触控面板1071与显示面板1061是作为两个独立的部件来实现终端设备的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现终端设备的输入和输出功能,具体此处不做限定。Further, the touch panel 1071 can be overlaid on the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it is transmitted to the processor 110 to determine the type of the touch event. The type of event provides corresponding visual output on the display panel 1061. Although in FIG. 9, the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the terminal device, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated The implementation of the input and output functions of the terminal device is not specifically limited here.
接口单元108为外部装置与终端设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端设备100内的一个或多个元件或者可以用于在终端设备100和外部装置之间传输数据。The interface unit 108 is an interface for connecting an external device with the terminal device 100. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the terminal device 100 or can be used to connect to the terminal device 100 and external Transfer data between devices.
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones. In addition, the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器110是终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行终端设备的各种功能和处理数据,从而对终端设备进行整体监控。处理器110可包括一个或多个处理单元;可选地,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the terminal device. It uses various interfaces and lines to connect the various parts of the entire terminal device, runs or executes the software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , Perform various functions of the terminal equipment and process data, so as to monitor the terminal equipment as a whole. The processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc. The adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
终端设备100还可以包括给各个部件供电的电源111(比如电池),可选地,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The terminal device 100 may also include a power source 111 (such as a battery) for supplying power to various components. Optionally, the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
另外,终端设备100包括一些未示出的功能模块,在此不再赘述。In addition, the terminal device 100 includes some functional modules not shown, which will not be repeated here.
可选地,本公开实施例还提供一种终端设备,包括如图9所示的处理器110,存储器109,存储在存储器109上并可在所述处理器110上运行的计算机程序,该计算机程序被处理器110执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present disclosure further provides a terminal device, including a processor 110 as shown in FIG. 9, a memory 109, a computer program stored in the memory 109 and running on the processor 110, the computer When the program is executed by the processor 110, each process of the foregoing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机 程序,该计算机程序被处理器执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。The embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, each process of the foregoing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, I won’t repeat them here. Wherein, the computer-readable storage medium, such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of the present disclosure essentially or the part that contributes to the related technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk). ) Includes several instructions to make a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present disclosure.
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护之内。The embodiments of the present disclosure are described above with reference to the accompanying drawings, but the present disclosure is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of the present disclosure, many forms can be made without departing from the purpose of the present disclosure and the scope of protection of the claims, all of which fall within the protection of the present disclosure.

Claims (14)

  1. 一种数据传输方法,应用于第一终端设备,所述方法包括:A data transmission method applied to a first terminal device, the method including:
    在所述第一终端设备获取到目标无线保真WIFI的WIFI标识的情况下,向满足预设条件的第二终端设备发送WIFI密码请求,所述WIFI密码请求中包括所述WIFI标识,所述预设条件为:处于所述第一终端设备的预设范围内、且所述第一终端设备中包括所述第二终端设备的信息;In the case that the first terminal device obtains the WIFI identifier of the target Wi-Fi WIFI, it sends a WIFI password request to a second terminal device that meets a preset condition, and the WIFI password request includes the WIFI identifier, and The preset condition is: within a preset range of the first terminal device, and the first terminal device includes information of the second terminal device;
    接收所述第二终端设备发送的所述目标WIFI的WIFI密码;Receiving the WIFI password of the target WIFI sent by the second terminal device;
    采用所述WIFI密码连接所述目标WIFI。Use the WIFI password to connect to the target WIFI.
  2. 根据权利要求1所述的方法,其中,所述第二终端设备的信息包括所述第二终端设备的设备信息,所述第二终端设备的设备信息包括以下至少一项:所述第二终端设备的设备标识和所述第二终端设备的客户识别模块SIM卡信息。The method according to claim 1, wherein the information of the second terminal device includes the device information of the second terminal device, and the device information of the second terminal device includes at least one of the following: the second terminal The device identification of the device and the SIM card information of the customer identification module of the second terminal device.
  3. 根据权利要求1或2所述的方法,其中,所述WIFI密码请求中还包括所述第一终端设备的设备信息,所述第一终端设备的设备信息用于所述第二终端设备确定是否与所述第一终端设备关联,所述第一终端设备的设备信息包括以下至少一项:所述第一终端设备的设备标识和所述第一终端设备的SIM卡信息。The method according to claim 1 or 2, wherein the WIFI password request further includes device information of the first terminal device, and the device information of the first terminal device is used by the second terminal device to determine whether Associated with the first terminal device, the device information of the first terminal device includes at least one of the following: a device identifier of the first terminal device and SIM card information of the first terminal device.
  4. 根据权利要求1或2所述的方法,其中,所述向满足预设条件的第二终端设备发送WIFI密码请求,包括:The method according to claim 1 or 2, wherein the sending a WIFI password request to a second terminal device that meets a preset condition includes:
    向所述第二终端设备发送第一声波数据,所述第一声波数据为所述第一终端设备产生的声波数据,所述第一声波数据中包括所述WIFI密码请求;Sending first sound wave data to the second terminal device, where the first sound wave data is sound wave data generated by the first terminal device, and the first sound wave data includes the WIFI password request;
    所述接收所述第二终端设备发送的所述目标WIFI的WIFI密码,包括:The receiving the WIFI password of the target WIFI sent by the second terminal device includes:
    接收所述第二终端设备发送的第二声波数据,所述第二声波数据为所述第二终端设备产生的声波数据,所述第二声波数据中包括所述WIFI密码。Receiving second sound wave data sent by the second terminal device, where the second sound wave data is sound wave data generated by the second terminal device, and the second sound wave data includes the WIFI password.
  5. 一种数据传输方法,应用于第二终端设备,所述方法包括:A data transmission method applied to a second terminal device, the method including:
    接收第一终端设备发送的无线保真WIFI密码请求,所述WIFI密码请求中包括目标WIFI的WIFI标识;Receiving a wireless fidelity WIFI password request sent by the first terminal device, where the WIFI password request includes the WIFI identifier of the target WIFI;
    若所述第二终端设备中包括所述目标WIFI的WIFI密码、且所述第二终端设备与所述第一终端设备关联,则向所述第一终端设备发送所述WIFI密码。If the second terminal device includes the WIFI password of the target WIFI, and the second terminal device is associated with the first terminal device, the WIFI password is sent to the first terminal device.
  6. 根据权利要求5所述的方法,其中,所述WIFI密码请求中还包括所述第一终端设备的设备信息,所述第一终端设备的设备信息用于所述第二终端设备确定是否与所述第一终端设备关联,所述第一终端设备的设备信息包括以下至少一项:所述第一终端设备的设备标识和所述第一终端设备的客户识别模块SIM卡信息;The method according to claim 5, wherein the WIFI password request further includes device information of the first terminal device, and the device information of the first terminal device is used by the second terminal device to determine whether to Associated with the first terminal device, the device information of the first terminal device includes at least one of the following: the device identifier of the first terminal device and the customer identification module SIM card information of the first terminal device;
    所述第二终端设备与所述第一终端设备关联,包括:The associating the second terminal device with the first terminal device includes:
    所述第二终端设备中包括所述第一终端设备的设备信息。The second terminal device includes device information of the first terminal device.
  7. 根据权利要求5或6所述的方法,其中,所述向所述第一终端设备发送所述WIFI密码,包括:The method according to claim 5 or 6, wherein the sending the WIFI password to the first terminal device comprises:
    向至少一个终端设备广播目标声波数据,所述目标声波数据为所述第二终端设备产生的声波数据,所述目标声波数据中包括所述WIFI密码,所述至少一个终端设备中包括所述第一终端设备。Broadcast target sound wave data to at least one terminal device, where the target sound wave data is sound wave data generated by the second terminal device, the target sound wave data includes the WIFI password, and the at least one terminal device includes the first One terminal equipment.
  8. 一种终端设备,所述终端设备为第一终端设备,所述终端设备包括:发送模块、接收模块和连接模块;A terminal device, the terminal device is a first terminal device, and the terminal device includes: a sending module, a receiving module, and a connecting module;
    所述发送模块,用于在所述第一终端设备获取到目标无线保真WIFI的WIFI标识的情况下,向满足预设条件的第二终端设备发送WIFI密码请求,所述WIFI密码请求中包括所述WIFI标识,所述预设条件为:处于所述第一终端设备的预设范围内、且所述第一终端设备中包括所述第二终端设备的信息;The sending module is configured to send a WIFI password request to a second terminal device meeting preset conditions when the first terminal device obtains the WIFI identifier of the target Wi-Fi WIFI, the WIFI password request includes For the WIFI identifier, the preset condition is: within a preset range of the first terminal device, and the first terminal device includes information about the second terminal device;
    所述接收模块,用于接收所述第二终端设备发送的所述目标WIFI的WIFI密码;The receiving module is configured to receive the WIFI password of the target WIFI sent by the second terminal device;
    所述连接模块,用于采用所述接收模块接收的所述WIFI密码连接所述目标WIFI。The connection module is configured to use the WIFI password received by the receiving module to connect to the target WIFI.
  9. 根据权利要求8所述的终端设备,其中,所述第二终端设备的信息包括所述第二终端设备的设备信息,所述第二终端设备的设备信息包括以下至少一项:所述第二终端设备的设备标识和所述第二终端设备的客户识别模块SIM卡信息;The terminal device according to claim 8, wherein the information of the second terminal device includes the device information of the second terminal device, and the device information of the second terminal device includes at least one of the following: The device identifier of the terminal device and the SIM card information of the customer identification module of the second terminal device;
    所述WIFI密码请求中还包括所述第一终端设备的设备信息,所述第一终端设备的设备信息用于所述第二终端设备确定是否与所述第一终端设备关联,所述第一终端设备的设备信息包括以下至少一项:所述第一终端设备的设备标识和所述第一终端设备的客户识别模块SIM卡信息。The WIFI password request also includes the device information of the first terminal device, and the device information of the first terminal device is used by the second terminal device to determine whether it is associated with the first terminal device. The device information of the terminal device includes at least one of the following: the device identifier of the first terminal device and the customer identification module SIM card information of the first terminal device.
  10. 根据权利要求8或9所述的终端设备,其中,所述发送模块,具体用于向所 述第二终端设备发送第一声波数据,所述第一声波数据为所述第一终端设备产生的声波数据,所述第一声波数据中包括所述WIFI密码请求;The terminal device according to claim 8 or 9, wherein the sending module is specifically configured to send first sound wave data to the second terminal device, and the first sound wave data is the first terminal device Generated sound wave data, where the first sound wave data includes the WIFI password request;
    所述接收模块,具体用于接收所述第二终端设备发送的第二声波数据,所述第二声波数据为所述第二终端设备产生的声波数据,所述第二声波数据中包括所述WIFI密码。The receiving module is specifically configured to receive second sound wave data sent by the second terminal device, where the second sound wave data is sound wave data generated by the second terminal device, and the second sound wave data includes the WIFI password.
  11. 一种终端设备,所述终端设备为第二终端设备,所述终端设备包括:接收模块和发送模块;A terminal device, the terminal device is a second terminal device, and the terminal device includes: a receiving module and a sending module;
    所述接收模块,用于接收第一终端设备发送的无线保真WIFI密码请求,所述WIFI密码请求中包括目标WIFI的WIFI标识;The receiving module is configured to receive a wireless fidelity WIFI password request sent by a first terminal device, where the WIFI password request includes the WIFI identifier of the target WIFI;
    所述发送模块,用于若所述第二终端设备中包括所述目标WIFI的WIFI密码、且所述第二终端设备与所述第一终端设备关联,则向所述第一终端设备发送所述WIFI密码。The sending module is configured to send all information to the first terminal device if the WIFI password of the target WIFI is included in the second terminal device and the second terminal device is associated with the first terminal device. Describe the WIFI password.
  12. 根据权利要求11所述的终端设备,其中,所述发送模块,具体用于向至少一个终端设备广播目标声波数据,所述目标声波数据为所述第二终端设备产生的声波数据,所述目标声波数据中包括所述WIFI密码,所述至少一个终端设备中包括所述第一终端设备。The terminal device according to claim 11, wherein the sending module is specifically configured to broadcast target sound wave data to at least one terminal device, and the target sound wave data is sound wave data generated by the second terminal device, and the target The sound wave data includes the WIFI password, and the at least one terminal device includes the first terminal device.
  13. 一种终端设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至4中任一项所述的数据传输方法的步骤,或者如权利要求5至7中任一项所述的数据传输方法的步骤。A terminal device, comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor. The computer program is executed by the processor to implement any of claims 1 to 4 One of the steps of the data transmission method, or the steps of the data transmission method according to any one of claims 5 to 7.
  14. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至4中任一项所述的数据传输方法的步骤,或者如权利要求5至7中任一项所述的数据传输方法的步骤。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the data transmission method according to any one of claims 1 to 4 are realized, or The steps of the data transmission method according to any one of claims 5 to 7.
PCT/CN2020/100919 2019-07-31 2020-07-08 Data transmission method and terminal device WO2021017785A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910698601.7 2019-07-31
CN201910698601.7A CN110366182A (en) 2019-07-31 2019-07-31 A kind of data transmission method and terminal device

Publications (1)

Publication Number Publication Date
WO2021017785A1 true WO2021017785A1 (en) 2021-02-04

Family

ID=68222717

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/100919 WO2021017785A1 (en) 2019-07-31 2020-07-08 Data transmission method and terminal device

Country Status (2)

Country Link
CN (1) CN110366182A (en)
WO (1) WO2021017785A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110366182A (en) * 2019-07-31 2019-10-22 维沃移动通信有限公司 A kind of data transmission method and terminal device
CN112565878A (en) * 2020-12-07 2021-03-26 四川长虹电器股份有限公司 Method for quickly inputting wireless password on television

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103068066A (en) * 2012-12-24 2013-04-24 广东欧珀移动通信有限公司 Intelligent mobile communication terminal and wireless network access method and system thereof
CN103987033A (en) * 2014-04-23 2014-08-13 微梦创科网络科技(中国)有限公司 Method, device and system for equipment to be connected with Wi-Fi network
CN104980927A (en) * 2015-06-30 2015-10-14 北京奇虎科技有限公司 Method and device for sharing WiFi passwords
CN105101466A (en) * 2015-06-30 2015-11-25 广东美的制冷设备有限公司 Wireless network configuration method and wireless network configuration system
CN105554755A (en) * 2015-12-30 2016-05-04 小米科技有限责任公司 Wireless network access method and device
US20170353981A1 (en) * 2016-06-03 2017-12-07 Samsung Electronics Co., Ltd. Method and apparatus for setup of wireless communication
CN107925948A (en) * 2015-09-23 2018-04-17 三星电子株式会社 Electronic equipment, audio devices and can perform by electronic equipment with set audio devices network method
CN110366182A (en) * 2019-07-31 2019-10-22 维沃移动通信有限公司 A kind of data transmission method and terminal device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363666B (en) * 2014-11-26 2019-06-04 广州三星通信技术研究有限公司 The method and apparatus being wirelessly connected are established with external equipment in the electronic device
CN104967995A (en) * 2015-06-30 2015-10-07 北京奇虎科技有限公司 Method for acquiring WIFI network password, client and server
CN109769234B (en) * 2018-12-13 2022-10-21 深圳绿米联创科技有限公司 Network distribution method and device, smart home system, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103068066A (en) * 2012-12-24 2013-04-24 广东欧珀移动通信有限公司 Intelligent mobile communication terminal and wireless network access method and system thereof
CN103987033A (en) * 2014-04-23 2014-08-13 微梦创科网络科技(中国)有限公司 Method, device and system for equipment to be connected with Wi-Fi network
CN104980927A (en) * 2015-06-30 2015-10-14 北京奇虎科技有限公司 Method and device for sharing WiFi passwords
CN105101466A (en) * 2015-06-30 2015-11-25 广东美的制冷设备有限公司 Wireless network configuration method and wireless network configuration system
CN107925948A (en) * 2015-09-23 2018-04-17 三星电子株式会社 Electronic equipment, audio devices and can perform by electronic equipment with set audio devices network method
CN105554755A (en) * 2015-12-30 2016-05-04 小米科技有限责任公司 Wireless network access method and device
US20170353981A1 (en) * 2016-06-03 2017-12-07 Samsung Electronics Co., Ltd. Method and apparatus for setup of wireless communication
CN110366182A (en) * 2019-07-31 2019-10-22 维沃移动通信有限公司 A kind of data transmission method and terminal device

Also Published As

Publication number Publication date
CN110366182A (en) 2019-10-22

Similar Documents

Publication Publication Date Title
WO2021098678A1 (en) Screencast control method and electronic device
US11848773B2 (en) Transmit antenna switching method and terminal device
WO2020186945A1 (en) Interface display method and terminal device
WO2021129762A1 (en) Application sharing method, electronic device and computer-readable storage medium
WO2020186964A1 (en) Audio signal outputting method and terminal device
US20200257433A1 (en) Display method and mobile terminal
WO2021083087A1 (en) Screen capturing method and terminal device
US11658932B2 (en) Message sending method and terminal device
WO2020215932A1 (en) Method for displaying unread message and terminal device
CN111083684A (en) Method for controlling electronic equipment and electronic equipment
WO2021129529A1 (en) Device switching method and related device
WO2020216329A1 (en) Handover method and terminal
US11432133B2 (en) Service processing method and mobile communication terminal
CN109144703B (en) Multitask processing method and terminal equipment thereof
WO2021057290A1 (en) Information control method and electronic device
WO2021031717A1 (en) Screen capturing method and terminal device
WO2021190373A1 (en) Interaction method, interaction system, and display device
WO2020181954A1 (en) Application program control method and terminal device
WO2021093766A1 (en) Message display method, and electronic apparatus
WO2020220893A1 (en) Screenshot method and mobile terminal
WO2020192324A1 (en) Interface displaying method and terminal device
WO2021185254A1 (en) Content sharing method, and electronic device
WO2021104232A1 (en) Display method and electronic device
WO2021082772A1 (en) Screenshot method and electronic device
WO2021077898A1 (en) Network registration method and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20847021

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20847021

Country of ref document: EP

Kind code of ref document: A1