CN107580358B - Network access method and related product - Google Patents

Network access method and related product Download PDF

Info

Publication number
CN107580358B
CN107580358B CN201710826268.4A CN201710826268A CN107580358B CN 107580358 B CN107580358 B CN 107580358B CN 201710826268 A CN201710826268 A CN 201710826268A CN 107580358 B CN107580358 B CN 107580358B
Authority
CN
China
Prior art keywords
mobile terminal
preset
message
terminal
time node
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
Application number
CN201710826268.4A
Other languages
Chinese (zh)
Other versions
CN107580358A (en
Inventor
俞义
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Tengsheng Software Technology Co ltd
Original Assignee
Dongguan Tengsheng Software Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongguan Tengsheng Software Technology Co ltd filed Critical Dongguan Tengsheng Software Technology Co ltd
Priority to CN201710826268.4A priority Critical patent/CN107580358B/en
Publication of CN107580358A publication Critical patent/CN107580358A/en
Application granted granted Critical
Publication of CN107580358B publication Critical patent/CN107580358B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a network access method and a related product, comprising the following steps: when a wireless network module is started, broadcasting a data packet with a preset identifier, wherein the preset identifier is used for a mobile terminal receiving the data packet to send a preset message to the terminal equipment; acquiring reference time length required by message transmission between the terminal equipment and the mobile terminal according to the preset message; receiving an access request from the mobile terminal, and detecting whether the reference time length is less than a preset time length; and when the reference duration is detected to be smaller than the preset duration, adding the mobile terminal in an access equipment set of the wireless network. The embodiment of the invention is beneficial to improving the access speed of the mobile terminal to the wireless network and reducing the signaling consumption between the terminal equipment and the mobile terminal.

Description

Network access method and related product
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a network access method and a related product.
Background
With the rapid development of smart phones, mobile phones become necessities of people, wherein various wireless transmission technologies are applied to mobile phones, for example, functional modules supporting wireless data transmission, such as wireless hot spots, WiFi, bluetooth, and the like.
At present, when the wireless transmission technology is used, for example, when a mobile phone hotspot is used, a user is required to start the mobile phone hotspot first, information such as the name and the password of the hotspot of the user needing to be connected is informed, the mobile phone of the user needing to be connected needs to be scanned, and then the user is connected to select the hotspot, input the password and apply for accessing the hotspot, and other operation steps, so that the overall operation steps are longer.
Disclosure of Invention
The embodiment of the invention provides a network access method and a related product, which can improve the access speed of a mobile terminal accessing a wireless network and reduce the signaling consumption between terminal equipment and the mobile terminal.
In a first aspect, an embodiment of the present invention provides a network access method, which is applied to a terminal device, and the method includes:
when a wireless network module is started, broadcasting a data packet with a preset identifier, wherein the preset identifier is used for a mobile terminal receiving the data packet to send a preset message to the terminal equipment;
acquiring reference time length required by message transmission between the terminal equipment and the mobile terminal according to the preset message;
receiving an access request from the mobile terminal, and detecting whether the reference time length is less than a preset time length;
and when the reference duration is detected to be smaller than the preset duration, adding the mobile terminal in an access equipment set of the wireless network.
In a second aspect, an embodiment of the present invention provides a network access method, which is applied to a mobile terminal, and the method includes:
receiving a data packet from a terminal device, wherein the data packet is a data packet which is broadcasted by the terminal device when a wireless network module is started and has a preset identifier;
sending a preset message to the terminal equipment according to the preset identifier, wherein the preset message is used for the terminal equipment to acquire reference time length required by message transmission between the mobile terminal and the terminal equipment;
and sending an access request to the terminal equipment, wherein the access request is used for adding the mobile terminal to an access equipment set of the wireless network when the terminal equipment detects that the reference duration is less than a preset duration.
In a third aspect, an embodiment of the present invention provides a network access apparatus, which is applied to a terminal device, and the network access apparatus has a function of implementing a behavior of the network access apparatus in the method design in the first aspect. The above functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
In a fourth aspect, an embodiment of the present invention provides a network access apparatus, which is applied to a mobile terminal, and the network access apparatus has a function of implementing a behavior of the network access apparatus in the method design of the second aspect. The above functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
In a fifth aspect, an embodiment of the present invention provides a terminal device, including: a processor, memory, and one or more programs; the one or more programs are stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps described in any of the methods of the first aspect of embodiments of the present invention.
In a sixth aspect, an embodiment of the present invention provides a mobile terminal, including: a processor, memory, and one or more programs; the one or more programs are stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps described in any of the methods of the second aspect of the embodiments of the present invention.
In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, and the computer program specifically includes instructions for executing some or all of the steps described in any method in the first aspect of the embodiment of the present invention, and the computer includes a terminal device.
In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, and the computer program specifically includes instructions for executing some or all of the steps described in any of the methods in the second aspect of the embodiment of the present invention, and the computer includes a mobile terminal.
In a ninth aspect, the present invention provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps described in any one of the methods according to the first aspect of the embodiments of the present invention. The computer program product may be a software installation package, the computer comprising the terminal device.
In a tenth aspect, the present invention provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps described in any one of the methods according to the second aspect of the embodiments of the present invention. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It can be seen that, in the embodiment of the present invention, a terminal device firstly broadcasts a data packet with a preset identifier when a wireless network module is started, where the preset identifier is used to send a preset message to the terminal device by a mobile terminal that receives the data packet, secondly, obtains a reference duration required for message transmission between the terminal device and the mobile terminal according to the preset message, thirdly, receives an access request from the mobile terminal, detects whether the reference duration is less than a preset duration, and finally, when it is detected that the reference duration is less than the preset duration, adds the mobile terminal to an access device set of the wireless network. The method and the device have the advantages that the terminal device determines whether the mobile terminal is allowed to be accessed according to the reference time length required by message transmission between the terminal device and the mobile terminal, and the message can be transmitted between the mobile terminal and the terminal device with the timestamp, so that the reference time length can be conveniently and quickly acquired without additional processing, the access speed of the mobile terminal to the wireless network is favorably improved, in addition, the data belt is provided with the preset identification, the mobile terminal can only have a targeted wireless network access process without scanning all surrounding wireless networks and other processes, the signaling consumption is reduced, and the wireless network access speed is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a network access method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another network access method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating another network access method according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating another network access method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal device disclosed in the embodiment of the present invention;
fig. 6 is a schematic structural diagram of a mobile terminal disclosed in the embodiment of the present invention;
fig. 7 is a schematic structural diagram of a network access device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another network access device disclosed in the embodiment of the present invention;
fig. 9 is a schematic structural diagram of another mobile terminal/terminal device disclosed in the embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The terminal device according to the embodiment of the present invention may include various Mobile terminals, handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like, which have wireless communication functions. For convenience of description, the above-mentioned devices are collectively referred to as terminal devices.
The Mobile terminal according to the embodiment of the present invention may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like, which have wireless communication functions. For convenience of description, the above-mentioned devices are collectively referred to as a mobile terminal.
The following describes embodiments of the present invention in detail.
Referring to fig. 1, fig. 1 is a flowchart illustrating a network access method according to an embodiment of the present invention, which is applied to a terminal device, and as shown in the figure, the network access method includes:
s101, when a wireless network module is started, a terminal device broadcasts a data packet with a preset identifier, wherein the preset identifier is used for a mobile terminal receiving the data packet to send a preset message to the terminal device;
wherein the wireless network comprises: WIreless Fidelity (WiFi), data traffic hot spot, bluetooth, and other WIreless transmission technologies.
The terminal equipment broadcasts a data packet with a preset identifier, so that the mobile terminals within a range where the signal intensity can reach can receive the data packet.
The preset identification is a field in the data packet, the preset identification comprises a quick connection identification and a name identification of the wireless network module, the quick connection identification is used for indicating the mobile terminal to know that the wireless network module allows password-free quick connection of the mobile terminal, and the name identification is used for the mobile terminal to pertinently send a preset message to the wireless network module according to the name identification instead of scanning all surrounding wireless network modules.
S102, the terminal equipment acquires reference time length required by message transmission between the terminal equipment and the mobile terminal according to the preset message;
the reference duration required for message transmission between the terminal device and the mobile terminal is a duration of one-way message transmission between the terminal device and the mobile terminal, for example, a duration from a message sent from the terminal device to the mobile terminal receiving the message, or a duration from the message sent from the mobile terminal to the terminal device receiving the message.
The reference duration may be determined by the terminal device, may also be determined by the mobile terminal, and is not limited herein, and when the reference duration is determined by the mobile terminal, the mobile terminal sends the determined reference duration to the terminal device.
S103, the terminal equipment receives an access request from the mobile terminal and detects whether the reference time length is less than a preset time length;
the preset time duration may be set to be, for example, a time required for message transmission when the distance interval between the terminal device and the mobile terminal is 2 m.
And S104, when the terminal equipment detects that the reference duration is less than the preset duration, adding the mobile terminal in an access equipment set of the wireless network.
When the reference duration is detected to be longer than the preset duration, the terminal device does not allow the mobile terminal to be added to the access device set of the wireless network in a password-free connection mode.
It can be seen that, in the embodiment of the present invention, a terminal device firstly broadcasts a data packet with a preset identifier when a wireless network module is started, where the preset identifier is used to send a preset message to the terminal device by a mobile terminal that receives the data packet, secondly, obtains a reference duration required for message transmission between the terminal device and the mobile terminal according to the preset message, thirdly, receives an access request from the mobile terminal, detects whether the reference duration is less than a preset duration, and finally, when it is detected that the reference duration is less than the preset duration, adds the mobile terminal to an access device set of the wireless network. The method and the device have the advantages that the terminal device determines whether the mobile terminal is allowed to be accessed according to the reference time length required by message transmission between the terminal device and the mobile terminal, and the message can be transmitted between the mobile terminal and the terminal device with the timestamp, so that the reference time length can be conveniently and quickly acquired without additional processing, the access speed of the mobile terminal to the wireless network is favorably improved, in addition, the data belt is provided with the preset identification, the mobile terminal can only have a targeted wireless network access process without scanning all surrounding wireless networks and other processes, the signaling consumption is reduced, and the wireless network access speed is further improved.
The manner of obtaining the reference time length required for message transmission between the terminal device and the mobile terminal according to the preset message is various, and is not limited herein.
For example, the obtaining of the reference duration required for message transmission between the terminal device and the mobile terminal according to the preset message includes:
receiving a preset message sent by the mobile terminal at a first time node;
sending a response message aiming at the preset message to the mobile terminal;
and receiving the reference duration determined by the mobile terminal according to the first time node and a second time node, wherein the second time node is the time node when the mobile terminal receives the response message.
Wherein a time duration between the receiving of the preset message from the mobile terminal sent at the first time node and the sending of the response message to the preset message to the mobile terminal is very small, and therefore, if the first time node is t1 and the second time node is t2, a reference time duration required for message transmission between the terminal device and the mobile terminal is (t2-t 1)/2.
It can be seen that, in this example, the mobile terminal determines the reference time length required for message transmission between the terminal device and the mobile terminal, instead of determining the reference time lengths between the mobile terminal and the plurality of mobile terminals, which is beneficial to further improving the access speed of the wireless network.
For another example, the obtaining of the reference duration required for message transmission between the terminal device and the mobile terminal according to the preset message includes:
receiving a preset message sent by the mobile terminal at a first time node;
sending a response message aiming at the preset message to the mobile terminal at a second time node, wherein the response message comprises a time identifier of the second time node;
and receiving the reference duration determined by the mobile terminal according to the first time node and the second time node indicated by the time identifier.
The time length between the receiving of the preset message sent by the mobile terminal at the first time node and the sending of the response message to the preset message to the mobile terminal at the second time node is extremely small, so that if the first time node is t1 and the second time node is t2, the reference time length required for message transmission between the terminal device and the mobile terminal is t2-t 1.
It can be seen that, in this example, determining, by the mobile terminal, the reference duration required for message transmission between the terminal device and the mobile terminal, instead of determining, by the terminal device, the reference duration between the mobile terminal and the plurality of mobile terminals, is beneficial to further increase the access speed of the wireless network, and moreover, the duration between the first time node and the second time node is the duration of one-way message transmission, which increases the accuracy of determining the reference duration and improves the processing efficiency compared to a manner in which the reference duration is determined by two-way duration.
For another example, the obtaining of the reference duration required for message transmission between the terminal device and the mobile terminal according to the preset message includes:
receiving a preset message sent by the mobile terminal at a first time node at a second time node, wherein the preset message comprises a time identifier of the first time node;
and executing a first operation and a second operation in parallel, wherein the first operation is to send a response message aiming at the preset message to the mobile terminal, and the second operation is to determine the reference duration according to the first time node and the second time node indicated by the time identifier.
If the first time node is t1 and the second time node is t2, the reference time length required for message transmission between the terminal device and the mobile terminal is t2-t 1.
It can be seen that, in this example, the first time node and the second time node are a time node for sending a message by the sending end and a time node for receiving a message by the receiving end, and no processing procedure is needed in the middle, so that the accuracy of the reference duration is further increased.
For another example, the obtaining of the reference duration required for message transmission between the terminal device and the mobile terminal according to the preset message includes:
receiving a preset message from the mobile terminal;
sending a response message aiming at the preset message to the mobile terminal by the node at the first time;
receiving a feedback message from the mobile terminal at a second time node;
and determining the reference time length according to the first time node and the second time node.
The reason why the mobile terminal sends the feedback message is to enable the terminal device to accurately obtain the reference duration required by message transmission between the terminal device and the mobile terminal according to the time node of receiving the message twice, and the feedback message itself may or may not include a special meaning, which is not limited herein.
As can be seen, in this example, the terminal device determines the reference duration required for message transmission between the terminal device and the mobile terminal according to the time nodes (the first time node and the second time node) that receive the message twice, without analyzing the time node in the message when the message is sent, which is beneficial to reducing the processing delay of the terminal device and improving the processing efficiency.
Referring to fig. 2, fig. 2 is a schematic flowchart of another network access method provided by the embodiment of the present invention and applied to a terminal device, where as shown in the figure, the network access method includes:
s201, when a terminal device starts a wireless network module, broadcasting a data packet with a preset identifier, wherein the preset identifier is used for a mobile terminal receiving the data packet to send a preset message to the terminal device;
s202, the terminal equipment receives a preset message sent by the mobile terminal at a first time node;
s203, the terminal equipment sends a response message aiming at the preset message to the mobile terminal;
s204, the terminal equipment receives a reference time length required by message transmission between the mobile terminal and the terminal equipment, which is determined by the mobile terminal according to the first time node and a second time node, wherein the second time node is a time node when the mobile terminal receives the response message;
s205, the terminal device receives an access request from the mobile terminal, and detects whether the reference time length is less than a preset time length;
s206, when the terminal device detects that the reference duration is less than the preset duration, adding the mobile terminal in an access device set of the wireless network.
The above S201, S205, and S206 may refer to corresponding steps in the embodiment described with reference to fig. 1.
It can be seen that, in the embodiment of the present invention, a terminal device firstly broadcasts a data packet with a preset identifier when a wireless network module is started, where the preset identifier is used to send a preset message to the terminal device by a mobile terminal that receives the data packet, secondly, obtains a reference duration required for message transmission between the terminal device and the mobile terminal according to the preset message, thirdly, receives an access request from the mobile terminal, detects whether the reference duration is less than a preset duration, and finally, when it is detected that the reference duration is less than the preset duration, adds the mobile terminal to an access device set of the wireless network. The method and the device have the advantages that the terminal device determines whether the mobile terminal is allowed to be accessed according to the reference time length required by message transmission between the terminal device and the mobile terminal, and the message can be transmitted between the mobile terminal and the terminal device with the timestamp, so that the reference time length can be conveniently and quickly acquired without additional processing, the access speed of the mobile terminal to the wireless network is favorably improved, in addition, the data belt is provided with the preset identification, the mobile terminal can only have a targeted wireless network access process without scanning all surrounding wireless networks and other processes, the signaling consumption is reduced, and the wireless network access speed is further improved.
In addition, the mobile terminal determines the reference time length required by message transmission between the terminal equipment and the mobile terminal, rather than determining the reference time length between the mobile terminal equipment and a plurality of mobile terminals, so that the access speed of a wireless network is further improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a network access method according to an embodiment of the present invention, applied to a mobile terminal, where as shown in the figure, the network access method includes:
s301, a mobile terminal receives a data packet from a terminal device, wherein the data packet is a data packet which is broadcasted by the terminal device when a wireless network module is started and has a preset identifier;
s302, the mobile terminal sends a preset message to the terminal equipment according to the preset identifier, wherein the preset message is used for the terminal equipment to acquire reference time length required by message transmission between the mobile terminal and the terminal equipment;
and S303, the mobile terminal sends an access request to the terminal equipment, wherein the access request is used for adding the mobile terminal to an access equipment set of the wireless network when the terminal equipment detects that the reference duration is less than a preset duration.
It can be seen that, in the embodiment of the present invention, a mobile terminal first receives a data packet from a terminal device, where the data packet is a data packet with a preset identifier broadcasted by the terminal device when a wireless network module is started, and then sends a preset message to the terminal device according to the preset identifier, where the preset message is used for the terminal device to obtain a reference duration required by message transmission between the mobile terminal and the terminal device, and finally sends an access request to the terminal device, where the access request is used for the terminal device to add the mobile terminal to an access device set of the wireless network when it is detected that the reference duration is less than the preset duration. The method and the device have the advantages that the terminal device determines whether the mobile terminal is allowed to be accessed according to the reference time length required by message transmission between the terminal device and the mobile terminal, and the message can be transmitted between the mobile terminal and the terminal device with the timestamp, so that the reference time length can be conveniently and quickly acquired without additional processing, the access speed of the mobile terminal to the wireless network is favorably improved, in addition, the data belt is provided with the preset identification, the mobile terminal can only have a targeted wireless network access process without scanning all surrounding wireless networks and other processes, the signaling consumption is reduced, and the wireless network access speed is further improved.
In one possible example, the sending a preset message to the terminal device according to the preset identifier includes:
sending a preset message to the terminal equipment at a first time node according to the preset identification;
after sending the preset message to the terminal device according to the preset identifier and before sending the access request to the terminal device, the method further includes:
receiving a response message aiming at the preset message from the terminal equipment at a second time node;
determining the reference duration according to the first time node and the second time node;
and sending the reference duration to the terminal equipment.
It can be seen that, in this example, the mobile terminal determines the reference time length required for message transmission between the terminal device and the mobile terminal, instead of determining the reference time lengths between the mobile terminal and the plurality of mobile terminals, which is beneficial to further improving the access speed of the wireless network.
In one possible example, the sending a preset message to the terminal device according to the preset identifier includes:
sending a preset message to the terminal equipment at a first time node according to the preset identification;
after sending the preset message to the terminal device according to the preset identifier and before sending the access request to the terminal device, the method further includes:
receiving a response message aiming at the preset message sent by the terminal equipment at a second time node, wherein the response message comprises a time identifier of the second time node;
determining the reference duration according to the first time node and the second time node indicated by the time identifier;
and sending the reference duration to the terminal equipment.
It can be seen that, in this example, determining, by the mobile terminal, the reference duration required for message transmission between the terminal device and the mobile terminal, instead of determining, by the terminal device, the reference duration between the mobile terminal and the plurality of mobile terminals, is beneficial to further increase the access speed of the wireless network, and moreover, the duration between the first time node and the second time node is the duration of one-way message transmission, which increases the accuracy of determining the reference duration and improves the processing efficiency compared to a manner in which the reference duration is determined by two-way duration.
Referring to fig. 4, fig. 4 is an interaction flow diagram of another network access method according to an embodiment of the present invention, where as shown in the figure, the network access method includes:
s401, when a wireless network module is started, a terminal device broadcasts a data packet with a preset identifier;
s402, the mobile terminal sends a preset message to the terminal equipment at a first time node according to the preset identification;
s403, the terminal device sends a response message aiming at the preset message to the mobile terminal, and the time node when the mobile terminal receives the response message is a second time node;
s404, the mobile terminal determines a reference time length required by message transmission between the mobile terminal and the terminal equipment according to the first time node and the second time node;
s405, the mobile terminal sends the reference duration to the terminal equipment;
s406, the mobile terminal sends an access request to the terminal equipment;
s407, the terminal device detects whether the reference duration is less than a preset duration;
s408, when the terminal device detects that the reference duration is less than a preset duration, adding the mobile terminal in an access device set of the wireless network.
It can be seen that, in the embodiment of the present invention, a terminal device firstly broadcasts a data packet with a preset identifier when a wireless network module is started, where the preset identifier is used to send a preset message to the terminal device by a mobile terminal that receives the data packet, secondly, obtains a reference duration required for message transmission between the terminal device and the mobile terminal according to the preset message, thirdly, receives an access request from the mobile terminal, detects whether the reference duration is less than a preset duration, and finally, when it is detected that the reference duration is less than the preset duration, adds the mobile terminal to an access device set of the wireless network. The method and the device have the advantages that the terminal device determines whether the mobile terminal is allowed to be accessed according to the reference time length required by message transmission between the terminal device and the mobile terminal, and the message can be transmitted between the mobile terminal and the terminal device with the timestamp, so that the reference time length can be conveniently and quickly acquired without additional processing, the access speed of the mobile terminal to the wireless network is favorably improved, in addition, the data belt is provided with the preset identification, the mobile terminal can only have a targeted wireless network access process without scanning all surrounding wireless networks and other processes, the signaling consumption is reduced, and the wireless network access speed is further improved.
In addition, the terminal device determines the reference time length required by message transmission between the terminal device and the mobile terminal according to the time nodes (the first time node and the second time node) receiving the messages twice, and the time node in the message when the message is sent does not need to be analyzed, so that the processing time delay of the terminal device is favorably reduced, and the processing efficiency is improved.
Referring to fig. 5, in accordance with the embodiment shown in fig. 1 and fig. 2, fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application, including: a processor, memory, a communication interface, and one or more programs; wherein the one or more programs are stored in the memory and configured to be executed by the processor, the programs including instructions for performing the following steps;
when a wireless network module is started, broadcasting a data packet with a preset identifier, wherein the preset identifier is used for a mobile terminal receiving the data packet to send a preset message to the terminal equipment;
acquiring reference time length required by message transmission between the terminal equipment and the mobile terminal according to the preset message;
receiving an access request from the mobile terminal, and detecting whether the reference time length is less than a preset time length;
and when the reference duration is detected to be smaller than the preset duration, adding the mobile terminal in an access equipment set of the wireless network.
It can be seen that, in the embodiment of the present invention, a terminal device firstly broadcasts a data packet with a preset identifier when a wireless network module is started, where the preset identifier is used to send a preset message to the terminal device by a mobile terminal that receives the data packet, secondly, obtains a reference duration required for message transmission between the terminal device and the mobile terminal according to the preset message, thirdly, receives an access request from the mobile terminal, detects whether the reference duration is less than a preset duration, and finally, when it is detected that the reference duration is less than the preset duration, adds the mobile terminal to an access device set of the wireless network. The method and the device have the advantages that the terminal device determines whether the mobile terminal is allowed to be accessed according to the reference time length required by message transmission between the terminal device and the mobile terminal, and the message can be transmitted between the mobile terminal and the terminal device with the timestamp, so that the reference time length can be conveniently and quickly acquired without additional processing, the access speed of the mobile terminal to the wireless network is favorably improved, in addition, the data belt is provided with the preset identification, the mobile terminal can only have a targeted wireless network access process without scanning all surrounding wireless networks and other processes, the signaling consumption is reduced, and the wireless network access speed is further improved.
In a possible example, in terms of obtaining the reference duration required for message transmission between the terminal device and the mobile terminal according to the preset message, the instruction in the program is specifically configured to perform the following steps: receiving a preset message sent by the mobile terminal at a first time node; sending a response message aiming at the preset message to the mobile terminal; and receiving the reference time length determined by the mobile terminal according to the first time node and a second time node, wherein the second time node is the time node when the mobile terminal receives the response message.
In a possible example, in terms of obtaining the reference duration required for message transmission between the terminal device and the mobile terminal according to the preset message, the instruction in the program is specifically configured to perform the following steps: receiving a preset message sent by the mobile terminal at a first time node; sending a response message aiming at the preset message to the mobile terminal at a second time node, wherein the response message comprises a time identifier of the second time node; and receiving the reference duration determined by the mobile terminal according to the first time node and the second time node indicated by the time identifier.
In a possible example, in terms of obtaining the reference duration required for message transmission between the terminal device and the mobile terminal according to the preset message, the instruction in the program is specifically configured to perform the following steps: receiving a preset message sent by the mobile terminal at a first time node at a second time node, wherein the preset message comprises a time identifier of the first time node; and executing a first operation and a second operation in parallel, wherein the first operation is to send a response message aiming at the preset message to the mobile terminal, and the second operation is to determine the reference time length according to the first time node and the second time node indicated by the time identifier.
In a possible example, in terms of obtaining the reference duration required for message transmission between the terminal device and the mobile terminal according to the preset message, the instruction in the program is specifically configured to perform the following steps: receiving a preset message from the mobile terminal; and at a first time node sending a response message to the mobile terminal for the preset message; and receiving a feedback message from the mobile terminal at a second time node; and determining the reference duration according to the first time node and the second time node.
Referring to fig. 6, in accordance with the embodiment shown in fig. 3, fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application, including: a processor, memory, a communication interface, and one or more programs; wherein the one or more programs are stored in the memory and configured to be executed by the processor, the programs including instructions for performing the following steps;
receiving a data packet from a terminal device, wherein the data packet is a data packet which is broadcasted by the terminal device when a wireless network module is started and has a preset identifier;
sending a preset message to the terminal equipment according to the preset identifier, wherein the preset message is used for the terminal equipment to acquire reference time length required by message transmission between the mobile terminal and the terminal equipment;
and sending an access request to the terminal equipment, wherein the access request is used for adding the mobile terminal to an access equipment set of the wireless network when the terminal equipment detects that the reference duration is less than a preset duration.
It can be seen that, in the embodiment of the present invention, a mobile terminal first receives a data packet from a terminal device, where the data packet is a data packet with a preset identifier broadcasted by the terminal device when a wireless network module is started, and then sends a preset message to the terminal device according to the preset identifier, where the preset message is used for the terminal device to obtain a reference duration required by message transmission between the mobile terminal and the terminal device, and finally sends an access request to the terminal device, where the access request is used for the terminal device to add the mobile terminal to an access device set of the wireless network when it is detected that the reference duration is less than the preset duration. The method and the device have the advantages that the terminal device determines whether the mobile terminal is allowed to be accessed according to the reference time length required by message transmission between the terminal device and the mobile terminal, and the message can be transmitted between the mobile terminal and the terminal device with the timestamp, so that the reference time length can be conveniently and quickly acquired without additional processing, the access speed of the mobile terminal to the wireless network is favorably improved, in addition, the data belt is provided with the preset identification, the mobile terminal can only have a targeted wireless network access process without scanning all surrounding wireless networks and other processes, the signaling consumption is reduced, and the wireless network access speed is further improved.
In a possible example, in the aspect of sending the preset message to the terminal device according to the preset identifier, the instruction in the program is specifically configured to execute the following steps: sending a preset message to the terminal equipment at a first time node according to the preset identification;
the program further includes instructions for performing the steps of: after sending a preset message to the terminal equipment according to the preset identifier and before sending an access request to the terminal equipment, receiving a response message aiming at the preset message from the terminal equipment at a second time node; determining the reference time length according to the first time node and the second time node; and sending the reference duration to the terminal equipment.
In a possible example, in the aspect of sending the preset message to the terminal device according to the preset identifier, the instruction in the program is specifically configured to execute the following steps: sending a preset message to the terminal equipment at a first time node according to the preset identification;
the program further includes instructions for performing the steps of: after sending a preset message to the terminal device according to the preset identifier and before sending an access request to the terminal device, receiving a response message aiming at the preset message sent by the terminal device at a second time node, wherein the response message comprises a time identifier of the second time node; and determining the reference duration according to the first time node and the second time node indicated by the time identifier; and sending the reference duration to the terminal equipment.
The above description has introduced the solution of the embodiment of the present invention mainly from the perspective of the method-side implementation process. It is understood that the mobile terminal or terminal device includes hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those of skill in the art will readily appreciate that the present invention can be implemented in hardware or a combination of hardware and computer software, with the exemplary elements and algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The embodiment of the present invention may perform the division of the functional units on the mobile terminal or the terminal device according to the above method examples, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In the case of using an integrated unit, fig. 7 shows a schematic structural diagram of a network access apparatus provided in this embodiment, which is applied to a terminal device. The network access apparatus 700 includes: a processing unit 702 and a communication unit 703. The processing unit 702 is configured to control and manage actions of the network access apparatus, for example, the processing unit 702 is configured to support the network access apparatus to perform steps S101 to S104 in fig. 1, steps S201 to S206 in fig. 2, and steps S401, S403, S407, S408 in fig. 4, and/or other processes for the technology described herein. The communication unit 703 is configured to support communication between the network access apparatus and other devices, for example, communication between the mobile terminal and the network access apparatus as described in fig. 6 above. The network access arrangement may further comprise a storage unit 701 for storing program codes and data of the network access arrangement.
The Processing Unit 702 may be a Processor or a controller, such as a Central Processing Unit (CPU), a general-purpose Processor, a Digital Signal Processor (DSP), an Application-Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor described above may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs and microprocessors, and the like. The communication unit 703 may be a transceiver, a transceiver circuit, an internal communication interface (a communication port between a processor and a peripheral), etc., and may include one or more interfaces. The memory unit 701 may be a memory.
The processing unit 702 is configured to broadcast a data packet with a preset identifier through the communication unit 703 when a wireless network module is started, where the preset identifier is used for a mobile terminal that receives the data packet to send a preset message to the terminal device; the mobile terminal is used for acquiring a preset message from a terminal device and transmitting the preset message to the mobile terminal; and is configured to receive an access request from the mobile terminal through the communication unit 703, and detect whether the reference duration is less than a preset duration; and the mobile terminal is added to the access equipment set of the wireless network when the reference duration is detected to be less than the preset duration.
In a possible example, in terms of obtaining the reference duration required for message transmission between the terminal device and the mobile terminal according to the preset message, the processing unit 702 is specifically configured to: receiving a preset message sent by the mobile terminal at a first time node through the communication unit 703; and is configured to send a response message to the mobile terminal for the preset message through the communication unit 703; and is configured to receive, through the communication unit 703, the reference duration determined by the mobile terminal according to the first time node and a second time node, where the second time node is a time node when the mobile terminal receives the response message.
In a possible example, in terms of obtaining the reference duration required for message transmission between the terminal device and the mobile terminal according to the preset message, the processing unit 702 is specifically configured to: receiving a preset message sent by the mobile terminal at a first time node through the communication unit 703; and is configured to send a response message to the mobile terminal at a second time node through the communication unit 703, where the response message includes a time identifier of the second time node; and is configured to receive, through the communication unit 703, the reference duration determined by the mobile terminal according to the first time node and the second time node indicated by the time identifier.
In a possible example, in terms of obtaining the reference duration required for message transmission between the terminal device and the mobile terminal according to the preset message, the processing unit 702 is specifically configured to: receiving, at a second time node, a preset message sent by the mobile terminal at a first time node through the communication unit 703, where the preset message includes a time identifier of the first time node; and is configured to execute a first operation and a second operation in parallel, where the first operation is to send a response message for the preset message to the mobile terminal through the communication unit 703, and the second operation is to determine the reference duration according to the first time node and the second time node indicated by the time identifier.
In a possible example, in terms of obtaining the reference duration required for message transmission between the terminal device and the mobile terminal according to the preset message, the processing unit 702 is specifically configured to: receiving a preset message from the mobile terminal through the communication unit 703; and is configured to send a response message to the mobile terminal at a first time node through the communication unit 703 for the preset message; and for receiving a feedback message from the mobile terminal at a second time node via the communication unit 703; and determining the reference duration according to the first time node and the second time node.
It can be understood that the functions of each program module of the network access apparatus 700 in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
In the case of using an integrated unit, fig. 8 shows a schematic structural diagram of a network access apparatus provided in this embodiment, which is applied to a mobile terminal. The network access apparatus 800 includes: a processing unit 802 and a communication unit 803. The processing unit 802 is configured to control and manage actions of the network access device, for example, the processing unit 802 is configured to support the network access device to perform steps S301 to S303 in fig. 3 and steps S402, S404, S405, S406 in fig. 4 and/or other processes for the techniques described herein. The communication unit 803 is configured to support communication between the network access apparatus and other devices, for example, communication between the terminal device and the terminal device described in fig. 5 above. The network access arrangement may further comprise a storage unit 801 for storing program codes and data of the network access arrangement.
The Processing Unit 802 may be a Processor or a controller, and may be, for example, a Central Processing Unit (CPU), a general purpose Processor, a Digital Signal Processor (DSP), an Application-Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor described above may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs and microprocessors, and the like. The communication unit 803 may be a transceiver, a transceiver circuit, an internal communication interface (a communication port between a processor and a peripheral), etc., and may include one or more interfaces. The storage unit 801 may be a memory.
The processing unit 802 is configured to receive a data packet from a terminal device through the communication unit 803, where the data packet is a data packet with a preset identifier broadcast by the terminal device when a wireless network module is started; and is configured to send a preset message to the terminal device through the communication unit 803 according to the preset identifier, where the preset message is used for the terminal device to obtain a reference time length required for message transmission between the mobile terminal and the terminal device; and an access device set configured to send an access request to the terminal device through the communication unit 803, where the access request is used for the terminal device to add the mobile terminal to the wireless network when it is detected that the reference duration is less than a preset duration.
In a possible example, in the aspect of sending a preset message to the terminal device through the communication unit 803 according to the preset identifier, the processing unit 802 is specifically configured to: sending a preset message to the terminal device at the first time node through the communication unit 803 according to the preset identifier;
after the processing unit 802 sends a preset message to the terminal device through the communication unit 803 according to the preset identifier, and before the processing unit 803 sends an access request to the terminal device, the processing unit is further configured to: receiving a response message from the terminal device to the preset message through the communication unit 803 at a second time node; and for determining the reference duration from the first time node and the second time node; and is configured to send the reference duration to the terminal device through the communication unit 803.
In a possible example, in the aspect of sending a preset message to the terminal device through the communication unit 803 according to the preset identifier, the processing unit 802 is specifically configured to: sending a preset message to the terminal device at the first time node through the communication unit 803 according to the preset identifier;
after the processing unit 802 sends a preset message to the terminal device through the communication unit 803 according to the preset identifier, and before the processing unit 803 sends an access request to the terminal device, the processing unit is further configured to: receiving, by the communication unit 803, a response message for the preset message sent by the terminal device at a second time node, where the response message includes a time identifier of the second time node; and for determining the reference duration according to the first time node and the second time node indicated by the time identifier; and is configured to send the reference duration to the terminal device through the communication unit 803.
It can be understood that the functions of each program module of the network access apparatus 800 in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
As shown in fig. 9, for convenience of description, only the parts related to the embodiment of the present invention are shown, and details of the specific technology are not disclosed, please refer to the method part in the embodiment of the present invention. The terminal device or the mobile terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, and the like, where the terminal device or the mobile terminal takes the mobile phone as an example:
fig. 9 is a block diagram illustrating a partial structure of a mobile phone related to a terminal device or a mobile terminal provided in an embodiment of the present invention. Referring to fig. 9, the handset includes: a Radio Frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a Wireless Fidelity (WiFi) module 970, a processor 980, and a power supply 990. Those skilled in the art will appreciate that the handset configuration shown in fig. 9 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 9:
RF circuitry 910 may be used for the reception and transmission of information. In general, the RF circuit 910 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 920 may be used to store software programs and modules, and the processor 980 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile phone, and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. In particular, the input unit 930 may include a fingerprint sensor 931 and other input devices 932. And a fingerprint sensor 931 which may collect fingerprint data of the user thereon. The input unit 930 may include other input devices 932 in addition to the fingerprint sensor 931. In particular, other input devices 932 may include, but are not limited to, one or more of a touch screen, physical keys, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 940 may include a Display screen 941, and optionally, the Display screen 941 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Although in fig. 9 the fingerprint sensor 931 and the display screen 941 are shown as two separate components to implement the input and output functions of the mobile phone, in some embodiments, the fingerprint sensor 931 and the display screen 941 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen 941 according to the brightness of ambient light, and the proximity sensor may turn off the display screen 941 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and a cell phone. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and the audio signal is converted by the speaker 961 to be played; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 960, and then processes the audio data by the audio data playing processor 980, and then sends the audio data to, for example, another mobile phone through the RF circuit 910, or plays the audio data to the memory 920 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 970, and provides wireless broadband Internet access for the user. Although fig. 9 shows the WiFi module 970, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 980 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile phone. Alternatively, processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
The handset also includes a power supply 990 (e.g., a battery) for supplying power to the various components, which may preferably be logically connected to the processor 980 via a power management system, thereby providing management of charging, discharging, and power consumption via the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the embodiments shown in fig. 1 to fig. 2, fig. 3, and fig. 4, the method flows of the steps may be implemented based on the structure of the mobile phone.
In the embodiments shown in fig. 7 and 8, the functions of the units can be implemented based on the structure of the mobile phone.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the network access methods described in the above method embodiments, and the computer includes any one of the following: terminal equipment, mobile terminal.
Embodiments of the present invention also provide a computer program product, the computer program product comprising a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform part or all of the steps of any one of the network access methods as described in the above method embodiments, the computer comprising any one of: terminal equipment, mobile terminal.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above methods according to the embodiments of the present invention. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above embodiments of the present invention are described in detail, and the principle and the implementation of the present invention are explained by applying specific embodiments, and the above description of the embodiments is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (14)

1. A network access method is applied to a terminal device and comprises the following steps:
when a wireless network module is started, broadcasting a data packet with a preset identifier, wherein the preset identifier is used for a mobile terminal receiving the data packet to send a preset message to the terminal equipment; the preset identification comprises a quick connection identification and a name identification of the wireless network module, the quick connection identification is used for indicating the mobile terminal to know that the wireless network module allows the mobile terminal to have password-free quick connection, and the name identification is used for the mobile terminal to send a preset message to the wireless network module according to the name identification;
acquiring reference time length required by message transmission between the terminal equipment and the mobile terminal according to the preset message;
receiving an access request from the mobile terminal, and detecting whether the reference time length is less than a preset time length; the reference duration is less than the preset duration, and the terminal equipment allows the mobile terminal to access;
and when the reference duration is detected to be smaller than the preset duration, adding the mobile terminal in an access equipment set of the wireless network.
2. The method according to claim 1, wherein the obtaining of the reference duration required for message transmission between the terminal device and the mobile terminal according to the preset message comprises:
receiving a preset message sent by the mobile terminal at a first time node;
sending a response message aiming at the preset message to the mobile terminal;
and receiving the reference duration determined by the mobile terminal according to the first time node and a second time node, wherein the second time node is the time node when the mobile terminal receives the response message.
3. The method according to claim 1, wherein the obtaining of the reference duration required for message transmission between the terminal device and the mobile terminal according to the preset message comprises:
receiving a preset message sent by the mobile terminal at a first time node;
sending a response message aiming at the preset message to the mobile terminal at a second time node, wherein the response message comprises a time identifier of the second time node;
and receiving the reference duration determined by the mobile terminal according to the first time node and the second time node indicated by the time identifier.
4. The method according to claim 1, wherein the obtaining of the reference duration required for message transmission between the terminal device and the mobile terminal according to the preset message comprises:
receiving a preset message sent by the mobile terminal at a first time node at a second time node, wherein the preset message comprises a time identifier of the first time node;
and executing a first operation and a second operation in parallel, wherein the first operation is to send a response message aiming at the preset message to the mobile terminal, and the second operation is to determine the reference duration according to the first time node and the second time node indicated by the time identifier.
5. The method according to claim 1, wherein the obtaining of the reference duration required for message transmission between the terminal device and the mobile terminal according to the preset message comprises:
receiving a preset message from the mobile terminal;
sending a response message aiming at the preset message to the mobile terminal by the node at the first time;
receiving a feedback message from the mobile terminal at a second time node;
and determining the reference time length according to the first time node and the second time node.
6. A network access method is applied to a mobile terminal and comprises the following steps:
receiving a data packet from a terminal device, wherein the data packet is a data packet which is broadcasted by the terminal device when a wireless network module is started and has a preset identifier; the preset identification comprises a quick connection identification and a name identification of the wireless network module, the quick connection identification is used for indicating the mobile terminal to know that the wireless network module allows the mobile terminal to have password-free quick connection, and the name identification is used for the mobile terminal to send a preset message to the wireless network module according to the name identification;
sending a preset message to the terminal equipment according to the preset identifier, wherein the preset message is used for the terminal equipment to acquire reference time length required by message transmission between the mobile terminal and the terminal equipment; the reference duration is less than the preset duration, and the terminal equipment allows the mobile terminal to access;
and sending an access request to the terminal equipment, wherein the access request is used for adding the mobile terminal to an access equipment set of the wireless network when the terminal equipment detects that the reference duration is less than a preset duration.
7. The method according to claim 6, wherein the sending a preset message to the terminal device according to the preset identifier comprises:
sending a preset message to the terminal equipment at a first time node according to the preset identification;
after sending the preset message to the terminal device according to the preset identifier and before sending the access request to the terminal device, the method further includes:
receiving a response message aiming at the preset message from the terminal equipment at a second time node;
determining the reference duration according to the first time node and the second time node;
and sending the reference duration to the terminal equipment.
8. The method according to claim 6, wherein the sending a preset message to the terminal device according to the preset identifier comprises:
sending a preset message to the terminal equipment at a first time node according to the preset identification;
after sending the preset message to the terminal device according to the preset identifier and before sending the access request to the terminal device, the method further includes:
receiving a response message aiming at the preset message sent by the terminal equipment at a second time node, wherein the response message comprises a time identifier of the second time node;
determining the reference duration according to the first time node and the second time node indicated by the time identifier;
and sending the reference duration to the terminal equipment.
9. A network access device is applied to a terminal device and comprises a processing unit and a communication unit,
the processing unit is used for broadcasting a data packet with a preset identifier through the communication unit when a wireless network module is started, wherein the preset identifier comprises a quick connection identifier and a name identifier of the wireless network module, the quick connection identifier is used for indicating a mobile terminal to know that the wireless network module allows the mobile terminal to be connected quickly without a password, and the name identifier is used for the mobile terminal to send a preset message to the wireless network module according to the name identifier; the mobile terminal is used for acquiring a preset message from a terminal device and transmitting the preset message to the mobile terminal; the reference duration is less than the preset duration, and the terminal equipment allows the mobile terminal to access; the communication unit is used for receiving an access request from the mobile terminal and detecting whether the reference time length is less than a preset time length; and the mobile terminal is added to the access equipment set of the wireless network when the reference duration is detected to be less than the preset duration.
10. A network access device is applied to a mobile terminal and comprises a processing unit and a communication unit,
the processing unit is used for receiving a data packet from the terminal equipment through the communication unit, wherein the data packet is a data packet which is broadcasted by the terminal equipment when the wireless network module is started and is provided with a preset identifier; the preset identification comprises a quick connection identification and a name identification of the wireless network module, the quick connection identification is used for indicating the mobile terminal to know that the wireless network module allows the mobile terminal to have password-free quick connection, and the name identification is used for the mobile terminal to send a preset message to the wireless network module according to the name identification; the mobile terminal is used for sending a preset message to the terminal equipment through the communication unit according to the preset identification, wherein the preset message is used for the terminal equipment to acquire reference time length required by message transmission between the mobile terminal and the terminal equipment; the reference duration is less than the preset duration, and the terminal equipment allows the mobile terminal to access; and the access request is used for adding the mobile terminal to the access equipment set of the wireless network when the terminal equipment detects that the reference duration is less than the preset duration.
11. A terminal device, comprising: a processor, memory, and one or more programs; the one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method as described in any of claims 1-5.
12. A mobile terminal, comprising: a processor, memory, and one or more programs; the one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method as described in any of claims 6-8.
13. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any of claims 1-5, the computer comprising a terminal device.
14. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any of claims 6-8, the computer comprising a mobile terminal.
CN201710826268.4A 2017-09-13 2017-09-13 Network access method and related product Active CN107580358B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710826268.4A CN107580358B (en) 2017-09-13 2017-09-13 Network access method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710826268.4A CN107580358B (en) 2017-09-13 2017-09-13 Network access method and related product

Publications (2)

Publication Number Publication Date
CN107580358A CN107580358A (en) 2018-01-12
CN107580358B true CN107580358B (en) 2021-02-09

Family

ID=61033253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710826268.4A Active CN107580358B (en) 2017-09-13 2017-09-13 Network access method and related product

Country Status (1)

Country Link
CN (1) CN107580358B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637151B (en) * 2020-12-11 2023-05-05 深圳市英威腾电气股份有限公司 Data message transmission method, terminal device, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103813414A (en) * 2012-11-15 2014-05-21 中兴通讯股份有限公司 Mobile terminal Wi-Fi application and control method and mobile terminal
WO2014198084A1 (en) * 2013-06-09 2014-12-18 中兴通讯股份有限公司 Wifi module activation method, system and mobile terminal
CN106162804A (en) * 2016-06-24 2016-11-23 上海连尚网络科技有限公司 For providing the method and apparatus of the access information of wireless access focus
CN106714207A (en) * 2016-12-07 2017-05-24 广东欧珀移动通信有限公司 Information processing method and terminal device
CN106792819A (en) * 2016-12-26 2017-05-31 广东欧珀移动通信有限公司 A kind of method and device of the power consumption for reducing mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103813414A (en) * 2012-11-15 2014-05-21 中兴通讯股份有限公司 Mobile terminal Wi-Fi application and control method and mobile terminal
WO2014198084A1 (en) * 2013-06-09 2014-12-18 中兴通讯股份有限公司 Wifi module activation method, system and mobile terminal
CN106162804A (en) * 2016-06-24 2016-11-23 上海连尚网络科技有限公司 For providing the method and apparatus of the access information of wireless access focus
CN106714207A (en) * 2016-12-07 2017-05-24 广东欧珀移动通信有限公司 Information processing method and terminal device
CN106792819A (en) * 2016-12-26 2017-05-31 广东欧珀移动通信有限公司 A kind of method and device of the power consumption for reducing mobile terminal

Also Published As

Publication number Publication date
CN107580358A (en) 2018-01-12

Similar Documents

Publication Publication Date Title
CN107708168B (en) SIM card switching method, mobile terminal and computer readable storage medium
CN107146616B (en) Equipment control method and related product
CN110036661B (en) Uplink data transmission method, terminal, network side equipment and system
CN109151796B (en) NAN device finding method, related device and computer readable storage medium
CN111258407B (en) Application function control method and related product
CN107770729B (en) Signal intensity prompting method and related product
CN110574485B (en) Network connection configuration method and related products
CN107277230B (en) Voice broadcasting method of message and related product
EP4175349A1 (en) Method for processing relax measurement parameter update and terminal device
CN107071147B (en) Parameter adjusting method and device
CN107634952B (en) Method and device for determining brushing amount resource, service equipment, mobile terminal and storage medium
CN106793010B (en) Network access method and equipment
CN106484326B (en) A kind of data transmission processing method and mobile terminal
CN106604277B (en) Wireless network access method and mobile terminal
WO2018145477A1 (en) Network access method and terminal
CN112040475A (en) Communication connection method, system, terminal equipment and network equipment
CN110720232A (en) Measuring method and related product
CN107708071B (en) Transmission power control method and related product
CN107291328B (en) Interface display method and related product
CN107659976B (en) Network access method and related product
CN110632734B (en) Focusing method and related product
CN106851784B (en) network scanning method and terminal equipment
CN106815078B (en) Memory control method and equipment
CN107580358B (en) Network access method and related product
CN107220344B (en) Document processing method and related product

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