WO2022083589A1 - Terminal control method and apparatus, and terminal and storage medium - Google Patents

Terminal control method and apparatus, and terminal and storage medium Download PDF

Info

Publication number
WO2022083589A1
WO2022083589A1 PCT/CN2021/124727 CN2021124727W WO2022083589A1 WO 2022083589 A1 WO2022083589 A1 WO 2022083589A1 CN 2021124727 W CN2021124727 W CN 2021124727W WO 2022083589 A1 WO2022083589 A1 WO 2022083589A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
network
communication connection
information
identification information
Prior art date
Application number
PCT/CN2021/124727
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 WO2022083589A1 publication Critical patent/WO2022083589A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections

Definitions

  • the present disclosure relates to the field of computer technology, and in particular, to a terminal control method, device, terminal, and storage medium.
  • Smart terminals such as mobile phones can be interconnected with TVs or display devices located in the same local area network, so that the screen on the mobile phone can be projected to the TV or display devices in the same local area network.
  • the router may be hijacked or monitored, posing a security risk.
  • the present disclosure provides a terminal control method, device, terminal and storage medium.
  • the present disclosure adopts the following technical solutions.
  • the present disclosure provides a method for controlling a terminal, executed by a first terminal, including:
  • the first network information of the first wireless network is sent to the second terminal through the first communication connection, so that the second terminal establishes a second communication with the first terminal based on the first network information.
  • the present disclosure provides a method for controlling a terminal, executed by a second terminal, including:
  • the first network information of the first wireless network sent by the first terminal is received through the first communication connection, and a second communication connection is established with the first terminal based on the first network information.
  • the first wireless network is established by the first terminal.
  • the present disclosure provides a terminal control apparatus for controlling a first terminal, including:
  • an obtaining unit for obtaining the network identification information of the second terminal to be connected
  • a pairing unit configured to establish a first communication connection with the second terminal based on the network identification information of the second terminal
  • connection unit configured to send the first network information of the first wireless network to the second terminal through the first communication connection, so that the second terminal can establish a second communication connection with the first terminal based on the first network information .
  • the present disclosure provides a terminal control apparatus for controlling a second terminal, including:
  • an output module configured to display or send the network identification information of the second terminal to the first terminal
  • a communication module configured to establish a first communication connection with the first terminal based on the network identification information of the second terminal
  • connection module configured to receive the first network information of the first wireless network sent by the first terminal through the first communication connection, and establish a second communication connection with the first terminal based on the first network information;
  • the first wireless network is established by the first terminal.
  • the present disclosure provides a terminal comprising: at least one memory and at least one processor;
  • the memory is used for storing program codes
  • the processor is used for calling the program codes stored in the memory to execute the above method.
  • the present disclosure provides a storage medium for storing program code for performing the above-described method.
  • network identification information of the second terminal is obtained first, then a first communication connection is established, the first network information is transmitted through the first communication connection, and then the first terminal and the second terminal are established
  • the second communication connection has two connections, and the first wireless network is established by the first terminal, and finally data transmission is performed through the second communication connection, so data hijacking and monitoring can be prevented, and the security of data transmission can be improved.
  • FIG. 1 is a flowchart of a method for controlling a terminal according to an embodiment of the present disclosure.
  • FIG. 2 is a flowchart of another method for controlling a terminal according to an embodiment of the present disclosure.
  • FIG. 3 is a composition diagram of a control apparatus of a terminal according to an embodiment of the present disclosure.
  • FIG. 4 is a composition diagram of another terminal control apparatus according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • the term “including” and variations thereof are open-ended inclusions, ie, "including but not limited to”.
  • the term “based on” is “based at least in part on.”
  • the term “one embodiment” means “at least one embodiment”; the term “another embodiment” means “at least one additional embodiment”; the term “some embodiments” means “at least some embodiments”. Relevant definitions of other terms will be given in the description below.
  • the mobile phone and the TV in the same local area network can be connected to each other through the local area network, so that the display screen of the mobile phone can be projected to the TV. transmission, the router is at risk of being hijacked.
  • the mobile phone is connected to the TV by scanning the QR code on the TV, but in this way, the QR code needs to be scanned again every time the mobile phone and the TV are connected to each other, and the connection steps are cumbersome.
  • an embodiment of the present disclosure proposes a method for controlling a terminal, and the solution provided by the embodiment of the present application will be described in detail below with reference to the accompanying drawings.
  • the method for controlling a terminal is performed by a first terminal, where the first terminal may be, for example, a mobile phone, a tablet computer, or the like.
  • a method for controlling a terminal in some embodiments of the present disclosure includes:
  • S11 Acquire network identification information of the second terminal to be connected.
  • the network identification information may be information used to identify the second terminal, for example, may be the physical network card address of the second terminal, and which terminal is the second terminal that needs to be connected can be accurately determined through the network identification information.
  • S12 Establish a communication connection with the second terminal based on the network identification information of the second terminal.
  • the first terminal and the second terminal can communicate with each other in a wireless manner.
  • the network identification information can prevent the first terminal from being connected to a non-second terminal.
  • the first wireless network created by the first terminal may be a hotspot network of the first terminal.
  • S14 Send the first network information of the first wireless network to the second terminal through the first communication connection, so that the second terminal establishes a second communication connection with the first terminal based on the first network information.
  • the first terminal after establishing the first communication connection with the second terminal, transmits the first network information through the first communication connection, and then establishes a second communication connection with the second terminal so that the second terminal is connected to the second terminal.
  • the first wireless network of a terminal since the first wireless network is established by the first terminal, the data transmission between the first terminal and the second terminal does not pass through any third-party network device (such as a router), and the data is directly transmitted to the first terminal. transmission between the terminal and the second terminal.
  • the first communication connection can be disconnected.
  • the network identification information of the second terminal is obtained first, and then the first communication connection is established.
  • the first communication connection is used to transmit the first network information, and then the first terminal and the second terminal are established. Since the second communication connection goes through two connections, and finally performs data transmission through the first wireless network established by the first terminal, data hijacking can be prevented and the security of data transmission is improved.
  • acquiring the network identification information of the second terminal includes: directly acquiring the network identification information from the second terminal.
  • obtaining the network identification information directly from the second terminal means that the network identification information is not forwarded by other terminals to the first terminal. Since the network identification information is obtained directly from the second terminal, the network identification information can be prevented. Information is tampered with, which further increases the security of the connection.
  • acquiring the network identification information of the second terminal to be connected includes: acquiring the network identification information of the second terminal by scanning an information code displayed by the second terminal.
  • an information code including its network identification information is displayed by the second terminal, and the first terminal acquires the network identification information of the second terminal by scanning the information code, where the information code may include a barcode or a two-dimensional code, etc.
  • the two-dimensional code is an encrypted two-dimensional code, and the encrypted two-dimensional code can only be scanned and decoded by specific software. By using the encrypted two-dimensional code, non-designated terminals are prevented from obtaining the network identification information of the second terminal.
  • the first terminal and the second terminal are directly connected through a data line, and the network identification information of the second terminal is received through the data line.
  • the first terminal and the second terminal are directly connected through a data line, so as to obtain the network identification information of the second terminal, thereby preventing the network identification information from being tampered with or monitored, so as to improve security.
  • sending the first network information of the first wireless network through the first communication connection, so that the second terminal establishes the second communication connection with the first terminal based on the first network information includes: The communication connection sends the hotspot information of the first terminal, so that the second terminal is connected to the hotspot of the first terminal.
  • the first terminal has established a hotspot
  • the first network information may include relevant information of the hotspot established by the first terminal, such as a hotspot name and a hotspot password, and the relevant information of the hotspot is transmitted through a communication connection,
  • the second terminal is connected to the hotspot established by the first terminal.
  • the information of the hotspot established by the first terminal is invisible to the user.
  • the network identification information includes: Bluetooth information of the second terminal; and the first communication connection includes: a Bluetooth connection.
  • the first terminal first obtains the Bluetooth information of the second terminal, then establishes a Bluetooth connection with the second terminal, and then transmits the first network information through the Bluetooth connection, thereby establishing a second communication connection with the first terminal.
  • the method proposed in some embodiments of the present disclosure further includes: after disconnecting the communication connection with the second terminal, establishing a third communication connection with the communication device, determining whether the communication device is the second terminal, and if the communication The device is a second terminal, creates a second wireless network, and transmits second network information of the second wireless network through a third communication connection, so that the second terminal establishes a fourth communication connection with the second terminal based on the second network information.
  • the third communication connection may be a Bluetooth connection
  • the second wireless network may be a hotspot network established by the first terminal.
  • the second terminal can automatically connect to the second wireless network established by the first terminal without acquiring the network identification information each time, and the second wireless network can be a hotspot network established by the first terminal, thereby greatly improving the usage experience.
  • the second network information may be the same as the first network information.
  • the second network information is different from the first network information, that is, the network information of each wireless network established by the first terminal is different. the same, which increases security.
  • the network identification information of the second terminal includes the identifier of the second terminal, or, when a first communication connection is established between the first terminal and the second terminal, from the The second terminal acquires the identifier of the second terminal, so that the first terminal can store the identifier of the second terminal, and the determining whether the communication device is the second terminal includes: acquiring the identifier of the communication device identifier, and determine whether the communication device is the second terminal according to the identifier of the communication device and the identifier of the second terminal. If the identifier of the communication device is the same as the identifier of the second terminal, the communication device can be identified as the second terminal, otherwise the communication device is not the second terminal.
  • the identifier can be, for example, the physical address of the second terminal.
  • the terminal name may also be a physical address or a special character set in the terminal name, so that the first terminal can verify the communication device according to the identifier.
  • creating the second wireless network includes: if the communication device is the second terminal, automatically creating the second wireless network. In this embodiment, once the third communication connection is established with the communication device, the second wireless network is automatically created.
  • creating the second wireless network includes: if the communication device is the second terminal, creating the second wireless network in response to a target control operation.
  • the user can manually create the second wireless network, so as to prevent misconnection, and when no target control operation is detected, the second wireless network is not created.
  • creating a second wireless network includes: if the communication device is a second terminal and receiving the third communication from the second terminal through the second terminal The sent target information is connected, and a second wireless network is created in response to the target information.
  • the second terminal sends a request, and the second wireless network is created according to the request of the second terminal. If the second terminal does not send a request, the second wireless network may not be created.
  • the first terminal as a mobile phone and the second terminal as a display device (including a TV) as an example.
  • the user wants to use the mobile phone to connect with the display device to display the content on the mobile phone.
  • the data is put into the display device through the local area network through the router.
  • the two-dimensional code is displayed on the display device, and the mobile phone scans the two-dimensional
  • the bluetooth information of the display device can be obtained by means of code, or the mobile phone and the display device can be directly connected with a data cable to obtain the bluetooth information of the display device.
  • the two methods are used to obtain the bluetooth information of the display device without going through any third party.
  • the mobile phone After the mobile phone obtains the bluetooth information of the display device, it connects with the display device through bluetooth, and the mobile phone establishes a hotspot.
  • the display device automatically connects to the hotspot established by the mobile phone after receiving the relevant information of the hotspot.
  • the Bluetooth connection After the mobile phone and the display device are disconnected from the wireless direct connection, when the mobile phone and the display device need to be connected again, as long as the Bluetooth of the mobile phone and the display device are turned on, the Bluetooth connection can be automatically established and the second network information can be transmitted.
  • the network information may be related information of the hotspot established by the first terminal, so that the display device can be automatically connected to the hotspot of the first terminal.
  • the display device does not need to input information. Therefore, when the mobile phone and the display device are connected to each other, the user wants to avoid inputting any information on the display device as much as possible. In this case, the mobile phone and the display device can be connected to each other without entering any information on the display device. After the first Bluetooth connection, when the display device needs to be connected to the hotspot of the mobile phone again, the mobile phone and the display device can be automatically connected. , the user does not need to perform any operations, which greatly improves the user experience.
  • Some embodiments of the present disclosure also propose a method for controlling a terminal, which is executed by a second terminal.
  • the following first terminal and second terminal may be the first terminal and the second terminal in any of the above-mentioned embodiments.
  • the control method of the terminal in this embodiment includes:
  • S21 Display or send the network identification information of the second terminal to the first terminal.
  • S22 Establish a first communication connection with the first terminal based on the network identification information of the second terminal;
  • S23 Receive first network information of the first wireless network sent by the first terminal through the first communication connection, and establish a second communication connection with the first terminal based on the first network information.
  • the second terminal may be, for example, a display device (television, etc.), and the first terminal may be, for example, a mobile phone, a tablet, and the like.
  • the second terminal displays or transmits the network identification information, so that the first terminal can identify the second terminal.
  • a first communication connection is established between the first terminal and the second terminal, and the first communication connection may be a wireless connection. It can also be a wired connection, and then the first network information is transmitted through the first communication connection, for example, the first network information is received from the first terminal, so as to perform a wireless connection with the first terminal, and the second terminal is connected to the first terminal based on the first network information.
  • first wireless network established by a terminal On the first wireless network established by a terminal, in some embodiments of the present disclosure, two connections are established between the first terminal and the second terminal, thus greatly reducing the possibility of data hijacking.
  • Direct connection to the first wireless network established by the first terminal prevents data from being eavesdropped, improves the security and concealment of data transmission, and improves user experience because data is not forwarded through any third-party network device.
  • displaying or transmitting the network identification information of the second terminal to the first terminal includes: displaying the network identification information of the second terminal by displaying an information code.
  • the information code may be a two-dimensional code or a barcode.
  • the information code records the network identification information of the second terminal.
  • the first terminal and the second terminal are directly connected through a data line; displaying or transmitting the network identification information of the second terminal to the first terminal includes: sending the network identification information to the first terminal through the data line .
  • the first terminal and the second terminal are directly connected physically through a data cable, and data is not forwarded and transmitted through any third-party device, thereby ensuring the network identification information acquired by the first terminal. accuracy.
  • receiving the first network information of the first wireless network sent by the first terminal through the first communication connection, and establishing the second communication connection with the first terminal based on the first network information includes:
  • the communication connection receives the hotspot information of the first terminal, and is connected to the hotspot of the first terminal.
  • a hotspot is established on the first terminal, and the first network information includes relevant information of the hotspot, such as the name or password of the hotspot.
  • the first A terminal sends the relevant information of the hotspot established by it to the second terminal, so the second terminal can directly connect to the hotspot established by the first terminal through the hotspot information to realize the second communication connection.
  • the secondary connection is used. , greatly reducing the possibility of data tampering and monitoring, and improving the security of data transmission.
  • the network identification information of the second terminal includes: Bluetooth information of the second terminal; and the first communication connection includes: a Bluetooth connection.
  • the second terminal displays or transmits its bluetooth information
  • the first terminal establishes a bluetooth connection with the second terminal after acquiring the bluetooth information of the second terminal, and then transmits the first network information through the bluetooth connection, and the bluetooth connection
  • the power consumption is extremely low, and on the other hand, the use distance is short, so the distance between the first terminal and the first terminal can be guaranteed to be short, and the possibility of data being monitored and tampered can be reduced.
  • the method further includes: establishing a third communication connection with the first terminal; receiving the first communication connection through the third communication connection
  • the second network information of the second wireless network sent by the terminal establishes a fourth communication connection with the second terminal based on the second network information; wherein the second wireless network is established by the first terminal.
  • the first communication connection may be a Bluetooth connection
  • the third communication connection may also be a Bluetooth connection.
  • the second wireless network can be the hotspot network of the first terminal, and the fourth communication connection can be a hotspot connection.
  • the name or password of a hotspot established by a terminal may be the same or different.
  • the Bluetooth technology is used, the power consumption of the Bluetooth is extremely low, and the wireless direct connection can be automatically realized again after the first wireless direct connection.
  • the second terminal maintains the Bluetooth broadcast; optionally, the second terminal maintains the Bluetooth broadcast when connected to a power source. In some embodiments, the second terminal performs Bluetooth broadcasting when the screen is bright, and indicates that the user wants to use the second terminal in the bright screen state. At this time, maintaining the Bluetooth broadcasting can reduce power consumption while meeting user needs.
  • the network identification information includes an identifier of the second terminal, or, when a first connection is established with the first terminal, the network identification information is sent to the first terminal.
  • the identifier of the second terminal after establishing a third communication connection with the first terminal, the method further includes: sending the identifier of the second terminal to the first terminal.
  • the identifier is sent to the first terminal, so that the first terminal can determine whether the device connected to the first terminal is the second terminal.
  • the method before receiving the second network information of the second wireless network created by the first terminal through the third communication connection, the method further includes: sending target information to the first terminal to causing the first terminal to create the second wireless network.
  • the first terminal may be required to establish a second wireless network by sending target information to the first terminal, so as to establish a fourth communication connection with the first terminal as required.
  • a terminal control apparatus for controlling the first terminal including:
  • the obtaining unit 10 is configured to obtain the network identification information of the second terminal to be connected.
  • the communication unit 20 is configured to establish a first communication connection with the second terminal based on the network identification information of the second terminal.
  • the network unit 30 is used to create a first wireless network.
  • a connection unit 40 configured to send the first network information of the first wireless network to the second terminal through the first communication connection, so that the second terminal can communicate with the first terminal based on the first network information
  • a second communication connection is established.
  • the acquiring unit 10 acquiring the network identification information of the second terminal to be connected includes: acquiring the network identification information of the second terminal by scanning an information code displayed by the second terminal.
  • the first terminal and the second terminal are connected through a data line; the obtaining unit 10 obtains the network identification information of the second terminal to be connected, including: receiving the data of the second terminal through the data line. Network identification information.
  • connection unit 40 is configured to send the hotspot information of the first terminal through the first communication connection, so that the second terminal is connected to the hotspot of the first terminal.
  • the network identification information of the second terminal includes: Bluetooth information of the second terminal; and the first communication connection includes: a Bluetooth connection.
  • the communication unit 20 is further configured to establish a third communication connection with the communication device after the communication connection with the second terminal is disconnected; further includes a determination unit for determining whether the communication device is a the second terminal; the network unit 30 is further configured to create a second wireless network if the communication device is the second terminal; the connecting unit 40 is further configured to send the first information of the second wireless network through the third communication connection. two network information, so that the second terminal establishes a fourth communication connection with the second terminal based on the second network information.
  • the network identification information of the second terminal includes the identifier of the second terminal, or, when a first communication connection is established between the first terminal and the second terminal, the second terminal is sent from the second terminal. Obtain the identifier of the second terminal.
  • the judging unit judging whether the communication device is the second terminal includes: acquiring an identifier of the communication device, and determining the communication device according to the identifier of the communication device and the identifier of the second terminal. whether the communication device is the second terminal.
  • the network unit 30 creates a second wireless network, including: if the communication device is a second terminal, automatically creating a second wireless network; or, if the communication device is a second terminal Create a second wireless network for the second terminal in response to the target control operation; or, if the communication device is a second terminal and receives the target information sent by the second terminal through the third communication connection, in response to the The target information is used to create a second wireless network.
  • the third communication connection includes a Bluetooth connection.
  • the second wireless network includes: a hotspot created by the first terminal.
  • a terminal control apparatus for controlling a second terminal including:
  • An output module 50 configured to display or transmit the network identification information of the second terminal to the first terminal
  • a communication module 60 configured to establish a first communication connection with the first terminal based on the network identification information of the second terminal;
  • a connection module 70 configured to receive the first network information of the first wireless network sent by the first terminal through the first communication connection, and establish a second communication connection with the first terminal based on the first network information; wherein, The first wireless network is established by the first terminal.
  • the outputting module 50 displaying or sending the network identification information of the second terminal to the first terminal includes: displaying the network identification information of the second terminal by displaying an information code.
  • the first terminal and the second terminal are connected through a data line; the output module 50 displays or sends the network identification information of the second terminal to the first terminal, including: sending the network identification information to the second terminal through the data line.
  • the first terminal sends the network identification information of the second terminal.
  • the output module 50 receives the first network information of the first wireless network sent by the first terminal through the first communication connection, and establishes a second communication connection with the first terminal based on the first network information, The method includes: receiving the hotspot information of the first terminal through the first communication connection, and connecting to the hotspot of the first terminal.
  • the network identification information of the second terminal includes: Bluetooth information of the second terminal; and the first communication connection includes: a Bluetooth connection.
  • connection module 70 is further configured to establish a third communication connection with the first terminal after the communication connection with the first terminal is disconnected; receive the first terminal through the third communication connection
  • the sent second network information of the second wireless network establishes a fourth communication connection with the second terminal based on the second network information; wherein the second wireless network is established by the first terminal.
  • the network identification information of the second terminal includes the identifier of the second terminal, or, when a first connection is established with the first terminal, the network identifier is sent to the first terminal. an identifier of the second terminal;
  • the connection module 70 is further configured to send the identifier of the second terminal to the first terminal after establishing a third communication connection with the first terminal.
  • connection module 70 is further configured to send target information to the first terminal before receiving the second network information of the second wireless network created by the first terminal through the third communication connection, so that The first terminal creates the second wireless network.
  • the third communication connection includes a Bluetooth connection.
  • the second wireless network includes: a hotspot established by the first terminal.
  • the present disclosure also provides a terminal and a storage medium, which are described below.
  • FIG. 5 it shows a schematic structural diagram of an electronic device (eg, a terminal device or a server) 800 suitable for implementing an embodiment of the present disclosure.
  • Terminal devices in the embodiments of the present disclosure may include, but are not limited to, such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (eg, mobile terminals such as in-vehicle navigation terminals), etc., and stationary terminals such as digital TVs, desktop computers, and the like.
  • the electronic device shown in the figure is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
  • Electronic device 800 may include processing means (eg, central processing unit, graphics processor, etc.) 801 that may be based on a program stored in read only memory (ROM) 802 or loaded into random access memory (RAM) 803 from storage means 808 program to perform various appropriate actions and processes. In the RAM 803, various programs and data necessary for the operation of the electronic device 800 are also stored.
  • the processing device 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804.
  • An input/output (I/O) interface 805 is also connected to bus 804 .
  • the following devices can be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, An output device 807 of a vibrator or the like; a storage device 808 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 809 .
  • Communication means 809 may allow electronic device 800 to communicate wirelessly or by wire with other devices to exchange data.
  • embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart.
  • the computer program may be downloaded and installed from the network via the communication device 809, or from the storage device 808, or from the ROM 802.
  • the processing device 801 the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
  • Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, electrical wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
  • clients and servers can communicate using any currently known or future developed network protocols such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium.
  • Communication eg, a communication network
  • Examples of communication networks include local area networks (“LAN”), wide area networks (“WAN”), the Internet (eg, the Internet), and peer-to-peer networks (eg, ad hoc peer-to-peer networks), as well as any currently known or future development network of.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or may exist alone without being assembled into the electronic device.
  • the aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to execute the aforementioned method of the present disclosure.
  • Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional Procedural programming language - such as the "C" language or similar programming language.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server.
  • the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).
  • LAN local area network
  • WAN wide area network
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments of the present disclosure may be implemented in a software manner, and may also be implemented in a hardware manner. Among them, the name of the unit does not constitute a limitation of the unit itself under certain circumstances.
  • exemplary types of hardware logic components include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chips (SOCs), Complex Programmable Logical Devices (CPLDs) and more.
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSPs Application Specific Standard Products
  • SOCs Systems on Chips
  • CPLDs Complex Programmable Logical Devices
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with the instruction execution system, apparatus or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM compact disk read only memory
  • magnetic storage or any suitable combination of the foregoing.
  • a method for controlling a terminal executed by a first terminal, including:
  • a method for controlling a terminal which acquires network identification information of a second terminal to be connected, including:
  • a method for controlling a terminal wherein the first terminal and the second terminal are connected through a data line;
  • Acquiring the network identification information of the second terminal to be connected includes: receiving the network identification information of the second terminal through the data line.
  • a method for controlling a terminal wherein first network information of the first wireless network is sent through the first communication connection, so that the second terminal is based on the The first network information establishes a second communication connection with the first terminal, including:
  • the hotspot information of the first terminal is sent through the first communication connection, so that the second terminal is connected to the hotspot of the first terminal.
  • a method for controlling a terminal where the network identification information of the second terminal includes: Bluetooth information of the second terminal;
  • the first communication connection includes: a Bluetooth connection.
  • a method for controlling a terminal further comprising:
  • the communication device is the second terminal, creating a second wireless network
  • the second network information of the second wireless network is sent through the third communication connection, so that the second terminal establishes a fourth communication connection with the second terminal based on the second network information.
  • a method for controlling a terminal wherein the network identification information includes an identifier of a second terminal, or a first terminal is established between the first terminal and the second terminal During a communication connection, acquiring the identifier of the second terminal from the second terminal;
  • the judging whether the communication device is the second terminal includes: acquiring an identifier of the communication device, and determining whether the communication device is the communication device according to the identifier of the communication device and the identifier of the second terminal second terminal.
  • a method for controlling a terminal is provided. If the communication device is a second terminal, creating a second wireless network includes:
  • the communication device is a second terminal, automatically create a second wireless network; or,
  • the communication device is a second terminal, create a second wireless network in response to the target control operation; or,
  • the communication device is a second terminal and receives target information sent by the second terminal through the third communication connection, a second wireless network is created in response to the target information.
  • a method for controlling a terminal wherein the third communication connection includes: a Bluetooth connection; and/or the second wireless network includes: a network created by the first terminal hot spot.
  • a method for controlling a terminal is provided, executed by a second terminal, including:
  • the first wireless network is established by the first terminal.
  • a method for controlling a terminal displaying or sending the network identification information of the second terminal to the first terminal, including:
  • a method for controlling a terminal wherein the first terminal is connected to the second terminal through a data line; the network of the second terminal is displayed or sent to the first terminal
  • the identification information includes: sending the network identification information of the second terminal to the first terminal through the data line.
  • a method for controlling a terminal wherein first network information of a first wireless network sent by the first terminal is received through the first communication connection, based on the first communication connection.
  • the network information establishing a second communication connection with the first terminal includes: receiving hotspot information of the first terminal through the first communication connection, and connecting to the hotspot of the first terminal.
  • a method for controlling a terminal wherein the network identification information of the second terminal includes: Bluetooth information of the second terminal; the first communication connection includes: a Bluetooth connection .
  • a method for controlling a terminal further comprising:
  • the second wireless network is established by the first terminal.
  • a method for controlling a terminal wherein the network identification information includes an identifier of the second terminal, or, when a first connection is established with the first terminal When , sending the identifier of the second terminal to the first terminal;
  • the method further includes: sending the identifier of the second terminal to the first terminal.
  • a method for controlling a terminal Before receiving the second network information of the second wireless network created by the first terminal through the third communication connection, the method further includes: Sending target information to the first terminal, so that the first terminal creates the second wireless network.
  • a method for controlling a terminal wherein the third communication connection includes: a Bluetooth connection;
  • the second wireless network includes: a hotspot established by the first terminal.
  • a terminal control apparatus for controlling a first terminal including:
  • an obtaining unit for obtaining the network identification information of the second terminal to be connected
  • a communication unit configured to establish a first communication connection with the second terminal based on the network identification information of the second terminal
  • connection unit configured to send first network information of the first wireless network to a second terminal through the first communication connection, so that the second terminal can establish a connection with the first terminal based on the first network information A second communication connection.
  • a terminal control apparatus for controlling a second terminal including:
  • an output module for displaying or sending the network identification information of the second terminal to the first terminal
  • a communication module configured to establish a first communication connection with the first terminal based on the network identification information of the second terminal
  • connection module configured to receive the first network information of the first wireless network sent by the first terminal through the first communication connection, and establish a second communication connection with the first terminal based on the first network information; wherein, the The first wireless network is established by the first terminal.
  • a terminal including: at least one memory and at least one processor;
  • the at least one memory is used for storing program codes
  • the at least one processor is used for calling the program codes stored in the at least one memory to execute any one of the methods described above.
  • a storage medium is provided, where the storage medium is used for storing a program code, and the program code is used for executing the above-mentioned method.

