CN106332159B - WIFI abnormity automatic reconnection device, system and method - Google Patents

WIFI abnormity automatic reconnection device, system and method Download PDF

Info

Publication number
CN106332159B
CN106332159B CN201610654788.7A CN201610654788A CN106332159B CN 106332159 B CN106332159 B CN 106332159B CN 201610654788 A CN201610654788 A CN 201610654788A CN 106332159 B CN106332159 B CN 106332159B
Authority
CN
China
Prior art keywords
wifi
module
reconnection
mcu
timing
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
CN201610654788.7A
Other languages
Chinese (zh)
Other versions
CN106332159A (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 Aoni Electronic Ltd By Share Ltd
Original Assignee
Shenzhen Aoni Electronic Ltd By Share 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 Aoni Electronic Ltd By Share Ltd filed Critical Shenzhen Aoni Electronic Ltd By Share Ltd
Priority to CN201610654788.7A priority Critical patent/CN106332159B/en
Priority to PCT/CN2016/113451 priority patent/WO2018028132A1/en
Publication of CN106332159A publication Critical patent/CN106332159A/en
Application granted granted Critical
Publication of CN106332159B publication Critical patent/CN106332159B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • 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)
  • Telephone Function (AREA)

Abstract

The invention discloses a WIFI abnormity automatic reconnection device, system and method. The WIFI abnormal automatic reconnection device comprises a normal working module and a low-power-consumption working module. The normal working module comprises a main power supply circuit, a DSP and a memory, wherein the memory stores a mapping table which comprises reconnection times and required interval duration. The low-power-consumption working module comprises an auxiliary power circuit, an MCU (microprogrammed control unit) and a WIFI (wireless fidelity) module, and the WIFI module sends heartbeat data packets to the outside at intervals of a first preset time length; when a wake-up request is received, the WIFI module is switched from a low-power-consumption working mode to a normal working mode, and when the DSP judges that the WIFI module does not receive a heartbeat feedback signal, the current reconnection times and the actually required interval duration are obtained; after the actual required interval duration of interval, reestablish WIFI module and outside communication connection. According to the method and the device, automatic reconnection of WIFI abnormity is realized, and frequent reconnection operation is avoided.

Description

WIFI abnormity automatic reconnection device, system and method
Technical Field
The invention relates to the technical field of wireless networks, in particular to a WIFI abnormity automatic reconnection device, system and method.
Background
When the terminal device has an abnormal WIFI connection, the existing processing method mainly includes the following two methods:
firstly, the terminal equipment is restarted in a manual mode to execute WIFI reconnection operation. Therefore, the WIFI exception handling is not intelligent.
And secondly, when the terminal equipment detects that the WIFI connection is abnormal, the WIFI reconnection operation is intelligently executed. If the WIFI connection is always abnormal, the WIFI reconnection operation can be frequently executed. Therefore, frequent execution of the WIFI reconnection operation may cause a large power consumption of the terminal device.
Disclosure of Invention
In order to overcome the problems in the background art, the present disclosure provides a WIFI abnormal automatic reconnection device, system and method, so as to solve the problem of large power consumption caused by the unintelligent processing mode and frequent WIFI reconnection when the WIFI is abnormal.
In order to solve the above problems, the present invention provides an automatic reconnection device for WIFI abnormality, including:
the normal working module comprises a main power supply circuit, a DSP and a memory electrically connected with the DSP, wherein the memory stores a mapping table, and the mapping table comprises reconnection times and required interval duration corresponding to the reconnection times;
the low-power-consumption working module comprises an auxiliary power circuit, an MCU and a WIFI module electrically connected with the MCU; the auxiliary power circuit supplies power to the MCU and the WIFI module, and the WIFI module is in a low-power-consumption working mode and sends heartbeat data packets to the outside at intervals of a first preset time length; when the MCU receives an external awakening request, the WIFI module is switched from a low-power-consumption working mode to a normal working mode, the MCU starts a main power circuit, the main power circuit supplies power to the DSP and the memory, and when the DSP judges that the WIFI module does not receive a heartbeat feedback signal sent by the outside, the DSP acquires the current reconnection times and obtains the actual required interval duration corresponding to the current reconnection times according to a mapping table; and after the actual required interval duration, the reconnection operation of the WIFI module and the outside is executed.
Furthermore, the low-power consumption working module also comprises a timing module electrically connected with the MCU; the DSP generates a timing reconnection instruction according to the actual required interval duration and sends the timing reconnection instruction to the MCU, when the MCU receives the timing reconnection instruction, the main power supply circuit is closed and the timing module is controlled to start timing, when the timing duration of the timing module is consistent with the actual required interval duration, the timing module sends a first opening instruction to the MCU, and after the MCU receives the first opening instruction, the main power supply circuit is opened and the WIFI module is controlled to reestablish communication connection with the outside.
Further, the DSP also comprises a judging unit, and the judging unit is used for judging whether the communication connection between the WIFI module and the outside is successfully established;
if the communication connection between the WIFI module and the outside is not established successfully, adding 1 to the current reconnection times and storing the reconnection times;
if the WIFI module is successfully established with the external communication connection, the WIFI module sends heartbeat data packets to the outside at intervals of a first preset duration.
Further, when the DSP judges that the WIFI module receives a heartbeat feedback signal sent by the outside, the DSP generates a normal sleep instruction according to a second preset time length and sends the normal sleep instruction to the MCU, when the MCU receives the normal sleep instruction, the main power circuit is closed and the timing module is controlled to start timing, the timing time length of the timing module reaches the second preset time length, the timing module sends a second starting instruction to the MCU, and the MCU starts the main power circuit.
In order to solve the above problems, the present invention further provides a WIFI abnormal automatic reconnecting system, which includes the above WIFI abnormal automatic reconnecting device.
Further, the WIFI automatic reconnection device further comprises a server, and the server is in communication connection with a WIFI module of the WIFI abnormal automatic reconnection device.
In order to solve the problems, the invention also provides a WIFI abnormity automatic reconnection method which is applied to a WIFI abnormity automatic reconnection system, wherein the WIFI abnormity automatic reconnection system comprises a server and a WIFI abnormity automatic reconnection device, the WIFI abnormity automatic reconnection device comprises a normal working module and a low power consumption working module, the normal working module comprises a main power circuit, a DSP and a memory, the memory stores a mapping table, and the mapping table comprises reconnection times and required interval duration corresponding to the reconnection times; the low-power-consumption working module comprises an auxiliary power circuit, an MCU, a WIFI module and a timing module. The WIFI abnormity automatic reconnection method comprises the following steps:
the auxiliary power circuit supplies power to the MCU and the WIFI module, the WIFI module is in a low-power-consumption working mode and sends heartbeat data packets to the outside at intervals of a first preset time length, and the WIFI abnormal automatic reconnection device is in a dormant state;
when the MCU receives the awakening request, the main power supply circuit is started, the main power supply circuit supplies power to the DSP and the memory, the WIFI module is switched from a low-power-consumption working mode to a normal working mode, and the WIFI abnormal automatic reconnection device is switched from a dormant state to an awakening state;
the DSP executes WIFI abnormity judgment operation, and the WIFI abnormity judgment operation is that the DSP judges whether the WIFI module receives a heartbeat feedback signal sent by the server;
when the heartbeat feedback signal sent by the server is not received, the DSP acquires the current reconnection times and obtains the actual required interval duration corresponding to the current reconnection times according to the mapping table, and after the actual required interval duration is separated, reconnection operation of the WIFI module and the outside is executed.
Further, the step of performing reconnection operation between the WIFI module and the outside includes:
the DSP generates a timing reconnection instruction according to the actual required interval duration and sends the timing reconnection instruction to the MCU;
when the MCU receives a timing reconnection instruction, the main power supply circuit is closed and the timing module is controlled to start timing;
when the timing duration of the timing module is consistent with the actually required interval duration, the timing module sends a first starting instruction to the MCU;
after receiving the first opening instruction, the MCU opens the main power circuit and controls the WIFI module to reestablish communication connection with the server.
Further, after the step of starting the main power circuit and controlling the WIFI module to reestablish the communication connection with the server, the method further includes:
the DSP judges whether the communication connection between the WIFI module and the server is established successfully;
if the communication connection between the WIFI module and the server is not established successfully, performing WIFI abnormity judgment operation after adding 1 to the current reconnection times;
if the communication connection between the WIFI module and the server is successfully established, the WIFI module sends heartbeat data packets to the server at intervals of a first preset time period, and WIFI abnormity judgment operation is executed.
Further, the method further comprises:
when a heartbeat feedback signal sent by the server is received, the DSP generates a normal sleep instruction according to a second preset time length and sends the normal sleep instruction to the MCU;
when the MCU receives a normal sleep instruction, the main power supply circuit is closed and the timing module is controlled to start timing;
when the timing duration of the timing module reaches a second preset duration, the timing module sends a second starting instruction to the MCU;
after the MCU receives the second opening instruction, the MCU opens the main power supply circuit and executes WIFI abnormity judgment operation.
Compared with the prior art, the device automatically processes the abnormity when detecting the WIFI abnormity, so that the processing of the WIFI abnormity has the intelligent characteristic. In addition, when WIFI is abnormal, DSP obtains the current reconnection number of times and the actual required interval duration that corresponds with the current reconnection number of times, and the WIFI reconnection operation is executed after the actual required interval duration of interval duration, so that frequent reconnection operation is avoided, and the technical effect of reducing power consumption is achieved.
Drawings
Fig. 1 is a schematic diagram of a frame structure of an embodiment of the automatic reconnection device for WIFI abnormal conditions according to the present invention.
Fig. 2 is a schematic diagram of a frame structure of an embodiment of the WIFI abnormal automatic reconnection system of the present invention.
Fig. 3 is a schematic flowchart of an embodiment of an automatic reconnection method for a WIFI abnormal state according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 shows an embodiment of the WIFI abnormal automatic reconnecting device of the present invention. In an embodiment, the WIFI abnormal automatic reconnection device 1 includes a normal operation module 11 and a low power consumption operation module 12. The normal operation module 11 includes a main power circuit 111, a DSP113, and a memory 112 electrically connected to the DSP113, where the memory 112 stores a mapping table, and the mapping table includes reconnection times and a required interval duration corresponding to the reconnection times. The low power consumption operating module 12 includes a secondary power circuit 121, an MCU122, and a WIFI module 124 electrically connected to the MCU 122. The WIFI module 124 sends the heartbeat data packet to the outside at a first preset time interval. The secondary power circuit 121 supplies power to the MCU122 and the WIFI module 124, and the WIFI module 124 is in a low power consumption mode.
When the MCU122 receives an external wake-up request, the WIFI module 124 is switched from the low power consumption operating mode to the normal operating mode, the MCU122 starts the main power circuit 111, the main power circuit 111 supplies power to the DSP113 and the memory 112, when the DSP113 determines that the WIFI module 124 does not receive a heartbeat feedback signal sent from the outside, the DSP113 obtains the current reconnection number and obtains an actual required interval duration corresponding to the current reconnection number according to the mapping table, and closes the main power circuit 111, and the WIFI module 124 enters the low power consumption operating mode.
After the actual required interval duration, the MCU122 turns on the main power circuit 111, and the WIFI module 124 enters the normal operating mode, and performs reconnection between the WIFI module 124 and the outside. Specifically, the reconnection operation between the WIFI module 124 and the outside includes: the low power consumption operating module 12 further includes a timing module 123 electrically connected to the MCU 122. When the DSP113 determines that the WIFI module 124 does not receive a heartbeat feedback signal sent from the outside, the DSP113 generates a timing reconnection instruction according to an actually required interval duration and sends the timing reconnection instruction to the MCU122, when the MCU122 receives the timing reconnection instruction, the main power circuit 111 is turned off and the timing module 123 is controlled to start timing, when the timing duration of the timing module 123 is consistent with the actually required interval duration, the timing module 123 sends a first start instruction to the MCU122, and after the MCU122 receives the first start instruction, the main power circuit 111 is turned on and the WIFI module 124 is controlled to reestablish communication connection with the outside.
Through this embodiment, when not detecting the WIFI anomaly and in waiting for the actual required interval duration of reconnection after detecting the WIFI anomaly, this automatic reconnection device 1 of WIFI anomaly all is in dormant state, has reduced power consumption. If the WIFI connection is always in an abnormal state, due to the reason that the interval is long in the WIFI reconnection, the WIFI abnormal automatic reconnection device 1 cannot frequently perform the WIFI reconnection operation, and the effect of reducing power consumption is further achieved.
In order to further reduce the power consumption of the WIFI abnormal automatic reconnection device 1 of this embodiment, on the basis of the above embodiment, in other embodiments, the DSP113 further includes a determining unit, where the determining unit is configured to determine whether the communication connection between the WIFI module 124 and the outside is successfully established; if the communication connection between the WIFI module 124 and the outside is not successfully established, adding 1 to the current reconnection number and storing the added value, executing the WIFI abnormality judgment operation again by the DSP113, and judging whether the WIFI module 124 receives a heartbeat feedback signal sent from the outside. If the communication connection between the WIFI module 124 and the outside is successfully established, the WIFI module 124 sends a heartbeat data packet to the outside at a first preset time interval, and receives a heartbeat feedback signal sent by the outside.
It should be noted that the map stored in the memory 112 includes the reconnection times and the required interval durations corresponding to the reconnection times, where the required interval durations corresponding to all the reconnection times are values that increase as the reconnection times increase. For example, the required interval duration corresponding to the first reconnection is 30 seconds, the required interval duration corresponding to the second reconnection is 60 seconds, the required interval duration corresponding to the third reconnection is 120 seconds, the required interval duration is gradually increased according to a certain proportion, the more the number of the WIFI reconnection times, the longer the required interval duration, the more frequent execution of the WIFI reconnection operation is effectively avoided, and the power consumption is reduced.
In order to further reduce the power consumption of the WIFI abnormal automatic reconnection apparatus 1 of this embodiment, when the WIFI abnormal is not detected, the apparatus automatically enters the sleep state from the wake-up state. Therefore, on the basis of the above embodiment, in other embodiments, when the DSP113 determines that the WIFI module 124 receives a heartbeat feedback signal sent from the outside, the DSP113 generates a normal sleep instruction and sends the normal sleep instruction to the MCU122, after the MCU122 receives the normal sleep instruction, the main power circuit 111 is turned off and the timing module 123 is controlled to start timing, when the timing duration of the timing module 123 reaches a second preset duration, the timing module 123 sends a second start instruction to the MCU122, and the MCU122 starts the main power circuit 111. It should be noted that the second preset time length is greater than the required interval time length corresponding to the reconnection times in the mapping table, for example, the second preset time length may be set to 1 day.
Fig. 2 shows an embodiment of the WIFI abnormal automatic reconnecting system of the present invention. In this embodiment, the WIFI abnormal automatic reconnecting system includes a WIFI abnormal automatic reconnecting device 1 and a server 2.
The WIFI abnormal automatic reconnection device 1 includes a normal operation module 11 and a low power consumption operation module 12. The normal operation module 11 includes a main power circuit 111, a DSP113, and a memory 112 electrically connected to the DSP113, where the memory 112 stores a mapping table, and the mapping table includes reconnection times and a required interval duration corresponding to the reconnection times. The low power consumption operating module 12 includes a secondary power circuit 121, an MCU122, and a WIFI module 124 electrically connected to the MCU 122. The WIFI module 124 sends the heartbeat data packet to the server 2 at a first preset time interval. The secondary power circuit 121 supplies power to the MCU122 and the WIFI module 124, and the WIFI module 124 is in a low power consumption mode.
When the MCU122 receives an external wake-up request, the WIFI module 124 is switched from the low power consumption operating mode to the normal operating mode, the MCU122 starts the main power circuit 111, the main power circuit 111 supplies power to the DSP113 and the memory 112, when the DSP113 determines that the WIFI module 124 does not receive a heartbeat feedback signal sent by the server 2, the DSP113 obtains the current reconnection number and obtains an actual required interval duration corresponding to the current reconnection number according to the mapping table, and closes the main power circuit 111, and the WIFI module 124 enters the low power consumption operating mode.
After the actual required interval duration, the MCU122 turns on the main power circuit 111, and the WIFI module 124 enters the normal operating mode, and performs the reconnection operation between the WIFI module 124 and the server 2. Specifically, the reconnecting operation of the WIFI module 124 and the server 2 includes: the low power consumption operating module 12 further includes a timing module 123 electrically connected to the MCU 122. When the DSP113 determines that the WIFI module 124 does not receive the heartbeat feedback signal sent by the server 2, the DSP113 generates a timing reconnection instruction according to the actual required interval duration and sends the timing reconnection instruction to the MCU122, when the MCU122 receives the timing reconnection instruction, the main power circuit 111 is turned off and the timing module 123 is controlled to start timing, when the timing duration of the timing module 123 is consistent with the actual required interval duration, the timing module 123 sends a first start instruction to the MCU122, and after the MCU122 receives the first start instruction, the main power circuit 111 is turned on and the WIFI module 124 is controlled to reestablish communication connection with the server 2.
Through this embodiment, when not detecting the WIFI anomaly and in waiting for the actual required interval of reconnecting after detecting the WIFI anomaly, this WIFI anomaly automatic reconnecting device 1 all is in the dormant state, has reduced power consumption, and because of the reason that the interval was long, this WIFI anomaly automatic reconnecting device 1 can't frequent WIFI reconnect the operation, has further reached the effect that reduces power consumption.
In order to further reduce the power consumption of the WIFI abnormal automatic reconnection device 1 of this embodiment, on the basis of the above embodiment, in other embodiments, the DSP113 further includes a determining unit, where the determining unit is configured to determine whether the communication connection between the WIFI module 124 and the server 2 is successfully established; if the communication connection between the WIFI module 124 and the server 2 is not successfully established, adding 1 to the current reconnection number and storing the added value, executing the WIFI abnormality judgment operation again by the DSP113, and judging whether the WIFI module 124 receives the heartbeat feedback signal sent by the server 2. If the communication connection between the WIFI module 124 and the server 2 is successfully established, the WIFI module 124 sends a heartbeat data packet to the server 2 at a first preset time interval, and receives a heartbeat feedback signal sent by the server 2.
Specifically, the mapping table stored in the memory 112 includes the reconnection times and the required interval durations corresponding to the reconnection times, where the required interval durations corresponding to all the reconnection times may be a fixed value or a value that increases as the reconnection times increase. For example, the required interval duration corresponding to all reconnection times may be set to 300 seconds, that is, 300 seconds are required to be required for each execution of the WIFI reconnection operation; the following rules can be set: the required interval duration corresponding to the first reconnection is 30 seconds, the required interval duration corresponding to the second reconnection is 60 seconds, the required interval duration corresponding to the third reconnection is 120 seconds, the required interval duration is increased step by step in a certain proportion, the more the WIFI reconnection times, the longer the required interval duration, the effective avoidance of frequent execution of WIFI reconnection operation is realized, and the power consumption is reduced.
In order to further reduce the power consumption of the WIFI abnormal automatic reconnection apparatus 1 of this embodiment, when the WIFI abnormal is not detected, the apparatus automatically enters the sleep state from the wake-up state. Therefore, on the basis of the above embodiment, in other embodiments, when the DSP113 determines that the WIFI module 124 receives the heartbeat feedback signal sent by the server 2, the DSP113 generates a normal sleep instruction and sends the normal sleep instruction to the MCU122, after the MCU122 receives the normal sleep instruction, the main power circuit 111 is turned off and the timing module 123 is controlled to start timing, when the timing duration of the timing module 123 reaches the second preset duration, the timing module 123 sends a second start instruction to the MCU124, and the MCU124 starts the main power circuit 111. The second preset time length is greater than the required interval time length corresponding to all reconnection times in the mapping table, for example, when the second preset time length is set to be 1 day, the required interval time length is no more than 1 day at most.
Fig. 3 shows an embodiment of the automatic reconnection method for WIFI anomaly according to the present invention. In this embodiment, the automatic reconnection method for the WIFI anomaly is applied to the automatic reconnection system for the WIFI anomaly. The WIFI abnormity automatic reconnection system comprises a server and a WIFI abnormity automatic reconnection device. The WIFI abnormity automatic reconnection device comprises a normal working module and a low-power-consumption working module. Wherein, normal work module include main power supply circuit, DSP and with DSP electric connection's memory, low-power consumption work module includes auxiliary power supply circuit, MCU, WIFI module and timing module. The WIFI abnormity automatic reconnection method comprises the following steps:
step S1, the auxiliary power circuit supplies power to the MCU and the WIFI module, the WIFI module is in a low-power-consumption working mode and sends heartbeat data packets to the server at intervals of a first preset duration, and the WIFI abnormal automatic reconnection device is in a dormant state.
Step S2, when the MCU receives the awakening request, the main power circuit is started, the main power circuit supplies power to the DSP and the memory, the WIFI module is switched from the low-power-consumption working mode to the normal working mode, and the WIFI abnormal automatic reconnection device is switched from the dormant state to the awakening state.
Step S3, the DSP determines whether the WIFI module receives a heartbeat feedback signal sent by the server, if not, executes step S4, and if receives a heartbeat feedback signal sent by the server, executes step S8.
And step S4, the DSP acquires the current reconnection times and obtains the actual required interval duration corresponding to the current reconnection times according to the mapping table, and after the actual required interval duration is separated, the reconnection operation of the WIFI module and the server is executed. Specifically, in other embodiments, the performing the reconnection operation of the WIFI module and the server includes the following steps: step S41, generating a timing reconnection instruction according to the actual required interval duration and sending the timing reconnection instruction to the MCU; step S42, when the MCU receives the timing reconnection instruction, the main power circuit is closed and the timing module is controlled to start timing; step S43, when the timing duration of the timing module is consistent with the actual required interval duration, the timing module sends a first starting instruction to the MCU; step S44, after the MCU receives the first opening instruction, the main power circuit is opened and the WIFI module is controlled to reestablish communication connection with the server.
In order to further reduce the power consumption of the WIFI abnormal automatic reconnecting device, the WIFI abnormal automatic reconnecting method further includes:
step S5, the DSP determines whether the communication connection between the WIFI module and the server is successfully established, if the communication connection between the WIFI module and the server is not successfully established, step S6 is executed, and if the communication connection between the WIFI module and the server is successfully established, step S7 is executed.
In step S6, the current reconnection number is incremented by 1 and stored, and step S3 is executed.
Specifically, when the communication connection between the WIFI module and the server is not successfully established, adding 1 to the reconnection number on the basis of the previous reconnection number, and storing the reconnection number. For example, if the reconnection operation is not successful for the first time, the current reconnection number is 0, and adding 1 results in that the current reconnection number is 1. Therefore, the actual required interval duration corresponding to the next reading reconnection time of the DSP being 1 is the actual required interval duration of the next restart operation.
In step S7, the WIFI module sends the heartbeat packet to the server and is in a normal operating state, and then executes step S3.
In order to further reduce the power consumption of the WIFI abnormal automatic reconnection device of this embodiment, when the WIFI abnormal is not detected, the device automatically enters the sleep state from the wake-up state. The WIFI abnormity automatic reconnection method further comprises the following steps:
step S8, the DSP generates a normal sleep instruction according to a second preset time length and sends the normal sleep instruction to the MCU; when the MCU receives a normal sleep instruction, the main power supply circuit is closed and the timing module is controlled to start timing; when the timing duration of the timing module reaches a second preset duration, the timing module sends a second starting instruction to the MCU; after receiving the second start instruction, the MCU starts the main power circuit, and then step S3 is executed. Specifically, when the DSP judges that the WIFI module receives heartbeat feedback signals sent by the server, namely, when no WIFI is abnormal, the MCU disconnects the main power supply circuit, the WIFI module is converted into a low-power-consumption working mode from a normal working mode, and after the interval of a second preset time, the MCU opens the main power supply circuit and judges whether the WIFI module receives the heartbeat feedback signals sent by the server again. The second preset duration may be a fixed value, but the value of the second preset duration is greater than the actual required interval duration corresponding to the reconnection times in the mapping table.
The above detailed description of the embodiments of the present invention is provided as an example, and the present invention is not limited to the above described embodiments. It will be apparent to those skilled in the art that any equivalent modifications or substitutions can be made within the scope of the present invention, and thus, equivalent changes and modifications, improvements, etc. made without departing from the spirit and scope of the present invention should be included in the scope of the present invention.

