CN113613346A - Network connection method, device, storage medium and electronic equipment - Google Patents

Network connection method, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113613346A
CN113613346A CN202110783059.2A CN202110783059A CN113613346A CN 113613346 A CN113613346 A CN 113613346A CN 202110783059 A CN202110783059 A CN 202110783059A CN 113613346 A CN113613346 A CN 113613346A
Authority
CN
China
Prior art keywords
network
connection
router
interruption
wireless network
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.)
Granted
Application number
CN202110783059.2A
Other languages
Chinese (zh)
Other versions
CN113613346B (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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202110783059.2A priority Critical patent/CN113613346B/en
Publication of CN113613346A publication Critical patent/CN113613346A/en
Application granted granted Critical
Publication of CN113613346B publication Critical patent/CN113613346B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/18Management of setup rejection or failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The application discloses a network connection method, a network connection device, a storage medium and electronic equipment, which relate to the technical field of networks, and the method comprises the following steps: receiving interruption indication information sent by a router, wherein the interruption indication information is generated by the router when the wireless network connection is abnormal; when the disconnection of the wireless network connection with the router is monitored, obtaining interruption reason information of the disconnection of the wireless network connection from the interruption indication information; and if the interruption reason information accords with the network reconnection condition, performing network non-inductive reconnection operation on a network layer to recover the wireless network connection with the router. The application realizes the noninductive high-efficiency network loop connection of the user and effectively improves the network connection stability.

Description

Network connection method, device, storage medium and electronic equipment
Technical Field
The present application relates to the field of network technologies, and in particular, to a network connection method, apparatus, storage medium, and electronic device.
Background
At present, wireless network technology is more and more popular, and when a user uses a network device, the stability of wireless network connection is particularly important. The instability of the wireless network connection may result in a reduction in the user experience, such as playing video, playing games, and the like.
However, in the current wireless network connection, if the wireless network is unstable, the router will actively disconnect the network, and at this time, the wireless network will disconnect, the user will perceive the disconnection of the network, and video playing and the like will be blocked, resulting in lower stability of the wireless network connection.
Disclosure of Invention
The embodiment of the application provides a scheme, which can realize the noninductive high-efficiency network loop connection of a user and effectively improve the network connection stability.
In order to solve the above technical problem, an embodiment of the present application provides the following technical solutions:
according to one embodiment of the present application, a network connection method includes: receiving interruption indication information sent by a router, wherein the interruption indication information is generated by the router when the wireless network connection is abnormal; when the disconnection of the wireless network connection with the router is monitored, obtaining interruption reason information of the disconnection of the wireless network connection from the interruption indication information; and if the interruption reason information accords with the network reconnection condition, performing network non-inductive reconnection operation on a network layer to recover the wireless network connection with the router.
In some embodiments of the present application, the receiving interruption indication information sent by the router includes: establishing wireless network connection with the router, so as to trigger the router to acquire a network abnormal state when the wireless network connection is abnormal, and generating an authentication removing frame carrying interruption reason information according to the network abnormal state; and receiving the interruption indication information sent by the router, wherein the interruption indication information comprises a deauthentication frame.
In some embodiments of the present application, before the performing, at a network layer, a network non-inductive reconnection operation if the interruption reason information meets a network reconnection condition, the method further includes: acquiring an interruption reason matching table, wherein preset interruption reason information is stored in the interruption reason matching table; matching the interruption reason information with the preset interruption reason information to obtain a matching degree; and when the matching degree is higher than a preset threshold value, determining that the interruption reason information meets the network connection back condition.
In some embodiments of the present application, the performing a network-agnostic loopback operation at a network layer to recover a wireless network connection with the router includes: building a network loop connection unit for carrying out network non-inductive loop connection operation on a network layer; and based on the network back connection unit, requesting connection from the router by hiding the connection state to an application layer at a network layer so as to recover wireless network connection with the router.
In some embodiments of the present application, said setting up a network backhaul unit for network non-inductive backhaul operation at a network layer includes: adding a target mark in a wireless network card management unit, wherein the target mark is used for indicating the wireless network card management unit to carry out network non-inductive loopback operation in a network layer; and taking the wireless network card management unit added with the target mark as the network connection unit.
In some embodiments of the present application, the method further comprises: when the router recovers the wireless network connection, the network loop connection unit is converted into an inductive connection unit; and performing network sensitive connection operation based on the sensitive connection unit to inform the network connection state to an application layer.
In some embodiments of the present application, the network connection unit includes a wireless network card management unit to which a target mark is added; the converting the network backhaul unit into an inductive connection unit includes: and replacing the target mark with a conversion mark so as to convert the wireless network card management unit into the inductive connection unit.
According to one embodiment of the present application, a network connection apparatus, the apparatus comprising: the receiving module is used for receiving interruption indication information sent by the router, wherein the interruption indication information is generated when the wireless network connection of the router is abnormal; the monitoring module is used for acquiring interruption reason information of the wireless network from the interruption indication information when the disconnection of the wireless network connection is monitored; and the reconnection module is used for carrying out network non-inductive reconnection operation on a network layer if the interruption reason information accords with network reconnection conditions so as to recover wireless network connection with the router.
According to another embodiment of the present application, a storage medium has stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the method of an embodiment of the present application.
According to another embodiment of the present application, an electronic device may include: a memory storing a computer program; and the processor reads the computer program stored in the memory to execute the method in the embodiment of the application.
In the embodiment of the application, interruption indication information sent by a router can be received, wherein the interruption indication information is generated when the wireless network connection of the router is abnormal; when the disconnection of the wireless network connection with the router is monitored, the interruption reason information of the disconnection of the wireless network connection is obtained from the interruption indication information; and if the interruption reason information accords with the network reconnection condition, performing network non-inductive reconnection operation on a network layer to recover the wireless network connection with the router.
In this way, after the router generates the interruption indication information when the wireless network connection is abnormal, the interruption indication information is received, the network can be indicated to have an abnormal state, when the disconnection of the wireless network is monitored, interruption reason information of the wireless network caused by the abnormal state can be obtained from the interruption indication information, and further, when the interruption reason information meets the network reconnection condition, the network layer is triggered to carry out network non-inductive reconnection operation, the triggering efficiency of reconnection is effectively improved, meanwhile, the network non-inductive reconnection operation of the network layer further avoids redundant reconnection inductive operation to improve the network connection efficiency, so that the non-inductive high-efficiency network reconnection of a user can be realized on the whole, and the network connection stability is effectively improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 shows a schematic diagram of a system to which embodiments of the present application may be applied.
Fig. 2 shows a flow diagram of a network connection method according to an embodiment of the application.
FIG. 3 shows a block diagram of a network connection device according to one embodiment of the present application.
FIG. 4 shows a block diagram of an electronic device according to an embodiment of the application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the application have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, and it will be recognized by those of ordinary skill in the art that various of the steps and operations described below may be implemented in hardware.
FIG. 1 shows a schematic diagram of a system 100 to which embodiments of the present application may be applied. As shown in fig. 1, system 100 may include a router 101 and a terminal 102. The terminal 102 may be any computer device, such as a computer, a mobile phone, a smart watch, a home appliance, and the like. Router 101 is a gateway device. The server 101 and the terminal 102 may be connected by a wireless network connection.
In an embodiment, the terminal 102 is a home appliance, and the router 101 is a gateway device for connecting the home appliance to a network through a wireless network connection. The household appliances can be refrigerators, televisions, air conditioners, humidifiers and the like.
In one implementation of this example, the terminal 102 may receive interruption indication information sent by the router 101, where the interruption indication information is generated by the router 101 when the wireless network connection is abnormal; when the disconnection of the wireless network connection with the router is monitored, the interruption reason information of the disconnection of the wireless network connection is obtained from the interruption indication information; if the interruption reason information meets the network connection back condition, the network layer performs network connection back operation without sensing so as to recover the wireless network connection with the router 101.
Fig. 2 schematically shows a flow chart of a network connection method according to an embodiment of the present application. The execution subject of the network connection method may be any device, such as the terminal 102 shown in fig. 1.
As shown in fig. 2, the network connection method may include steps S210 to S230.
Step S210, receiving interruption indication information sent by the router, wherein the interruption indication information is generated when the wireless network connection of the router is abnormal;
step S220, when the disconnection of the wireless network connection with the router is monitored, the interruption reason information of the disconnection of the wireless network connection is obtained from the interruption indication information;
in step S230, if the interruption reason information meets the network reconnection condition, a network non-inductive reconnection operation is performed in the network layer to recover the wireless network connection with the router.
The following describes a specific procedure of each step performed when a network connection is made.
In step S210, interrupt indication information sent by the router is received, where the interrupt indication information is generated by the router when the wireless network connection is abnormal.
In the embodiment of the example, the terminal and the router establish a wireless network connection in advance, and the router triggers the router to generate the interrupt indication information when sensing that the wireless network connection is abnormal. The wireless network connection anomaly may be an anomaly caused by network connection instability.
The router generates interruption indication information and then sends the interruption indication information to the terminal, at this time, the wireless network connection is only abnormal and is not interrupted, and the router can disconnect the wireless network connection after sending the interruption indication information.
In one embodiment, in step S210, receiving interruption indication information sent by the router includes:
establishing wireless network connection with a router so as to trigger the router to acquire a network abnormal state when the wireless network connection is abnormal, and generating a de-authentication frame carrying interruption reason information according to the network abnormal state; and receiving interruption indication information sent by the router, wherein the interruption indication information comprises a deauthentication frame.
The triggering router can collect the abnormal state of the network when the wireless network connection is abnormal, the router can inquire a preset terminal reason information table according to the abnormal state of the network, the interruption reason information matched with the abnormal state information of the network is inquired from the preset terminal reason information table, and then an authentication removing frame carrying the interruption reason information is generated.
And the router generates a Deauthentication frame and then disconnects the wireless network connection to finish the authentication relationship between the terminal and the router.
The router generates a de-authentication frame carrying interruption reason information and then sends the de-authentication frame to the terminal, and the terminal can immediately judge that the network is about to be interrupted after receiving the de-authentication frame as interruption indication information, immediately acquire the terminal reason information to determine whether to perform network non-inductive reconnection operation, and further improve the network reconnection efficiency.
In step S220, when it is detected that the wireless network connection with the router is disconnected, the interruption reason information of the wireless network connection disconnection is obtained from the interruption indication information.
In an embodiment of this example, in the terminal, it may determine that the wireless network connection is disconnected when the terminal receives the interruption indication information and monitors that data cannot be sent through the network. In one embodiment, the terminal may determine that the wireless network connection is disconnected immediately after receiving the interruption indication information. When it is determined that the wireless network connection is disconnected, the terminal may acquire the interruption reason information of the wireless network connection disconnection carried in the interruption indication information.
The terminal can acquire interruption reason information marked by a feature mark from the interruption indication information, wherein the specific mark is, for example, "# define", and the accuracy of the interruption reason information is ensured.
In step S230, if the interruption reason information meets the network connection condition, a network connection-insensitive operation is performed in the network layer to recover the wireless network connection with the router.
In the embodiment of the present example, the network reconnection condition is a preset condition for determining whether to perform network reconnection, so as to improve the success rate of network reconnection. In one embodiment, the network reconnection condition may be a reconnection condition based on an interruption reason matching table, and if the interruption reason information is in the interruption reason matching table, it is determined that the interruption reason information meets the network reconnection condition. In an embodiment, the network reconnection condition may be a reconnection condition based on a hash algorithm, the interrupt cause information may be hashed based on a preset hash function, and if a value obtained by hashing the interrupt cause information based on the preset hash function is a specific value, it is determined that the interrupt cause information meets the network reconnection condition.
The network layer is the wireless network background connection relative to the application layer in the terminal. The network non-inductive reconnection operation is carried out on the network layer, namely, the terminal directly carries out wireless network reconnection application to the router at the background without carrying out information interaction operation with the application layer, so that redundant connection operation can be further avoided, and the network reconnection efficiency is improved.
In one embodiment, before the network connection-insensitive operation is performed in the network layer if the interruption cause information meets the network connection-back condition, the method further includes:
acquiring an interruption reason matching table, wherein preset interruption reason information is stored in the interruption reason matching table; matching the interruption reason information with preset interruption reason information to obtain a matching degree; and when the matching degree is higher than a preset threshold value, determining that the interruption reason information meets the network connection condition.
In this embodiment, the network reconnection condition may be a reconnection condition based on the interruption reason matching table, and if the interruption reason information is in the interruption reason matching table, it is determined that the interruption reason information meets the network reconnection condition, and it may be efficiently and accurately determined that the interruption reason information meets the network reconnection condition.
In one example, the preset interrupt reason information stored in the interrupt reason matching table may include the following 9:
# define WLAN _ respond _ unknown cause 1;
# define WLAN _ REASON _ PREV _ AUTH _ NOT _ VALID (Previous authentication no longer VALID, i.e. the historical authentication is no longer VALID, the client is associated but NOT authorized) 2;
# define WLAN _ REASON _ DEUTH _ LEAVING (estimated becace sensing STA is LEAVING IBSS ORESS, i.e. the access point failed to cancel the client's authentication) 3;
# defineWLAN _ ready _ disassociat _ DUE _ TO _ INACTIVITY (Disassociated DUE TO activity, i.e., client session timeout) 4;
# define WLAN _ REASON _ DISASSOC _ AP _ BUSY (disabled detected beacon AP is disabled to handle all currently assigned STAs, i.e., the router is BUSY) 5;
# define WLAN _ ready _ CLASS2_ FRAME _ FROM _ normal _ STA (CLASS 2FRAME received FROM unknown STA, i.e. the client tries to transmit data before authenticating the data) 6;
# define WLAN _ ready _ CLASS3_ FRAME _ FROM _ normal soc _ STA (CLASS 3FRAME received FROM normal STA, i.e. a client attempting to transmit data before association) 7;
# define WLAN _ REASON _ disassociat _ STA _ HAS _ LEFT 8 (associated slave sensing STA is leaving) BSS, i.e. the operating system moves the client to another access point using uncompressed load balancing;
# define WLAN _ REASON _ STA _ REQ _ ASSOC _ WITHOUT _ AUTH 9(STA requesting (re) association is not authorized with a reserving STA, i.e. the client is not authorized yet and is still trying to associate with the access point).
And matching the interruption reason information with preset interruption reason information to obtain a matching degree, wherein the matching degree can be obtained by calculating the similarity between the interruption reason information and the preset interruption reason information to obtain the similarity as the matching degree, and if the matching degree is higher than a preset threshold value, the interruption reason information is shown in the interruption reason matching table, and the interruption reason information is determined to accord with the network reconnection condition.
In one embodiment, a network agnostic loopback operation is performed at a network layer to recover a wireless network connection with a router, comprising:
building a network loop connection unit for carrying out network non-inductive loop connection operation on a network layer; and based on the network back connection unit, requesting connection from the router by hiding the connection state to the application layer at the network layer so as to recover the wireless network connection with the router.
The network connection unit used for network non-inductive connection operation in the network layer is built in the terminal, so that the terminal can request connection from the router through hiding the connection state in the application layer on the network layer based on the built network connection unit, and the network non-inductive connection operation is realized. The connection state is hidden for the application layer, namely the terminal directly applies for wireless network back connection to the router at the background, and information interaction operation is not performed with the application layer.
The method includes the steps that a network loop connection unit used for carrying out network non-inductive loop connection operation in a network layer is built in a terminal, and in one embodiment, a program module which is injected in advance and used for carrying out network non-inductive loop connection operation in the network layer is activated in the terminal so as to build the network loop connection unit used for carrying out network non-inductive loop connection operation in the network layer; in one embodiment, a network connection unit for network non-inductive connection operation in a network layer can be set up by modifying a wireless network card management unit in a terminal.
In one embodiment, a network loopback unit for network-agnostic loopback operation at a network layer is constructed, comprising:
adding a target mark in the wireless network card management unit, wherein the target mark is used for indicating the wireless network card management unit to carry out network non-inductive loopback operation in a network layer; and taking the wireless network card management unit added with the target mark as a network loop unit.
In the embodiment, the wireless network card management unit in the terminal is modified to build the network reconnection unit for carrying out network non-inductive reconnection operation on the network layer, so that network reconnection can be conveniently and efficiently carried out, and the reconnection efficiency is further improved.
The target mark is added to the wireless network card management unit, which is a wpa _ supplicant module in the terminal, and may be added to the wpa _ supplicant module, specifically, the fast reconnect mark fastconnect in the wpa _ supplicant module is set to be equal to 1, and is used as the target mark. Under the condition that the fastconnect is equal to 1, the state that the wpa _ supplicant module conducts all network disconnection and connection back is not informed to an upper application layer, and the wireless network state seen by a user cannot be changed.
In one embodiment, the method further comprises: when the router recovers the wireless network connection, the network back connection unit is converted into an inductive connection unit; and performing network sensitive connection operation based on the sensitive connection unit to inform the application layer of the network connection state.
The network sensitive connection operation is realized by a network connection mode for informing the application layer of the network connection state, the network sensitive connection operation is carried out based on the sensitive connection unit so as to inform the application layer of the network connection state, and after the network connection is successful, a user can be informed that the network connection operation is just carried out, so that the user experience is improved.
The method comprises the steps of activating a pre-injected program module for network non-inductive back connection operation in a network layer in a terminal, closing the activated program module when the network back connection unit for network non-inductive back connection operation in the network layer is built, and activating the program module for network inductive connection operation so as to convert the network back connection unit into an inductive connection unit; in one embodiment, when the wireless network card management unit in the terminal is modified to build a network reconnection unit for performing network non-inductive reconnection operation in a network layer, the state before the modification of the wireless network card management unit is recovered, so that the network reconnection unit is converted into an inductive connection unit.
In one embodiment, the network connection unit comprises a wireless network card management unit added with a target mark; convert a network backhaul connection unit into an inductive connection unit, comprising: and replacing the target mark with a conversion mark so as to convert the wireless network card management unit into a sensible connection unit.
In this embodiment, the network loopback unit is converted into the inductive connection unit by recovering the state of the wireless network card management unit before the modification to the wireless network card management unit. The wpa _ supplicant module in the wireless network card management unit, namely the terminal, can modify the target mark added in the wpa _ supplicant module into a conversion mark, and then restore the transformation of the wpa _ supplicant module into an inductive connection unit.
Specifically, the fast-loopback flag fastconnect is equal to 1 in the wpa _ supplicant module, and when the target flag is set, 1 is modified to 0, and the target flag is replaced by the conversion flag.
In this way, based on steps S210 to S230, after the router generates the interruption indication information when the wireless network connection is abnormal, the interruption indication information is received, so that the network can be indicated to have an abnormal state, when it is monitored that the wireless network connection is disconnected, interruption reason information of the wireless network due to the abnormal state can be obtained from the interruption indication information, and further, when the interruption reason information meets the network reconnection condition, the network layer is triggered to perform network non-inductive reconnection operation, the triggering efficiency of reconnection is effectively improved, and meanwhile, the network non-inductive reconnection operation of the network layer further avoids redundant inductive reconnection operation to improve the network connection efficiency, so that the user non-inductive efficient network reconnection can be realized on the whole, and the network connection stability is effectively improved.
In order to better implement the network connection method provided by the embodiments of the present application, embodiments of the present application further provide a network connection device based on the network connection method. Wherein the terms have the same meanings as those in the above network connection method, and the details of the implementation can be referred to the description in the method embodiment. FIG. 3 shows a block diagram of a network connection device according to one embodiment of the present application.
As shown in fig. 3, the network connection device 300 may include a receiving module 310, a monitoring module 320, and a back-connection module 330.
The receiving module 310 may be configured to receive interruption indication information sent by a router, where the interruption indication information is generated by the router when a wireless network connection is abnormal; the monitoring module 320 may be configured to, when it is monitored that the wireless network connection with the router is disconnected, obtain interruption reason information of the wireless network connection disconnection from the interruption indication information; the loopback module 330 may be configured to perform a network non-inductive loopback operation at a network layer if the interruption cause information meets a network loopback condition, so as to recover a wireless network connection with the router.
In some embodiments of the present application, the receiving module 310 includes: the wireless network connection establishing unit is used for establishing wireless network connection with the router so as to trigger the router to acquire a network abnormal state when the wireless network connection is abnormal, and generate a de-authentication frame carrying interruption reason information according to the network abnormal state; an interruption indication information receiving unit, configured to receive the interruption indication information sent by the router, where the interruption indication information includes the de-authentication frame.
In some embodiments of the present application, the apparatus further comprises: the system comprises an interruption reason matching table acquisition module, a judgment module and a judgment module, wherein the interruption reason matching table acquisition module is used for acquiring an interruption reason matching table, and preset interruption reason information is stored in the interruption reason matching table; the matching processing module is used for matching the interruption reason information with the preset interruption reason information to obtain a matching degree; and the network reconnection condition determining module is used for determining that the interruption reason information meets the network reconnection condition when the matching degree is higher than a preset threshold value.
In some embodiments of the present application, the back-joining module 330 includes: the network loop connection unit building unit is used for building a network loop connection unit for carrying out network non-inductive loop connection operation on a network layer; and the connection request unit is used for requesting connection to the router by hiding the connection state to the application layer in the network layer based on the network back connection unit so as to recover wireless network connection with the router.
In some embodiments of the present application, the network tieback unit building unit is configured to: adding a target mark in a wireless network card management unit, wherein the target mark is used for indicating the wireless network card management unit to carry out network non-inductive loopback operation in a network layer; and taking the wireless network card management unit added with the target mark as the network connection unit.
In some embodiments of the present application, the apparatus further comprises: the inductive connection unit building module is used for converting the network loop connection unit into an inductive connection unit when the router recovers wireless network connection; and the network sensible connection module is used for carrying out network sensible connection operation based on the sensible connection unit so as to inform the application layer of the network connection state.
In some embodiments of the present application, the network connection unit includes a wireless network card management unit to which a target mark is added; the inductive connection unit building module is used for: and replacing the target mark with a conversion mark so as to convert the wireless network card management unit into the inductive connection unit.
In this way, based on the network connection device 300, after the interruption indication information is generated by the router when the wireless network connection is abnormal, the interruption indication information is received, the network can be indicated to have an abnormal state, when the disconnection of the wireless network connection is monitored, the interruption reason information of the wireless network caused by the abnormal state can be obtained from the interruption indication information, furthermore, when the interruption reason information meets the network connection condition, the network non-inductive connection operation is triggered on the network layer, the triggering efficiency of the connection is effectively improved, meanwhile, the network non-inductive connection operation on the network layer further avoids redundant inductive connection operation to improve the network connection efficiency, further, the user non-inductive high-efficiency network connection can be realized on the whole, and the network connection stability is effectively improved.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In addition, an embodiment of the present application further provides an electronic device, where the electronic device may be a terminal or a server, as shown in fig. 4, which shows a schematic structural diagram of the electronic device according to the embodiment of the present application, and specifically:
the electronic device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the entire computer device using various interfaces and lines, and performs various functions of the computer device and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user pages, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 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 by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 402 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. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are realized through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The electronic device may further include an input unit 404, and the input unit 404 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the electronic device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the electronic device loads the executable file corresponding to the process of one or more computer programs into the memory 402 according to the following instructions, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions, for example, the processor 401 may execute the following steps:
receiving interruption indication information sent by a router, wherein the interruption indication information is generated by the router when the wireless network connection is abnormal; when the disconnection of the wireless network connection with the router is monitored, obtaining interruption reason information of the disconnection of the wireless network connection from the interruption indication information; and if the interruption reason information accords with the network reconnection condition, performing network non-inductive reconnection operation on a network layer to recover the wireless network connection with the router.
In some embodiments of the present application, when receiving the interruption indication information sent by the router, the processor 401 may perform: establishing wireless network connection with the router, so as to trigger the router to acquire a network abnormal state when the wireless network connection is abnormal, and generating an authentication removing frame carrying interruption reason information according to the network abnormal state; and receiving the interruption indication information sent by the router, wherein the interruption indication information comprises the de-authentication frame.
In some embodiments of the present application, before performing the network non-inductive loopback operation at the network layer if the interruption reason information meets the network loopback condition, the processor 401 may perform: acquiring an interruption reason matching table, wherein preset interruption reason information is stored in the interruption reason matching table; matching the interruption reason information with the preset interruption reason information to obtain a matching degree; and when the matching degree is higher than a preset threshold value, determining that the interruption reason information meets the network connection back condition.
In some embodiments of the present application, when performing the network agnostic loopback operation at the network layer to recover the wireless network connection with the router, the processor 401 may perform: building a network loop connection unit for carrying out network non-inductive loop connection operation on a network layer; and based on the network back connection unit, requesting connection from the router by hiding the connection state to an application layer at a network layer so as to recover wireless network connection with the router.
In some embodiments of the present application, when the network loopback unit for performing the network non-inductive loopback operation at the network layer is built, the processor 401 may perform: adding a target mark in a wireless network card management unit, wherein the target mark is used for indicating the wireless network card management unit to carry out network non-inductive loopback operation in a network layer; and taking the wireless network card management unit added with the target mark as the network connection unit.
In some embodiments of the present application, the processor 401 may perform: when the router recovers the wireless network connection, the network loop connection unit is converted into an inductive connection unit; and performing network sensitive connection operation based on the sensitive connection unit to inform the network connection state to an application layer.
In some embodiments of the present application, the network connection unit includes a wireless network card management unit to which a target mark is added; when the network backhaul unit is converted into an inductive connection unit, the processor 401 may perform: and replacing the target mark with a conversion mark so as to convert the wireless network card management unit into the inductive connection unit.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by a computer program, which may be stored in a computer-readable storage medium and loaded and executed by a processor, or by related hardware controlled by the computer program.
To this end, the present application further provides a storage medium, in which a computer program is stored, where the computer program can be loaded by a processor to execute the steps in any one of the methods provided in the present application.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the storage medium can execute the steps in any method provided in the embodiments of the present application, the beneficial effects that can be achieved by the methods provided in the embodiments of the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains.
It will be understood that the present application is not limited to the embodiments that have been described above and shown in the drawings, but that various modifications and changes can be made without departing from the scope thereof.

Claims (10)

1. A network connection method, comprising:
receiving interruption indication information sent by a router, wherein the interruption indication information is generated by the router when the wireless network connection is abnormal;
when the disconnection of the wireless network connection with the router is monitored, obtaining interruption reason information of the disconnection of the wireless network connection from the interruption indication information;
and if the interruption reason information accords with the network reconnection condition, performing network non-inductive reconnection operation on a network layer to recover the wireless network connection with the router.
2. The method of claim 1, wherein the receiving the interruption indication information sent by the router comprises:
establishing wireless network connection with the router, so as to trigger the router to acquire a network abnormal state when the wireless network connection is abnormal, and generating an authentication removing frame carrying interruption reason information according to the network abnormal state;
and receiving the interruption indication information sent by the router, wherein the interruption indication information comprises the de-authentication frame.
3. The method according to claim 1, wherein before the network connection-back operation is performed at a network layer if the interruption cause information meets a network connection-back condition, the method further comprises:
acquiring an interruption reason matching table, wherein preset interruption reason information is stored in the interruption reason matching table;
matching the interruption reason information with the preset interruption reason information to obtain a matching degree;
and when the matching degree is higher than a preset threshold value, determining that the interruption reason information meets the network connection back condition.
4. The method of claim 1, wherein the performing network agnostic loopback operation at a network layer to recover wireless network connectivity with the router comprises:
building a network loop connection unit for carrying out network non-inductive loop connection operation on a network layer;
and based on the network back connection unit, requesting connection from the router by hiding the connection state to an application layer at a network layer so as to recover wireless network connection with the router.
5. The method of claim 4, wherein the building of the network loopback unit for network-agnostic loopback operation at a network layer comprises:
adding a target mark in a wireless network card management unit, wherein the target mark is used for indicating the wireless network card management unit to carry out network non-inductive loopback operation in a network layer;
and taking the wireless network card management unit added with the target mark as the network connection unit.
6. The method of claim 4, further comprising:
when the router recovers the wireless network connection, the network loop connection unit is converted into an inductive connection unit;
and performing network sensitive connection operation based on the sensitive connection unit to inform the network connection state to an application layer.
7. The method according to claim 6, wherein the network connection unit comprises a wireless network card management unit added with a target mark;
the converting the network backhaul unit into an inductive connection unit includes:
and replacing the target mark with a conversion mark so as to convert the wireless network card management unit into the inductive connection unit.
8. A network connection device, comprising:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving interruption indication information sent by a router, and the interruption indication information is generated by the router when the wireless network connection is abnormal;
the monitoring module is used for acquiring interruption reason information of the wireless network connection disconnection from the interruption indication information when the wireless network connection disconnection between the monitoring module and the router is monitored;
and the reconnection module is used for carrying out network non-inductive reconnection operation on a network layer if the interruption reason information accords with network reconnection conditions so as to recover wireless network connection with the router.
9. A storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the method of any one of claims 1 to 7.
10. An electronic device, comprising: a memory storing a computer program; a processor reading a computer program stored in the memory to perform the method of any of claims 1 to 7.
CN202110783059.2A 2021-07-12 2021-07-12 Network connection method, device, storage medium and electronic equipment Active CN113613346B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110783059.2A CN113613346B (en) 2021-07-12 2021-07-12 Network connection method, device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110783059.2A CN113613346B (en) 2021-07-12 2021-07-12 Network connection method, device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113613346A true CN113613346A (en) 2021-11-05
CN113613346B CN113613346B (en) 2023-08-01

Family

ID=78304407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110783059.2A Active CN113613346B (en) 2021-07-12 2021-07-12 Network connection method, device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113613346B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114158025A (en) * 2022-02-09 2022-03-08 荣耀终端有限公司 Device reconnection method and related device
WO2023116836A1 (en) * 2021-12-24 2023-06-29 维沃移动通信有限公司 Image frame acquisition method and apparatus, and communication device

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090163240A1 (en) * 2007-12-24 2009-06-25 Samsung Electronics Co. Ltd. Service connection apparatus and method in portable terminal
WO2013185031A1 (en) * 2012-06-09 2013-12-12 Apple Inc. Adjusting connection states of a mobile wireless device
US20140313877A1 (en) * 2011-12-21 2014-10-23 Huawei Technologies Co., Ltd. Processing method of wireless fidelity technology and user equipment
CN107801201A (en) * 2017-10-19 2018-03-13 维沃移动通信有限公司 Network recovery method and device
US20180098375A1 (en) * 2016-09-30 2018-04-05 Fujitsu Limited Apparatus and method to control reconnection of a terminal device to a wireless network via another wireless network
CN108307540A (en) * 2016-09-22 2018-07-20 普天信息技术有限公司 A kind of gateway restarts the quick recovery method of rear user apparatus service
US20190132737A1 (en) * 2016-12-07 2019-05-02 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for Accessing Wireless Network, and Terminal Device
US20190182663A1 (en) * 2016-08-21 2019-06-13 Huawei Technologies Co., Ltd. Method and Device For Networking Between Devices
CN110933775A (en) * 2019-11-25 2020-03-27 北京三体云时代科技有限公司 Method and device for establishing signal connection and electronic equipment
CN111010706A (en) * 2019-11-22 2020-04-14 杭州迪普科技股份有限公司 Exception recovery method and device
WO2021001480A1 (en) * 2019-07-04 2021-01-07 Telefonaktiebolaget Lm Ericsson (Publ) Nas recovery in a wireless communication network
CN112398689A (en) * 2020-11-13 2021-02-23 Oppo广东移动通信有限公司 Network recovery method and device, storage medium and electronic equipment
WO2021129018A1 (en) * 2019-12-25 2021-07-01 中兴通讯股份有限公司 Network connection reestablishment method and device, storage medium, and electronic device

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090163240A1 (en) * 2007-12-24 2009-06-25 Samsung Electronics Co. Ltd. Service connection apparatus and method in portable terminal
US20140313877A1 (en) * 2011-12-21 2014-10-23 Huawei Technologies Co., Ltd. Processing method of wireless fidelity technology and user equipment
WO2013185031A1 (en) * 2012-06-09 2013-12-12 Apple Inc. Adjusting connection states of a mobile wireless device
US20190182663A1 (en) * 2016-08-21 2019-06-13 Huawei Technologies Co., Ltd. Method and Device For Networking Between Devices
CN108307540A (en) * 2016-09-22 2018-07-20 普天信息技术有限公司 A kind of gateway restarts the quick recovery method of rear user apparatus service
US20180098375A1 (en) * 2016-09-30 2018-04-05 Fujitsu Limited Apparatus and method to control reconnection of a terminal device to a wireless network via another wireless network
US20190132737A1 (en) * 2016-12-07 2019-05-02 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for Accessing Wireless Network, and Terminal Device
CN107801201A (en) * 2017-10-19 2018-03-13 维沃移动通信有限公司 Network recovery method and device
WO2021001480A1 (en) * 2019-07-04 2021-01-07 Telefonaktiebolaget Lm Ericsson (Publ) Nas recovery in a wireless communication network
CN111010706A (en) * 2019-11-22 2020-04-14 杭州迪普科技股份有限公司 Exception recovery method and device
CN110933775A (en) * 2019-11-25 2020-03-27 北京三体云时代科技有限公司 Method and device for establishing signal connection and electronic equipment
WO2021129018A1 (en) * 2019-12-25 2021-07-01 中兴通讯股份有限公司 Network connection reestablishment method and device, storage medium, and electronic device
CN112398689A (en) * 2020-11-13 2021-02-23 Oppo广东移动通信有限公司 Network recovery method and device, storage medium and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023116836A1 (en) * 2021-12-24 2023-06-29 维沃移动通信有限公司 Image frame acquisition method and apparatus, and communication device
CN114158025A (en) * 2022-02-09 2022-03-08 荣耀终端有限公司 Device reconnection method and related device
CN114158025B (en) * 2022-02-09 2022-06-14 荣耀终端有限公司 Device reconnection method and related device

Also Published As

Publication number Publication date
CN113613346B (en) 2023-08-01

Similar Documents

Publication Publication Date Title
US20210357488A1 (en) Fingerprint Recognition Method and Apparatus, and Touchscreen Terminal
CN113613346A (en) Network connection method, device, storage medium and electronic equipment
US10149241B2 (en) Device, method, and system for starting mobile hotspot
CN106776124B (en) Data backup method and device
CN103997358A (en) Method, device and system for pairing Bluetooth remote control unit and controlled devices
CN110839084B (en) Session management method, device, equipment and medium
CN106656985B (en) Backup account login method, device and system
CN113765714B (en) Equipment network distribution method and device, storage medium and electronic equipment
EP3197170B1 (en) Multimedia processing device, multimedia processing server and method therefor
CN113746821B (en) Intelligent device control method and device, storage medium and electronic device
EP2521386A1 (en) Method, device and system for updating security algorithm of mobile terminals
CN111193585B (en) Communication request management method and device
CN113596141A (en) Method and device for setting equipment control authority, computer equipment and storage medium
CN113506100A (en) Alliance link data processing method and device, computer equipment and storage medium
CN106713180B (en) Hotspot device control method and device
CN106845184A (en) screen locking method, device and terminal
CN206115535U (en) Intelligence lock low -power consumption remote control system
CN115904588A (en) Remote control method, device and system for terminal screen
CN113434830B (en) Authority control method and system
CN113746909A (en) Network connection method, device, electronic equipment and computer readable storage medium
CN113395345A (en) Network distribution method and device of Internet of things equipment and storage medium
CN111404669A (en) Key generation method, terminal equipment and network equipment
CN103412787B (en) Processing method, device and the equipment of integrated multimedia
CN117373441A (en) Audio data processing method and device and household appliance
CN116962761A (en) Television account login method and device, storage medium and electronic equipment

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