Landscapes

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

Abstract

A terminal control method and apparatus, and a terminal and a storage medium. A terminal control method in some embodiments is implemented by a first terminal, and comprises: acquiring network identifier information of a second terminal needing to be connected; establishing a first communication connection with the second terminal on the basis of the network identifier information of the second terminal; creating a first wireless network; and sending first network information of the first wireless network to the second terminal by means of the first communication connection, so that the second terminal establishes a second communication connection with the first terminal on the basis of the first network information. The method in the present disclosure can prevent data hijacking, and improve the security of data transmission.

Description

终端的控制方法、装置、终端和存储介质Terminal control method, device, terminal and storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请基于申请号为202011124347.9、申请日为2020年10月20日,名称为“终端的控制方法、装置、终端和存储介质”的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on the Chinese patent application with the application number of 202011124347.9 and the application date of October 20, 2020, titled "Control Method, Device, Terminal and Storage Medium of Terminal", and claims the priority of the Chinese patent application, which The entire contents of the Chinese patent application are incorporated herein by reference.
技术领域technical field
本公开涉及计算机技术领域,尤其涉及一种终端的控制方法、装置、终端和存储介质。The present disclosure relates to the field of computer technology, and in particular, to a terminal control method, device, terminal, and storage medium.
背景技术Background technique
手机等智能终端,可以与位于同一局域网下的电视或显示设备互联,从而将手机上的屏幕投屏到同一局域网下的电视或显示设备,采用这种连接方式时,手机传输的数据经过局域网的路由器可能会被劫持或监听,存在安全隐患。Smart terminals such as mobile phones can be interconnected with TVs or display devices located in the same local area network, so that the screen on the mobile phone can be projected to the TV or display devices in the same local area network. The router may be hijacked or monitored, posing a security risk.
发明内容SUMMARY OF THE INVENTION
本公开提供一种终端的控制方法、装置、终端和存储介质。The present disclosure provides a terminal control method, device, terminal and storage medium.
本公开采用以下的技术方案。The present disclosure adopts the following technical solutions.
在一些实施例中,本公开提供一种终端的控制方法,由第一终端执行,包括:In some embodiments, the present disclosure provides a method for controlling a terminal, executed by a first terminal, including:
获取需要连接的第二终端的网络标识信息;obtaining the network identification information of the second terminal to be connected;
基于所述第二终端的网络标识信息与所述第二终端建立第一通信连接;establishing a first communication connection with the second terminal based on the network identification information of the second terminal;
创建第一无线网络;create a first wireless network;
通过所述第一通信连接向第二终端发送第一无线网络的第一网络信息,以使第二终端基于所述第一网络信息与所述第一终端建立第二通信。The first network information of the first wireless network is sent to the second terminal through the first communication connection, so that the second terminal establishes a second communication with the first terminal based on the first network information.
在一些实施例中,本公开提出一种终端的控制方法,由第二终端执行,包括:In some embodiments, the present disclosure provides a method for controlling a terminal, executed by a second terminal, including:
展示或向第一终端发送所述第二终端的网络标识信息;displaying or sending the network identification information of the second terminal to the first terminal;
基于所述第二终端的网络标识信息与所述第一终端建立通信连接;establishing a communication connection with the first terminal based on the network identification information of the second terminal;
通过所述第一通信连接接收第一终端发送的第一无线网络的第一网络信息,基于所述第一网络信息与所述第一终端建立第二通信连接。The first network information of the first wireless network sent by the first terminal is received through the first communication connection, and a second communication connection is established with the first terminal based on the first network information.
其中,第一无线网络由第一终端建立。The first wireless network is established by the first terminal.
在一些实施例中,本公开提供一种终端的控制装置,用于控制第一终端,包括:In some embodiments, the present disclosure provides a terminal control apparatus for controlling a first terminal, including:
获取单元,用于获取需要连接的第二终端的网络标识信息;an obtaining unit for obtaining the network identification information of the second terminal to be connected;
配对单元,用于基于所述第二终端的网络标识信息与所述第二终端建立第一通信连接;a pairing unit, configured to establish a first communication connection with the second terminal based on the network identification information of the second terminal;
网络单元,用于创建第一无线网络;a network unit for creating a first wireless network;
连接单元,用于通过所述第一通信连接向第二终端发送第一无线网络的第一网络信息,以使第二终端基于所述第一网络信息与所述第一终端建立第二通信连接。a connection unit, configured to send the first network information of the first wireless network to the second terminal through the first communication connection, so that the second terminal can establish a second communication connection with the first terminal based on the first network information .
在一些实施例中,本公开提供一种终端的控制装置,用于控制第二终端,包括:In some embodiments, the present disclosure provides a terminal control apparatus for controlling a second terminal, including:
输出模块,用于展示或向第一终端发送所述第二终端的网络标识信息;an output module, configured to display or send the network identification information of the second terminal to the first terminal;
通信模块,用于基于所述第二终端的网络标识信息与所述第一终端建立第一通信连接;a communication module, configured to establish a first communication connection with the first terminal based on the network identification information of the second terminal;
连接模块,用于通过所述第一通信连接接收第一终端发送的第一无线网络的第一网络信息,基于所述第一网络信息与所述第一终端建立第二通信连接;其中,所述第一无线网络由第一终端建立。a connection module, configured to receive the first network information of the first wireless network sent by the first terminal through the first communication connection, and establish a second communication connection with the first terminal based on the first network information; The first wireless network is established by the first terminal.
在一些实施例中,本公开提供一种终端,包括:至少一个存储器和至少一个处理器;In some embodiments, the present disclosure provides a terminal comprising: at least one memory and at least one processor;
其中,存储器用于存储程序代码,处理器用于调用所述存储器所存储的程序代码执行上述的方法。The memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the above method.
在一些实施例中,本公开提供一种存储介质,所述存储介质用于存储程序代码,所述程序代码用于执行上述的方法。In some embodiments, the present disclosure provides a storage medium for storing program code for performing the above-described method.
本公开实施例提供的终端的控制方法,先获取了第二终端的网络标识信息,再建立第一通信连接,通过第一通信连接传输第一网络信息,然后第一终端再和第二终端建立第二通信连接,由于经过了两次连接,且第一无线网络由第一终端建立,最后通过第二通信连接进行数据传输,因此可以防止数据劫持和监听,提高了数据传输的安全性。In the terminal control method provided by the embodiment of the present disclosure, network identification information of the second terminal is obtained first, then a first communication connection is established, the first network information is transmitted through the first communication connection, and then the first terminal and the second terminal are established The second communication connection has two connections, and the first wireless network is established by the first terminal, and finally data transmission is performed through the second communication connection, so data hijacking and monitoring can be prevented, and the security of data transmission can be improved.
附图说明Description of drawings
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,元件和元素不一定按照比例绘制。The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent when taken in conjunction with the accompanying drawings and with reference to the following detailed description. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
图1是本公开实施例的一种终端的控制方法的流程图。FIG. 1 is a flowchart of a method for controlling a terminal according to an embodiment of the present disclosure.
图2是本公开实施例的另一种终端的控制方法的流程图。FIG. 2 is a flowchart of another method for controlling a terminal according to an embodiment of the present disclosure.
图3是本公开实施例的一种终端的控制装置组成图。FIG. 3 is a composition diagram of a control apparatus of a terminal according to an embodiment of the present disclosure.
图4是本公开实施例的另一种终端的控制装置的组成图。FIG. 4 is a composition diagram of another terminal control apparatus according to an embodiment of the present disclosure.
图5是本公开实施例的电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for the purpose of A more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes, and are not intended to limit the protection scope of the present disclosure.
应当理解,本公开的方法实施方式中记载的各个步骤可以按和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in sequence and/or in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this regard.
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。As used herein, the term "including" and variations thereof are open-ended inclusions, ie, "including but not limited to". The term "based on" is "based at least in part on." The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below.
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or interdependence.
需要注意,本公开中提及的“一个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modification of "a" mentioned in the present disclosure is illustrative rather than restrictive, and those skilled in the art should understand that unless the context clearly indicates otherwise, it should be understood as "one or more".
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of these messages or information.
一些技术中,手机与位于同一局域网内的电视可以通过局域网相互连接,从而将手机的显示屏幕投屏到电视上,然而,采用这种方法时,手机与电视之间需要通过局域网的路由器进行数据传输,路由器存在被劫持的风险。在一些技术中,手机通过扫描电视上的二维码与电视相互连接,但采用这种方式时,每一次手机与电视相互连接都需要重新扫描二维码,连接步骤繁琐。In some technologies, the mobile phone and the TV in the same local area network can be connected to each other through the local area network, so that the display screen of the mobile phone can be projected to the TV. transmission, the router is at risk of being hijacked. In some technologies, the mobile phone is connected to the TV by scanning the QR code on the TV, but in this way, the QR code needs to be scanned again every time the mobile phone and the TV are connected to each other, and the connection steps are cumbersome.
为了至少部分解决上述问题,本公开实施例中提出一种终端的控制方法,以下将结合附图,对本申请实施例提供的方案进行详细描述。In order to at least partially solve the above problem, an embodiment of the present disclosure proposes a method for controlling a terminal, and the solution provided by the embodiment of the present application will be described in detail below with reference to the accompanying drawings.
在本公开的一些实施例中,终端的控制方法,由第一终端执行,其中第一终端例如可以是手机、平板电脑等。In some embodiments of the present disclosure, the method for controlling a terminal is performed by a first terminal, where the first terminal may be, for example, a mobile phone, a tablet computer, or the like.
如图1所示,本公开一些实施例中终端的控制方法包括:As shown in FIG. 1 , a method for controlling a terminal in some embodiments of the present disclosure includes:
S11:获取需要连接的第二终端的网络标识信息。S11: Acquire network identification information of the second terminal to be connected.
一些实施例中,网络标识信息可以是用于标识第二终端的信息,例如可以是第二终端的物理网卡地址,通过网络标识信息可以准确的确定哪一个终端是需要连接的第二终端。In some embodiments, the network identification information may be information used to identify the second terminal, for example, may be the physical network card address of the second terminal, and which terminal is the second terminal that needs to be connected can be accurately determined through the network identification information.
S12:基于第二终端的网络标识信息与第二终端建立通信连接。S12: Establish a communication connection with the second terminal based on the network identification information of the second terminal.
一些实施例中,在获取到第二终端的网络标识信息后,第一终端与第二终端可以通过无线的方式相互通信连接,由于获取到了网络标识信息,因此第一终端在与任一终端进行无线连接的时候可以准确的确定连接的终端是否为第二终端,从而不会与无关的其他终端相互连接,即通过网络标识信息可以防止第一终端连接到非第二终端。In some embodiments, after acquiring the network identification information of the second terminal, the first terminal and the second terminal can communicate with each other in a wireless manner. When wirelessly connected, it can be accurately determined whether the connected terminal is the second terminal, so as not to be mutually connected with other unrelated terminals, that is, the network identification information can prevent the first terminal from being connected to a non-second terminal.
S13:创建第一无线网络。S13: Create a first wireless network.
一些实施例中,第一终端创建的第一无线网络可以是第一终端的热点网络。In some embodiments, the first wireless network created by the first terminal may be a hotspot network of the first terminal.
S14:通过第一通信连接向第二终端发送第一无线网络的第一网络信息,以使第二终端基于第一网络信息与第一终端建立第二通信连接。S14: Send the first network information of the first wireless network to the second terminal through the first communication connection, so that the second terminal establishes a second communication connection with the first terminal based on the first network information.
一些实施例中,第一终端在与第二终端建立了第一通信连接后,通过第一通信连接传输第一网络信息,再与第二终端建立第二通信连接以使第二终端连接到第一终端的第一无线网络上,由于第一无线网络由第一终端建立,所以第一终端与第二终端之间的数据传输不经过任何第三方网络设备(例如路由器),数据直接在第一终端和第二终端之间进行传输。第二通信连接建立后可以断开第一通信连接。In some embodiments, after establishing the first communication connection with the second terminal, the first terminal transmits the first network information through the first communication connection, and then establishes a second communication connection with the second terminal so that the second terminal is connected to the second terminal. On the first wireless network of a terminal, since the first wireless network is established by the first terminal, the data transmission between the first terminal and the second terminal does not pass through any third-party network device (such as a router), and the data is directly transmitted to the first terminal. transmission between the terminal and the second terminal. After the second communication connection is established, the first communication connection can be disconnected.
在本公开的一些实施例中,先获取了第二终端的网络标识信息,再建立第一通信连接,该第一通信连接用于传输第一网络信息,然后第一终端再和第二终端建立第二通信连接,由于经过了两次连接,并且最后通过第一终端建立的第一无线网络进行数据传输,因此可以防止数据劫持,提高了数据传输的安全性。In some embodiments of the present disclosure, the network identification information of the second terminal is obtained first, and then the first communication connection is established. The first communication connection is used to transmit the first network information, and then the first terminal and the second terminal are established. Since the second communication connection goes through two connections, and finally performs data transmission through the first wireless network established by the first terminal, data hijacking can be prevented and the security of data transmission is improved.
在本公开的一些实施例中,获取第二终端的网络标识信息,包括:从第二终端处直接获取网络标识信息。在本实施例中,从第二终端处直接获取网络标识信息是指网络标识信息不是由其他终端转发给第一终端,由于是直接从第二终端处获取到网络标识信息,因此可以防止网络标识信息被篡改,从而进一步提高了连接的安全性。In some embodiments of the present disclosure, acquiring the network identification information of the second terminal includes: directly acquiring the network identification information from the second terminal. In this embodiment, obtaining the network identification information directly from the second terminal means that the network identification information is not forwarded by other terminals to the first terminal. Since the network identification information is obtained directly from the second terminal, the network identification information can be prevented. Information is tampered with, which further increases the security of the connection.
在本公开的一些实施例中,获取需要连接的第二终端的网络标识信息,包括:通过扫描第二终端所显示的信息码获取第二终端的网络标识信息。在本实施例中,由第二终端显示包括其网络标识信息的信息码,第一终端通过扫描该信息码获取到第二终端的网络标识信息,其中信息码可以包括条形码或二维码等,由于直接从第二终端扫码获取到第二终端的网络标识信息,因此无需担心二维码被篡改。在一些实施例中,二维码为加密二维码,加密二维码只能由特定的软件扫描解读,通过采用加密二维码,防止非指定的终端获取到第二终端的网络标识信息。In some embodiments of the present disclosure, acquiring the network identification information of the second terminal to be connected includes: acquiring the network identification information of the second terminal by scanning an information code displayed by the second terminal. In this embodiment, an information code including its network identification information is displayed by the second terminal, and the first terminal acquires the network identification information of the second terminal by scanning the information code, where the information code may include a barcode or a two-dimensional code, etc., Since the network identification information of the second terminal is directly obtained by scanning the code from the second terminal, there is no need to worry about the QR code being tampered with. In some embodiments, the two-dimensional code is an encrypted two-dimensional code, and the encrypted two-dimensional code can only be scanned and decoded by specific software. By using the encrypted two-dimensional code, non-designated terminals are prevented from obtaining the network identification information of the second terminal.
在本公开的一些实施例中,第一终端与第二终端通过数据线直接连接,通过数据线接收第二终端的网络标识信息。本实施例中,第一终端与第二终 端通过数据线直连,从而获取到第二终端的网络标识信息,进而防止网络标识信息被篡改或监听,以提高安全性。In some embodiments of the present disclosure, the first terminal and the second terminal are directly connected through a data line, and the network identification information of the second terminal is received through the data line. In this embodiment, the first terminal and the second terminal are directly connected through a data line, so as to obtain the network identification information of the second terminal, thereby preventing the network identification information from being tampered with or monitored, so as to improve security.
在本公开的一些实施例中,通过第一通信连接发送第一无线网络的第一网络信息,以使第二终端基于第一网络信息与第一终端建立第二通信连接,包括:通过第一通信连接发送第一终端的热点信息,以使第二终端连接至第一终端的热点。具体的,在一些实施例中,第一终端建立有热点,第一网络信息中可以包括有第一终端建立的热点的相关信息,例如热点名称和热点密码,通过通信连接传输热点的相关信息,从而使得第二终端连接到第一终端所建立的热点上。一些实施例中,为了进一步提高安全性,第一终端所建立的热点的信息对用户不可见。In some embodiments of the present disclosure, sending the first network information of the first wireless network through the first communication connection, so that the second terminal establishes the second communication connection with the first terminal based on the first network information, includes: The communication connection sends the hotspot information of the first terminal, so that the second terminal is connected to the hotspot of the first terminal. Specifically, in some embodiments, the first terminal has established a hotspot, and the first network information may include relevant information of the hotspot established by the first terminal, such as a hotspot name and a hotspot password, and the relevant information of the hotspot is transmitted through a communication connection, Thus, the second terminal is connected to the hotspot established by the first terminal. In some embodiments, in order to further improve security, the information of the hotspot established by the first terminal is invisible to the user.
在本公开的一些实施例中,网络标识信息包括:第二终端的蓝牙信息;第一通信连接包括:蓝牙连接。一些实施例中,第一终端先获取第二终端的蓝牙信息,然后与第二终端建立蓝牙连接,再通过蓝牙连接传输第一网络信息,从而与第一终端之间建立第二通信连接。In some embodiments of the present disclosure, the network identification information includes: Bluetooth information of the second terminal; and the first communication connection includes: a Bluetooth connection. In some embodiments, the first terminal first obtains the Bluetooth information of the second terminal, then establishes a Bluetooth connection with the second terminal, and then transmits the first network information through the Bluetooth connection, thereby establishing a second communication connection with the first terminal.
在本公开的一些实施例中提出的方法还包括:在断开与第二终端之间的通信连接之后,与通信设备建立第三通信连接,判断通信设备是否为第二终端,若所述通信设备是第二终端,创建第二无线网络,通过第三通信连接传输第二无线网络的第二网络信息,以使第二终端基于第二网络信息与第二终端建立第四通信连接。The method proposed in some embodiments of the present disclosure further includes: after disconnecting the communication connection with the second terminal, establishing a third communication connection with the communication device, determining whether the communication device is the second terminal, and if the communication The device is a second terminal, creates a second wireless network, and transmits second network information of the second wireless network through a third communication connection, so that the second terminal establishes a fourth communication connection with the second terminal based on the second network information.
一些实施例中,第三通信连接可以是蓝牙连接,第二无线网络可以是第一终端建立的热点网络,以第三通信连接和第一通信连接均为蓝牙连接为例,由于在第一通信连接时第一终端与第二终端先进行了蓝牙连接,因此,在第一终端与第二终端断开通信连接之后,第一终端与第二终端之间再次需要通信时,无需再次获取网络配对信息,只要第一终端和第二终端的蓝牙处于开启状态,则可以自动连接上蓝牙并自动传输第二网络信息,并再次进行通信连接,一些实施例中,只需要在首次连接时获取网络标识信息,之后每次无需获取网络标识信息,第二终端可以自动连接到第一终端建立的第二无线网络中,第二无线网络可以是第一终端建立的热点网络,从而大大提高了用户的使用体验。一些实施例中,第二网络信息可以与第一网络信息相同,在另 一些实施例中,第二网络信息与第一网络信息不同,即每次第一终端建立的无线网络的网络信息都不相同,这样可以提高安全性。In some embodiments, the third communication connection may be a Bluetooth connection, and the second wireless network may be a hotspot network established by the first terminal. Taking both the third communication connection and the first communication connection as a Bluetooth connection as an example, since the first communication When connecting, the first terminal and the second terminal are connected via Bluetooth first. Therefore, after the first terminal and the second terminal are disconnected from the communication connection, when the first terminal and the second terminal need to communicate again, there is no need to obtain network pairing again. information, as long as the bluetooth of the first terminal and the second terminal are turned on, the bluetooth can be automatically connected, the second network information can be automatically transmitted, and the communication connection can be performed again. In some embodiments, only the network identifier needs to be obtained when connecting for the first time. After that, the second terminal can automatically connect to the second wireless network established by the first terminal without acquiring the network identification information each time, and the second wireless network can be a hotspot network established by the first terminal, thereby greatly improving the usage experience. In some embodiments, the second network information may be the same as the first network information. In other embodiments, the second network information is different from the first network information, that is, the network information of each wireless network established by the first terminal is different. the same, which increases security.
在本公开的一些实施例中,所述第二终端的网络标识信息中包括第二终端的标识符,或者,在所述第一终端与第二终端间建立有第一通信连接时,从所述第二终端获取所述第二终端的标识符,这样第一终端就能够存储第二终端的标识符,所述判断所述通信设备是否为第二终端,包括:获取所述通信设备的标识符,根据所述通信设备的标识符和所述第二终端的标识符确定所述通信设备是否为所述第二终端。如果通信设备的标识符与第二终端的标识符相同,则可以认定通信设备为第二终端,否则通信设备不是第二终端,在一些实施例中,标识符例如可以使第二终端的物理地址或者终端名称,也可以是物理地址或终端名称中设置的特殊字符,从而使得第一终端能够根据标识符对通信设备进行校验。In some embodiments of the present disclosure, the network identification information of the second terminal includes the identifier of the second terminal, or, when a first communication connection is established between the first terminal and the second terminal, from the The second terminal acquires the identifier of the second terminal, so that the first terminal can store the identifier of the second terminal, and the determining whether the communication device is the second terminal includes: acquiring the identifier of the communication device identifier, and determine whether the communication device is the second terminal according to the identifier of the communication device and the identifier of the second terminal. If the identifier of the communication device is the same as the identifier of the second terminal, the communication device can be identified as the second terminal, otherwise the communication device is not the second terminal. In some embodiments, the identifier can be, for example, the physical address of the second terminal. Alternatively, the terminal name may also be a physical address or a special character set in the terminal name, so that the first terminal can verify the communication device according to the identifier.
在本公开的一些实施例中,若所述通信设备为第二终端,创建第二无线网络,包括:若所述通信设备为第二终端,自动创建第二无线网络。在本实施例中,一旦与通信设备建立了第三通信连接,就自动创建第二无线网络。In some embodiments of the present disclosure, if the communication device is the second terminal, creating the second wireless network includes: if the communication device is the second terminal, automatically creating the second wireless network. In this embodiment, once the third communication connection is established with the communication device, the second wireless network is automatically created.
在本公开的一些实施例中,若所述通信设备为第二终端,创建第二无线网络,包括:若所述通信设备为第二终端,响应于目标控制操作创建第二无线网络。在本实施例中,可以由用户手动创建第二无线网络,从而防止误连接,在没有检测到目标控制操作时,则不创建第二无线网络。In some embodiments of the present disclosure, if the communication device is the second terminal, creating the second wireless network includes: if the communication device is the second terminal, creating the second wireless network in response to a target control operation. In this embodiment, the user can manually create the second wireless network, so as to prevent misconnection, and when no target control operation is detected, the second wireless network is not created.
在本公开的一些实施例中,若所述通信设备为第二终端,创建第二无线网络,包括:若所述通信设备为第二终端且接收到所述第二终端通过所述第三通信连接发送的目标信息,响应于所述目标信息创建第二无线网络。在本实施例中,由第二终端发出请求,根据第二终端的请求创建第二无线网络,在第二终端没有发出请求的情况下可以不创建第二无线网络。In some embodiments of the present disclosure, if the communication device is a second terminal, creating a second wireless network includes: if the communication device is a second terminal and receiving the third communication from the second terminal through the second terminal The sent target information is connected, and a second wireless network is created in response to the target information. In this embodiment, the second terminal sends a request, and the second wireless network is created according to the request of the second terminal. If the second terminal does not send a request, the second wireless network may not be created.
为了更好的说明本公开实施例提出的终端的控制方法,以下以第一终端为手机,第二终端为显示设备(包括电视)为例进行说明。用户希望使用手机与显示设备进行连接以显示手机上的内容,相关技术中是通过局域网经路由器将数据投放到显示设备中,本实施例中,显示设备上显示二维码,手机通过扫描二维码的方式获取到显示设备的蓝牙信息,也可以是手机与显示设备直接用数据线连接从而获取到显示设备的蓝牙信息,采用这两种方式获取 到显示设备的蓝牙信息时没有经过任何第三方设备,从而避免了蓝牙信息被劫持篡改的风险,手机在获取到显示设备的蓝牙信息后,通过蓝牙与显示设备相互连接,手机建立有热点,通过蓝牙将手机建立的热点的名称和密码发送给显示设备,显示设备接收到热点的相关信息后自动连接到手机建立的热点上。在手机与显示设备断开无线直连之后,当再次需要将手机与显示设备相互连接时,只要手机与显示设备的蓝牙处于打开状态,即可自动建立蓝牙连接并传输第二网络信息,第二网络信息可以是第一终端建立的热点的相关信息,这样显示设备就可以自动连接到第一终端的热点上。显示设备不用输入信息,因此在手机与显示设备相互连接时,用户希望尽可能的避免在显示设备上输入任何信息,当本公开实施例提出的终端的控制方法适用于第二终端为显示设备的情况时,无需在显示设备上输入任何信息,即可实现手机与显示设备的互相连接,并且在首次蓝牙之后,当需要显示设备需要再次连接到手机的热点上时,手机与显示设备可以自动连接,无需用户再进行任何操作,大幅提高了用户的使用体验。In order to better illustrate the terminal control method proposed by the embodiments of the present disclosure, the following description takes the first terminal as a mobile phone and the second terminal as a display device (including a TV) as an example. The user wants to use the mobile phone to connect with the display device to display the content on the mobile phone. In the related art, the data is put into the display device through the local area network through the router. In this embodiment, the two-dimensional code is displayed on the display device, and the mobile phone scans the two-dimensional The bluetooth information of the display device can be obtained by means of code, or the mobile phone and the display device can be directly connected with a data cable to obtain the bluetooth information of the display device. The two methods are used to obtain the bluetooth information of the display device without going through any third party. device, thus avoiding the risk of bluetooth information being hijacked and tampered with. After the mobile phone obtains the bluetooth information of the display device, it connects with the display device through bluetooth, and the mobile phone establishes a hotspot. The display device automatically connects to the hotspot established by the mobile phone after receiving the relevant information of the hotspot. After the mobile phone and the display device are disconnected from the wireless direct connection, when the mobile phone and the display device need to be connected again, as long as the Bluetooth of the mobile phone and the display device are turned on, the Bluetooth connection can be automatically established and the second network information can be transmitted. The network information may be related information of the hotspot established by the first terminal, so that the display device can be automatically connected to the hotspot of the first terminal. The display device does not need to input information. Therefore, when the mobile phone and the display device are connected to each other, the user wants to avoid inputting any information on the display device as much as possible. In this case, the mobile phone and the display device can be connected to each other without entering any information on the display device. After the first Bluetooth connection, when the display device needs to be connected to the hotspot of the mobile phone again, the mobile phone and the display device can be automatically connected. , the user does not need to perform any operations, which greatly improves the user experience.
在本公开的一些实施例中还提出一种终端的控制方法,由第二终端执行,以下的第一终端和第二终端可以是上述任一实施例中的第一终端和第二终端,请参考图2,本实施例中的终端的控制方法,包括:Some embodiments of the present disclosure also propose a method for controlling a terminal, which is executed by a second terminal. The following first terminal and second terminal may be the first terminal and the second terminal in any of the above-mentioned embodiments. Please Referring to FIG. 2, the control method of the terminal in this embodiment includes:
S21:展示或向第一终端发送第二终端的网络标识信息。S21: Display or send the network identification information of the second terminal to the first terminal.
S22:基于第二终端的网络标识信息与第一终端建立第一通信连接;S22: Establish a first communication connection with the first terminal based on the network identification information of the second terminal;
S23:通过第一通信连接接收第一终端发送的第一无线网络的第一网络信息,基于第一网络信息与第一终端建立第二通信连接。S23: Receive first network information of the first wireless network sent by the first terminal through the first communication connection, and establish a second communication connection with the first terminal based on the first network information.
一些实施例中,第二终端例如可以是显示设备(电视等),第一终端例如可以是手机、平板等。第二终端通过展示或传输网络标识信息,从而可以使得第一终端标识第二终端,基于网络标识信息,第一终端和第二终端之间建立第一通信连接,第一通信连接可以是无线连接也可以是有线连接,再通过第一通信连接传输第一网络信息,例如从第一终端处接收第一网络信息,从而与第一终端进行无线连接,第二终端基于第一网络信息连接到第一终端建立的第一无线网络上,本公开的一些实施例中,第一终端与第二终端之间建立有两次连接,因此大幅度降低了数据劫持发生的可能性,同时,第二终端直接连接到第一终端建立的第一无线网络,因为没有经过任何第三方的网 络设备进行数据转发,从而防止了数据被窃听,提高了数据传输的安全性和隐蔽性,提高了使用体验。In some embodiments, the second terminal may be, for example, a display device (television, etc.), and the first terminal may be, for example, a mobile phone, a tablet, and the like. The second terminal displays or transmits the network identification information, so that the first terminal can identify the second terminal. Based on the network identification information, a first communication connection is established between the first terminal and the second terminal, and the first communication connection may be a wireless connection. It can also be a wired connection, and then the first network information is transmitted through the first communication connection, for example, the first network information is received from the first terminal, so as to perform a wireless connection with the first terminal, and the second terminal is connected to the first terminal based on the first network information. On the first wireless network established by a terminal, in some embodiments of the present disclosure, two connections are established between the first terminal and the second terminal, thus greatly reducing the possibility of data hijacking. Direct connection to the first wireless network established by the first terminal prevents data from being eavesdropped, improves the security and concealment of data transmission, and improves user experience because data is not forwarded through any third-party network device.
在本公开的一些实施例中,展示或向第一终端传输第二终端的网络标识信息,包括:通过显示信息码展示第二终端的网络标识信息。具体的,信息码可以是二维码或条形码,信息码中记录有第二终端的网络标识信息,通过显示信息码使得需要连接至第二终端的第一终端可以直接获取到第二终端的网络标识信息,防止网络标识信息被篡改。In some embodiments of the present disclosure, displaying or transmitting the network identification information of the second terminal to the first terminal includes: displaying the network identification information of the second terminal by displaying an information code. Specifically, the information code may be a two-dimensional code or a barcode. The information code records the network identification information of the second terminal. By displaying the information code, the first terminal that needs to be connected to the second terminal can directly obtain the network of the second terminal. Identification information to prevent network identification information from being tampered with.
在本公开的一些实施例中,第一终端与第二终端通过数据线直接连接;展示或向第一终端传输第二终端的网络标识信息,包括:通过数据线向第一终端发送网络标识信息。具体的,在本实施例中第一终端和第二终端直接通过数据线进行物理直连,不通过任何第三方设备进行数据的转发和传送,从而保证了第一终端所获取到的网络标识信息的准确性。In some embodiments of the present disclosure, the first terminal and the second terminal are directly connected through a data line; displaying or transmitting the network identification information of the second terminal to the first terminal includes: sending the network identification information to the first terminal through the data line . Specifically, in this embodiment, the first terminal and the second terminal are directly connected physically through a data cable, and data is not forwarded and transmitted through any third-party device, thereby ensuring the network identification information acquired by the first terminal. accuracy.
在本公开的一些实施例中,通过第一通信连接接收第一终端发送的第一无线网络的第一网络信息,基于第一网络信息与第一终端建立第二通信连接,包括:通过第一通信连接接收第一终端的热点信息,连接至第一终端的热点。具体的,一些实施例中,第一终端上建立有热点,第一网络信息中包括有热点的相关信息,例如热点的名称或密码,第一终端与第二终端建立第一通信连接后,第一终端将其建立的热点的相关信息发送给第二终端,因此第二终端可以通过该热点信息直接连接到第一终端建立的热点上,实现第二通信连接,本实施例中通过二次连接,大大降低了数据被篡改和监听的可能性,提高了数据传输的安全性。In some embodiments of the present disclosure, receiving the first network information of the first wireless network sent by the first terminal through the first communication connection, and establishing the second communication connection with the first terminal based on the first network information includes: The communication connection receives the hotspot information of the first terminal, and is connected to the hotspot of the first terminal. Specifically, in some embodiments, a hotspot is established on the first terminal, and the first network information includes relevant information of the hotspot, such as the name or password of the hotspot. After the first terminal establishes the first communication connection with the second terminal, the first A terminal sends the relevant information of the hotspot established by it to the second terminal, so the second terminal can directly connect to the hotspot established by the first terminal through the hotspot information to realize the second communication connection. In this embodiment, the secondary connection is used. , greatly reducing the possibility of data tampering and monitoring, and improving the security of data transmission.
在本公开的一些实施例中,第二终端的网络标识信息包括:第二终端的蓝牙信息;第一通信连接包括:蓝牙连接。具体的,一些实施例中,第二终端展示或传输其蓝牙信息,第一终端获取到第二终端的蓝牙信息之后与第二终端建立蓝牙连接,再通过蓝牙连接传输第一网络信息,蓝牙连接一方面功耗极低,另一方面使用距离近,因此可以保证第一终端与第一终端之间的间隔距离较近,减少数据被监听和篡改的可能。In some embodiments of the present disclosure, the network identification information of the second terminal includes: Bluetooth information of the second terminal; and the first communication connection includes: a Bluetooth connection. Specifically, in some embodiments, the second terminal displays or transmits its bluetooth information, the first terminal establishes a bluetooth connection with the second terminal after acquiring the bluetooth information of the second terminal, and then transmits the first network information through the bluetooth connection, and the bluetooth connection On the one hand, the power consumption is extremely low, and on the other hand, the use distance is short, so the distance between the first terminal and the first terminal can be guaranteed to be short, and the possibility of data being monitored and tampered can be reduced.
在本公开的一些实施例中,在与第一终端之间的通信连接断开之后,还包括:与所述第一终端建立第三通信连接;通过所述第三通信连接接收所述第一终端发送的第二无线网络的第二网络信息,基于所述第二网络信息与所 述第二终端建立第四通信连接;其中,所述第二无线网络由所述第一终端建立。具体的,一些实施例中,第一通信连接可以为蓝牙连接,第三通信连接也可以为蓝牙连接,只需要第一终端和第二终端的蓝牙处于打开状态,则第一终端与第二终端之间可以实现自动连接并自动传输第二网络信息,并自动再次建立第四通信连接,第二无线网络可以是第一终端的热点网络,第四通信连接可以热点连接,此时,每一次第一终端建立的热点的名称或密码可以相同或不同。本实施例中采用了蓝牙技术,蓝牙功耗极低,并且在首次无线直连后可以自动实现再次无线直连。In some embodiments of the present disclosure, after the communication connection with the first terminal is disconnected, the method further includes: establishing a third communication connection with the first terminal; receiving the first communication connection through the third communication connection The second network information of the second wireless network sent by the terminal establishes a fourth communication connection with the second terminal based on the second network information; wherein the second wireless network is established by the first terminal. Specifically, in some embodiments, the first communication connection may be a Bluetooth connection, and the third communication connection may also be a Bluetooth connection. As long as the Bluetooth of the first terminal and the second terminal are turned on, the first terminal and the second terminal Automatic connection and automatic transmission of second network information can be achieved between them, and a fourth communication connection can be automatically established again. The second wireless network can be the hotspot network of the first terminal, and the fourth communication connection can be a hotspot connection. The name or password of a hotspot established by a terminal may be the same or different. In this embodiment, the Bluetooth technology is used, the power consumption of the Bluetooth is extremely low, and the wireless direct connection can be automatically realized again after the first wireless direct connection.
在本公开的一些实施例中,第二终端保持蓝牙广播;可选的,第二终端在连接上电源时保持蓝牙广播。一些实施例中,第二终端在处于亮屏时,进行蓝牙广播,在亮屏状态表明用户想要使用第二终端,此时保持蓝牙广播可以在满足用户需要的同时降低功耗。In some embodiments of the present disclosure, the second terminal maintains the Bluetooth broadcast; optionally, the second terminal maintains the Bluetooth broadcast when connected to a power source. In some embodiments, the second terminal performs Bluetooth broadcasting when the screen is bright, and indicates that the user wants to use the second terminal in the bright screen state. At this time, maintaining the Bluetooth broadcasting can reduce power consumption while meeting user needs.
在本公开的一些实施例中,所述网络标识信息中包括所述第二终端的标识符,或者,在与所述第一终端建立有第一连接时,向所述第一终端发送所述第二终端的标识符;在与所述第一终端建立第三通信连接之后,还包括:向所述第一终端发送所述第二终端的标识符。在本实例中,当第二终端与第一终端建立第三通信连接之后,向第一终端发送器标识符,从而使得第一终端能够判断与第一终端连接的设备是否为第二终端。In some embodiments of the present disclosure, the network identification information includes an identifier of the second terminal, or, when a first connection is established with the first terminal, the network identification information is sent to the first terminal. The identifier of the second terminal; after establishing a third communication connection with the first terminal, the method further includes: sending the identifier of the second terminal to the first terminal. In this example, after the second terminal establishes the third communication connection with the first terminal, the identifier is sent to the first terminal, so that the first terminal can determine whether the device connected to the first terminal is the second terminal.
在本公开的一些实施例中,在通过所述第三通信连接接收所述第一终端创建的第二无线网络的第二网络信息之前,还包括:向所述第一终端发送目标信息,以使所述第一终端创建所述第二无线网络。在本实施例中,可以通过向第一终端发送目标信息的方式要求第一终端建立第二无线网络,从而根据需求与第一终端建立第四通信连接。In some embodiments of the present disclosure, before receiving the second network information of the second wireless network created by the first terminal through the third communication connection, the method further includes: sending target information to the first terminal to causing the first terminal to create the second wireless network. In this embodiment, the first terminal may be required to establish a second wireless network by sending target information to the first terminal, so as to establish a fourth communication connection with the first terminal as required.
如图3所示,在本公开的一些实施例中还提出一种终端的控制装置,用于控制第一终端,包括:As shown in FIG. 3 , in some embodiments of the present disclosure, a terminal control apparatus for controlling the first terminal is also provided, including:
获取单元10,用于获取需要连接的第二终端的网络标识信息。The obtaining unit 10 is configured to obtain the network identification information of the second terminal to be connected.
通信单元20,用于基于所述第二终端的网络标识信息与所述第二终端建立第一通信连接。The communication unit 20 is configured to establish a first communication connection with the second terminal based on the network identification information of the second terminal.
网络单元30,用于创建第一无线网络。The network unit 30 is used to create a first wireless network.
连接单元40,用于通过所述第一通信连接向第二终端发送所述第一无线网络的第一网络信息,以使所述第二终端基于所述第一网络信息与所述第一终端建立第二通信连接。A connection unit 40, configured to send the first network information of the first wireless network to the second terminal through the first communication connection, so that the second terminal can communicate with the first terminal based on the first network information A second communication connection is established.
一些实施例中,获取单元10获取需要连接的第二终端的网络标识信息,包括:通过扫描所述第二终端所显示的信息码获取所述第二终端的网络标识信息。In some embodiments, the acquiring unit 10 acquiring the network identification information of the second terminal to be connected includes: acquiring the network identification information of the second terminal by scanning an information code displayed by the second terminal.
一些实施例中,所述第一终端与所述第二终端通过数据线连接;获取单元10获取需要连接的第二终端的网络标识信息,包括:通过所述数据线接收所述第二终端的网络标识信息。In some embodiments, the first terminal and the second terminal are connected through a data line; the obtaining unit 10 obtains the network identification information of the second terminal to be connected, including: receiving the data of the second terminal through the data line. Network identification information.
一些实施例中,连接单元40用于通过所述第一通信连接发送所述第一终端的热点信息,以使所述第二终端连接至所述第一终端的热点。In some embodiments, the connection unit 40 is configured to send the hotspot information of the first terminal through the first communication connection, so that the second terminal is connected to the hotspot of the first terminal.
一些实施例中,所述第二终端的网络标识信息包括:所述第二终端的蓝牙信息;所述第一通信连接包括:蓝牙连接。In some embodiments, the network identification information of the second terminal includes: Bluetooth information of the second terminal; and the first communication connection includes: a Bluetooth connection.
一些实施例中,通信单元20还用于在与所述第二终端之间的通信连接断开之后,与通信设备建立第三通信连接;还包括判断单元,用于判断所述通信设备是否为所述第二终端;网络单元30还用于若所述通信设备是所述第二终端,创建第二无线网络;连接单元40还用于通过所述第三通信连接发送第二无线网络的第二网络信息,以使所述第二终端基于所述第二网络信息与所述第二终端建立第四通信连接。In some embodiments, the communication unit 20 is further configured to establish a third communication connection with the communication device after the communication connection with the second terminal is disconnected; further includes a determination unit for determining whether the communication device is a the second terminal; the network unit 30 is further configured to create a second wireless network if the communication device is the second terminal; the connecting unit 40 is further configured to send the first information of the second wireless network through the third communication connection. two network information, so that the second terminal establishes a fourth communication connection with the second terminal based on the second network information.
一些实施例中,所述第二终端的网络标识信息中包括第二终端的标识符,或者,在所述第一终端与第二终端间建立有第一通信连接时,从所述第二终端获取所述第二终端的标识符。In some embodiments, the network identification information of the second terminal includes the identifier of the second terminal, or, when a first communication connection is established between the first terminal and the second terminal, the second terminal is sent from the second terminal. Obtain the identifier of the second terminal.
一些实施例中,判断单元判断所述通信设备是否为所述第二终端,包括:获取所述通信设备的标识符,根据所述通信设备的标识符和所述第二终端的标识符确定所述通信设备是否为所述第二终端。In some embodiments, the judging unit judging whether the communication device is the second terminal includes: acquiring an identifier of the communication device, and determining the communication device according to the identifier of the communication device and the identifier of the second terminal. whether the communication device is the second terminal.
一些实施例中,若所述通信设备为第二终端,网络单元30创建第二无线网络,包括:若所述通信设备为第二终端,自动创建第二无线网络;或者,若所述通信设备为第二终端,响应于目标控制操作创建第二无线网络;或者,若所述通信设备为第二终端且接收到所述第二终端通过所述第三通信连接发送的目标信息,响应于所述目标信息创建第二无线网络。In some embodiments, if the communication device is a second terminal, the network unit 30 creates a second wireless network, including: if the communication device is a second terminal, automatically creating a second wireless network; or, if the communication device is a second terminal Create a second wireless network for the second terminal in response to the target control operation; or, if the communication device is a second terminal and receives the target information sent by the second terminal through the third communication connection, in response to the The target information is used to create a second wireless network.
一些实施例中,所述第三通信连接包括:蓝牙连接。一些实施例中,所述第二无线网络包括:所述第一终端创建的热点。In some embodiments, the third communication connection includes a Bluetooth connection. In some embodiments, the second wireless network includes: a hotspot created by the first terminal.
如图4所示,在本公开的一些实施例中还提出一种终端的控制装置,用于控制第二终端,包括:As shown in FIG. 4 , in some embodiments of the present disclosure, a terminal control apparatus for controlling a second terminal is further provided, including:
输出模块50,用于展示或向第一终端传输所述第二终端的网络标识信息;An output module 50, configured to display or transmit the network identification information of the second terminal to the first terminal;
通信模块60,用于基于所述第二终端的网络标识信息与所述第一终端建立第一通信连接;a communication module 60, configured to establish a first communication connection with the first terminal based on the network identification information of the second terminal;
连接模块70,用于通过所述第一通信连接接收所述第一终端发送的第一无线网络的第一网络信息,基于所述第一网络信息与第一终端建立第二通信连接;其中,所述第一无线网络由所述第一终端建立。A connection module 70, configured to receive the first network information of the first wireless network sent by the first terminal through the first communication connection, and establish a second communication connection with the first terminal based on the first network information; wherein, The first wireless network is established by the first terminal.
一些实施例中,输出模块50展示或向第一终端发送所述第二终端的网络标识信息,包括:通过显示信息码展示所述第二终端的网络标识信息。In some embodiments, the outputting module 50 displaying or sending the network identification information of the second terminal to the first terminal includes: displaying the network identification information of the second terminal by displaying an information code.
一些实施例中,所述第一终端与所述第二终端通过数据线连接;输出模块50展示或向第一终端发送所述第二终端的网络标识信息,包括:通过所述数据线向所述第一终端发送所述第二终端的网络标识信息。In some embodiments, the first terminal and the second terminal are connected through a data line; the output module 50 displays or sends the network identification information of the second terminal to the first terminal, including: sending the network identification information to the second terminal through the data line. The first terminal sends the network identification information of the second terminal.
一些实施例中,输出模块50通过所述第一通信连接接收所述第一终端发送的第一无线网络的第一网络信息,基于所述第一网络信息与第一终端建立第二通信连接,包括:通过所述第一通信连接接收所述第一终端的热点信息,连接至所述第一终端的热点。In some embodiments, the output module 50 receives the first network information of the first wireless network sent by the first terminal through the first communication connection, and establishes a second communication connection with the first terminal based on the first network information, The method includes: receiving the hotspot information of the first terminal through the first communication connection, and connecting to the hotspot of the first terminal.
一些实施例中,所述第二终端的网络标识信息包括:所述第二终端的蓝牙信息;所述第一通信连接包括:蓝牙连接。In some embodiments, the network identification information of the second terminal includes: Bluetooth information of the second terminal; and the first communication connection includes: a Bluetooth connection.
一些实施例中,连接模块70还用于在与第一终端之间的通信连接断开之后,与所述第一终端建立第三通信连接;通过所述第三通信连接接收所述第一终端发送的第二无线网络的第二网络信息,基于所述第二网络信息与所述第二终端建立第四通信连接;其中,所述第二无线网络由所述第一终端建立。In some embodiments, the connection module 70 is further configured to establish a third communication connection with the first terminal after the communication connection with the first terminal is disconnected; receive the first terminal through the third communication connection The sent second network information of the second wireless network establishes a fourth communication connection with the second terminal based on the second network information; wherein the second wireless network is established by the first terminal.
一些实施例中,所述第二终端的网络标识信息中包括所述第二终端的标识符,或者,在与所述第一终端建立有第一连接时,向所述第一终端发送所述第二终端的标识符;In some embodiments, the network identification information of the second terminal includes the identifier of the second terminal, or, when a first connection is established with the first terminal, the network identifier is sent to the first terminal. an identifier of the second terminal;
连接模块70还用于在与所述第一终端建立第三通信连接之后,向所述第一终端发送所述第二终端的标识符。The connection module 70 is further configured to send the identifier of the second terminal to the first terminal after establishing a third communication connection with the first terminal.
一些实施例中,连接模块70还用于在通过所述第三通信连接接收所述第一终端创建的第二无线网络的第二网络信息之前,向所述第一终端发送目标信息,以使所述第一终端创建所述第二无线网络。In some embodiments, the connection module 70 is further configured to send target information to the first terminal before receiving the second network information of the second wireless network created by the first terminal through the third communication connection, so that The first terminal creates the second wireless network.
一些实施例中,所述第三通信连接包括:蓝牙连接。一些实施例中,所述第二无线网络包括:所述第一终端建立的热点。In some embodiments, the third communication connection includes a Bluetooth connection. In some embodiments, the second wireless network includes: a hotspot established by the first terminal.
对于装置的实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离模块说明的模块可以是或者也可以不是分开的。可以基于实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。For the embodiments of the apparatus, since they basically correspond to the method embodiments, reference may be made to the partial descriptions of the method embodiments for related parts. The apparatus embodiments described above are merely illustrative, wherein the modules described as separate modules may or may not be separate. Some or all of the modules may be selected based on actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.
以上,基于实施例和应用例说明了本公开的方法及装置。此外,本公开还提供一种终端及存储介质,以下说明这些终端和存储介质。In the above, the method and apparatus of the present disclosure have been described based on the embodiments and application examples. In addition, the present disclosure also provides a terminal and a storage medium, which are described below.
下面参考图5,其示出了适于用来实现本公开实施例的电子设备(例如终端设备或服务器)800的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图中示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring next to FIG. 5 , it shows a schematic structural diagram of an electronic device (eg, a terminal device or a server) 800 suitable for implementing an embodiment of the present disclosure. Terminal devices in the embodiments of the present disclosure may include, but are not limited to, such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (eg, mobile terminals such as in-vehicle navigation terminals), etc., and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in the figure is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
电子设备800可以包括处理装置(例如中央处理器、图形处理器等)801,其可以基于存储在只读存储器(ROM)802中的程序或者从存储装置808加载到随机访问存储器(RAM)803中的程序而执行各种适当的动作和处理。在RAM803中,还存储有电子设备800操作所需的各种程序和数据。处理装置801、ROM 802以及RAM 803通过总线804彼此相连。输入/输出(I/O)接口805也连接至总线804。 Electronic device 800 may include processing means (eg, central processing unit, graphics processor, etc.) 801 that may be based on a program stored in read only memory (ROM) 802 or loaded into random access memory (RAM) 803 from storage means 808 program to perform various appropriate actions and processes. In the RAM 803, various programs and data necessary for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804. An input/output (I/O) interface 805 is also connected to bus 804 .
通常,以下装置可以连接至I/O接口805:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置806;包括例如液晶显示设备(LCD)、扬声器、振动器等的输出装置807;包括例如磁带、硬盘等的存储装置808;以及通信装置809。通信装置809可以允许电子设备800与其他设备进行无线或有线通信以交换数据。虽然图中 示出了具有各种装置的电子设备800,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices can be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, An output device 807 of a vibrator or the like; a storage device 808 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 809 . Communication means 809 may allow electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. Although the figures show electronic device 800 having various means, it should be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
特别地,基于本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置809从网络上被下载和安装,或者从存储装置808被安装,或者从ROM 802被安装。在该计算机程序被处理装置801执行时,执行本公开实施例的方法中限定的上述功能。In particular, the processes described above with reference to the flowcharts may be implemented as computer software programs based on embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication device 809, or from the storage device 808, or from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, electrical wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通 信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, clients and servers can communicate using any currently known or future developed network protocols such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium. Communication (eg, a communication network) interconnects. Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet (eg, the Internet), and peer-to-peer networks (eg, ad hoc peer-to-peer networks), as well as any currently known or future development network of.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or may exist alone without being assembled into the electronic device.
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备执行上述的本公开的方法。The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to execute the aforementioned method of the present disclosure.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional Procedural programming language - such as the "C" language or similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments of the present disclosure may be implemented in a software manner, and may also be implemented in a hardware manner. Among them, the name of the unit does not constitute a limitation of the unit itself under certain circumstances.
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chips (SOCs), Complex Programmable Logical Devices (CPLDs) and more.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with the instruction execution system, apparatus or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
基于本公开的一个或多个实施例,提供了一种终端的控制方法,由第一终端执行,包括:Based on one or more embodiments of the present disclosure, a method for controlling a terminal is provided, executed by a first terminal, including:
获取需要连接的第二终端的网络标识信息;obtaining the network identification information of the second terminal to be connected;
基于所述第二终端的网络标识信息与所述第二终端建立第一通信连接;establishing a first communication connection with the second terminal based on the network identification information of the second terminal;
创建第一无线网络;create a first wireless network;
通过所述第一通信连接向所述第二终端发送所述第一无线网络的第一网络信息,以使所述第二终端基于所述第一网络信息与所述第一终端建立第二通信连接。Send the first network information of the first wireless network to the second terminal through the first communication connection, so that the second terminal establishes a second communication with the first terminal based on the first network information connect.
基于本公开的一个或多个实施例,提供了一种终端的控制方法,获取需要连接的第二终端的网络标识信息,包括:Based on one or more embodiments of the present disclosure, a method for controlling a terminal is provided, which acquires network identification information of a second terminal to be connected, including:
通过扫描所述第二终端所显示的信息码获取所述第二终端的网络标识信息。Obtain the network identification information of the second terminal by scanning the information code displayed by the second terminal.
基于本公开的一个或多个实施例,提供了一种终端的控制方法,所述第一终端与所述第二终端通过数据线连接;Based on one or more embodiments of the present disclosure, a method for controlling a terminal is provided, wherein the first terminal and the second terminal are connected through a data line;
获取需要连接的第二终端的网络标识信息,包括:通过所述数据线接收所述第二终端的网络标识信息。Acquiring the network identification information of the second terminal to be connected includes: receiving the network identification information of the second terminal through the data line.
基于本公开的一个或多个实施例,提供了一种终端的控制方法,通过所述第一通信连接发送所述第一无线网络的第一网络信息,以使所述第二终端基于所述第一网络信息与所述第一终端建立第二通信连接,包括:Based on one or more embodiments of the present disclosure, a method for controlling a terminal is provided, wherein first network information of the first wireless network is sent through the first communication connection, so that the second terminal is based on the The first network information establishes a second communication connection with the first terminal, including:
通过所述第一通信连接发送所述第一终端的热点信息,以使所述第二终端连接至所述第一终端的热点。The hotspot information of the first terminal is sent through the first communication connection, so that the second terminal is connected to the hotspot of the first terminal.
基于本公开的一个或多个实施例,提供了一种终端的控制方法,所述第二终端的网络标识信息包括:所述第二终端的蓝牙信息;Based on one or more embodiments of the present disclosure, a method for controlling a terminal is provided, where the network identification information of the second terminal includes: Bluetooth information of the second terminal;
所述第一通信连接包括:蓝牙连接。The first communication connection includes: a Bluetooth connection.
基于本公开的一个或多个实施例,提供了一种终端的控制方法,还包括:Based on one or more embodiments of the present disclosure, a method for controlling a terminal is provided, further comprising:
在与所述第二终端之间的通信连接断开之后,与通信设备建立第三通信连接;After the communication connection with the second terminal is disconnected, establish a third communication connection with the communication device;
判断所述通信设备是否为所述第二终端;determining whether the communication device is the second terminal;
若所述通信设备是所述第二终端,创建第二无线网络;If the communication device is the second terminal, creating a second wireless network;
通过所述第三通信连接发送第二无线网络的第二网络信息,以使所述第二终端基于所述第二网络信息与所述第二终端建立第四通信连接。The second network information of the second wireless network is sent through the third communication connection, so that the second terminal establishes a fourth communication connection with the second terminal based on the second network information.
基于本公开的一个或多个实施例,提供了一种终端的控制方法,所述网络标识信息中包括第二终端的标识符,或者,在所述第一终端与第二终端间建立有第一通信连接时,从所述第二终端获取所述第二终端的标识符;Based on one or more embodiments of the present disclosure, a method for controlling a terminal is provided, wherein the network identification information includes an identifier of a second terminal, or a first terminal is established between the first terminal and the second terminal During a communication connection, acquiring the identifier of the second terminal from the second terminal;
所述判断所述通信设备是否为第二终端,包括:获取所述通信设备的标识符,根据所述通信设备的标识符和所述第二终端的标识符确定所述通信设备是否为所述第二终端。The judging whether the communication device is the second terminal includes: acquiring an identifier of the communication device, and determining whether the communication device is the communication device according to the identifier of the communication device and the identifier of the second terminal second terminal.
基于本公开的一个或多个实施例,提供了一种终端的控制方法,若所述通信设备为第二终端,创建第二无线网络,包括:Based on one or more embodiments of the present disclosure, a method for controlling a terminal is provided. If the communication device is a second terminal, creating a second wireless network includes:
若所述通信设备为第二终端,自动创建第二无线网络;或者,If the communication device is a second terminal, automatically create a second wireless network; or,
若所述通信设备为第二终端,响应于目标控制操作创建第二无线网络;或者,If the communication device is a second terminal, create a second wireless network in response to the target control operation; or,
若所述通信设备为第二终端且接收到所述第二终端通过所述第三通信连接发送的目标信息,响应于所述目标信息创建第二无线网络。If the communication device is a second terminal and receives target information sent by the second terminal through the third communication connection, a second wireless network is created in response to the target information.
基于本公开的一个或多个实施例,提供了一种终端的控制方法,所述第三通信连接包括:蓝牙连接;和/或,所述第二无线网络包括:所述第一终端创建的热点。Based on one or more embodiments of the present disclosure, a method for controlling a terminal is provided, wherein the third communication connection includes: a Bluetooth connection; and/or the second wireless network includes: a network created by the first terminal hot spot.
基于本公开的一个或多个实施例,提供了一种终端的控制方法,由第二终端执行,包括:Based on one or more embodiments of the present disclosure, a method for controlling a terminal is provided, executed by a second terminal, including:
展示或向第一终端发送所述第二终端的网络标识信息;displaying or sending the network identification information of the second terminal to the first terminal;
基于所述第二终端的网络标识信息与所述第一终端建立第一通信连接;establishing a first communication connection with the first terminal based on the network identification information of the second terminal;
通过所述第一通信连接接收所述第一终端发送的第一无线网络的第一网络信息,基于所述第一网络信息与所述第一终端建立第二通信连接;receiving first network information of the first wireless network sent by the first terminal through the first communication connection, and establishing a second communication connection with the first terminal based on the first network information;
其中,所述第一无线网络由所述第一终端建立。Wherein, the first wireless network is established by the first terminal.
基于本公开的一个或多个实施例,提供了一种终端的控制方法,展示或向第一终端发送所述第二终端的网络标识信息,包括:Based on one or more embodiments of the present disclosure, a method for controlling a terminal is provided, displaying or sending the network identification information of the second terminal to the first terminal, including:
通过显示信息码展示所述第二终端的网络标识信息;Display the network identification information of the second terminal by displaying the information code;
基于本公开的一个或多个实施例,提供了一种终端的控制方法,所述第一终端与所述第二终端通过数据线连接;展示或向第一终端发送所述第二终端的网络标识信息,包括:通过所述数据线向所述第一终端发送所述第二终端的网络标识信息。Based on one or more embodiments of the present disclosure, a method for controlling a terminal is provided, wherein the first terminal is connected to the second terminal through a data line; the network of the second terminal is displayed or sent to the first terminal The identification information includes: sending the network identification information of the second terminal to the first terminal through the data line.
基于本公开的一个或多个实施例,提供了一种终端的控制方法,通过所述第一通信连接接收所述第一终端发送的第一无线网络的第一网络信息,基于所述第一网络信息与第一终端建立第二通信连接,包括:通过所述第一通信连接接收所述第一终端的热点信息,连接至所述第一终端的热点。Based on one or more embodiments of the present disclosure, a method for controlling a terminal is provided, wherein first network information of a first wireless network sent by the first terminal is received through the first communication connection, based on the first communication connection. The network information establishing a second communication connection with the first terminal includes: receiving hotspot information of the first terminal through the first communication connection, and connecting to the hotspot of the first terminal.
基于本公开的一个或多个实施例,提供了一种终端的控制方法,所述第二终端的网络标识信息包括:所述第二终端的蓝牙信息;所述第一通信连接包括:蓝牙连接。Based on one or more embodiments of the present disclosure, a method for controlling a terminal is provided, wherein the network identification information of the second terminal includes: Bluetooth information of the second terminal; the first communication connection includes: a Bluetooth connection .
基于本公开的一个或多个实施例,提供了一种终端的控制方法,还包括:Based on one or more embodiments of the present disclosure, a method for controlling a terminal is provided, further comprising:
在与第一终端之间的通信连接断开之后,与所述第一终端建立第三通信连接;After the communication connection with the first terminal is disconnected, establish a third communication connection with the first terminal;
通过所述第三通信连接接收所述第一终端发送的第二无线网络的第二网络信息,基于所述第二网络信息与所述第二终端建立第四通信连接;Receive second network information of the second wireless network sent by the first terminal through the third communication connection, and establish a fourth communication connection with the second terminal based on the second network information;
其中,所述第二无线网络由所述第一终端建立。Wherein, the second wireless network is established by the first terminal.
基于本公开的一个或多个实施例,提供了一种终端的控制方法,所述网络标识信息中包括所述第二终端的标识符,或者,在与所述第一终端建立有第一连接时,向所述第一终端发送所述第二终端的标识符;Based on one or more embodiments of the present disclosure, a method for controlling a terminal is provided, wherein the network identification information includes an identifier of the second terminal, or, when a first connection is established with the first terminal When , sending the identifier of the second terminal to the first terminal;
在与所述第一终端建立第三通信连接之后,还包括:向所述第一终端发送所述第二终端的标识符。After establishing a third communication connection with the first terminal, the method further includes: sending the identifier of the second terminal to the first terminal.
基于本公开的一个或多个实施例,提供了一种终端的控制方法,在通过所述第三通信连接接收所述第一终端创建的第二无线网络的第二网络信息之前,还包括:向所述第一终端发送目标信息,以使所述第一终端创建所述第二无线网络。Based on one or more embodiments of the present disclosure, a method for controlling a terminal is provided. Before receiving the second network information of the second wireless network created by the first terminal through the third communication connection, the method further includes: Sending target information to the first terminal, so that the first terminal creates the second wireless network.
基于本公开的一个或多个实施例,提供了一种终端的控制方法,所述第三通信连接包括:蓝牙连接;Based on one or more embodiments of the present disclosure, a method for controlling a terminal is provided, wherein the third communication connection includes: a Bluetooth connection;
和/或,所述第二无线网络包括:所述第一终端建立的热点。And/or, the second wireless network includes: a hotspot established by the first terminal.
基于本公开的一个或多个实施例,提供了一种终端的控制装置,用于控制第一终端,包括:Based on one or more embodiments of the present disclosure, there is provided a terminal control apparatus for controlling a first terminal, including:
获取单元,用于获取需要连接的第二终端的网络标识信息;an obtaining unit for obtaining the network identification information of the second terminal to be connected;
通信单元,用于基于所述第二终端的网络标识信息与所述第二终端建立第一通信连接;a communication unit, configured to establish a first communication connection with the second terminal based on the network identification information of the second terminal;
网络单元,用于创建第一无线网络;a network unit for creating a first wireless network;
连接单元,用于通过所述第一通信连接向第二终端发送所述第一无线网络的第一网络信息,以使所述第二终端基于所述第一网络信息与所述第一终端建立第二通信连接。a connection unit, configured to send first network information of the first wireless network to a second terminal through the first communication connection, so that the second terminal can establish a connection with the first terminal based on the first network information A second communication connection.
基于本公开的一个或多个实施例,提供了一种终端的控制装置,用于控制第二终端,包括:Based on one or more embodiments of the present disclosure, there is provided a terminal control apparatus for controlling a second terminal, including:
输出模块,用于展示或向第一终端发送第二终端的网络标识信息;an output module for displaying or sending the network identification information of the second terminal to the first terminal;
通信模块,用于基于所述第二终端的网络标识信息与所述第一终端建立第一通信连接;a communication module, configured to establish a first communication connection with the first terminal based on the network identification information of the second terminal;
连接模块,用于通过所述第一通信连接接收所述第一终端发送的第一无线网络的第一网络信息,基于所述第一网络信息与第一终端建立第二通信连接;其中,所述第一无线网络由所述第一终端建立。a connection module, configured to receive the first network information of the first wireless network sent by the first terminal through the first communication connection, and establish a second communication connection with the first terminal based on the first network information; wherein, the The first wireless network is established by the first terminal.
基于本公开的一个或多个实施例,提供了一种终端,包括:至少一个存储器和至少一个处理器;Based on one or more embodiments of the present disclosure, a terminal is provided, including: at least one memory and at least one processor;
其中,所述至少一个存储器用于存储程序代码,所述至少一个处理器用于调用所述至少一个存储器所存储的程序代码执行上述中任一项所述的方法。Wherein, the at least one memory is used for storing program codes, and the at least one processor is used for calling the program codes stored in the at least one memory to execute any one of the methods described above.
基于本公开的一个或多个实施例,提供了一种存储介质,所述存储介质用于存储程序代码,所述程序代码用于执行上述的方法。Based on one or more embodiments of the present disclosure, a storage medium is provided, where the storage medium is used for storing a program code, and the program code is used for executing the above-mentioned method.
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, and should also cover, without departing from the above-mentioned disclosed concept, the technical solutions formed by the above-mentioned technical features or Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above features with the technical features disclosed in the present disclosure (but not limited to) with similar functions.
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。Additionally, although operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, although the above discussion contains several implementation-specific details, these should not be construed as limitations on the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。Although the subject matter has been described in language specific to structural features and/or logical acts of method, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims (22)

  1. 一种终端的控制方法,由第一终端执行,其特征在于,包括:A method for controlling a terminal, executed by a first terminal, is characterized in that, comprising:
    获取需要连接的第二终端的网络标识信息;obtaining the network identification information of the second terminal to be connected;
    基于所述第二终端的网络标识信息与所述第二终端建立第一通信连接;establishing a first communication connection with the second terminal based on the network identification information of the second terminal;
    创建第一无线网络;create a first wireless network;
    通过所述第一通信连接向所述第二终端发送所述第一无线网络的第一网络信息,以使所述第二终端基于所述第一网络信息与所述第一终端建立第二通信连接。Send the first network information of the first wireless network to the second terminal through the first communication connection, so that the second terminal establishes a second communication with the first terminal based on the first network information connect.
  2. 根据权利要求1所述的终端的控制方法,其特征在于,获取需要连接的第二终端的网络标识信息,包括:The method for controlling a terminal according to claim 1, wherein acquiring the network identification information of the second terminal to be connected comprises:
    通过扫描所述第二终端所显示的信息码获取所述第二终端的网络标识信息。Obtain the network identification information of the second terminal by scanning the information code displayed by the second terminal.
  3. 根据权利要求1所述的终端的控制方法,其特征在于,The method for controlling a terminal according to claim 1, wherein,
    所述第一终端与所述第二终端通过数据线连接;the first terminal and the second terminal are connected through a data line;
    获取需要连接的第二终端的网络标识信息,包括:通过所述数据线接收所述第二终端的网络标识信息。Acquiring the network identification information of the second terminal to be connected includes: receiving the network identification information of the second terminal through the data line.
  4. 根据权利要求1所述的终端的控制方法,其特征在于,通过所述第一通信连接发送所述第一无线网络的第一网络信息,以使所述第二终端基于所述第一网络信息与所述第一终端建立第二通信连接,包括:The method for controlling a terminal according to claim 1, wherein first network information of the first wireless network is sent through the first communication connection, so that the second terminal is based on the first network information Establishing a second communication connection with the first terminal, including:
    通过所述第一通信连接发送所述第一终端的热点信息,以使所述第二终端连接至所述第一终端的热点。The hotspot information of the first terminal is sent through the first communication connection, so that the second terminal is connected to the hotspot of the first terminal.
  5. 根据权利要求1所述的终端的控制方法,其特征在于,The method for controlling a terminal according to claim 1, wherein,
    所述第二终端的网络标识信息包括:所述第二终端的蓝牙信息;The network identification information of the second terminal includes: Bluetooth information of the second terminal;
    所述第一通信连接包括:蓝牙连接。The first communication connection includes: a Bluetooth connection.
  6. 根据权利要求1-5任一项所述的终端的控制方法,其特征在于,还包括:The method for controlling a terminal according to any one of claims 1-5, further comprising:
    在与所述第二终端之间的通信连接断开之后,与通信设备建立第三通信连接;After the communication connection with the second terminal is disconnected, establish a third communication connection with the communication device;
    判断所述通信设备是否为所述第二终端;determining whether the communication device is the second terminal;
    若所述通信设备是所述第二终端,创建第二无线网络;If the communication device is the second terminal, creating a second wireless network;
    通过所述第三通信连接发送第二无线网络的第二网络信息,以使所述第二终端基于所述第二网络信息与所述第二终端建立第四通信连接。The second network information of the second wireless network is sent through the third communication connection, so that the second terminal establishes a fourth communication connection with the second terminal based on the second network information.
  7. 根据权利要求6所述的终端的控制方法,其特征在于,The method for controlling a terminal according to claim 6, wherein,
    所述第二终端的网络标识信息中包括第二终端的标识符,或者,在所述第一终端与第二终端间建立有第一通信连接时,从所述第二终端获取所述第二终端的标识符;The network identification information of the second terminal includes the identifier of the second terminal, or, when a first communication connection is established between the first terminal and the second terminal, the second terminal is obtained from the second terminal. the identifier of the terminal;
    所述判断所述通信设备是否为所述第二终端,包括:获取所述通信设备的标识符,根据所述通信设备的标识符和所述第二终端的标识符确定所述通信设备是否为所述第二终端。The judging whether the communication device is the second terminal includes: acquiring the identifier of the communication device, and determining whether the communication device is the communication device according to the identifier of the communication device and the identifier of the second terminal the second terminal.
  8. 根据权利要求6所述的终端的控制方法,其特征在于,若所述通信设备为第二终端,创建第二无线网络,包括:The method for controlling a terminal according to claim 6, wherein, if the communication device is a second terminal, creating a second wireless network includes:
    若所述通信设备为第二终端,自动创建第二无线网络;或者,If the communication device is a second terminal, automatically create a second wireless network; or,
    若所述通信设备为第二终端,响应于目标控制操作创建第二无线网络;或者,If the communication device is a second terminal, create a second wireless network in response to the target control operation; or,
    若所述通信设备为第二终端且接收到所述第二终端通过所述第三通信连接发送的目标信息,响应于所述目标信息创建第二无线网络。If the communication device is a second terminal and receives target information sent by the second terminal through the third communication connection, a second wireless network is created in response to the target information.
  9. 根据权利要求6所述的终端的控制方法,其特征在于,The method for controlling a terminal according to claim 6, wherein,
    所述第三通信连接包括:蓝牙连接;和/或,The third communication connection includes: a Bluetooth connection; and/or,
    所述第二无线网络包括:所述第一终端创建的热点。The second wireless network includes: a hotspot created by the first terminal.
  10. 一种终端的控制方法,由第二终端执行,其特征在于,包括:A method for controlling a terminal, executed by a second terminal, is characterized in that, comprising:
    展示或向第一终端发送所述第二终端的网络标识信息;displaying or sending the network identification information of the second terminal to the first terminal;
    基于所述第二终端的网络标识信息与所述第一终端建立第一通信连接;establishing a first communication connection with the first terminal based on the network identification information of the second terminal;
    通过所述第一通信连接接收所述第一终端发送的第一无线网络的第一网络信息,基于所述第一网络信息与所述第一终端建立第二通信连接;receiving first network information of the first wireless network sent by the first terminal through the first communication connection, and establishing a second communication connection with the first terminal based on the first network information;
    其中,所述第一无线网络由所述第一终端建立。Wherein, the first wireless network is established by the first terminal.
  11. 根据权利要求10所述的终端的控制方法,其特征在于,展示或向第一终端发送所述第二终端的网络标识信息,包括:The method for controlling a terminal according to claim 10, wherein displaying or sending the network identification information of the second terminal to the first terminal comprises:
    通过显示信息码展示所述第二终端的网络标识信息。Display the network identification information of the second terminal by displaying the information code.
  12. 根据权利要求10所述的终端的控制方法,其特征在于,The method for controlling a terminal according to claim 10, wherein,
    所述第一终端与所述第二终端通过数据线连接;the first terminal and the second terminal are connected through a data line;
    展示或向第一终端发送所述第二终端的网络标识信息,包括:通过所述数据线向所述第一终端发送所述第二终端的网络标识信息。Displaying or sending the network identification information of the second terminal to the first terminal includes: sending the network identification information of the second terminal to the first terminal through the data line.
  13. 根据权利要求10所述的终端的控制方法,其特征在于,通过所述第一通信连接接收所述第一终端发送的第一无线网络的第一网络信息,基于所述第一网络信息与第一终端建立第二通信连接,包括:The method for controlling a terminal according to claim 10, wherein receiving the first network information of the first wireless network sent by the first terminal through the first communication connection, based on the first network information and the first network information A terminal establishes a second communication connection, including:
    通过所述第一通信连接接收所述第一终端的热点信息,连接至所述第一终端的热点。Receive hotspot information of the first terminal through the first communication connection, and connect to the hotspot of the first terminal.
  14. 根据权利要求10所述的终端的控制方法,其特征在于,The method for controlling a terminal according to claim 10, wherein,
    所述第二终端的网络标识信息包括:所述第二终端的蓝牙信息;The network identification information of the second terminal includes: Bluetooth information of the second terminal;
    所述第一通信连接包括:蓝牙连接。The first communication connection includes: a Bluetooth connection.
  15. 根据权利要求10-14任一项所述的终端的控制方法,其特征在于,还包括:The method for controlling a terminal according to any one of claims 10-14, further comprising:
    在与第一终端之间的通信连接断开之后,与所述第一终端建立第三通信连接;After the communication connection with the first terminal is disconnected, establish a third communication connection with the first terminal;
    通过所述第三通信连接接收所述第一终端发送的第二无线网络的第二网络信息,基于所述第二网络信息与所述第二终端建立第四通信连接;Receive second network information of the second wireless network sent by the first terminal through the third communication connection, and establish a fourth communication connection with the second terminal based on the second network information;
    其中,所述第二无线网络由所述第一终端建立。Wherein, the second wireless network is established by the first terminal.
  16. 根据权利要求15所述的终端的控制方法,其特征在于,The method for controlling a terminal according to claim 15, wherein:
    所述第二终端的网络标识信息中包括所述第二终端的标识符,或者,在与所述第一终端建立有第一连接时,向所述第一终端发送所述第二终端的标识符;The network identification information of the second terminal includes the identifier of the second terminal, or, when a first connection is established with the first terminal, sending the identifier of the second terminal to the first terminal symbol;
    在与所述第一终端建立第三通信连接之后,还包括:向所述第一终端发送所述第二终端的标识符。After establishing a third communication connection with the first terminal, the method further includes: sending the identifier of the second terminal to the first terminal.
  17. 根据权利要求15所述的终端的控制方法,其特征在于,在通过所述第三通信连接接收所述第一终端创建的第二无线网络的第二网络信息之前,还包括:The method for controlling a terminal according to claim 15, before receiving the second network information of the second wireless network created by the first terminal through the third communication connection, further comprising:
    向所述第一终端发送目标信息,以使所述第一终端创建所述第二无线网络。Sending target information to the first terminal, so that the first terminal creates the second wireless network.
  18. 根据权利要求15所述的终端的控制方法,其特征在于,The method for controlling a terminal according to claim 15, wherein:
    所述第三通信连接包括:蓝牙连接;The third communication connection includes: a Bluetooth connection;
    和/或,所述第二无线网络包括:所述第一终端建立的热点。And/or, the second wireless network includes: a hotspot established by the first terminal.
  19. 一种终端的控制装置,用于控制第一终端,其特征在于,包括:A terminal control device for controlling a first terminal, characterized in that it includes:
    获取单元,用于获取需要连接的第二终端的网络标识信息;an obtaining unit for obtaining the network identification information of the second terminal to be connected;
    通信单元,用于基于所述第二终端的网络标识信息与所述第二终端建立第一通信连接;a communication unit, configured to establish a first communication connection with the second terminal based on the network identification information of the second terminal;
    网络单元,用于创建第一无线网络;a network unit for creating a first wireless network;
    连接单元,用于通过所述第一通信连接向第二终端发送所述第一无线网络的第一网络信息,以使所述第二终端基于所述第一网络信息与第一终端建立第二通信连接。a connection unit, configured to send the first network information of the first wireless network to the second terminal through the first communication connection, so that the second terminal establishes a second connection with the first terminal based on the first network information communication connection.
  20. 一种终端的控制装置,用于控制第二终端,其特征在于,包括:A terminal control device for controlling a second terminal, characterized in that it includes:
    输出模块,用于展示或向第一终端发送第二终端的网络标识信息;an output module for displaying or sending the network identification information of the second terminal to the first terminal;
    通信模块,用于基于所述第二终端的网络标识信息与所述第一终端建立第一通信连接;a communication module, configured to establish a first communication connection with the first terminal based on the network identification information of the second terminal;
    连接模块,用于通过所述第一通信连接接收所述第一终端发送的第一无线网络的第一网络信息,基于所述第一网络信息与第一终端建立第二通信连接;其中,所述第一无线网络由所述第一终端建立。a connection module, configured to receive the first network information of the first wireless network sent by the first terminal through the first communication connection, and establish a second communication connection with the first terminal based on the first network information; wherein, the The first wireless network is established by the first terminal.
  21. 一种终端,包括:A terminal that includes:
    至少一个存储器和至少一个处理器;at least one memory and at least one processor;
    其中,所述至少一个存储器用于存储程序代码,所述至少一个处理器用于调用所述至少一个存储器所存储的程序代码执行权利要求1至18中任一项所述的方法。Wherein, the at least one memory is used for storing program codes, and the at least one processor is used for calling the program codes stored in the at least one memory to execute the method according to any one of claims 1 to 18 .
  22. 一种存储介质,所述存储介质用于存储程序代码,所述程序代码用于执行权利要求1至18中任一项所述的方法。A storage medium for storing program codes for executing the method of any one of claims 1 to 18.
PCT/CN2021/124727 2020-10-20 2021-10-19 Terminal control method and apparatus, and terminal and storage medium WO2022083589A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011124347.9A CN112261651B (en) 2020-10-20 2020-10-20 Terminal control method, device, terminal and storage medium
CN202011124347.9 2020-10-20

Publications (1)

Publication Number Publication Date
WO2022083589A1 true WO2022083589A1 (en) 2022-04-28

Family

ID=74243949

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/124727 WO2022083589A1 (en) 2020-10-20 2021-10-19 Terminal control method and apparatus, and terminal and storage medium

Country Status (2)

Country Link
CN (1) CN112261651B (en)
WO (1) WO2022083589A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112261651B (en) * 2020-10-20 2023-06-23 北京字节跳动网络技术有限公司 Terminal control method, device, terminal and storage medium
WO2023184424A1 (en) * 2022-03-31 2023-10-05 华为技术有限公司 Communication system, and communication system configuration method and apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2974261A1 (en) * 2011-04-15 2012-10-19 France Telecom Method for establishing communication between terminals via e.g. communication path, involves utilizing configuration data, and performing communication with step of authentication of set of terminals on communication path
WO2015180108A1 (en) * 2014-05-29 2015-12-03 华为技术有限公司 Media content sharing method and apparatus
CN106454805A (en) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 Data migration method and mobile terminal
CN111586665A (en) * 2020-07-17 2020-08-25 支付宝(杭州)信息技术有限公司 Method and device for accessing wireless network
CN112261651A (en) * 2020-10-20 2021-01-22 北京字节跳动网络技术有限公司 Terminal control method and device, terminal and storage medium

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103260257B (en) * 2013-04-10 2016-06-29 广东欧珀移动通信有限公司 Automatically set up Wi-Fi Display and connect the method and system realizing Screen sharing
JP2015122058A (en) * 2013-11-20 2015-07-02 株式会社リコー Information sharing system and information sharing method
CN103701503A (en) * 2013-12-25 2014-04-02 深圳市文鼎创数据科技有限公司 Bluetooth pairing method and system, and Bluetooth KEY
CN104580401A (en) * 2014-12-23 2015-04-29 小米科技有限责任公司 Connecting method and device
CN104954050A (en) * 2015-05-08 2015-09-30 深圳君正时代集成电路有限公司 Method and system for establishing connection between Bluetooth devices and device
CN107659835A (en) * 2016-07-25 2018-02-02 中兴通讯股份有限公司 Screen sharing method, equipment and system
CN106412907B (en) * 2016-09-14 2020-02-14 Oppo广东移动通信有限公司 Network access method, related equipment and system
KR102271876B1 (en) * 2016-12-09 2021-06-30 후아웨이 테크놀러지 컴퍼니 리미티드 Hotspot connection establishment method and terminal device
WO2019140657A1 (en) * 2018-01-19 2019-07-25 华为技术有限公司 Method and device for network connection and terminal
CN109831784A (en) * 2019-03-11 2019-05-31 深圳市炬力北方微电子有限公司 Automatically access method, relevant device and the system of WLAN
CN110233930B (en) * 2019-04-30 2021-01-05 深圳沸石科技股份有限公司 Automatic opening method for mobile phone hot spot
CN110399112A (en) * 2019-08-28 2019-11-01 北京小米移动软件有限公司 A kind of throwing screen method and device
CN111050307A (en) * 2019-11-27 2020-04-21 深圳星康医疗科技有限公司 Method, system and computer readable storage medium for realizing Bluetooth connection based on two-dimensional bar code

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2974261A1 (en) * 2011-04-15 2012-10-19 France Telecom Method for establishing communication between terminals via e.g. communication path, involves utilizing configuration data, and performing communication with step of authentication of set of terminals on communication path
WO2015180108A1 (en) * 2014-05-29 2015-12-03 华为技术有限公司 Media content sharing method and apparatus
CN106454805A (en) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 Data migration method and mobile terminal
CN111586665A (en) * 2020-07-17 2020-08-25 支付宝(杭州)信息技术有限公司 Method and device for accessing wireless network
CN112261651A (en) * 2020-10-20 2021-01-22 北京字节跳动网络技术有限公司 Terminal control method and device, terminal and storage medium

