CN108337741B - Method, apparatus and computer-readable storage medium for establishing communication connection - Google Patents
Method, apparatus and computer-readable storage medium for establishing communication connection Download PDFInfo
- Publication number
- CN108337741B CN108337741B CN201810118140.7A CN201810118140A CN108337741B CN 108337741 B CN108337741 B CN 108337741B CN 201810118140 A CN201810118140 A CN 201810118140A CN 108337741 B CN108337741 B CN 108337741B
- Authority
- CN
- China
- Prior art keywords
- terminal
- group name
- communication group
- connection
- query request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a method, a device and a computer readable storage medium for constructing communication connection, wherein the communication connection method comprises the following steps: a terminal receives a terminal query request initiated by a wireless local area network direct connection function, wherein the terminal query request comprises a communication group name; determining whether a communication group name prestored in the terminal is matched with a communication group name in a received terminal query request; if the communication group name prestored in the terminal is matched with the communication group name in the received terminal query request, sending a terminal response message; and the terminal receives the connection request message and establishes connection through the direct connection function of the wireless local area network. The invention can automatically construct communication connection through the direct connection function of the wireless local area network under the condition of no USB connection or wireless local area network hot spot.
Description
Technical Field
The present invention relates to the field of communications, and in particular, to a method, an apparatus, and a computer-readable storage medium for establishing a communication connection.
Background
In the prior art, the connection of the intelligent terminal device mainly adopts two connection modes: universal Serial Bus (USB) connections and wireless local area network hotspot connections (WIFI hotspot connections). The USB connection is used for standardizing the connection and communication between a computer and external equipment, and is an interface technology applied to the field of computers. The USB interface supports plug and play and hot plug functions of the device. The WIFI hotspot connection is a technology for converting a public network wireless transmission signal received by a mobile phone into a WIFI signal to be sent out, and the mobile phone can be used as a hotspot only by having a wireless access point function, so that a user needs to manually create the hotspot during use, actively connect with a specified hotspot and then connect with terminal equipment.
In order to solve the inconvenience brought by the two modes in use for users, the invention provides a method for using a wireless local area network direct connection function to automatically search and establish connection of intelligent terminal equipment.
Disclosure of Invention
Embodiments of the present invention provide a method for establishing a communication connection, a communication connection apparatus, and a computer-readable storage medium, so as to solve at least one technical problem in the prior art.
In a first aspect, an embodiment of the present invention provides a method for constructing a communication connection, including:
a terminal receives a terminal query request initiated by a wireless local area network direct connection function, wherein the terminal query request comprises a communication group name; determining whether a communication group name prestored in the terminal is matched with a communication group name in a received terminal query request; if the communication group name prestored in the terminal is matched with the communication group name in the received terminal query request, sending a terminal response message; and the terminal receives the connection request message and establishes connection through the direct connection function of the wireless local area network.
With reference to the first aspect, the present invention, in a first embodiment of the first aspect, includes: responding to a received terminal query request, and detecting whether the terminal has a wireless local area network direct connection function or not; and when the terminal has a wireless local area network direct connection function and the communication group name prestored in the terminal is matched with the communication group name in the terminal query request, sending a terminal response message.
With reference to the first aspect, in a second implementation manner of the first aspect, the present invention further includes: sending address information of a device for which a terminal inquiry request is made; and the method further comprises: when the communication group name prestored by the terminal is matched with the communication group name in the terminal query request, the terminal stores the address information of the device sending the terminal query request; and establishing connection through a wireless local area network direct connection function, including: and establishing connection through a wireless local area network direct connection function based on the address information.
In a second aspect, an embodiment of the present invention provides a method for constructing a communication connection, including:
a first terminal sends a terminal query request through a wireless local area network direct connection function, wherein the terminal query request comprises a communication group name of the first terminal; the first terminal receives a returned terminal response message, wherein the terminal response message indicates that a second terminal with a communication group name matched with the communication group name of the first terminal is determined to be prestored; and responding to the received terminal response message, initiating a connection establishment request message to the second terminal, and establishing connection between the first terminal and the second terminal through a wireless local area network direct connection function.
With reference to the second aspect, in a first implementation manner of the second aspect, the terminal response message further includes: a communication group name of the second terminal and address information of the second terminal; and after the first terminal receives the returned terminal response message, the method further comprises: comparing the communication group name of the second terminal carried in the terminal response message with the communication group name prestored in the first terminal; and initiating a connection establishment request message to the second terminal further comprises: and when the communication group name prestored by the first terminal is matched with the communication group name of the second terminal, initiating a connection establishment request message to the second terminal.
With reference to the second aspect, the present invention further includes, in a second embodiment of the second aspect:
when the communication group name prestored by the first terminal is matched with the communication group name of the second terminal, the first terminal stores the address information of the second terminal; and establishing connection between the first terminal and the second terminal through a wireless local area network direct connection function, including: and establishing connection between the first terminal and the second terminal through a wireless local area network direct connection function based on the address information of the second terminal.
With reference to the second aspect, the present invention, in a third embodiment of the second aspect, comprises: the first terminal is a vehicle-mounted device, and the second terminal is a mobile terminal.
In a third aspect, an embodiment of the present invention provides an apparatus for establishing a communication connection, including: the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a terminal query request initiated by a wireless local area network direct connection function, and the terminal query request comprises a communication group name; the determining module is used for determining whether the pre-stored communication group name is matched with the communication group name in the received terminal query request; the first sending module is used for sending a first receiving module response message when the determining module determines that the pre-stored communication group name is matched with the communication group name in the received terminal query request; and the connection establishing module is used for receiving the connection request message so as to establish connection through the wireless local area network direct connection function.
With reference to the third aspect, the present invention provides, in a first embodiment of the third aspect, an apparatus comprising: the device comprises a detection module, a detection module and a control module, wherein the detection module is used for detecting whether the device has a wireless local area network direct connection function or not; and the first sending module is further used for sending a response message of the first receiving module when the device has a wireless local area network direct connection function and the determining module determines that the pre-stored communication group name is matched with the communication group name in the received terminal query request.
With reference to the third aspect, in a second implementation manner of the third aspect, the present invention further includes: sending address information of a device for which a terminal inquiry request is made; and the apparatus further comprises: the first storage module is used for storing the address information in the terminal query request received by the first receiving module when the communication group name prestored by the first receiving module is matched with the communication group name in the received terminal query request; and the first connection establishing module is also used for establishing connection through a wireless local area network direct connection function based on the address information.
In a fourth aspect, an embodiment of the present invention provides an apparatus for establishing a communication connection, including: the second sending module is used for sending a terminal query request through a wireless local area network direct connection function, wherein the terminal query request comprises a communication group name of the device; the second receiving module is used for receiving a returned terminal response message, wherein the terminal response message indicates a second terminal which is pre-stored with a communication group name matched with the communication group name in the terminal query request; and the second connection establishing module is used for responding to the received terminal response message, initiating a connection establishing request message to the second terminal and establishing the connection with the second terminal through the wireless local area network direct connection function.
With reference to the fourth aspect, in a first implementation manner of the fourth aspect, the terminal response message includes: a communication group name of the second terminal and address information of the second terminal; and the apparatus further comprises: the comparison module is used for comparing the communication group name of the second terminal carried in the terminal response message with the prestored communication group name; and the connection establishing module is further used for initiating a connection establishing request message to the first receiving module when the communication group name of the second terminal carried in the terminal response message is matched with the pre-stored communication group name.
With reference to the fourth aspect, the present invention provides, in a second embodiment of the fourth aspect, an apparatus comprising: the second storage module is used for storing the address information of the second terminal when the communication group name of the second terminal carried in the terminal response message is matched with the prestored communication group name; and the connection establishing module is also used for establishing connection between the device and the second terminal through the wireless local area network direct connection function based on the address information of the second terminal.
The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above-described functions.
In one possible design, the structure of the apparatus for establishing a communication connection includes a processor and a memory, the memory is used for storing a program supporting the apparatus for establishing a communication connection to execute the method for establishing a communication connection in the first aspect, and the processor is configured to execute the program stored in the memory. The means for establishing a communication connection may also include a communication interface for communicating with other devices or communication networks.
In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium for storing computer software instructions for an apparatus for constructing a communication connection, which includes a program for executing the method for constructing a communication connection in the first aspect, to the apparatus for constructing a communication connection.
In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium for storing computer software instructions for an apparatus for constructing a communication connection, which includes a program for executing the method for constructing a communication connection in the second aspect to the apparatus for constructing a communication connection.
The technical scheme has the following advantages or beneficial effects in the execution process:
by applying the wireless local area network direct connection function, the terminal equipment automatically searches for other terminal equipment with the same communication group name, and automatically establishes connection by using the wireless local area network direct connection function, so that hardware connection operation is not needed, hot spot connection is not needed to be manually established, operation steps are simplified, and convenience is provided for clients.
The foregoing summary is provided for the purpose of description only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features of the present invention will be readily apparent by reference to the drawings and following detailed description.
Drawings
In the drawings, like reference numerals refer to the same or similar parts or elements throughout the several views unless otherwise specified. The figures are not necessarily to scale. It is appreciated that these drawings depict only some embodiments in accordance with the disclosure and are therefore not to be considered limiting of its scope.
Fig. 1 is a flow chart of a method of establishing a communication connection according to an embodiment of the invention.
Fig. 2 is a flow chart of a method of establishing a communication connection according to another embodiment of the present invention.
Fig. 3 is a signal flow diagram of a method of establishing a communication connection according to an embodiment of the present invention.
Fig. 4 is a schematic block diagram of an apparatus for establishing a communication connection according to an embodiment of the present invention.
Fig. 5 is a schematic block diagram of an apparatus for establishing a communication connection according to another embodiment of the present invention.
Fig. 6 is a schematic block diagram of an apparatus for establishing a communication connection according to yet another embodiment of the present invention.
Fig. 7 is a schematic block diagram of an apparatus for establishing a communication connection according to yet another embodiment of the present invention.
Fig. 8 is a schematic diagram of an apparatus for establishing a communication connection according to an embodiment of the present invention.
Detailed Description
In the following, only certain exemplary embodiments are briefly described. As those skilled in the art will recognize, the described embodiments may be modified in various different ways, all without departing from the spirit or scope of the present invention. Accordingly, the drawings and description are to be regarded as illustrative in nature, and not as restrictive.
Example 1
Fig. 1 shows a flow chart of a method of constructing a communication connection according to an embodiment of the invention. In the embodiment shown in fig. 1, the method can be applied to a receiving end device. The receiving end device may be a mobile terminal such as a mobile phone, Ipad, etc. Referring to fig. 1, the method includes the following specific steps:
step S110, the terminal receives a terminal query request initiated by the wireless local area network direct connection function, wherein the terminal query request comprises a communication group name.
In this embodiment, the mobile phone may serve as a receiving end using the method of the present invention, and receive a terminal query request initiated by a wireless local area network direct connection function, where the query request includes a communication group name of a sending end, such as a carrife. The communication group name may be previously stored in the transmitting end. The transmitting end may be, for example, an in-vehicle device. The sending-end device may be simultaneously set in a plurality of communication groups, and thus the pre-stored communication group names may be a plurality.
And step S120, determining whether the communication group name prestored in the terminal is matched with the communication group name in the received terminal inquiry request.
Accordingly, the communication group name is also prestored in the receiving end. And when the mobile phone receives the query request, the communication group name carried in the query request is obtained. And comparing the acquired communication group name with the communication group name prestored in the mobile phone. In addition, the terminal query request further includes: address information of a device that transmits the terminal inquiry request, and the like.
And step S130, if the communication group name prestored in the terminal is matched with the communication group name in the received terminal inquiry request, sending a terminal response message.
In one embodiment, before sending the terminal response message, the method may further include: the receiving end checks whether the receiving end has a wireless local area network direct connection function or not; and when the receiving end has the function of directly connecting the wireless local area network and the communication group name prestored by the receiving end is matched with the received communication group name of the sending terminal, sending a terminal response message. That is, the mobile phone first needs to perform self-check whether the wireless local area network function exists, and then compares the communication group name prestored in the mobile phone terminal with the received communication group name; if the names match, it can be determined that the two terminals are disposed in the same communication group. In this case, the receiving end returns a terminal response message to the transmitting end.
In an embodiment of the present invention, when the communication group name prestored in the receiving end matches the communication group name in the terminal query request, that is, when the communication group name prestored in the mobile phone matches the received communication group name, the receiving end stores the address information of the transmitting end carried in the terminal query request.
Step S140, the terminal receives the connection request message to establish connection through the wireless local area network direct connection function.
Specifically, the previously stored address information of the sending end may be utilized to establish a connection with the sending end by utilizing the wlan direct connection function.
According to the method for establishing the communication connection, the communication connection can be automatically established through the wireless local area network direct connection function by comparing the preset communication group names without manual operation of a user, so that the communication connection mode is simple to operate and has universal applicability.
Example 2
Fig. 2 shows a flow diagram of a method of establishing a communication connection according to another embodiment of the invention. In the embodiment shown in fig. 2, the method is applied to the transmitting end device. The sending end equipment can be terminals such as vehicle-mounted equipment and intelligent household appliances. Referring to fig. 2, the method comprises the following specific steps:
step S210, the first terminal sends a terminal query request through a wireless local area network direct connection function, wherein the terminal query request comprises a communication group name of the first terminal.
In this embodiment, an example is described with an in-vehicle device as a sending-end device. The vehicle-mounted device can be used as a first terminal using the method. The first terminal sends a terminal query request through a wireless local area network direct connection function, wherein the terminal query request comprises a communication group name of the vehicle-mounted device, such as Carlife. The communication group name may be previously stored in the first terminal. The second terminal device may be simultaneously set in a plurality of communication groups, and thus the pre-stored communication group names may be a plurality.
Step S220, the first terminal receives a returned terminal response message, where the terminal response message indicates that the second terminal in which the communication group name matching the communication group name of the first terminal is pre-stored is determined.
Correspondingly, the vehicle-mounted device receives a response message sent by the mobile phone terminal through the wireless local area network direct connection function, wherein the response message includes a communication group name of the mobile phone, such as Carlife. When the received communication group name is matched with a communication group name prestored in the vehicle-mounted device, the vehicle-mounted device can determine that the mobile phone and the vehicle-mounted device are preset in one communication group. That is, when the name carried in the response message received by the vehicle-mounted device matches its own pre-stored name, it is determined that the vehicle-mounted device can establish a connection with the mobile phone.
In addition, the terminal response message further includes: the communication group name of the second terminal, the address information of the second terminal, and the like.
Step S230, in response to the received terminal response message, initiating a connection establishment request message to the second terminal, so as to establish a connection between the first terminal and the second terminal through the wlan direct connection function.
According to the method of establishing a communication connection of the present embodiment, the first terminal receives a response message of the second terminal. And establishing communication connection with the second terminal through a wireless local area network direct connection function if the communication group name prestored in the first terminal is matched with the communication group name of the second terminal by comparing.
In an embodiment of the present invention, before establishing the connection between the first terminal and the second terminal, the method further includes: the first terminal stores address information of the second terminal. Through the address information and the wireless local area network direct connection function, the first terminal can be connected with the second terminal. That is to say, after comparing the communication group name prestored in the vehicle-mounted device with the communication group name of the mobile phone, when the communication group name is matched with the communication group name prestored in the mobile phone, the vehicle-mounted device stores the address information of the mobile phone, and finds the mobile phone and establishes connection with the mobile phone through the address information and the wireless local area network direct connection function.
Therefore, the communication connection construction method has the advantages of reliability, simplicity in operation and universality.
Example 3
Fig. 3 shows a signal flow diagram of a method of constructing a communication connection according to an embodiment of the invention. In the embodiment shown in fig. 3, the method of establishing a communication connection is implemented by terminal a and terminal B. Referring to fig. 3, the steps of constructing a communication connection are as follows:
before establishing the connection, the communication group names, such as Carlife, are prestored on both the terminal A and the terminal B.
Step S310, the terminal A broadcasts and sends a query request, and the query request carries a preset communication group name and address information of the terminal A.
Step S320, the terminal B receives the query request of the terminal a, and first detects whether the terminal B has a function of directly connecting to the wireless local area network, and if so, checks whether the received communication group name of the terminal a is consistent with the pre-stored communication group name of the terminal B, and if so, retains the address information of the terminal a.
Step S330, the terminal B broadcasts and sends a response message to the terminal a through the stored address information of the terminal a, where the response message includes the communication group name of the terminal B and the address information of the terminal B.
Step S340, the terminal A receives the response information of the terminal B, and the response information carries the communication group name of the terminal B and the address information of the terminal B; and the terminal A compares the prestored communication group name with the received communication group name of the terminal B again, if the communication group name is consistent with the received communication group name of the terminal B, the terminal B is determined to be another terminal which can establish connection, and meanwhile, the address information of the terminal B is stored.
In step S350, terminal a broadcasts and transmits a connection request to terminal B through the stored address information of terminal B.
Step S360, the terminal B receives the connection request of the terminal A.
And step S370, establishing connection information through the function of the wireless local area network direct connection.
Example 4
Fig. 4 shows a schematic block diagram of an apparatus for constructing a communication connection according to an embodiment of the invention. In the embodiment shown in fig. 4, the device may be a mobile device such as a cell phone, Ipad, etc. Referring to fig. 4, the apparatus includes the following modules:
a first receiving module 410, configured to receive a terminal query request initiated by a wireless local area network direct connection function, where the terminal query request includes a communication group name.
A determining module 420, configured to determine whether a pre-stored communication group name matches a communication group name in the received terminal query request;
a first sending module 430, configured to send a first receiving module response message when the determining module determines that the pre-stored communication group name matches the communication group name in the received terminal query request.
A first connection establishing module 440, configured to receive the connection request message, and establish a connection through the wlan direct connection function.
In one embodiment, referring to fig. 5, the apparatus for establishing a communication connection may further include: the detecting module 450 is configured to detect whether the apparatus has a wlan direct connection function.
Therefore, the first sending module 430 is further configured to send the response message of the first receiving module when the apparatus has the wireless local area network direct connection function and the determining module determines that the pre-stored communication group name matches the communication group name in the received terminal query request.
In one embodiment, the terminal query request further includes: the address information of the device that transmitted the terminal inquiry request. With further reference to fig. 5, the means for establishing a communication connection may further comprise: the first storing module 460 is configured to store the address information in the terminal query request received by the first receiving module when the communication group name pre-stored by the first receiving module matches the communication group name in the received terminal query request.
Therefore, the first connection establishing module 440 is further configured to establish a connection through the wlan direct connection function based on the address information.
Example 5
Fig. 6 shows a schematic block diagram of an apparatus for establishing a communication connection according to another embodiment of the invention. In the embodiment shown in fig. 6, the device may be a vehicle-mounted device, an intelligent appliance, or the like. Referring to fig. 6, the apparatus includes the following modules:
a second sending module 510, configured to send a terminal query request through a wireless local area network direct connection function, where the terminal query request includes a communication group name of a device.
A second receiving module 520, configured to receive a returned terminal response message, where the terminal response message indicates that a second terminal that has a communication group name matching the communication group name in the terminal query request is determined to be prestored.
A second connection establishing module 530, configured to initiate, in response to the received terminal response message, a connection establishment request message to the second terminal, so as to establish a connection with the second terminal through the wlan direct connection function.
In one embodiment, the terminal response message includes: a communication group name of the second terminal and address information of the second terminal. Referring to fig. 7, the apparatus for establishing a communication connection may further include: a comparing module 540, configured to compare the communication group name of the second terminal carried in the terminal response message with a pre-stored communication group name.
Therefore, the second connection establishing module 530 is further configured to initiate the connection establishment request message to the second terminal when the communication group name of the second terminal carried in the terminal response message matches the pre-stored communication group name.
In one embodiment, referring to fig. 7, the apparatus for establishing a communication connection may further include: a second storage module 550, configured to store address information of the second terminal when the communication group name of the second terminal carried in the terminal response message matches a pre-stored communication group name; and the second connection establishing module is also used for establishing connection between the device and the second terminal through the wireless local area network direct connection function based on the address information of the second terminal.
In addition, when the wireless local area network direct connection function is applied, the receiving end equipment and the sending terminal equipment can keep the functions of wired network connection and wireless network connection.
Example 6
Fig. 8 is a schematic structural diagram of an apparatus for establishing a communication connection according to an embodiment of the present invention. As shown in fig. 8, the apparatus includes: a memory 710 and a processor 720, the memory 710 having stored therein computer programs that are executable on the processor 720. The processor 720, when executing the computer program, implements the response text generation method in the above-described embodiments. The number of the memory 710 and the processor 720 may be one or more.
The device also includes:
and a communication interface 730, configured to communicate with an external device, and perform data interactive transmission.
If the memory 710, the processor 720 and the communication interface 730 are implemented independently, the memory 710, the processor 720 and the communication interface 730 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
Optionally, in an implementation, if the memory 710, the processor 720 and the communication interface 730 are integrated on a chip, the memory 710, the processor 720 and the communication interface 730 may complete communication with each other through an internal interface.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer readable storage medium. The storage medium may be a read-only memory, a magnetic or optical disk, or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various changes or substitutions within the technical scope of the present invention, and these should be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (15)
1. A method of establishing a communication connection, comprising:
a terminal receives a terminal query request initiated by a wireless local area network direct connection function, wherein the terminal query request comprises a communication group name prestored by a sending end;
determining whether a communication group name prestored in the terminal is matched with a communication group name in the received terminal query request;
if the communication group name prestored in the terminal is matched with the communication group name in the received terminal query request, sending a terminal response message; and
and the terminal receives the connection request message and establishes connection through the wireless local area network direct connection function.
2. The method of claim 1, further comprising:
responding to the received terminal query request, and detecting whether the terminal has a wireless local area network direct connection function or not; and
and when the terminal has a wireless local area network direct connection function and the communication group name prestored in the terminal is matched with the communication group name in the terminal query request, sending the terminal response message.
3. The method of claim 1, wherein the terminal query request further comprises: sending address information of a device of the terminal query request; and
the method further comprises the following steps:
when the communication group name prestored in the terminal is matched with the communication group name in the terminal query request, the terminal stores the address information of the device sending the terminal query request; and
the establishing of the connection through the wireless local area network direct connection function includes:
and establishing connection through the wireless local area network direct connection function based on the address information.
4. A method of establishing a communication connection, comprising:
a first terminal sends a terminal query request through a wireless local area network direct connection function, wherein the terminal query request comprises a communication group name of the first terminal;
the first terminal receives a returned terminal response message, wherein the terminal response message represents a second terminal which is determined to be prestored with a communication group name matched with the communication group name of the first terminal; and
and responding to the received terminal response message, initiating a connection establishment request message to the second terminal, and establishing connection between the first terminal and the second terminal through the wireless local area network direct connection function.
5. The method of claim 4, wherein the terminal response message further comprises: a communication group name of the second terminal and address information of the second terminal; and
after the first terminal receives the returned terminal response message, the method further comprises:
comparing the communication group name of the second terminal carried in the terminal response message with the communication group name prestored in the first terminal; and
the initiating a connection establishment request message to the second terminal further comprises:
and when the communication group name prestored by the first terminal is matched with the communication group name of the second terminal, initiating a connection establishment request message to the second terminal.
6. The method of claim 5, further comprising:
when the communication group name prestored by the first terminal is matched with the communication group name of the second terminal, the first terminal stores the address information of the second terminal; and
the establishing of the connection between the first terminal and the second terminal through the wireless local area network direct connection function includes:
and establishing connection between the first terminal and the second terminal through the wireless local area network direct connection function based on the address information of the second terminal.
7. The method according to claim 4, wherein the first terminal is a vehicle-mounted device and the second terminal is a mobile terminal.
8. An apparatus for establishing a communication connection, comprising:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a terminal query request initiated by a wireless local area network direct connection function, and the terminal query request comprises a communication group name prestored by a sending end;
a determining module, configured to determine whether a pre-stored communication group name matches a communication group name in the received terminal query request;
a first sending module, configured to send a first receiving module response message when the determining module determines that the pre-stored communication group name matches the communication group name in the received terminal query request; and
and the first connection establishing module is used for receiving the connection request message so as to establish connection through the wireless local area network direct connection function.
9. The apparatus of claim 8, further comprising:
the detection module is used for detecting whether the device has a wireless local area network direct connection function or not; and
the first sending module is further configured to send a response message of the first receiving module when the apparatus has a wireless local area network direct connection function and the determining module determines that a pre-stored communication group name matches a communication group name in the received terminal query request.
10. The apparatus of claim 8, wherein the terminal query request further comprises: sending address information of a device of the terminal query request; and
the device further comprises:
a first storage module, configured to store the address information in the terminal query request received by the first receiving module when a communication group name pre-stored by the first receiving module matches a communication group name in the received terminal query request; and
the first connection establishing module is further configured to establish a connection through the wlan direct connection function based on the address information.
11. An apparatus for establishing a communication connection, comprising:
a second sending module, configured to send a terminal query request through a wireless local area network direct connection function, where the terminal query request includes a communication group name of the device;
a second receiving module, configured to receive a returned terminal response message, where the terminal response message indicates a second terminal in which a communication group name matching the communication group name in the terminal query request is determined to be prestored; and
and the second connection establishing module is used for responding to the received terminal response message, initiating a connection establishing request message to the second terminal, and establishing connection with the second terminal through the wireless local area network direct connection function.
12. The apparatus of claim 11, wherein the terminal response message comprises: a communication group name of the second terminal and address information of the second terminal; and
the device further comprises:
the comparison module is used for comparing the communication group name of the second terminal carried in the terminal response message with a prestored communication group name; and
the second connection establishing module is further configured to initiate the connection establishing request message to the second terminal when the communication group name of the second terminal carried in the terminal response message matches the pre-stored communication group name.
13. The apparatus of claim 12, further comprising:
a second storage module, configured to store address information of the second terminal when the communication group name of the second terminal carried in the terminal response message matches the pre-stored communication group name; and
the second connection establishing module is further configured to establish a connection between the device and the second terminal through the wlan direct connection function based on the address information of the second terminal.
14. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method of establishing a communication connection as claimed in any one of claims 1 to 3.
15. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method of establishing a communication connection according to any one of claims 4 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810118140.7A CN108337741B (en) | 2018-02-06 | 2018-02-06 | Method, apparatus and computer-readable storage medium for establishing communication connection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810118140.7A CN108337741B (en) | 2018-02-06 | 2018-02-06 | Method, apparatus and computer-readable storage medium for establishing communication connection |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108337741A CN108337741A (en) | 2018-07-27 |
CN108337741B true CN108337741B (en) | 2020-11-03 |
Family
ID=62928481
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810118140.7A Active CN108337741B (en) | 2018-02-06 | 2018-02-06 | Method, apparatus and computer-readable storage medium for establishing communication connection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108337741B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111182512B (en) * | 2018-11-09 | 2023-09-01 | 中国电信股份有限公司 | Terminal connection method, device, terminal and computer readable storage medium |
CN115225754A (en) * | 2022-07-19 | 2022-10-21 | 深圳六点作业科技有限公司 | Intelligent equipment local area network direct connection interaction and control method and system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103108406A (en) * | 2013-01-15 | 2013-05-15 | 深圳市同洲电子股份有限公司 | Data transmission method and terminals |
CN104735810A (en) * | 2013-12-20 | 2015-06-24 | 深圳市海思半导体有限公司 | Method and device for establishing connecting between terminals |
CN104796853B (en) * | 2015-05-19 | 2018-07-06 | 北京子清智创科技有限公司 | A kind of communication system and method |
CN105072704B (en) * | 2015-07-22 | 2018-10-12 | 上海斐讯数据通信技术有限公司 | The method and system of information are obtained between a kind of strange intelligent terminal |
CN107087265A (en) * | 2017-03-23 | 2017-08-22 | 嘉兴爱尔特云网络科技有限责任公司 | A kind of communicator and method for connecting multiple WiFi Direct groups |
-
2018
- 2018-02-06 CN CN201810118140.7A patent/CN108337741B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN108337741A (en) | 2018-07-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113490218B (en) | Pairing method, pairing device, bluetooth remote controller, intelligent device and storage medium | |
EP2677833A1 (en) | Terminal and Method for P2P Connection in Wi-Fi Network | |
US10171997B2 (en) | Method and apparatus for interconnection between terminal device and gateway device | |
US10904743B2 (en) | Methods for automatic bootstrapping of a device | |
CN103874047B (en) | Information on services finds method and apparatus | |
CN103546575A (en) | Method and device for data transmission | |
CN111263338B (en) | Network distribution method of Bluetooth Mesh network, related network distribution equipment and system | |
CN110958593A (en) | Bluetooth networking method, device, system and computer readable medium | |
CN109819498A (en) | A kind of smart machine, the automatic distribution method and system of smart machine | |
CN106211271A (en) | The method of network entry of intelligent home device, device and intelligent home device | |
CN105392142B (en) | A kind of Wireless Fidelity Wi-Fi access-in point information storage method and device | |
CN108337741B (en) | Method, apparatus and computer-readable storage medium for establishing communication connection | |
CN106851758B (en) | Communication network switching method and terminal equipment | |
CN106612530B (en) | Control method, device and system of networking equipment | |
CN105636030A (en) | Method and device for sharing access point | |
CN113691609B (en) | Data acquisition method and device, electronic equipment and storage medium | |
CN113132929B (en) | Equipment network access method and device, computer equipment and storage medium | |
US10200849B1 (en) | Systems and methods for auto-pair via a plurality of protocols | |
US11489719B2 (en) | Configuration device and method | |
CN106886159B (en) | Configuration method and device of household appliance | |
CN109151790B (en) | Bluetooth device connection method and system based on network security | |
CN111182512B (en) | Terminal connection method, device, terminal and computer readable storage medium | |
CN106331163B (en) | Method and device for controlling service platform | |
CN104113582A (en) | Communication Apparatus And Control Method Thereof | |
CN114245405B (en) | Equipment network distribution method, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |