WO2023124264A1 - 建立通信连接的方法、终端和存储介质 - Google Patents
建立通信连接的方法、终端和存储介质 Download PDFInfo
- Publication number
- WO2023124264A1 WO2023124264A1 PCT/CN2022/119372 CN2022119372W WO2023124264A1 WO 2023124264 A1 WO2023124264 A1 WO 2023124264A1 CN 2022119372 W CN2022119372 W CN 2022119372W WO 2023124264 A1 WO2023124264 A1 WO 2023124264A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal
- hotspot
- frequency band
- communication connection
- connection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
Definitions
- the present disclosure relates to the technical field of communication, and in particular to a method for establishing a communication connection, a terminal and a storage medium.
- two terminals such as mobile phones
- Wi-Fi Wireless-Fidelity, wireless fidelity
- a hotspot Some terminals currently on the market can support 2.4GHz and 5GHz frequency bands at the same time.
- two terminals When two terminals establish a communication connection, they first establish a connection through Wi-Fi and hotspots in the 2.4GHz frequency band by default. After the connection is successful, the two terminals Exchange their respective frequency band capability information. If both terminals support the 5GHz frequency band, disconnect the current 2.4GHz frequency band connection and re-establish the 5GHz frequency band connection.
- the two terminals need to complete the connection process twice, and the connection process takes a long time (maybe more than 30s), and the efficiency is low; moreover, due to the completion of the frequency band switching process and the secondary connection, the connection will also increase. The probability of failure in the process.
- the main purpose of the embodiments of the present disclosure is to provide a method for establishing a communication connection, a terminal, and a storage medium, aiming at improving the efficiency and reliability of establishing a communication connection between terminals.
- An embodiment of the present disclosure provides a method for establishing a communication connection.
- the method includes the following steps: determining a first frequency band corresponding to a first terminal establishing a communication connection, and the first frequency band is a target communication in multiple frequency bands where the first terminal supports communication.
- Frequency band create a first hotspot based on the first frequency band, for the second terminal to initiate a hotspot connection based on the hotspot information of the first hotspot, so as to establish a first frequency band communication connection between the first terminal and the second terminal.
- An embodiment of the present disclosure also provides a terminal, including a memory and a processor; the memory is used to store a computer program; and the processor is used to execute the computer program and implement the steps of the aforementioned method for establishing a communication connection when executing the computer program.
- An embodiment of the present disclosure also provides a method for establishing a communication connection.
- the method includes the following steps: acquiring hotspot information of a first hotspot created by a first terminal based on a first frequency band; A target communication frequency band among the multiple frequency bands; initiating a hotspot connection based on the hotspot information, so as to establish a first frequency band communication connection between the first terminal and the second terminal.
- An embodiment of the present disclosure also provides a terminal, including a memory and a processor; the memory is used to store a computer program; and the processor is used to execute the computer program and implement the steps of the aforementioned method for establishing a communication connection when executing the computer program.
- An embodiment of the present disclosure also provides a storage medium for computer-readable storage.
- the storage medium stores one or more programs, and one or more programs can be executed by one or more processors to implement the steps of the foregoing method .
- FIG. 1 is a schematic flowchart of a method for establishing a communication connection provided by an embodiment of the present disclosure
- FIG. 2 is a schematic flowchart of another method for establishing a communication connection provided by an embodiment of the present disclosure
- FIG. 3 is a schematic flowchart of another method for establishing a communication connection provided by an embodiment of the present disclosure
- FIG. 4 is a schematic flowchart of another method for establishing a communication connection provided by an embodiment of the present disclosure
- FIG. 5 is a schematic flow diagram of establishing a communication connection between a new machine A and an old machine B according to an embodiment of the present disclosure
- FIG. 6 is a schematic flowchart of another method for establishing a communication connection provided by an embodiment of the present disclosure.
- FIG. 7 is a schematic flowchart of another method for establishing a communication connection provided by an embodiment of the present disclosure.
- FIG. 8 is a schematic flowchart of another method for establishing a communication connection provided by an embodiment of the present disclosure.
- FIG. 9 is a schematic flowchart of another method for establishing a communication connection provided by an embodiment of the present disclosure.
- FIG. 10 is a schematic diagram of a communication frequency band selection interface provided by an embodiment of the present disclosure.
- FIG. 11 is a schematic structural block diagram of a terminal provided by an embodiment of the present disclosure.
- Fig. 12 is a schematic structural block diagram of another terminal provided by an embodiment of the present disclosure.
- FIG. 1 is a schematic flowchart of a method for establishing a communication connection provided by an embodiment of the present disclosure, and the method includes the following steps S101 to S102.
- Step S101 determining a first frequency band corresponding to a communication connection established by the first terminal, where the first frequency band is a target communication frequency band among multiple frequency bands in which the first terminal supports communication.
- This embodiment is applied to a first terminal, where the first terminal includes but is not limited to devices with communication functions such as smart phones, tablet computers, and notebooks.
- the first terminal acts as a receiving device, and the first terminal supports communication in multiple frequency bands, including but not limited to 2.4GHz frequency band, 5GHz frequency band, and the like.
- the first terminal wants to establish a communication connection with other terminals, it first determines the first frequency band corresponding to the establishment of the communication connection, that is, determines the target communication frequency band corresponding to the current communication connection from the multiple frequency bands that the first terminal supports communication.
- the communication connection may be established in the 5GHz frequency band, that is, the first frequency band is determined to be the 5GHz frequency band.
- Step S102 Create a first hotspot based on the first frequency band, for the second terminal to initiate a hotspot connection based on the hotspot information of the first hotspot, so as to establish a communication connection between the first terminal and the second terminal in the first frequency band.
- the first terminal After the first frequency band is determined, the first terminal creates a first hotspot corresponding to the first frequency band, wherein the first hotspot may be a Wi-Fi hotspot, or may be another type of network hotspot.
- the hotspot information of the first hotspot includes but not limited to the name of the first hotspot, the password of the first hotspot, and the like.
- the first terminal After determining that the first frequency band is the 5GHz frequency band, the first terminal creates a hotspot in the 5GHz frequency band.
- the second terminal includes, but is not limited to, smart phones, tablet computers, notebooks and other devices with communication functions.
- the sending device side when the second terminal wants to establish a communication connection with the first terminal, the second terminal obtains hotspot information corresponding to the first hotspot, that is, obtains information such as the name of the first hotspot, the password of the first hotspot, and the like.
- the second terminal initiates a hotspot connection based on the obtained hotspot information such as the name of the first hotspot and the password of the first hotspot, so as to establish a first frequency band communication connection between the first terminal and the second terminal.
- the second terminal initiates a 5GHz frequency band hotspot connection based on information such as the name and password of the 5GHz frequency band hotspot, so as to establish a 5GHz frequency band communication connection between the first terminal and the second terminal.
- the communication connection of the first frequency band between the first terminal and the second terminal may be successful or fail.
- the first hotspot after creating the first hotspot based on the first frequency band, it may include: generating a hotspot barcode corresponding to the first hotspot for the second terminal to scan the hotspot barcode to obtain hotspot information, and initiate a hotspot connection based on the hotspot information.
- the first terminal After the first terminal creates the first hotspot, it generates a hotspot barcode corresponding to the first hotspot.
- the hotspot barcode includes but is not limited to a one-dimensional code, a two-dimensional code, and the like.
- the second terminal scans the hotspot barcode corresponding to the first hotspot to obtain the hotspot information of the first hotspot, and then initiates a hotspot connection based on the hotspot information of the first hotspot to establish a first frequency band communication connection between the first terminal and the second terminal.
- the second terminal may also obtain the hotspot information in other ways.
- the user may directly input hotspot information based on the second terminal, and the second terminal receives the hotspot information input by the user.
- step S103 and step S104 may be included after step S102.
- Step S103 start timing when the second terminal initiates a hotspot connection.
- the first terminal starts timing.
- the timing manner of the first terminal includes but not limited to countdown, countdown, etc., and the timing manner is not specifically limited in this disclosure.
- step S105 and step S106 may be included before step S103 .
- Step S105 periodically scanning target signals transmitted by terminals other than the first terminal.
- Step S106 when the target signal transmitted by the second terminal is scanned, it is determined that the second terminal initiates a hotspot connection; wherein, when the second terminal initiates a hotspot connection, the target signal is transmitted.
- the second terminal When the second terminal initiates the hotspot connection, it also transmits a corresponding target signal.
- the target signal includes, but is not limited to, a Bluetooth signal, a sound wave signal, and the like.
- the second terminal transmits a bluetooth signal or a specific sound wave signal.
- the first terminal After the first terminal generates the first hotspot barcode, it periodically scans target signals emitted by other nearby terminals.
- the cycle time for the first terminal to scan the target signal can be flexibly set according to actual conditions, and no specific limitation is set here.
- the first terminal scans the target signal transmitted by the second terminal, it is determined that the second terminal initiates the hotspot connection. If the first terminal does not scan the target signal, it is determined that no terminal currently initiates a hotspot connection.
- the first terminal scans the target signal transmitted by the second terminal, that is, after determining that the second terminal initiates the hotspot connection, the first terminal starts timing.
- Step S104 if the second terminal has not successfully connected when the timing reaches the preset time period, it is determined that the communication connection between the first terminal and the second terminal in the first frequency band fails.
- the preset duration for successfully establishing the connection between the first terminal and the second terminal is preset, for example, the preset duration is preset as 5 seconds.
- the preset duration can also be set to other durations, and the preset duration can be flexibly set according to actual conditions, and no specific limitation is set here.
- the second terminal connects to the first hotspot within the preset time period, it is determined that the communication connection of the first frequency band between the first terminal and the second terminal is successful, and the process of establishing the communication connection of the first frequency band between the first terminal and the second terminal ends. For example, after the second terminal initiates a 5GHz frequency band hotspot connection, if the 5GHz frequency band hotspot is connected within 5 seconds, it is determined that the 5GHz frequency band communication connection between the first terminal and the second terminal is successful.
- the timing of the first terminal reaches the preset duration and the second terminal has not connected to the first hotspot, that is, the second terminal has not connected to the first hotspot within the preset duration, then determine the first terminal and the second terminal The first band communication connection failed. For example, after the second terminal initiates a 5GHz frequency band hotspot connection, if it has not been connected to the 5GHz frequency band hotspot within 5 seconds, it is determined that the 5GHz frequency band communication connection between the first terminal and the second terminal fails.
- step S107 may be included after step S102.
- Step S107 when the communication connection between the first terminal and the second terminal in the first frequency band fails, create a second hotspot based on the second frequency band, and the hotspot information of the second hotspot is the same as that of the first hotspot for the background of the second terminal Automatically scan and connect to the second hotspot, so as to establish a second frequency band communication connection between the first terminal and the second terminal.
- the first terminal When the communication connection between the first terminal and the second terminal fails in the first frequency band, the first terminal creates a second hotspot corresponding to the second frequency band.
- the hotspot information of the second hotspot is the same as that of the first hotspot, that is, the name of the second hotspot is the same as that of the first hotspot, and similarly, the password of the second hotspot is also the same as that of the first hotspot.
- the first terminal creates a hotspot in the 2.4GHz frequency band.
- the second terminal automatically scans the second hotspot generated by the nearby first terminal through the wifi background, and obtains hotspot information corresponding to the second hotspot.
- the second terminal initiates a hotspot connection based on the obtained hotspot information, so as to establish a second frequency band communication connection between the first terminal and the second terminal.
- the second terminal initiates a 2.4GHz frequency band hotspot connection based on information such as the name and password of the 2.4GHz frequency band hotspot, so as to establish a 2.4GHz frequency band communication connection between the first terminal and the second terminal.
- the process of establishing a communication connection between the new machine A and the old machine B includes the following steps 01 to 08.
- the new device A as the receiving device, creates a 5GHz hotspot.
- the new machine A generates a QR code containing the 5GHz hotspot name and password information.
- the new device A periodically scans the Bluetooth signals or acoustic signals emitted by other nearby terminals.
- the old machine B as the sending device, scans the QR code to obtain the name and password of the 5GHz hotspot, initiates a hotspot connection, and emits a Bluetooth signal or a sound wave signal.
- the new device A scans the Bluetooth signal or the sound wave signal emitted by the second terminal, it starts counting down for N seconds.
- the new device A will re-create a 2.4GHz hotspot with the same name and password as the 5GHz hotspot.
- the new device A and the old device B complete the connection at 2.4GHz, and the process ends.
- the first frequency band is the target communication frequency band (such as the 5GHz frequency band) among the multiple frequency bands in which the first terminal supports communication.
- the frequency band creates a first hotspot
- the second terminal initiates a hotspot connection based on the hotspot information of the first hotspot, so as to establish a first frequency band communication connection between the first terminal and the second terminal.
- the first terminal and the second terminal can establish a communication connection only through one connection process. Compared with the current two connection method, it not only improves the efficiency of establishing a communication connection between the two terminals, but also reduces the connection process. The probability of failure in the medium improves the reliability of establishing a communication connection between the two terminals.
- FIG. 6 is a schematic flowchart of a method for establishing a communication connection provided by an embodiment of the present disclosure, and the method includes the following steps S201 to S202 .
- Step S201 Obtain hotspot information of a first hotspot created by the first terminal based on a first frequency band; wherein, the first frequency band is a target communication frequency band among multiple frequency bands that the first terminal supports communication.
- Step S202 Initiate a hotspot connection based on the hotspot information, so as to establish a first frequency band communication connection between the first terminal and the second terminal.
- This embodiment is applied to a second terminal, where the second terminal includes, but is not limited to, a smart phone, a tablet computer, a notebook, and other devices with a communication function.
- the second terminal as the sending device side, wants to establish a communication connection with the first terminal as the receiving device side, the second terminal acquires the hotspot information of the first hotspot created by the first terminal based on the first frequency band.
- the hotspot information of the first hotspot includes but not limited to the name of the first hotspot, the password of the first hotspot, and the like.
- the first terminal creates a hotspot in the 5GHz frequency band, wherein the hotspot information corresponding to the hotspot in the 5GHz frequency band includes information such as the name and password of the hotspot in the 5GHz frequency band.
- the second terminal initiates a hotspot connection based on the obtained hotspot information such as the name of the first hotspot and the password of the first hotspot, so as to establish a first frequency band communication connection between the first terminal and the second terminal.
- the second terminal initiates a 5GHz frequency band hotspot connection based on information such as the name and password of the 5GHz frequency band hotspot, so as to establish a 5GHz frequency band communication connection between the first terminal and the second terminal.
- the communication connection of the first frequency band between the first terminal and the second terminal may be successful or fail.
- obtaining the hotspot information of the first hotspot created by the first terminal based on the first frequency band may include: scanning the barcode of the first hotspot generated by the first terminal to obtain the hotspot information.
- the first terminal After creating the first hotspot, the first terminal generates a hotspot barcode corresponding to the first hotspot.
- the hotspot barcode includes but is not limited to a one-dimensional code, a two-dimensional code, and the like.
- the second terminal scans the hotspot barcode corresponding to the first hotspot to obtain the hotspot information of the first hotspot, and then initiates a hotspot connection based on the hotspot information of the first hotspot to establish a first frequency band communication connection between the first terminal and the second terminal.
- the second terminal may also obtain the hotspot information in other ways.
- the user may directly input hotspot information based on the second terminal, and the second terminal receives the hotspot information input by the user.
- step S203 may be included after step S202.
- Step S203 transmit the target signal, so that when the first terminal scans the target signal, start timing, if the second terminal has not successfully connected when the timing reaches the preset time, then determine the first frequency band communication between the first terminal and the second terminal Connection failed.
- the target signal includes, but is not limited to, a Bluetooth signal, a sound wave signal, and the like.
- the second terminal transmits a bluetooth signal or a specific sound wave signal.
- the first terminal periodically scans for target signals emitted by other nearby terminals.
- the cycle time for the first terminal to scan the target signal can be flexibly set according to actual conditions, and no specific limitation is set here.
- the first terminal scans the target signal transmitted by the second terminal
- the first terminal starts timing. If the second terminal connects to the first hotspot within the preset time period, it is determined that the communication connection of the first frequency band between the first terminal and the second terminal is successful, and the process of establishing the communication connection of the first frequency band between the first terminal and the second terminal ends.
- the timing of the first terminal reaches the preset duration and the second terminal has not connected to the first hotspot, that is, the second terminal has not connected to the first hotspot within the preset duration, then determine the first terminal and the second terminal The first band communication connection failed.
- the second terminal initiates a 5GHz frequency band hotspot connection
- if it has not been connected to the 5GHz frequency band hotspot within 5 seconds it is determined that the 5GHz frequency band communication connection between the first terminal and the second terminal fails.
- the preset duration can be flexibly set according to the actual situation, and no specific limitation is set here.
- step S204 may be included after step S202.
- Step S204 when the communication connection between the first terminal and the second terminal in the first frequency band fails, the background automatically scans and connects to the second hotspot, so as to establish the communication connection between the first terminal and the second terminal in the second frequency band.
- the first terminal when the communication connection between the first terminal and the second terminal fails in the first frequency band, the first terminal creates a second hotspot based on the second frequency band, and the hotspot information of the second hotspot is the same as that of the first hotspot.
- the first terminal When the communication connection between the first terminal and the second terminal fails in the first frequency band, the first terminal creates a second hotspot corresponding to the second frequency band.
- the hotspot information of the second hotspot is the same as the hotspot information of the first hotspot.
- the first terminal creates a hotspot in the 2.4GHz frequency band, wherein the QR code corresponding to the hotspot in the 2.4GHz frequency band includes information such as the name and password of the hotspot in the 2.4GHz frequency band.
- the second terminal automatically scans the second hotspot generated by the nearby first terminal through the wifi background, obtains the hotspot information of the second hotspot, which is the same as the hotspot information of the first hotspot, and initiates a hotspot connection based on the hotspot information to establish the connection between the first terminal and the first hotspot.
- the communication connection of the second frequency band of the second terminal For example, the second terminal initiates a 2.4GHz frequency band hotspot connection based on information such as the name and password of the 2.4GHz frequency band hotspot, so as to establish a 2.4GHz frequency band communication connection between the first terminal and the second terminal.
- step S202 may include step S205 to step S207 .
- Step S205 outputting a communication frequency band selection interface when the communication connection between the first terminal and the second terminal fails in the first frequency band.
- Step S206 when receiving the first frequency band selection information input based on the communication frequency band selection interface, the background automatically scans and connects to the first hotspot, so as to establish the first frequency band communication connection between the first terminal and the second terminal.
- Step S207 when receiving the second frequency band selection information input based on the communication frequency band selection interface, the background automatically scans and connects to the second hotspot, so as to establish the second frequency band communication connection between the first terminal and the second terminal.
- a communication frequency band selection interface is output, wherein the communication frequency band selection interface includes options for the first frequency band, options for the second frequency band, and the like.
- the user can perform a corresponding frequency band selection operation based on the communication frequency band selection interface, and input corresponding frequency band selection information, such as first frequency band selection information, second frequency band selection information, and the like.
- the second terminal When receiving the first frequency band selection information input by the user, that is, the user still wants to establish a first frequency band communication connection between the first terminal and the second terminal, at this time, the second terminal automatically scans and connects to the first hotspot through the wifi background to A first frequency band communication connection between the first terminal and the second terminal is established.
- the second terminal When receiving the second frequency band selection information input by the user, that is, the user wants to switch and establish the second frequency band communication connection between the first terminal and the second terminal, at this time, the second terminal automatically scans and connects to the second hotspot through the wifi background to A second frequency band communication connection between the first terminal and the second terminal is established.
- the communication frequency band selection interface includes 5GHz frequency band options and 2.4GHz frequency band options.
- the user can perform a corresponding 5GHz frequency band or 2.4GHz frequency band selection operation based on the communication frequency band selection interface. If the user selects the 5GHz frequency band option on the communication frequency band selection interface, such as ticking " ⁇ " in the 5GHz frequency band option, then input the corresponding 5GHz frequency band selection information.
- the second terminal When receiving the 5GHz frequency band selection information input by the user, that is, the user still wants to establish a 5GHz frequency band communication connection between the first terminal and the second terminal, at this time, the second terminal automatically scans and connects to the 5GHz frequency band hotspot through the wifi background to establish the second terminal. A terminal communicates with the 5GHz frequency band of the second terminal.
- the user When receiving the 2.4GHz frequency band selection information input by the user, that is, the user wants to switch and establish a 2.4GHz frequency band communication connection between the first terminal and the second terminal. At this time, the second terminal automatically scans and connects to the 2.4GHz frequency band hotspot through the wifi background. To establish a 2.4GHz frequency band communication connection between the first terminal and the second terminal.
- the first frequency band is the target communication frequency band (such as the 5GHz frequency band) among the multiple frequency bands that the first terminal supports communication
- the second The terminal initiates a hotspot connection based on the hotspot information of the first hotspot, so as to establish a first frequency band communication connection between the first terminal and the second terminal.
- the first terminal and the second terminal can establish a communication connection only through one connection process. Compared with the current two connection method, it not only improves the efficiency of establishing a communication connection between the two terminals, but also reduces the connection process. The probability of failure in the medium improves the reliability of establishing a communication connection between the two terminals.
- FIG. 11 is a schematic structural block diagram of a terminal provided by an embodiment of the present disclosure.
- the terminal 100 may be a mobile phone, a tablet, a notebook, a desktop computer, a TV, a dedicated input device, and the like.
- the terminal 100 includes a processor 110 and a memory 120, and the memory 120 is used for storing computer programs.
- the processor 110 is configured to execute the computer program and implement the following steps when executing the computer program: determine the first frequency band corresponding to the first terminal establishing the communication connection, the first frequency band is the target communication in the multiple frequency bands that the first terminal supports communication Frequency band: create a first hotspot based on the first frequency band, for the second terminal to initiate a hotspot connection based on the hotspot information of the first hotspot, so as to establish a first frequency band communication connection between the first terminal and the second terminal.
- the processor 110 after the processor 110 implements creating the first hotspot based on the first frequency band, it is configured to: generate a hotspot barcode corresponding to the first hotspot for the second terminal to scan the hotspot barcode to obtain hotspot information, and based on the hotspot information to initiate a hotspot connection.
- the processor 110 when the processor 110 executes the computer program, it also implements: when the first frequency band communication connection between the first terminal and the second terminal fails, create a second hotspot based on the second frequency band, and the hotspot information of the second hotspot The hotspot information is the same as that of the first hotspot, so that the second terminal automatically scans and connects to the second hotspot in the background, so as to establish a second frequency band communication connection between the first terminal and the second terminal.
- the processor 110 after the processor 110 implements creating the first hotspot based on the first frequency band, it is configured to implement: when the second terminal initiates a hotspot connection, start timing; if the timing reaches the preset duration, the second terminal has not yet connected If successful, it is determined that the first frequency band communication connection between the first terminal and the second terminal fails.
- the processor 110 is configured to: periodically scan for target signals transmitted by terminals other than the first terminal; When the target signal is detected, it is determined that the second terminal initiates the hotspot connection; wherein, when the second terminal initiates the hotspot connection, the target signal is transmitted.
- the processor can be a central processing unit (Central Processing Unit, CPU), and the processor can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
- the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
- FIG. 12 is a schematic structural block diagram of a terminal provided by an embodiment of the present disclosure.
- the terminal 200 may be a mobile phone, a tablet, a notebook, a desktop computer, a TV, a dedicated input device, and the like.
- the terminal 200 includes a processor 210 and a memory 220, and the memory 220 is used to store computer programs.
- the processor 210 is configured to execute the computer program, and when executing the computer program, implement the following steps: acquire the hotspot information of the first hotspot created by the first terminal based on the first frequency band; A target communication frequency band in a frequency band; a hotspot connection is initiated based on the hotspot information to establish a first frequency band communication connection between the first terminal and the second terminal.
- the processor 210 when obtaining the hotspot information of the first hotspot created by the first terminal based on the first frequency band, the processor 210 is configured to: scan the barcode of the first hotspot generated by the first terminal to obtain the hotspot information .
- the processor 210 is configured to implement: when the communication connection of the first frequency band between the first terminal and the second terminal fails, the background automatically scans and connects to the second hotspot to establish The communication connection between the first terminal and the second terminal in the second frequency band; wherein, when the communication connection between the first terminal and the second terminal in the first frequency band fails, the first terminal creates a second hotspot based on the second frequency band, and the hotspot of the second hotspot The information is the same as the hotspot information of the first hotspot.
- the processor 210 is configured to: output a communication frequency band selection interface when the first frequency band communication connection between the first terminal and the second terminal fails;
- the background automatically scans and connects to the first hotspot to establish the first frequency band communication connection between the first terminal and the second terminal;
- the background automatically scans and connects to the second hotspot, so as to establish a second frequency band communication connection between the first terminal and the second terminal.
- the processor 210 is configured to: transmit the target signal, so that when the first terminal scans the target signal, it starts timing, and if the timing reaches a preset time period, the second If the terminal has not been successfully connected, it is determined that the first frequency band communication connection between the first terminal and the second terminal fails.
- Embodiments of the present disclosure also provide a storage medium (computer-readable storage medium) for computer-readable storage.
- the storage medium stores one or more programs, and one or more programs can be read by one or more processors. Execute to implement the steps in any one of the method embodiments for establishing a communication connection in the present disclosure.
- the functional modules/units in the system, and the device can be implemented as software, firmware, hardware, and an appropriate combination thereof.
- the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical components. Components cooperate to execute.
- Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit .
- Such software may be distributed on computer-readable storage media, which may include computer-readable storage media (or non-transitory media) and communication media (or transitory media).
- computer-readable storage medium includes both volatile and non-volatile media implemented in any method or technology for storage of information, such as computer-readable instructions, data structures, program modules, or other data. Volatile, removable and non-removable media.
- Computer-readable storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tape, magnetic disk storage or other magnetic storage devices, Or any other medium that can be used to store desired information and that can be accessed by a computer.
- communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .
- the computer-readable storage medium may be an internal storage unit of the terminal in the foregoing embodiments, such as a hard disk or memory of the terminal.
- the computer-readable storage medium can also be an external storage device of the terminal, such as a plug-in hard disk equipped on the terminal, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash memory card (Flash Card )wait.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Communication Control (AREA)
Abstract
本公开公开一种建立通信连接的方法、终端和存储介质,属于通讯技术领域。该方法包括:确定第一终端建立通信连接对应的第一频段,所述第一频段为所述第一终端支持通信的多个频段中的目标通信频段;基于所述第一频段创建第一热点,以供第二终端基于所述第一热点的热点信息发起热点连接,以建立所述第一终端与所述第二终端的第一频段通信连接。
Description
相关申请的交叉引用
本公开要求享有2021年12月31日提交的名称为“建立通信连接的方法、终端和存储介质”的中国专利申请CN202111675650.2的优先权,其全部内容通过引用并入本公开中。
本公开涉及通讯技术领域,尤其涉及一种建立通信连接的方法、终端和存储介质。
现今,两台终端(如手机)一般可通过Wi-Fi(Wireless-Fidelity,无线保真)、热点建立无线通信连接。当前市面上的终端中部分可以同时支持2.4GHz、5GHz频段,目前,两台终端建立通信连接时,默认首先以2.4GHz频段通过Wi-Fi及热点的方式建立连接,连接成功后,两台终端交换各自的频段能力信息,如果两台终端都支持5GHz频段,则断开当前2.4GHz频段的连接,重新建立5GHz频段的连接。通过这种交互方式两台终端需要完成两次连接过程,连接过程中耗时较长(可能会达30s以上),效率低;并且,由于要完成频段切换过程和二次连接,也会增加连接过程中出故障的概率。
因此,如何提高终端间建立通信连接的效率以及可靠性成为亟需解决的问题。
发明内容
本公开实施例的主要目的在于提出一种建立通信连接的方法、终端和存储介质,旨在实现提高终端间建立通信连接的效率以及可靠性。
本公开实施例提供了一种建立通信连接的方法,该方法包括以下步骤:确定第一终端建立通信连接对应的第一频段,第一频段为第一终端支持通信的多个频段中的目标通信频段;基于第一频段创建第一热点,以供第二终端基于第一热点的热点信息发起热点连接,以建立第一终端与第二终端的第一频段通信连接。
本公开实施例还提供了一种终端,包括存储器以及处理器;存储器用于存储计算机程序;处理器,用于执行计算机程序并在执行计算机程序时实现如前述的建立通信连接的方法的步骤。
本公开实施例还提供了一种建立通信连接的方法,该方法包括以下步骤:获取第一终端基于第一频段创建的第一热点的热点信息;其中,第一频段为第一终端支持通信的多个频段 中的目标通信频段;基于热点信息发起热点连接,以建立第一终端与第二终端的第一频段通信连接。
本公开实施例还提供了一种终端,包括存储器以及处理器;存储器用于存储计算机程序;处理器,用于执行计算机程序并在执行计算机程序时实现如前述的建立通信连接的方法的步骤。
本公开实施例还提供了一种存储介质,用于计算机可读存储,存储介质存储有一个或者多个程序,一个或者多个程序可被一个或者多个处理器执行,以实现前述方法的步骤。
为了更清楚地说明本公开实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本公开一实施例提供的一种建立通信连接的方法的流程示意图;
图2为本公开一实施例提供的另一种建立通信连接的方法的流程示意图;
图3为本公开一实施例提供的另一种建立通信连接的方法的流程示意图;
图4为本公开一实施例提供的另一种建立通信连接的方法的流程示意图;
图5为本公开一实施例提供的一种新机A和旧机B建立通信连接的流程示意图;
图6为本公开一实施例提供的另一种建立通信连接的方法的流程示意图;
图7为本公开一实施例提供的另一种建立通信连接的方法的流程示意图;
图8为本公开一实施例提供的另一种建立通信连接的方法的流程示意图;
图9为本公开一实施例提供的另一种建立通信连接的方法的流程示意图;
图10为本公开一实施例提供的一种通信频段选择界面的示意图;
图11为本公开一实施例提供的一种终端的结构示意性框图;
图12为本公开一实施例提供的另一种终端的结构示意性框图。
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或合并,因此实际执行的顺序有可能根据实际情况改变。
如图1所示,图1为本公开一实施例提供的一种建立通信连接的方法的流程示意图,该方法包括以下步骤S101至S102。
步骤S101、确定第一终端建立通信连接对应的第一频段,第一频段为第一终端支持通信的多个频段中的目标通信频段。
该实施例应用于第一终端,其中,第一终端包括但不限于智能手机、平板电脑、笔记本等具有通信功能的设备。第一终端作为接收设备方,第一终端支持多个频段通信,多个频段包括但不限于2.4GHz频段、5GHz频段等。当第一终端要与其他终端建立通信连接时,先确定建立通信连接对应的第一频段,也即从第一终端支持通信的多个频段中确定当前进行通信连接对应的目标通信频段。示例性的,当第一终端同时支持2.4GHz频段、5GHz频段时,可以以5GHz频段建立通信连接,也即确定第一频段为5GHz频段。
步骤S102、基于第一频段创建第一热点,以供第二终端基于第一热点的热点信息发起热点连接,以建立第一终端与第二终端的第一频段通信连接。
当确定第一频段后,第一终端创建第一频段对应的第一热点,其中,第一热点可以为Wi-Fi热点,也可以为其他类型网络热点。第一热点的热点信息包括但不限于第一热点的名称、第一热点的密码等。
例如,当确定第一频段为5GHz频段后,第一终端创建5GHz频段热点。
第二终端包括但不限于智能手机、平板电脑、笔记本等具有通信功能的设备。第二终端作为发送设备方,要与第一终端建立通信连接时,第二终端获得第一热点对应的热点信息,也即获得第一热点的名称、第一热点的密码等信息。
第二终端基于获得的第一热点的名称、第一热点的密码等热点信息,发起热点连接,以建立第一终端与第二终端的第一频段通信连接。例如,第二终端基于5GHz频段热点的名称、密码等信息,发起5GHz频段热点连接,以建立第一终端与第二终端的5GHz频段通信连接。
第二终端发起热点连接后,第一终端与第二终端的第一频段通信连接可能连接成功,也可能连接失败。
在一实施例中,基于第一频段创建第一热点之后,可以包括:生成第一热点对应的热点条码,以供第二终端扫码热点条码获得热点信息,并基于热点信息发起热点连接。
也即,第一终端创建第一热点后,生成第一热点对应的热点条码,示例性的,热点条码 包括但不限于一维码、二维码等。
第二终端扫码第一热点对应的热点条码,获得第一热点的热点信息,然后基于第一热点的热点信息发起热点连接,以建立第一终端与第二终端的第一频段通信连接。
第二终端除了通过扫码热点条码获得热点信息的方式以外,还可以通过其他方式获得热点信息。例如,用户可以直接基于第二终端输入热点信息,第二终端接收用户输入的热点信息。
在一实施例中,如图2所示,步骤S102之后可以包括步骤S103和步骤S104。
步骤S103、当第二终端发起热点连接时,开始计时。
也即,当第二终端发起第一频段对应的热点连接后,第一终端开始计时。示例性的,第一终端的计时方式包括但不限于倒计时、顺计时等,本公开中对计时方式不作具体限制。
在一实施例中,如图3所示,步骤S103之前可以包括步骤S105和步骤S106。
步骤S105、周期性扫描第一终端以外的其他终端发射的目标信号。
步骤S106、当扫描到第二终端发射的目标信号时,确定第二终端发起热点连接;其中,第二终端发起热点连接时,发射目标信号。
第二终端发起热点连接时,还发射相应的目标信号。示例性的,目标信号包括但不限于蓝牙信号、声波信号等。例如,第二终端发射蓝牙信号或特定声波信号。
第一终端生成第一热点条码之后,周期性扫描附近的其他终端发射的目标信号。
第一终端扫描目标信号的周期时间可根据实际情况进行灵活设置,在此不作具体限制。
当第一终端扫描到第二终端发射的目标信号时,确定第二终端发起热点连接。若第一终端未扫描到目标信号,则确定当前没有终端发起热点连接。
当第一终端扫描到第二终端发射的目标信号,也即确定第二终端发起热点连接后,第一终端开始计时。
步骤S104、若计时达到预设时长时第二终端还未连接成功,则确定第一终端与第二终端的第一频段通信连接失败。
示例性的,由于第一终端与第二终端成功建立连接需要一定耗时,基于实际情况,预先设置第一终端与第二终端成功建立连接的预设时长,例如,预先设置该预设时长为5秒。
该预设时长也可以设置为其他时长,预设时长可根据实际情况进行灵活设置,在此不作具体限制。
若在预设时长内第二终端连接上了第一热点,则确定第一终端与第二终端的第一频段通信连接成功,第一终端与第二终端建立第一频段通信连接的流程结束。例如,当第二终端发 起5GHz频段热点连接后,若在5秒的时长内连接上了5GHz频段热点,则确定第一终端与第二终端的5GHz频段通信连接成功。
若第一终端的计时达到预设时长时,第二终端还未连接上第一热点,也即第二终端在预设时长内一直未连接上第一热点,则确定第一终端与第二终端的第一频段通信连接失败。例如,当第二终端发起5GHz频段热点连接后,若在5秒的时长内一直未连接上5GHz频段热点,则确定第一终端与第二终端的5GHz频段通信连接失败。
在一实施例中,如图4所示,步骤S102之后可以包括步骤S107。
步骤S107、当第一终端与第二终端的第一频段通信连接失败时,基于第二频段创建第二热点,第二热点的热点信息与第一热点的热点信息相同,以供第二终端后台自动扫描连接第二热点,以建立第一终端与第二终端的第二频段通信连接。
当第一终端与第二终端的第一频段通信连接失败时,第一终端创建第二频段对应的第二热点。其中,第二热点的热点信息与第一热点的热点信息相同,也即,第二热点的名称与第一热点的名称相同,同样地,第二热点的密码也与第一热点的密码相同。
例如,第一终端创建2.4GHz频段热点。
示例性的,第二终端通过wifi后台自动扫描附近的第一终端所生成的第二热点,获得第二热点对应的热点信息。
第二终端基于获得的热点信息,发起热点连接,以建立第一终端与第二终端的第二频段通信连接。例如,第二终端基于2.4GHz频段热点的名称、密码等信息,发起2.4GHz频段热点连接,以建立第一终端与第二终端的2.4GHz频段通信连接。
也即,当第一终端与第二终端的5GHz频段通信连接失败时,重新建立第一终端与第二终端的2.4GHz频段通信连接,从而确保第一终端与第二终端最终能够成功建立通信连接。
下面以新机A和旧机B为例,对新机A和旧机B建立通信连接的流程进行说明,参照图5,新机A和旧机B建立通信连接的流程包括如下01至08。
01、新机A,作为接收设备方,创建5GHz热点。
02、新机A生成包含5GHz热点名称、密码信息的二维码。
03、新机A周期性扫描附近的其他终端发射的蓝牙信号或声波信号。
04、旧机B,作为发送设备方,扫码二维码获得5GHz热点名称、密码信息,发起热点连接,并发射蓝牙信号或声波信号。
05、新机A一旦扫描到第二终端发射的蓝牙信号或声波信号,开始倒计时N秒。
06、N秒内两端连接成功,流程结束。
07、N秒后若旧机B还未连上,新机A重新创建2.4GHz热点,且与5GHz热点同名称、同密码。
08、新机A与旧机B以2.4GHz完成连接,流程结束。
由上述描述可知,通过确定第一终端建立通信连接对应的第一频段,该第一频段为第一终端支持通信的多个频段中的目标通信频段(如5GHz频段),第一终端基于第一频段创建第一热点,第二终端基于第一热点的热点信息发起热点连接,以建立第一终端与第二终端的第一频段通信连接。可见,第一终端与第二终端只需通过一次连接过程就能实现建立通信连接,相比于目前的两次连接方式,不仅提高了两终端间建立通信连接的效率,而且也降低了连接过程中出故障的概率,提高了两终端间建立通信连接的可靠性。
参照图6,图6为本公开一实施例提供的一种建立通信连接的方法的流程示意图,该方法包括以下步骤S201至S202。
步骤S201、获取第一终端基于第一频段创建的第一热点的热点信息;其中,第一频段为第一终端支持通信的多个频段中的目标通信频段。
步骤S202、基于热点信息发起热点连接,以建立第一终端与第二终端的第一频段通信连接。
该实施例应用于第二终端,其中,第二终端包括但不限于智能手机、平板电脑、笔记本等具有通信功能的设备。第二终端作为发送设备方,要与作为接收设备方的第一终端建立通信连接时,第二终端获取第一终端基于第一频段创建的第一热点的热点信息。其中,第一热点的热点信息包括但不限于第一热点的名称、第一热点的密码等。
例如,第一终端创建5GHz频段热点,其中,该5GHz频段热点对应的热点信息中包含5GHz频段热点的名称、密码等信息。
第二终端基于获得的第一热点的名称、第一热点的密码等热点信息,发起热点连接,以建立第一终端与第二终端的第一频段通信连接。例如,第二终端基于5GHz频段热点的名称、密码等信息,发起5GHz频段热点连接,以建立第一终端与第二终端的5GHz频段通信连接。
第二终端发起热点连接后,第一终端与第二终端的第一频段通信连接可能连接成功,也可能连接失败。
在一些实施例中,获取第一终端基于第一频段创建的第一热点的热点信息,可以包括:扫码第一终端生成的第一热点的热点条码,获得热点信息。
第一终端创建第一热点后,生成第一热点对应的热点条码,示例性的,热点条码包括但不限于一维码、二维码等。
第二终端扫码第一热点对应的热点条码,获得第一热点的热点信息,然后基于第一热点的热点信息发起热点连接,以建立第一终端与第二终端的第一频段通信连接。
第二终端除了通过扫码热点条码获得热点信息的方式以外,还可以通过其他方式获得热点信息。例如,用户可以直接基于第二终端输入热点信息,第二终端接收用户输入的热点信息。
在一实施例中,如图7所示,步骤S202之后可以包括步骤S203。
步骤S203、发射目标信号,以供第一终端扫描到目标信号时,开始计时,若计时达到预设时长时第二终端还未连接成功,则确定第一终端与第二终端的第一频段通信连接失败。
示例性的,目标信号包括但不限于蓝牙信号、声波信号等。例如,第二终端发射蓝牙信号或特定声波信号。
第一终端周期性扫描附近的其他终端发射的目标信号。第一终端扫描目标信号的周期时间可根据实际情况进行灵活设置,在此不作具体限制。
当第一终端扫描到第二终端发射的目标信号时,第一终端开始计时。若在预设时长内第二终端连接上了第一热点,则确定第一终端与第二终端的第一频段通信连接成功,第一终端与第二终端建立第一频段通信连接的流程结束。
若第一终端的计时达到预设时长时,第二终端还未连接上第一热点,也即第二终端在预设时长内一直未连接上第一热点,则确定第一终端与第二终端的第一频段通信连接失败。
例如,当第二终端发起5GHz频段热点连接后,若在5秒的时长内一直未连接上5GHz频段热点,则确定第一终端与第二终端的5GHz频段通信连接失败。
预设时长可根据实际情况进行灵活设置,在此不作具体限制。
在一实施例中,如图8所示,步骤S202之后可以包括步骤S204。
步骤S204、当第一终端与第二终端的第一频段通信连接失败时,后台自动扫描连接第二热点,以建立第一终端与第二终端的第二频段通信连接。
其中,当第一终端与第二终端的第一频段通信连接失败时,第一终端基于第二频段创建第二热点,第二热点的热点信息与第一热点的热点信息相同。
当第一终端与第二终端的第一频段通信连接失败时,第一终端创建第二频段对应的第二热点。其中,第二热点的热点信息与第一热点的热点信息相同。
例如,第一终端创建2.4GHz频段热点,其中,该2.4GHz频段热点对应的二维码中包含2.4GHz频段热点的名称、密码等信息。
第二终端通过wifi后台自动扫描附近第一终端所生成的第二热点,获得第二热点的热点 信息,与第一热点的热点信息相同,基于该热点信息发起热点连接,以建立第一终端与第二终端的第二频段通信连接。例如,第二终端基于2.4GHz频段热点的名称、密码等信息,发起2.4GHz频段热点连接,以建立第一终端与第二终端的2.4GHz频段通信连接。
也即,当第一终端与第二终端的5GHz频段通信连接失败时,重新建立第一终端与第二终端的2.4GHz频段通信连接,从而确保第一终端与第二终端最终能够成功建立通信连接。
在一实施例中,如图9所示,步骤S202之后可以包括步骤S205至步骤S207。
步骤S205、当第一终端与第二终端的第一频段通信连接失败时,输出通信频段选择界面。
步骤S206、当接收到基于通信频段选择界面输入的第一频段选择信息时,后台自动扫描连接第一热点,以建立第一终端与第二终端的第一频段通信连接。
步骤S207、当接收到基于通信频段选择界面输入的第二频段选择信息时,后台自动扫描连接第二热点,以建立第一终端与第二终端的第二频段通信连接。
当第一终端与第二终端的第一频段通信连接失败时,输出通信频段选择界面,其中,该通信频段选择界面上包含第一频段选项、第二频段选项等。用户可以基于通信频段选择界面执行相应的频段选择操作,输入相应的频段选择信息,如第一频段选择信息、第二频段选择信息等。
当接收到用户输入的第一频段选择信息时,也即用户仍旧想建立第一终端与第二终端的第一频段通信连接,此时,第二终端通过wifi后台自动扫描连接第一热点,以建立第一终端与第二终端的第一频段通信连接。
当接收到用户输入的第二频段选择信息时,也即用户想切换建立第一终端与第二终端的第二频段通信连接,此时,第二终端通过wifi后台自动扫描连接第二热点,以建立第一终端与第二终端的第二频段通信连接。
例如,如图10所示,在通信频段选择界面上包含5GHz频段选项、2.4GHz频段选项。用户可以基于通信频段选择界面执行相应的5GHz频段或2.4GHz频段选择操作。若用户在通信频段选择界面上选择了5GHz频段选项,如在5GHz频段选项进行勾选“√”,则输入相应的5GHz频段选择信息。
当接收到用户输入的5GHz频段选择信息时,也即用户仍旧想建立第一终端与第二终端的5GHz频段通信连接,此时,第二终端通过wifi后台自动扫描连接5GHz频段热点,以建立第一终端与第二终端的5GHz频段通信连接。
当接收到用户输入的2.4GHz频段选择信息时,也即用户想切换建立第一终端与第二终端的2.4GHz频段通信连接,此时,第二终端通过wifi后台自动扫描连接2.4GHz频段热点,以 建立第一终端与第二终端的2.4GHz频段通信连接。
在上述描述中,通过获取第一终端基于第一频段创建的第一热点的热点信息,该第一频段为第一终端支持通信的多个频段中的目标通信频段(如5GHz频段),第二终端基于第一热点的热点信息发起热点连接,以建立第一终端与第二终端的第一频段通信连接。可见,第一终端与第二终端只需通过一次连接过程就能实现建立通信连接,相比于目前的两次连接方式,不仅提高了两终端间建立通信连接的效率,而且也降低了连接过程中出故障的概率,提高了两终端间建立通信连接的可靠性。
请参阅图11,图11是本公开实施例提供的一种终端的结构示意性框图。
示例性的,该终端100可以为手机、平板、笔记本、台式机、电视、专用输入设备等。
如图11所示,终端100包括处理器110、存储器120,存储器120用于存储计算机程序。
处理器110,用于执行计算机程序并在执行计算机程序时,实现如下步骤:确定第一终端建立通信连接对应的第一频段,第一频段为第一终端支持通信的多个频段中的目标通信频段;基于第一频段创建第一热点,以供第二终端基于第一热点的热点信息发起热点连接,以建立第一终端与第二终端的第一频段通信连接。
在一实施例中,处理器110在实现基于第一频段创建第一热点之后,用于实现:生成第一热点对应的热点条码,以供第二终端扫码热点条码获得热点信息,并基于热点信息发起热点连接。
在一实施例中,处理器110在执行计算机程序时,还实现:当第一终端与第二终端的第一频段通信连接失败时,基于第二频段创建第二热点,第二热点的热点信息与第一热点的热点信息相同,以供第二终端后台自动扫描连接第二热点,以建立第一终端与第二终端的第二频段通信连接。
在一实施例中,处理器110在实现基于第一频段创建第一热点之后,用于实现:当第二终端发起热点连接时,开始计时;若计时达到预设时长时第二终端还未连接成功,则确定第一终端与第二终端的第一频段通信连接失败。
在一实施例中,处理器110在实现当第二终端发起热点连接时,开始计时之前,用于实现:周期性扫描第一终端以外的其他终端发射的目标信号;当扫描到第二终端发射的目标信号时,确定第二终端发起热点连接;其中,第二终端发起热点连接时,发射目标信号。
处理器可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其 他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
请参阅图12,图12是本公开实施例提供的一种终端的结构示意性框图。
示例性的,该终端200可以为手机、平板、笔记本、台式机、电视、专用输入设备等。
如图12所示,终端200包括处理器210、存储器220,存储器220用于存储计算机程序。
处理器210,用于执行计算机程序并在执行计算机程序时,实现如下步骤:获取第一终端基于第一频段创建的第一热点的热点信息;其中,第一频段为第一终端支持通信的多个频段中的目标通信频段;基于热点信息发起热点连接,以建立第一终端与第二终端的第一频段通信连接。
在一实施例中,处理器210在实现获取第一终端基于第一频段创建的第一热点的热点信息时,用于实现:扫码第一终端生成的第一热点的热点条码,获得热点信息。
在一实施例中,处理器210在实现基于热点信息发起热点连接之后,用于实现:当第一终端与第二终端的第一频段通信连接失败时,后台自动扫描连接第二热点,以建立第一终端与第二终端的第二频段通信连接;其中,当第一终端与第二终端的第一频段通信连接失败时,第一终端基于第二频段创建第二热点,第二热点的热点信息与第一热点的热点信息相同。
在一实施例中,处理器210在实现基于热点信息发起热点连接之后,用于实现:当第一终端与第二终端的第一频段通信连接失败时,输出通信频段选择界面;当接收到基于通信频段选择界面输入的第一频段选择信息时,后台自动扫描连接第一热点,以建立第一终端与第二终端的第一频段通信连接;当接收到基于通信频段选择界面输入的第二频段选择信息时,后台自动扫描连接第二热点,以建立第一终端与第二终端的第二频段通信连接。
在一实施例中,处理器210在实现基于热点信息发起热点连接之后,用于实现:发射目标信号,以供第一终端扫描到目标信号时,开始计时,若计时达到预设时长时第二终端还未连接成功,则确定第一终端与第二终端的第一频段通信连接失败。
本公开的实施例中还提供一种存储介质(计算机可读存储介质),用于计算机可读存储,存储介质存储有一个或者多个程序,一个或者多个程序可被一个或者多个处理器执行,以实现本公开任一建立通信连接的方法实施例中的步骤。
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或 所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读存储介质上,计算机可读存储介质可以包括计算机可读存储介质(或非暂时性介质)和通信介质(或暂时性介质)。
如本领域普通技术人员公知的,术语计算机可读存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机可读存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。
示例性的,计算机可读存储介质可以是前述实施例的终端的内部存储单元,例如终端的硬盘或内存。计算机可读存储介质也可以是终端的外部存储设备,例如终端上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。
以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以权利要求的保护范围为准。
Claims (13)
- 一种建立通信连接的方法,应用于第一终端,其中,所述方法包括以下步骤:确定第一终端建立通信连接对应的第一频段,所述第一频段为所述第一终端支持通信的多个频段中的目标通信频段;基于所述第一频段创建第一热点,以供第二终端基于所述第一热点的热点信息发起热点连接,以建立所述第一终端与所述第二终端的第一频段通信连接。
- 根据权利要求1所述的方法,其中,所述基于所述第一频段创建第一热点之后,包括:生成所述第一热点对应的热点条码,以供所述第二终端扫码所述热点条码获得所述热点信息,并基于所述热点信息发起热点连接。
- 根据权利要求1所述的方法,其中,所述方法还包括:当所述第一终端与所述第二终端的第一频段通信连接失败时,基于第二频段创建第二热点,所述第二热点的热点信息与所述第一热点的热点信息相同,以供所述第二终端后台自动扫描连接所述第二热点,以建立所述第一终端与所述第二终端的第二频段通信连接。
- 根据权利要求1至3任一项所述的方法,其中,所述基于所述第一频段创建第一热点之后,包括:当所述第二终端发起热点连接时,开始计时;若计时达到预设时长时所述第二终端还未连接成功,则确定所述第一终端与所述第二终端的第一频段通信连接失败。
- 根据权利要求4所述的方法,其中,所述当所述第二终端发起热点连接时,开始计时之前,包括:周期性扫描所述第一终端以外的其他终端发射的目标信号;当扫描到所述第二终端发射的目标信号时,确定所述第二终端发起热点连接;其中,所述第二终端发起热点连接时,发射所述目标信号。
- 一种建立通信连接的方法,应用于第二终端,其中,所述方法包括以下步骤:获取第一终端基于第一频段创建的第一热点的热点信息;其中,所述第一频段为所述第一终端支持通信的多个频段中的目标通信频段;基于所述热点信息发起热点连接,以建立所述第一终端与所述第二终端的第一频段通信连接。
- 根据权利要求6所述的方法,其中,所述获取第一终端基于第一频段创建的第一热点的热点信息,包括:扫码所述第一终端生成的所述第一热点的热点条码,获得所述热点信息。
- 根据权利要求6所述的方法,其中,所述基于所述热点信息发起热点连接之后,包括:当所述第一终端与所述第二终端的第一频段通信连接失败时,后台自动扫描连接第二热点,以建立所述第一终端与第二终端的第二频段通信连接;其中,当所述第一终端与所述第二终端的第一频段通信连接失败时,所述第一终端基于所述第二频段创建所述第二热点,所述第二热点的热点信息与所述第一热点的热点信息相同。
- 根据权利要求6所述的方法,其中,所述基于所述热点信息发起热点连接之后,包括:当所述第一终端与所述第二终端的第一频段通信连接失败时,输出通信频段选择界面;当接收到基于所述通信频段选择界面输入的第一频段选择信息时,后台自动扫描连接所述第一热点,以建立所述第一终端与所述第二终端的第一频段通信连接;当接收到基于所述通信频段选择界面输入的第二频段选择信息时,后台自动扫描连接第二热点,以建立所述第一终端与所述第二终端的第二频段通信连接。
- 根据权利要求6至9任一项所述的方法,其中,所述基于所述热点信息发起热点连接之后,包括:发射目标信号,以供所述第一终端扫描到所述目标信号时,开始计时,若计时达到预设时长时所述第二终端还未连接成功,则确定所述第一终端与所述第二终端的第一频段通信连接失败。
- 一种终端,其中,包括存储器以及处理器;所述存储器用于存储计算机程序;所述处理器,用于执行所述计算机程序并在执行所述计算机程序时实现如权利要求1至5任一项所述的建立通信连接的方法的步骤。
- 一种终端,其中,包括存储器以及处理器;所述存储器用于存储计算机程序;所述处理器,用于执行所述计算机程序并在执行所述计算机程序时实现如权利要求6至10任一项所述的建立通信连接的方法的步骤。
- 一种存储介质,用于计算机可读存储,其中,所述存储介质存储有一个或者多个程序,所述一个或者多个程序被一个或者多个处理器执行,以实现如权利要求1至5任一项所述的建立通信连接的方法的步骤,或实现如权利要求6至10任一项所述的建立通信连接的方法的步骤。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111675650.2 | 2021-12-31 | ||
| CN202111675650.2A CN116419426A (zh) | 2021-12-31 | 2021-12-31 | 建立通信连接的方法、终端和存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023124264A1 true WO2023124264A1 (zh) | 2023-07-06 |
Family
ID=86997407
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/119372 Ceased WO2023124264A1 (zh) | 2021-12-31 | 2022-09-16 | 建立通信连接的方法、终端和存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN116419426A (zh) |
| WO (1) | WO2023124264A1 (zh) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117240361B (zh) * | 2023-11-13 | 2024-03-15 | 新唐信通(浙江)科技有限公司 | 一种定向加密的电视屏幕和智能手机间可见光通信方法 |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106973424A (zh) * | 2017-03-28 | 2017-07-21 | 维沃移动通信有限公司 | 一种无线接入点的创建方法及终端 |
| CN111356209A (zh) * | 2020-02-17 | 2020-06-30 | Oppo广东移动通信有限公司 | 多频WiFi热点开启方法、装置、存储介质及电子设备 |
| CN112291862A (zh) * | 2020-10-27 | 2021-01-29 | 中兴通讯股份有限公司 | 终端设备间建立连接的方法及终端设备 |
-
2021
- 2021-12-31 CN CN202111675650.2A patent/CN116419426A/zh active Pending
-
2022
- 2022-09-16 WO PCT/CN2022/119372 patent/WO2023124264A1/zh not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106973424A (zh) * | 2017-03-28 | 2017-07-21 | 维沃移动通信有限公司 | 一种无线接入点的创建方法及终端 |
| CN111356209A (zh) * | 2020-02-17 | 2020-06-30 | Oppo广东移动通信有限公司 | 多频WiFi热点开启方法、装置、存储介质及电子设备 |
| CN112291862A (zh) * | 2020-10-27 | 2021-01-29 | 中兴通讯股份有限公司 | 终端设备间建立连接的方法及终端设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116419426A (zh) | 2023-07-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11297666B2 (en) | Electronic device and method for forming Wi-Fi direct group thereof | |
| JP2014534674A (ja) | ワイヤレスローカルエリアネットワーク認証方法およびモバイル端末 | |
| US11395121B2 (en) | Communication device, non-transitory computer-readable recording medium storing computer-readable instructions for communication device, and method executed by communication device | |
| CN111225410B (zh) | 一种确定上行链路的方法及装置 | |
| WO2014183404A1 (zh) | 数据传输方法、装置及系统、终端 | |
| US9883545B2 (en) | Apparatus and method for selecting channel in wireless communication system | |
| WO2023024824A1 (zh) | 充电协议的确定方法、装置、电子设备和可读存储介质 | |
| WO2019144742A1 (zh) | 用户终端和设备的绑定方法、装置和系统 | |
| CN114363976B (zh) | 无线通信方法和终端设备 | |
| CN108848505A (zh) | 一种无线连接方法及设备 | |
| CN105827638A (zh) | 数据传输方法、装置和系统 | |
| WO2023006039A1 (zh) | 客户端的通信方法、客户端和通信系统 | |
| US20210367643A1 (en) | Data transmission method for bluetooth card reader and electronic device | |
| CN106686752A (zh) | 一种通过用户设备上第一应用建立无线连接的方法与设备 | |
| CN112291862A (zh) | 终端设备间建立连接的方法及终端设备 | |
| WO2023124264A1 (zh) | 建立通信连接的方法、终端和存储介质 | |
| CN111510995B (zh) | 无线通信方法和设备 | |
| WO2024234837A1 (zh) | 登录方法、电子设备、及存储介质 | |
| CN114650520A (zh) | 基于标准蓝牙广播实现无线网络连接的方法及装置 | |
| CN114650522A (zh) | 基于低功耗蓝牙广播实现无线网络连接的方法及装置 | |
| CN106060815A (zh) | 一种数据传输方法、移动终端及数据传输系统 | |
| CN117793850A (zh) | 网络接入方法、终端、系统、电子设备及存储介质 | |
| CN104702777B (zh) | 一种多卡移动终端的呼叫处理方法及终端 | |
| WO2026066795A1 (zh) | 支付系统、支付方法、存储介质和程序产品 | |
| WO2018121652A1 (zh) | 通过用户设备中的应用连接无线接入点的方法与设备 |
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: 22913529 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: 22913529 Country of ref document: EP Kind code of ref document: A1 |