Also Published As

Publication number Publication date
CN112261651A (en) 2021-01-22
CN112261651B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
CN111639319B (en) User resource authorization method, device and computer readable storage medium
CN112312060B (en) Screen sharing method and device and electronic equipment
EP4262214A1 (en) Screen projection method and apparatus, and electronic device and storage medium
US11711441B2 (en) Method and apparatus for publishing video synchronously, electronic device, and readable storage medium
WO2022083589A1 (en) Terminal control method and apparatus, and terminal and storage medium
WO2019019811A1 (en) Method and device for acquiring wireless access point information
US20240244016A1 (en) Sharing method and apparatus, electronic device, storage medium, and computer program product
CN112866385B (en) Interface calling method and device, electronic equipment and storage medium
US20240119969A1 (en) Video processing method and apparatus, electronic device and storage medium
CN112312222A (en) Video sending method and device and electronic equipment
US11758087B2 (en) Multimedia conference data processing method and apparatus, and electronic device
CN111432001B (en) Method, apparatus, electronic device and computer readable medium for jumping scenes
WO2021254168A1 (en) Conference control method and apparatus, readable medium and electronic device
CN114827682B (en) Screen projection method, system, equipment and storage medium
WO2021233297A1 (en) Resource sharing method and apparatus, electronic device and computer-readable medium
US20230124149A1 (en) Method and apparatus for establishing multimedia call, and electronic device
CN110336592B (en) Data transmission method suitable for Bluetooth card reader, electronic equipment and storage medium
CN106455128B (en) WIFI point-to-point data transmission method and device
WO2021143317A1 (en) Invitation link information processing method and apparatus, electronic device and readable medium
CN111460432B (en) On-line document authority control method, device, equipment and computer readable medium
CN112947880A (en) Screen projection method and device and electronic equipment
WO2023207788A1 (en) Information processing method and apparatus, electronic device, and storage medium
CN115695928B (en) Screen projection method and device, electronic equipment and storage medium
CN111752625B (en) Method and device for interface mock
WO2022103338A1 (en) Data processing method and apparatus, 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: 21882005

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: 21882005

Country of ref document: EP

Kind code of ref document: A1