Claims (10)

1. The utility model provides a WIFI anomaly automatic reconnection device which characterized in that, it includes:
the normal working module comprises a main power supply circuit, a DSP and a memory electrically connected with the DSP, wherein the memory stores a mapping table, and the mapping table comprises reconnection times and required interval duration corresponding to the reconnection times;
the low-power-consumption working module comprises an auxiliary power circuit, an MCU and a WIFI module electrically connected with the MCU; the auxiliary power circuit supplies power to the MCU and the WIFI module, and the WIFI module is in a low-power-consumption working mode and sends heartbeat data packets to the outside at intervals of a first preset time length; when the MCU receives an external awakening request, the WIFI module is switched from the low-power-consumption working mode to a normal working mode, the MCU starts the main power circuit, the main power circuit supplies power to the DSP and the memory, when the DSP judges that the WIFI module does not receive a heartbeat feedback signal sent from the outside, the DSP acquires the current reconnection number, obtains the actual required interval duration corresponding to the current reconnection number according to the mapping table, and closes the main power circuit, and the WIFI module enters the low-power-consumption working mode; after the actual required interval duration is spaced, the MCU starts the main power circuit, the WIFI module enters a normal working mode, and reconnection operation of the WIFI module and the outside is executed.
2. The WIFI abnormal automatic reconnecting device of claim 1, wherein the low power consumption operating module further comprises a timing module electrically connected with the MCU; the method comprises the steps that a DSP generates a timing reconnection instruction according to the actual required interval duration and sends the timing reconnection instruction to an MCU, when the MCU receives the timing reconnection instruction, the main power circuit is closed and the timing module is controlled to start timing, when the timing duration of the timing module is consistent with the actual required interval duration, the timing module sends a first opening instruction to the MCU, and after the MCU receives the first opening instruction, the main power circuit is opened and the WIFI module is controlled to reestablish communication connection with the outside.
3. The WIFI abnormity automatic reconnection device according to claim 2, wherein the DSP further comprises a judgment unit for judging whether the communication connection between the WIFI module and the outside is established successfully;
if the communication connection between the WIFI module and the outside is not established successfully, adding 1 to the current reconnection times and storing the reconnection times;
and if the communication connection between the WIFI module and the outside is successfully established, the WIFI module sends heartbeat data packets to the outside at intervals of the first preset time length.
4. The WIFI abnormity automatic reconnection device according to claim 2, wherein when the DSP judges that the WIFI module receives a heartbeat feedback signal sent from the outside, the DSP generates a normal dormancy instruction according to a second preset time length and sends the normal dormancy instruction to the MCU, when the MCU receives the normal dormancy instruction, the MCU closes the main power circuit and controls the timing module to start timing, when the timing time length of the timing module reaches the second preset time length, the timing module sends a second opening instruction to the MCU, and the MCU opens the main power circuit.
5. WIFI anomaly automatic reconnecting system, characterized in that it comprises a WIFI anomaly automatic reconnecting device according to one of claims 1 to 4.
6. The WIFI anomaly automatic reconnecting system of claim 5, further comprising a server in communication connection with a WIFI module of the WIFI anomaly automatic reconnecting device.
7. A WIFI abnormity automatic reconnection method is applied to a WIFI abnormity automatic reconnection system, the WIFI abnormity automatic reconnection system comprises a server and a WIFI abnormity automatic reconnection device, the WIFI abnormity automatic reconnection device comprises a normal working module and a low power consumption working module, the normal working module comprises a main power circuit, a DSP and a memory, a mapping table is stored in the memory, and the mapping table comprises reconnection times and required interval duration corresponding to the reconnection times; the low-power-consumption working module comprises an auxiliary power circuit, an MCU, a WIFI module and a timing module, and is characterized in that the automatic reconnection method for the WIFI abnormity comprises the following steps:
the auxiliary power circuit supplies power to the MCU and the WIFI module, the WIFI module is in a low-power-consumption working mode and sends heartbeat data packets to the server at intervals of a first preset time length, and the WIFI abnormal automatic reconnection device is in a dormant state;
when the MCU receives a wake-up request, the main power circuit is started, the main power circuit supplies power to the DSP and the memory, the WIFI module is switched from the low-power-consumption working mode to a normal working mode, and the WIFI abnormal automatic reconnection device is switched from the dormant state to a wake-up state;
the DSP executes WIFI abnormity judgment operation, and the WIFI abnormity judgment operation is that the DSP judges whether the WIFI module receives a heartbeat feedback signal sent by a server;
when a heartbeat feedback signal sent by a server is not received, the DSP acquires the current reconnection times, obtains the actual required interval duration corresponding to the current reconnection times according to the mapping table, closes the main power circuit, the WIFI module enters a low-power-consumption working mode, after the actual required interval duration is spaced, the MCU opens the main power circuit, and the WIFI module enters a normal working mode to execute reconnection operation of the WIFI module and the outside.
8. The WIFI abnormal automatic reconnecting method according to claim 7, wherein the step of performing the reconnecting operation of the WIFI module with the outside includes:
the DSP generates a timing reconnection instruction according to the actual required interval duration and sends the timing reconnection instruction to the MCU;
when the MCU receives the timing reconnection instruction, the main power supply circuit is closed and the timing module is controlled to start timing;
when the timing duration of the timing module is consistent with the actual required interval duration, the timing module sends a first starting instruction to the MCU;
and after receiving the first opening instruction, the MCU opens the main power supply circuit and controls the WIFI module to reestablish communication connection with the server.
9. The WIFI abnormal automatic reconnecting method according to claim 8, wherein after the step of turning on the main power circuit and controlling the WIFI module to reestablish the communication connection with the server, the method further comprises:
the DSP judges whether the communication connection between the WIFI module and the server is established successfully;
if the communication connection between the WIFI module and the server is not established successfully, the WIFI abnormity judgment operation is executed after the current reconnection times are increased by 1;
and if the communication connection between the WIFI module and the server is successfully established, the WIFI module sends heartbeat data packets to the server at intervals of a first preset time period, and the WIFI abnormity judgment operation is executed.
10. The WIFI anomaly automatic reconnecting method according to claim 7, wherein the method further comprises: when a heartbeat feedback signal sent by a server is received, the DSP generates a normal sleep instruction according to a second preset time length and sends the normal sleep instruction to the MCU; when the MCU receives the normal sleep instruction, the main power supply circuit is closed and the timing module is controlled to start timing; when the timing duration of the timing module reaches the second preset duration, the timing module sends a second starting instruction to the MCU; and after the MCU receives the second starting instruction, the MCU starts the main power supply circuit to execute the WIFI abnormity judgment operation.
CN201610654788.7A 2016-08-10 2016-08-10 WIFI abnormity automatic reconnection device, system and method Active CN106332159B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610654788.7A CN106332159B (en) 2016-08-10 2016-08-10 WIFI abnormity automatic reconnection device, system and method
PCT/CN2016/113451 WO2018028132A1 (en) 2016-08-10 2016-12-30 Device, system and method for automatic reconnection in case of wi-fi abnormality

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610654788.7A CN106332159B (en) 2016-08-10 2016-08-10 WIFI abnormity automatic reconnection device, system and method

Publications (2)

Publication Number Publication Date
CN106332159A CN106332159A (en) 2017-01-11
CN106332159B true CN106332159B (en) 2020-01-17

Family

ID=57740319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610654788.7A Active CN106332159B (en) 2016-08-10 2016-08-10 WIFI abnormity automatic reconnection device, system and method

Country Status (2)

Country Link
CN (1) CN106332159B (en)
WO (1) WO2018028132A1 (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107172304B (en) * 2017-07-17 2019-12-03 维沃移动通信有限公司 A kind of mobile terminal power consumption detection method and mobile terminal
CN110755061A (en) * 2018-07-27 2020-02-07 九阳股份有限公司 Heartbeat detection method of household appliance and household appliance
CN109814516A (en) * 2019-03-19 2019-05-28 上海零眸智能科技有限公司 A kind of refrigerator-freezer intelligent monitoring box and policing algorithm
CN110139348B (en) * 2019-05-21 2022-10-28 广东几米星联通讯有限公司 RDSS communication method and terminal thereof
CN111193769A (en) * 2019-11-25 2020-05-22 泰康保险集团股份有限公司 Method, system, device, electronic equipment and storage medium for recovering long connection
CN111010604B (en) * 2019-12-27 2022-03-08 深圳创维-Rgb电子有限公司 Method for preventing wifi list from being lost, smart television and medium
CN111741541B (en) * 2020-06-10 2023-11-17 国网湖南省电力有限公司 Frequent reconnection method and system based on wireless communication module of power distribution terminal
CN111970050B (en) * 2020-07-14 2022-03-15 电子科技大学 System for jointly monitoring modulation format and optical signal-to-noise ratio based on anomaly detection
CN111918236B (en) * 2020-08-10 2021-08-31 上海顺舟智能科技股份有限公司 Internet of things security sensor network searching method, device, equipment and storage medium
CN113766543B (en) * 2021-09-14 2024-04-30 青岛中科英泰商用系统股份有限公司 Method, system, electronic equipment and medium for improving WiFi stability
CN113866651B (en) * 2021-09-18 2022-08-02 珠海格力电器股份有限公司 Low-power detection method and device for remote controller and remote controller
CN114530939B (en) * 2022-02-11 2023-01-06 深圳天地宽视信息科技有限公司 Remote monitoring device and method for two-wire centralized power supply
CN114710569A (en) * 2022-03-11 2022-07-05 珠海派诺科技股份有限公司 Self-scaling TCP link maintenance method, system and storage medium
CN115866728A (en) * 2022-11-23 2023-03-28 京东方科技集团股份有限公司 Communication method of WIFI module, WIFI module and terminal equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316555A (en) * 2011-09-19 2012-01-11 华为终端有限公司 Method for scanning wireless fidelity (WiFi) network by mobile terminal and mobile terminal adopting method
US8868065B2 (en) * 2012-06-08 2014-10-21 Apple Inc. System and method for reducing power consumption for push messaging
CN104378421A (en) * 2014-11-14 2015-02-25 四川长虹电器股份有限公司 Remote control system and method of intelligent household electrical appliance product
US9560410B2 (en) * 2014-12-31 2017-01-31 Echostar Technologies L.L.C. Systems and methods for automatic resumption of video stream following transient WiFi disconnect
CN105050115B (en) * 2015-06-29 2020-06-02 小米科技有限责任公司 Method and device for waking up MCU
CN105357283B (en) * 2015-10-20 2020-02-11 北京奇宝科技有限公司 Long connection establishing method of intelligent wearable equipment, server and terminal
CN205158550U (en) * 2015-10-27 2016-04-13 华南理工大学广州学院 Public transit anti -theft device based on WIFI
CN105405188A (en) * 2015-11-04 2016-03-16 海星客企业发展(上海)有限公司 Ultrasonic unlocking device based on WiFi (Wireless Fidelity), ultrasonic unlocking system based on WiFi and control system thereof
CN105636004A (en) * 2015-12-25 2016-06-01 惠州Tcl移动通信有限公司 Bluetooth automatic reconnection method and system based on low power consumption Bluetooth

Also Published As

Publication number Publication date
WO2018028132A1 (en) 2018-02-15
CN106332159A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN106332159B (en) WIFI abnormity automatic reconnection device, system and method
CN109246803B (en) Method, device, terminal and storage medium for monitoring paging message
WO2015196763A1 (en) Power saving management method and device for intelligent terminal
US9285862B2 (en) Mobile terminal and power-saving method and device for same
TWI553464B (en) An intelligent device and related management method of service or application
US8971238B2 (en) Method for controlling wireless router and wireless router
CN106412845B (en) Dormancy method and device of wireless fidelity Wi-Fi equipment
CN110913462A (en) Channel monitoring and energy-saving signal processing device, terminal and network side equipment
EP3190771B1 (en) Method and device for managing instant communication application program, and mobile terminal thereof
CN110677899B (en) Data transmission method, device, terminal equipment and storage medium
US9954787B2 (en) Intelligent terminal power-saving management method and apparatus
CN108156651B (en) Switching control method and system between radio silent state and transmission state
CN110691399B (en) Internet of things terminal, awakening method and device thereof and storage medium
US10353456B2 (en) Advertising machine, and system, method and storage medium for controlling advertising machine
CN108200554B (en) Narrow-band Internet of things instrument based on PSM and eDRX, communication method and system
WO2016045525A1 (en) Method and apparatus for processing state of terminal
CN106598193B (en) Power consumption control method and device
CN110475321B (en) Power-saving optimization method and device for wireless local area network (AP)
WO2019110005A1 (en) Smart power saving method for terminal, terminal, and device having memory function
WO2021103893A1 (en) Wireless fidelity (wifi) chip control method and related device thereof
CN102053686A (en) Method for automatically controlling computer based on Bluetooth
CN106912091B (en) Control method and device and electronic equipment
CN106101406B (en) Shutdown alarm triggering processing method based on mobile terminal and mobile terminal
CN111885447A (en) Electronic device, control method thereof, control device thereof, and readable storage medium
US20230035613A1 (en) Detection signal, wireless charging method and wireless charging device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information

Address after: Baoan District Xin''an street Shenzhen city Guangdong province 518000 Liuxian road two Honghui Industrial Park No. 5 Building 2 floor, 3 floor, 6 floor, 7 floor, 8 floor of the west half layer, 9 floor

Applicant after: Shenzhen Aoni electronic Limited by Share Ltd

Address before: Baoan District Xin''an street Shenzhen city Guangdong province 518000 Liuxian road two Honghui Industrial Park No. 5 Building 2 floor, 3 floor, 6 floor, 7 floor, 8 floor of the west half layer, 9 floor

Applicant before: Shenzhen Aoni Electronic Industry Co., Ltd.

COR Change of bibliographic data
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant