CN114641023B - Method, system, computer device and storage medium for repairing network connection - Google Patents

Method, system, computer device and storage medium for repairing network connection Download PDF

Info

Publication number
CN114641023B
CN114641023B CN202210368216.8A CN202210368216A CN114641023B CN 114641023 B CN114641023 B CN 114641023B CN 202210368216 A CN202210368216 A CN 202210368216A CN 114641023 B CN114641023 B CN 114641023B
Authority
CN
China
Prior art keywords
online
equipment
offline
intelligent gateway
scanning
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
CN202210368216.8A
Other languages
Chinese (zh)
Other versions
CN114641023A (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 Oribo Technology Co Ltd
Original Assignee
Shenzhen Oribo 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 Oribo Technology Co Ltd filed Critical Shenzhen Oribo Technology Co Ltd
Priority to CN202210368216.8A priority Critical patent/CN114641023B/en
Publication of CN114641023A publication Critical patent/CN114641023A/en
Priority to PCT/CN2022/121947 priority patent/WO2023193410A1/en
Application granted granted Critical
Publication of CN114641023B publication Critical patent/CN114641023B/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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • 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

Abstract

The application relates to a method, a system, a computer device and a storage medium for repairing network connection. Applied to the intelligent gateway, the method comprises the following steps: when the offline equipment exists, generating a scanning instruction to indicate each online equipment to scan; respectively receiving scanning results generated by each online device, wherein the scanning results comprise addresses of each offline device in a signal range of the online device; and generating a support instruction carrying support information according to the scanning result to indicate the target online equipment to establish connection with each corresponding offline equipment, wherein the support information comprises a corresponding relation between the target online equipment and at least one offline equipment. The intelligent gateway generates the scanning instruction to indicate all online equipment in network connection to scan, and after receiving the scanning result of the online equipment, the intelligent gateway appoints the target online equipment in the online equipment to be connected with the offline equipment to assist the offline equipment to rejoin the network, thereby repairing the network connection problem and improving the network stability.

Description

Method, system, computer device and storage medium for repairing network connection
Technical Field
The present application relates to the field of wireless technologies, and in particular, to a method, a system, a computer device, and a storage medium for repairing a network connection.
Background
With the development of the internet of things technology, various Wireless technologies are applied to the field of smart homes, such as Wireless Fidelity (WIFI), zigBee (ZigBee), bluetooth Low Energy (BLE), and the like. However, at present, a unified standard for smart home interconnection still does not exist, and therefore, the existing smart home has the situation that the WIFI, zigBee and BLE devices are used in a mixed manner.
However, the problem of abnormal connection of part of the network often occurs in the existing network connection, which may cause that part of the home devices in the smart home network are in a disconnected state and cannot be used normally.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, a computer device, and a storage medium for repairing network connection, which can solve the problem of partial network connection abnormality.
A network connection repairing method is applied to an intelligent gateway and comprises the following steps:
when the offline equipment exists, generating a scanning instruction to instruct each online equipment to scan;
respectively receiving scanning results generated by each online device, wherein the scanning results comprise addresses of each offline device in a signal range of the online device;
and generating a support instruction carrying support information according to the scanning result to indicate the target online equipment to establish connection with each corresponding offline equipment, wherein the support information comprises the corresponding relation between the target online equipment and at least one offline equipment.
In one embodiment, before there is a dropped device, the method further includes:
receiving heartbeat packets sent by each online device;
and when not receiving all heartbeat packets of the online equipment, judging that the offline equipment exists.
In one embodiment, the scan result further includes signal strength of a broadcast signal of each offline device scanned by each online device, and the generating of the support instruction carrying the support information according to the scan result includes:
obtaining the maximum value of a plurality of signal intensities corresponding to the same offline device, and taking the online device corresponding to the maximum value as a target online device corresponding to the current offline device;
and acquiring the addresses of the target online devices, and generating support instructions by using the addresses of all the offline devices and the addresses of the target online devices corresponding to all the offline devices as support information.
A network connection repairing method is applied to online equipment and comprises the following steps:
receiving a scanning instruction sent by an intelligent gateway;
responding to the scanning instruction to scan the offline equipment in the signal range, generating a scanning result and sending the scanning result to the intelligent gateway;
when a support instruction carrying support information generated by the intelligent gateway according to a scanning result is received, the support instruction is used as a target online device to send a connection request to each corresponding target offline device to establish connection, and the support information comprises a corresponding relation between the target online device and at least one offline device.
In one embodiment, the online device comprises a parent node device and a child node device, the child node device is directly connected with the parent node device and is connected to the intelligent gateway through the parent node device, and the parent node device is used for forwarding a heartbeat packet fed back by the intelligent gateway to the child node device; the method further comprises the following steps:
and when the child node equipment is normally connected with the father node equipment within the preset time but does not receive the heartbeat packet receiving instruction, marking the child node equipment as offline equipment.
In one embodiment, the online device includes a parent node device and a child node device, the child node device is directly connected to the parent node device and is connected to the intelligent gateway via the parent node device, and the method further includes:
and acquiring the real-time communication strength of the child node equipment and the parent node equipment, and when the real-time communication strength is smaller than a threshold value, marking the current online equipment as offline equipment.
A network connection repairing method is applied to a dropped device, and comprises the following steps:
the method comprises the steps of sending a broadcast signal, wherein the broadcast signal is used for informing the online equipment that offline equipment exists in a scanning signal range when the online equipment scans;
and receiving a connection request sent by the online equipment, and responding to the connection request to establish connection with the online equipment.
A network connection repairing system comprises an intelligent gateway, an online device and a dropped device; wherein the content of the first and second substances,
the intelligent gateway is used for generating a scanning instruction to indicate each online device to scan when the offline device exists; respectively receiving scanning results generated by each online device, wherein the scanning results comprise addresses of each offline device in a signal range of the online device; generating a support instruction carrying support information according to the scanning result to indicate the target online equipment to establish connection with each corresponding offline equipment, wherein the support information comprises the corresponding relation between the target online equipment and at least one offline equipment;
the online equipment is used for receiving a scanning instruction sent by the intelligent gateway; responding to a scanning instruction to scan the offline equipment in the signal range and generating a scanning result; when a support instruction carrying support information generated by the intelligent gateway according to a scanning result is received, the support instruction is used as target online equipment to send a connection request to corresponding target offline equipment to establish connection, and the support information comprises a corresponding relation between the target online equipment and at least one offline equipment;
the offline device is used for sending a broadcast signal, and the broadcast signal is used for informing the online device that the offline device exists in a scanning signal range when the online device scans; and receiving a connection request sent by the online equipment, and responding to the connection request to establish connection with the online equipment.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of the method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
According to the intelligent gateway disclosed by the invention, when the offline device exists in the network connection, the scanning instruction is generated to indicate all online devices in the network connection to scan, and after the scanning result of the online devices is received, the target online devices in the online devices are appointed to be connected with the offline device, so that the offline device is assisted to rejoin the network, the network connection problem is repaired, and the network stability is improved.
Drawings
FIG. 1 is a diagram of an exemplary implementation of a method for repairing a network connection;
FIG. 2 is a flow diagram illustrating a method for repairing a network connection according to one embodiment;
FIG. 3 is a second flowchart illustrating a method for repairing a network connection according to an embodiment;
FIG. 4 is a third flowchart illustrating a method for repairing a network connection according to an embodiment;
FIG. 5 is a fourth flowchart illustrating a method for repairing a network connection according to an embodiment;
FIG. 6 is a fifth flowchart illustrating a method for repairing a network connection according to an embodiment;
FIG. 7 is a schematic diagram of a repair system for network connections in one embodiment;
FIG. 8 is a signaling diagram of a method for repairing a network connection in one embodiment;
FIG. 9 is a diagram illustrating one embodiment of a network-connected remediation device;
FIG. 10 is a second schematic diagram of the network-connected remediation device of an embodiment;
fig. 11 is a third schematic structural diagram of a network-connected repair device in an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application 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 and not restrictive on the broad application.
The method for repairing network connection provided by the embodiment of the application can be applied to the application environment shown in fig. 1. Wherein, a plurality of terminal equipments 102 communicate with the intelligent gateway 104 through the network. The data storage system may store data that intelligent gateway 104 needs to process. The data storage system may be integrated on the intelligent gateway 104, or may be placed on the cloud or other network server. Specifically, the intelligent gateway 104 in the network connection repairing method in the embodiment of the present application may be, but is not limited to, an intelligent gateway, a server, or other devices with gateway functions. Such as a control panel in a smart home. Those skilled in the art can apply the network connection repairing method according to the present application to various network connection scenarios, which is not limited herein. The intelligent gateway 104 monitors whether a dropped terminal device 102 is in a heartbeat mechanism with the terminal devices 102, and when the intelligent gateway 104 determines that the dropped terminal devices 102 exist in the plurality of terminal devices 102, the intelligent gateway scans the dropped terminal devices 102 by indicating the online terminal devices 102, and designates at least one of the online terminal devices 102 to connect with the dropped terminal device 102 according to a scanning result of each online terminal device 102, so that the dropped terminal device 102 joins the network again. Meanwhile, the terminal device 102 that is disconnected can send out a broadcast while being disconnected, so that the terminal device 102 that is online can search for the broadcast, and the effect of maintaining stable network connection is achieved. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices and portable wearable devices, and the internet of things devices may be intelligent control panels, intelligent sound boxes, smart televisions, intelligent air conditioners, intelligent vehicle-mounted devices, and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. The server 104 may be implemented as a stand-alone server or a server cluster comprised of multiple servers.
In one embodiment, as shown in fig. 2, a flowchart of a method for repairing a network connection is provided, and the method is applied to an intelligent gateway, and includes steps S110 to S130.
And step S110, when the offline device exists, generating a scanning instruction to instruct each online device to scan.
Specifically, in this embodiment, a plurality of devices are connected to an intelligent gateway through a wireless technology, and when the intelligent gateway finds that a device that is disconnected exists among the plurality of devices, a scanning instruction is generated and sent to a device that is still online, so as to instruct all online devices to start a scanning mode and scan the devices around the intelligent gateway. Meanwhile, when the intelligent gateway finds that the off-line equipment exists in the plurality of equipment, the intelligent gateway can start the scanning module to scan the peripheral off-line equipment. When the intelligent gateway scans the offline device, the scanning result of the intelligent gateway can be recorded.
The scanning may be, but is not limited to, WIFI scanning, zigBee scanning, BLE scanning. However, with the rapid development of the semiconductor technology, the WIFI chip scheme or the ZigBee chip scheme is basically provided with BLE modules without increasing the cost, and therefore, in this embodiment, specifically, all the devices that have BLE modules around and are off-line for broadcasting can be scanned through the BLE scanning technology, that is, the off-line devices are not limited to being WIFI devices, zigBee devices, or BLE devices.
Step S120, receiving the scanning result generated by each online device, respectively, where the scanning result includes the address of each offline device within the signal range of the online device.
Specifically, the intelligent gateway in this embodiment is further configured to receive a scanning result generated by all online devices after instructing all online devices to scan their respective peripheral devices, where the scanning result includes addresses of all offline devices scanned by all online devices within a scanning signal range. It can be understood that, when the online device does not scan the peripheral dropped devices, the scanning result of the address of the dropped device may or may not be fed back to the intelligent gateway. Meanwhile, it is easy to understand that the scanning result also includes the address of the online device used for scanning, and the intelligent gateway can know the mapping relationship between the online device and the offline device scanned in the scanning result according to the scanning result. In addition, when the online device and the intelligent gateway scan the surrounding devices, not only the address of the offline device but also the addresses of the online devices and/or the intelligent gateway may be scanned, and at this time, the scanning result includes not only the mapping relationship between the online device and the offline device, but also the mapping relationship between the online device and the online device, or the mapping relationship between the online device and the intelligent gateway. When the intelligent gateway receives the scanning result, the scanning result can be screened to obtain the mapping relation between the scanned online equipment and the scanned offline equipment.
Step S130, generating a support instruction carrying support information according to the scanning result to instruct the target online device to establish connection with each corresponding offline device, where the support information includes a corresponding relationship between the target online device and at least one offline device.
Specifically, in this embodiment, the intelligent gateway determines, according to the scanning result, an online device that can be used to initiate a network connection request to the offline device, marks the online device as a target online device, and generates a support instruction carrying support information to indicate the target online device to connect with the corresponding offline device. When the number of the support instructions is multiple, the intelligent gateway can respectively send the multiple support instructions to the multiple target online devices in a one-to-one correspondence manner.
The network connection between the target online device and the offline device can be WIFI connection, zigBee connection or BLE connection. As described above, the BLE module is set in both the WIFI device and the ZigBee device, so the target online device and the offline device in this embodiment can be connected more widely through the BLE module, that is, the target online device and the offline device can be the WIFI device and the ZigBee device, respectively, and can also be the WIFI device and the WIFI device, and the like.
Specifically, when the device that drops a line in this embodiment sends a broadcast signal, its BLE slave mode is started, so that when the target device is connected to the corresponding device that drops a line, the target device is connected to the corresponding device that drops a line by starting its BLE Master mode.
For the convenience of understanding the relationship between the online device, the target online device and the dropped device, the following examples are only used for illustration, but not for limiting the scope of the present application. For example, among the plurality of online devices are: online device 1, online device 2, and online device 3; the plurality of drop devices include: a line drop device 1 and a line drop device 2. If the online device 2 can scan the dropped device 1 and the dropped device 2, and the online device 1 and the online device 3 cannot scan the dropped device 1 and the dropped device 2, it is determined that the online device 2 is a target online device, and support information generated by the intelligent gateway is used for indicating that the online device 2 is connected with the dropped device 1 and/or the dropped device 2, and the dropped device 1 and/or the dropped device 2 can implement communication through a relay of the online device 2.
In this embodiment, when finding the offline device, the intelligent gateway scans the offline device by indicating all online devices, and specifies a target offline device to be connected with each offline device, thereby solving the problem of connection stability in internet of things network connection.
In one embodiment, as shown in fig. 3, a flow chart of a method for repairing a network connection is provided, and the step S110 further includes steps S140 to S150.
Step S140, receiving heartbeat packets sent by each online device.
Specifically, the intelligent gateway in this embodiment receives a heartbeat packet that is reported by the online device at a certain period, for example, a heartbeat packet that is reported once in one minute. It can be understood that the heartbeat packet reporting period in this embodiment is only used for example, and is not used to limit the protection scope of this application, and those skilled in the art can reasonably set the heartbeat packet reporting period according to the actual application situation.
And step S150, judging that the offline device exists when not receiving all heartbeat packets of the online device.
Specifically, when the intelligent gateway does not receive heartbeat packets of the same device in at least two continuous periods, it is determined that a dropped device exists in the network. The online device and the intelligent gateway in this embodiment have a heartbeat mechanism, so that the intelligent gateway can know the online states of all connected devices.
In one embodiment, when the intelligent gateway receives a notification signal generated by a target online device, the intelligent gateway sends the notification signal to each online device. The notification signal is a signal generated after the target online equipment and the offline equipment are re-connected to notify each online equipment, the target online equipment performs proxy after the original offline equipment is re-networked, and subsequent information is forwarded to the original offline equipment by the target online equipment so as to finally realize the transmission of network information.
In one embodiment, the scanning result further includes the signal strength of the broadcast signal of each offline device scanned by each online device, as shown in fig. 4, a flowchart of a method for repairing network connection is provided, and the step S130 generates the support instruction carrying the support information according to the scanning result, including steps S131 to S132.
Step S131, obtaining the maximum value of a plurality of signal strengths corresponding to the same offline device, and using the online device corresponding to the maximum value as the target online device corresponding to the current offline device.
Specifically, when the online device in this embodiment scans the peripheral offline device, the signal strength of the broadcast signal scanned to the offline device is also recorded. And the intelligent gateway selects the target online equipment from the online equipment which scans the broadcast signal by taking the maximum value of the intensity of the broadcast signal scanned by each online equipment in the scanning result as a standard. For example, the online device includes: online equipment 1 and online equipment 2, the equipment that falls off the line includes: the apparatus 1 is disconnected. The on-line device 1 scans that the intensity of the broadcast signal of the off-line device 1 is-10 dbm, and the on-line device 2 scans that the intensity of the broadcast signal of the off-line device 1 is-100 dbm. The presence device 1 is taken as the target presence device. It is understood that the signal strength in the present embodiment is only for example and is not used to limit the protection scope of the present application.
Step S132 is to acquire the addresses of the target online apparatuses, and generate support instructions using the addresses of the respective offline apparatuses and the addresses of the target online apparatuses corresponding to the respective offline apparatuses as support information.
Wherein the support information includes a correspondence between the target online device and at least one dropped device. In this embodiment, the intelligent gateway selects the online device with the maximum broadcast signal strength scanned to the offline device from the online devices scanning the broadcast signals of the offline device as the target device by using the maximum broadcast signal strength scanned to the offline device by each online device in the scanning result as a standard, so as to ensure the stability of subsequent network connection.
In one embodiment, the scanning result further includes scanning time of each offline device scanned by each online device, and the step S131 includes:
and acquiring the sequence of a plurality of scanning times corresponding to the same offline device, and taking the online device which is firstly scanned to the current offline device as the target online device corresponding to the current offline device.
Specifically, in this embodiment, after the same offline device is scanned by multiple online devices, the intelligent gateway may select, according to the time sequence of the offline devices scanned by the multiple online devices, the online device that is scanned to the current offline device first, as the target online device. Therefore, the network connection can be quickly repaired, and the risk of delaying the transmission of network information is reduced.
In one embodiment, the scanning result further includes the number of loads of each online device scanned to the offline device, and the step S131 includes:
and acquiring the load quantity of online equipment corresponding to the same offline equipment, and selecting the online equipment with the least load quantity as target online equipment of the current offline equipment.
Specifically, in this embodiment, after the same offline device is scanned by multiple online devices, the intelligent gateway may perform screening according to the load number of each online device scanned to the offline device, where the load number of the online device is the number of other online devices already connected to the current online device, and selects a target online device with the smallest load number in the online devices as the current offline device. Therefore, the robustness of network connection is enhanced, the problems that information transmission is too slow due to too high load quantity of the online equipment is reduced, and the hardware equipment is high in temperature due to too high load quantity of the online equipment are solved.
In one embodiment, the scanning result includes the signal strength of the broadcast from the online device to the offline device, the scanning time, and the load amount of the online device. According to the embodiment, the online equipment which finds the same offline equipment is comprehensively scored according to the signal intensity, the scanning time and the load number of the online equipment, and the optimal online equipment is determined to be the target online equipment. Therefore, the stability of the network connection after repair is enhanced.
In one embodiment, when the offline device exists, a prompt signal is generated and sent to the mobile terminal to prompt the user that the offline device exists in the network.
In this embodiment, a prompt signal is generated through the intelligent gateway to prompt a user that there is a device disconnected in a network. For example, in an intelligent home scene, if a sweeping robot of an original online device is disconnected, a user can know that the sweeping robot is disconnected through a mobile terminal, the user can select human intervention and can wait for restoration of network connection, and after the network connection is restored, the intelligent gateway rejoins the information of the sweeping robot into the network and sends the information to the user so as to facilitate the user to acquire the network state in the intelligent home.
In one embodiment, as shown in fig. 5, a flowchart of a method for repairing a network connection is provided, and the method is applied to an online device, and includes steps S160 to S180.
And step S160, receiving a scanning instruction sent by the intelligent gateway.
And S170, responding to the scanning instruction to scan the offline equipment in the signal range, generating a scanning result and sending the scanning result to the intelligent gateway.
Specifically, as described above, the WIFI scan, the ZigBee scan, and the BLE scan may be performed. The scanning in this embodiment may specifically be that the online devices turn on their BLE modules, scan their surrounding broadcast signals, generate scanning results according to their respective scanning, and send their respective scanning results to the intelligent gateway. In this embodiment, each online device scans by starting the BLE module to find a broadcast signal in a signal range, and each offline device sends the broadcast signal by starting the BLE module. Wherein, in order to reduce the consumption that BLE module starts and brings, each online equipment can send the scanning result to intelligent gateway through the original network of normally connecting before sending the scanning result to intelligent gateway, for example, WIFI equipment sends the scanning result to intelligent gateway through the original WIFI network of normally connecting. Each online device may also turn off its own scanning function when sending the scanning result to the intelligent gateway, or after sending the scanning result to the intelligent gateway, so as to reduce power consumption.
Specifically, when the BLE module of the online device in this embodiment is turned off, and the online device receives a new scanning instruction, the online device may further start the BLE module in response to the new scanning instruction and perform scanning. And when the BLE module of the online device is not turned off, the online device responds to a new scanning instruction to directly scan after receiving the new scanning instruction.
Specifically, after the online devices send respective scanning results to the intelligent gateway, the intelligent gateway generates a support signal carrying support information according to the scanning results, where the support information includes a correspondence between the target online device and the offline device, and therefore, the target online device initiates a connection request to the specified offline device according to the support information when receiving the support instruction, where the target online device is designated as an online device of the target online device. The connection request may be a WIFI connection request, may be a ZigBee connection request, and may also be a BLE connection request, which is not limited herein. Since the existing WIFI device and the ZigBee device both include a BLE module, in this embodiment, specifically, the target online device sends a connection request to the drop device in a BLE connection request manner, so as to implement the requirement that the target online device and the drop device must be the same network device without limitation, and implement wider device network connection.
In one embodiment, each online device is configured with a device validity token corresponding to each online device, before a target device initiates a network connection request to each offline device, the device validity token of each offline device is verified, whether each offline device corresponding to the network connection request to be initiated is a legal device is judged, and only a network connection request is initiated to the legal device, so as to ensure network security and prevent an illegal device from joining a network.
In one embodiment, the online device includes a parent node device and a child node device, the child node device is directly connected with the parent node device and is connected to the intelligent gateway through the parent node device, and the parent node device is configured to forward a heartbeat packet receiving instruction fed back by the intelligent gateway to the child node device; the method further comprises the following steps:
and when the child node equipment is normally connected with the father node equipment within the preset time and does not receive the heartbeat packet receiving instruction, marking the child node equipment as offline equipment.
Specifically, the intelligent gateway and the online device in this embodiment maintain a bidirectional heartbeat mechanism, that is, the intelligent gateway receives the heartbeat packet sent by the device and also feeds back a heartbeat packet receiving instruction that has received the heartbeat packet reported by the device. It can be understood that, the heartbeat packet receiving instruction corresponds to the heartbeat packets reported by the online devices one to one, for example, a heartbeat packet is reported by the online device 1 once, and when the intelligent gateway receives the heartbeat packet reported by the online device 1, the intelligent gateway feeds back the corresponding heartbeat packet receiving instruction to the online device 1; the online device 2 reports a heartbeat packet, and the intelligent gateway feeds back a corresponding heartbeat packet receiving instruction to the online device 2 when receiving the heartbeat packet reported by the online device 2; and other devices are analogized in the same way, and are not described in detail. In addition, in this embodiment, the child node device determines, through a neighbor discovery protocol, whether the parent node device and the child node device can also communicate normally.
When discovering that the heartbeat packet fed back by the intelligent gateway is not received by the child node device, the child node device can judge whether the connection between the child node device and the parent node device is normal or not through a neighbor discovery protocol, and still report the heartbeat packet of the child node device at a certain period, for example, once every 30 seconds. However, when the child node device determines that the child node device is normally connected to the parent node device through the neighbor discovery protocol within a certain preset time, for example, within five minutes, but the heartbeat packet fed back by the intelligent gateway is still not received within five minutes, at this time, in the network, the parent node device is actually in a dropped state, and the child node device reconnects the parent node device waiting for the dropped state within the preset time, so that the network connection can be restored only by the parent node device realizing network reconnection once. If the father node device still cannot rejoin the network within the preset time, and the child node device still cannot receive the heartbeat packet fed back by the intelligent gateway and receives the instruction, the child node device determines that the child node device is the offline device.
In one embodiment, when the connection between the child node device and the parent node is abnormal, the child node device is marked as a disconnected device.
Specifically, in this embodiment, the child node device discovers that it is abnormally connected to the parent node device through the neighbor discovery protocol, and meanwhile, the child node device cannot receive a heartbeat packet received by the instruction fed back by the intelligent gateway, that is, determines itself as the offline device.
In one embodiment, when online equipment directly connected with the intelligent gateway does not receive a heartbeat packet fed back by the intelligent gateway, the online equipment is marked as offline equipment.
Specifically, the online device directly connected to the intelligent gateway in this embodiment may also discover that the connection between the online device and the intelligent gateway is abnormal through a neighbor discovery protocol, and then determine that the online device is a dropped device.
It should be noted that, when both the parent node device and the child node device mounted thereon are offline devices, the parent node device preferentially performs network connection restoration, and the original network (i.e., the network connection relationship between the parent node device and the child node device) remains unchanged. Compared with the time that the father node device determines that the son node device is the offline device, the time that the son node device determines that the son node device is the offline device is longer, and after one father node device is prevented from being offline, the plurality of son node devices mounted on the father node device also use the son node device as the offline device and start network connection repair at the same time, so that the pressure of network connection repair is increased, and the network repair efficiency is influenced.
As another embodiment, when the child node device determines that the network connection of the child node device is abnormal, it determines whether the connection abnormality is caused by abnormal connection with a neighbor node of the child node device or due to abnormal connection with a non-neighbor node (remote node), and if the connection abnormality is caused by the abnormal connection of the neighbor node, immediately sends out a drop broadcast signal; if the connection is abnormal due to the connection of a non-neighbor node (a remote node), the heartbeat packet is tried to be reported at a certain frequency (for example, 30 s) once, if the heartbeat packet receiving instruction cannot be received within a second preset time (for example, 5 minutes), the heartbeat packet is determined to be the offline device, and an offline broadcast signal is sent out, and if the heartbeat packet receiving instruction is received within the second preset time, the offline broadcast signal does not need to be sent out, and the heartbeat packet is operated according to normal equipment.
In one embodiment, the online device includes a parent node device and a child node device, the child node device is directly connected to the parent node device and is connected to the intelligent gateway via the parent node device, and the method further includes the steps of:
and acquiring the real-time communication strength of the child node equipment and the parent node equipment, and when the real-time communication strength is smaller than a threshold value, marking the current online equipment as offline equipment.
Specifically, in this embodiment, after the dropped device establishes a connection with the target online device to rejoin the network, the original dropped device is switched to be the child node device, the connected target online device is switched to be the parent node device, and the parent node device proxies and forwards information of the child node device. In this embodiment, whether the child node device is disconnected or not is further determined by monitoring the real-time communication strength between the child node device and the parent node device. Even if the child node device can still receive the heartbeat packet fed back by the intelligent gateway and receives the instruction, the child node device disconnects the connection with the father node device due to the fact that the connection signal is very weak, and rebroadcasts the heartbeat packet so that the on-line device can scan and reestablish the connection with the parent node device, and the problem that a network is unstable due to the fact that the network connection is weak is solved. All online devices participate in scanning, and parent node devices with real-time communication strength lower than a threshold value are not eliminated. Therefore, the misjudgment risk of the real-time communication strength between the parent node device and the child node device in the embodiment due to interference of other factors is reduced.
In one embodiment, as shown in fig. 6, a flowchart of a method for repairing a network connection is provided, and the method is applied to a dropped device and includes steps S190 to S200.
Step S190, sending a broadcast signal, where the broadcast signal is used to inform the online device that there is an offline device in the range of the scanned signal when the online device scans.
Specifically, the broadcast signal in the present embodiment may be, but is not limited to, at least one of a WIFI broadcast signal, a ZigBee broadcast signal, and a BLE broadcast signal. Because the BLE module is widely arranged in each online device, the BLE module is specifically used for generating the broadcast signal in this embodiment, and the broadcast signal is used for informing that the online device has a device with abnormal network connection in the scanning signal range.
When the heartbeat packet fed back by the intelligent gateway equipment cannot be received in the online equipment, the online equipment is determined to be the offline equipment, and the BLE module is started to send a broadcast signal with abnormal network connection to the periphery. In addition, as described above, when the current device is a child node device that is re-networked, and when the child node device monitors that the real-time communication strength between the parent node devices connected to the child node device is lower than the threshold, the child node device also disconnects the parent node device connected to the child node device, and determines that the child node device is a dropped device and starts the BLE module to transmit a broadcast signal with abnormal network connection to the surroundings. That is, in the foregoing embodiment, in a scenario where the online device is marked as a dropped device, the dropped device may generate and send a broadcast signal, which is not described herein again.
And step S200, receiving a connection request sent by the online equipment, and responding to the connection request to establish connection with the online equipment.
The offline device of this embodiment transmits a broadcast signal, so that the peripheral online devices can obtain the address of the offline device and reestablish a connection with the offline device.
In one embodiment, as shown in fig. 7, this embodiment provides a schematic diagram 200 of a network-connected repair system, which includes an intelligent gateway, a WIFI router, multiple WIFI devices, multiple ZigBee devices, and multiple BLE devices. The plurality of WIFI devices comprise a WIFI device 1 and a WIFI device 2; the plurality of ZigBee devices comprises: zigBee device 1, zigBee device 2, zigBee device 3 and ZigBee device 4, the BLE devices comprise BLE device 1 and BLE device 2.
The definition of the intelligent gateway is as defined above in the network connection repairing method, and is only briefly described here. When finding that the WIFI equipment 2 is disconnected, the intelligent gateway generates a scanning instruction to indicate all online equipment, including the WIFI equipment 1, the ZigBee equipment 2, the ZigBee equipment 3, the ZigBee equipment 4, the BLE equipment 1, the BLE equipment 2 and the like, and starts a BLE module to scan the periphery; meanwhile, when the WIFI device 2 which is disconnected, the BLE module is started to send a broadcast signal to inform the online device that the disconnected device exists in a scanning signal range; the intelligent gateway receives the scanning result fed back by the online equipment, selects the WIFI equipment 1 as target online equipment according to the scanning result, and generates support information to indicate the WIFI equipment 1 to be connected with the WIFI equipment 2.
Similarly, when the ZigBee device 2 and the ZigBee device 3 are abnormally connected, the ZigBee device 3 generates a broadcast signal, and the intelligent gateway instructs the WIFI device 1 which scans the ZigBee device 3 and has the strongest broadcast signal to connect with the ZigBee device 3. It is understood that, those skilled in the art can implement the repair of other network connections according to the above method, and all of them belong to the protection scope of the present application without departing from the concept of the present application, and further description on other similar cases is omitted here.
In one embodiment, as shown in fig. 8, a signaling diagram of a method for repairing a network connection is provided. The method comprises the following steps:
step S210, the online equipment sends a heartbeat packet to the intelligent gateway.
Specifically, taking the repair system for network connection in the above embodiment as an example, when all online devices in the system send heartbeat packets of all online devices to the intelligent gateway; moreover, the online devices send respective heartbeat packets to each other. Step S140, the intelligent gateway receives the heartbeat packets sent by each online device.
And S150, when the intelligent gateway does not receive all heartbeat packets of the online equipment, judging that offline equipment exists.
Specifically, for example, by using the repair system for network connection in the foregoing embodiment, when the intelligent gateway does not receive the heartbeat packet sent by the WIFI device 2, it is determined that there is a dropped device in the network.
Step S220, the intelligent gateway feeds back the heartbeat packet receiving instruction to the online equipment.
Specifically, in order to facilitate marking whether the online device is a dropped device, the intelligent gateway is further configured to feed back a heartbeat packet receiving instruction to the online device.
Step S230, when the online equipment directly connected with the intelligent gateway fails to receive the heartbeat packet fed back by the intelligent gateway and receives the instruction, the online equipment is marked as offline equipment; when the child node device connected to the intelligent gateway through the parent node device is normally connected with the parent node within preset time and does not receive the instruction received by the heartbeat packet, marking the child node device as an offline device; and when the child node device connected to the intelligent gateway through the parent node device is abnormally connected with the parent node device, marking the child node device as an offline device.
Taking the network connection repair system in the above embodiment as an example, when the BLE device 1 does not receive the heartbeat packet fed back by the intelligent gateway, the heartbeat packet is marked as an offline device; or when the BLE equipment 2 judges that the connection between the BLE equipment 2 and the BLE equipment 1 is normal within the preset time through a neighbor discovery protocol, but a heartbeat packet which is not fed back by the intelligent gateway is not received, the heartbeat packet is marked as offline equipment; or when the ZigBee device 3 judges that the connection between the ZigBee device 3 and the ZigBee device 2 is abnormal through a neighbor discovery protocol, the connection is marked as a disconnected device.
Step S190, the offline device sends a broadcast signal, where the broadcast signal is used to inform the online device that the offline device exists in the scanning signal range when the online device scans.
Step S110, when the offline device exists, the intelligent gateway generates a scanning instruction to instruct each online device to scan.
Step S160, the online device receives the scanning instruction sent by the intelligent gateway.
And step S170, the online equipment responds to the scanning instruction to scan the offline equipment in the signal range, generate a scanning result and send the scanning result to the intelligent gateway.
Step S120, the intelligent gateway respectively receives the scanning results generated by each online device, and the scanning results comprise the addresses of each offline device in the signal range of the online device.
Step S131, the intelligent gateway obtains the maximum value of a plurality of signal strengths corresponding to the same offline device, and takes the online device corresponding to the maximum value as the target online device corresponding to the current offline device.
Step S132, the intelligent gateway acquires the addresses of the target online devices, and generates the support instruction by using the addresses of the various offline devices and the addresses of the target online devices corresponding to the various offline devices as support information.
Step S180, when receiving a support instruction which is generated by the intelligent gateway according to the scanning result and carries support information, the online equipment is used as target online equipment to send a connection request to corresponding target offline equipment to establish connection, and the support information comprises a corresponding relation between the target online equipment and at least one offline equipment.
Step S200, the offline device receives the connection request sent by the online device, and responds to the connection request to establish connection with the online device.
It is to be understood that the method steps and the limitations in this embodiment are the same as the method steps in the above embodiment, and therefore, for the limitations of the method steps in this embodiment, please refer to the limitations of the same steps in the above embodiment, which is not described herein again.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides a network connection repair device for implementing the above-mentioned network connection repair method. The implementation scheme for solving the problem provided by the apparatus is similar to the implementation scheme described in the above method, so specific limitations in one or more embodiments of the network connection repair apparatus provided below may refer to the limitations in the foregoing network connection repair method, and details are not described here.
In one embodiment, as shown in fig. 9, there is provided a network-connected prosthetic device 300 comprising: a scanning instruction generating module 310, a scanning result receiving module 320, and a support instruction generating module 330, where the scanning instruction generating module 310 is configured to generate a scanning instruction to instruct each online device to perform scanning when there is an offline device; the scanning result receiving module 320 is configured to receive scanning results generated by the online devices, where the scanning results include addresses of offline devices within a signal range of the online devices; the support instruction generating module 330 is configured to generate a support instruction carrying support information according to the scanning result to indicate that the target online device establishes a connection with each corresponding offline device, where the support information includes a corresponding relationship between the target online device and at least one offline device.
The intelligent gateway scans the peripheral offline devices by indicating each online device, and specifies the target online device to be connected with the offline device according to the scanning result, so that the network connection is repaired, and the stability of the network connection is maintained.
In one embodiment, as shown in fig. 10, there is provided a network-connected repair device 400 comprising: a scanning instruction receiving module 410, a scanning result generating module 420 and a support instruction receiving module 430, wherein the scanning instruction receiving module 410 is configured to receive a scanning instruction sent by an intelligent gateway; the scanning result generating module 420 is configured to respond to the scanning instruction to scan the offline device within the signal range, generate a scanning result, and send the scanning result to the intelligent gateway; the support instruction receiving module 430 is configured to, when receiving a support instruction carrying support information generated by the intelligent gateway according to a scanning result, serve as a target online device to send a connection request to each corresponding target offline device to establish connection, where the support information includes a corresponding relationship between the target online device and at least one offline device.
The on-line equipment scans the peripheral off-line equipment by receiving the instruction of the intelligent gateway, initiates a connection request to the off-line equipment according to the support instruction generated by the intelligent gateway, and realizes the rejoining of the off-line equipment into the network.
In one embodiment, as shown in fig. 11, there is provided a network-connected repair apparatus 500, including: a broadcast signal transmitting module 510 and a connection request receiving module 520. The broadcast signal sending module 510 is configured to send a broadcast signal, where the broadcast signal is used to inform an online device that an offline device exists in a scanning signal range when the online device scans; the connection request receiving module 520 is configured to receive a connection request sent by an online device, and establish a connection with the online device in response to the connection request.
The dropped device facilitates the scanning of surrounding on-line devices and the establishment of a re-established connection by sending a broadcast signal.
The respective modules in the network-connected repair apparatus described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a network connection repairing system is provided and comprises an intelligent gateway, an online device and a dropped device; the intelligent gateway is used for generating a scanning instruction to indicate each online device to scan when the offline device exists; respectively receiving scanning results generated by each online device, wherein the scanning results comprise addresses of each offline device in a signal range of the online device; generating a support instruction carrying support information according to the scanning result to indicate the target online equipment to establish connection with each corresponding offline equipment, wherein the support information comprises the corresponding relation between the target online equipment and at least one offline equipment; the online equipment is used for receiving a scanning instruction sent by the intelligent gateway; responding to a scanning instruction to scan the offline equipment in the signal range and generating a scanning result; when a support instruction carrying support information generated by the intelligent gateway according to a scanning result is received, the support instruction is used as target online equipment to send a connection request to corresponding target offline equipment to establish connection, and the support information comprises a corresponding relation between the target online equipment and at least one offline equipment; the offline device is used for sending a broadcast signal, and the broadcast signal is used for informing the online device that the offline device exists in a scanning range when the online device scans; and receiving a connection request sent by the online equipment, and responding to the connection request to establish connection with the online equipment.
In the network connection repairing system, after judging that the offline equipment exists in the network through the intelligent gateway, a scanning instruction is generated; the off-line equipment simultaneously produces and sends broadcast signals; the online equipment also responds to the scanning instruction at the intelligent gateway, scans the broadcast signals of the peripheral offline equipment and feeds back the scanning result to the intelligent gateway; the intelligent gateway generates a support instruction according to the scanning result fed back by the online equipment; a target on-line device in the on-line devices responds to the support instruction and initiates a connection request to the off-line device; the dropped device responds to the connection request of the target online device and establishes network connection with the target online device. The network connection is repaired, and the stability of the network connection is improved.
In one embodiment, a computer device is further provided, which includes a memory and a processor, where the memory stores a computer program, and the processor executes the computer program to implement the steps in the embodiments of the method for repairing network connections.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned embodiments of the method of repairing a network connection.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, performs the steps in the above-described embodiments of the method of repairing a network connection.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, databases, or other media used in the embodiments provided herein can include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), magnetic Random Access Memory (MRAM), ferroelectric Random Access Memory (FRAM), phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the various embodiments provided herein may be, without limitation, general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, or the like.
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims (12)

1. A method for repairing network connection is applied to an intelligent gateway, and comprises the following steps:
receiving heartbeat packets sent by each online device, and feeding back a heartbeat packet receiving instruction corresponding to the heartbeat packet to each online device; the online equipment is directly connected with the intelligent gateway, and the online equipment which does not receive the instruction received by the heartbeat packet is offline equipment; when the heartbeat packets of all the online devices are not received, judging that offline devices exist;
when the offline equipment exists, generating a scanning instruction to instruct each online equipment to scan the broadcast signal sent by the offline equipment within the signal range; the broadcast signal is used for informing the online equipment that offline equipment exists in a scanning signal range when the online equipment scans;
respectively receiving scanning results generated by each online device, wherein the scanning results comprise addresses of each offline device in a signal range of the online device;
generating a support instruction carrying support information according to the scanning result to instruct a target online device to send a connection request to each corresponding offline device to establish connection, wherein the support information comprises a corresponding relation between the target online device and at least one offline device; the target online device is an online device for initiating a connection request to the dropped device.
2. The repair method according to claim 1, wherein the scan result further includes a signal strength of a broadcast signal of each offline device scanned by each online device, and the generating of the support instruction carrying the support information according to the scan result includes:
obtaining a maximum value in a plurality of signal strengths corresponding to the same offline device, and taking the online device corresponding to the maximum value as the target online device corresponding to the current offline device;
and acquiring the addresses of the target online devices, and generating a support instruction by using the addresses of the off-line devices and the addresses of the target online devices corresponding to the off-line devices as support information.
3. A method for repairing a network connection, the method being applied to an online device, the method comprising:
receiving a scanning instruction sent by an intelligent gateway; wherein the scanning instruction is generated by the intelligent gateway when a dropped-line device exists; when the intelligent gateway does not receive all heartbeat packets of the online equipment, judging that offline equipment exists; the online equipment is directly connected with the intelligent gateway, and the online equipment which does not receive the instruction received by the heartbeat packet is offline equipment; the heartbeat packet is sent by the online device; the heartbeat received command is fed back by the intelligent gateway and corresponds to the heartbeat packet;
responding to the scanning instruction to scan the broadcast signals sent by the offline equipment in the signal range, generating a scanning result and sending the scanning result to the intelligent gateway; the broadcast signal is used for informing the online equipment that offline equipment exists in a scanning signal range when the online equipment scans;
and when a support instruction which is generated by the intelligent gateway according to the scanning result and carries support information is received, the support instruction is used as a target online device to send a connection request to each corresponding target offline device to establish connection, wherein the support information comprises a corresponding relation between the target online device and at least one offline device.
4. The repair method according to claim 3, wherein the online device includes a parent node device and a child node device, the child node device is directly connected to the parent node device and is connected to the intelligent gateway via the parent node device, and the parent node device is configured to forward a heartbeat packet reception instruction fed back by the intelligent gateway to the child node device; the method further comprises the following steps:
and when the child node equipment is normally connected with the father node equipment within the preset time but does not receive the instruction received by the heartbeat packet, marking the child node equipment as offline equipment.
5. The repair method of claim 3, further comprising:
and acquiring the real-time communication strength of the child node equipment and the parent node equipment, and when the real-time communication strength is smaller than a threshold value, marking the current online equipment as offline equipment.
6. A method for repairing a network connection is applied to a dropped device, and the method comprises the following steps:
the method comprises the steps of sending a broadcast signal, wherein the broadcast signal is used for informing the online equipment that offline equipment exists in a scanning signal range when the online equipment scans; the off-line equipment is on-line equipment which does not receive a heartbeat packet receiving instruction; the online equipment is directly connected with the intelligent gateway; the heartbeat receiving instruction is fed back by the intelligent gateway and corresponds to a heartbeat packet sent by the online equipment; when the intelligent gateway does not receive all heartbeat packets of the online equipment, judging that offline equipment exists; when the offline device exists, the intelligent gateway generates a scanning instruction; the scanning instruction is used for instructing the online equipment to scan the broadcast signals sent by the offline equipment within the signal range;
receiving a connection request sent by the online equipment, and responding to the connection request to establish connection with the online equipment; and the connection request is sent by the online equipment as a target online equipment when the online equipment receives a support instruction which is generated by the intelligent gateway according to the scanning result and carries support information.
7. A network connection repair system is characterized by comprising an intelligent gateway, an online device and a dropped device;
the intelligent gateway is used for receiving the heartbeat packets sent by the online devices and feeding back heartbeat packet receiving instructions corresponding to the heartbeat packets to the online devices; the online equipment is directly connected with the intelligent gateway, and the online equipment which does not receive the instruction received by the heartbeat packet is offline equipment; when the heartbeat packets of all the online devices are not received, judging that offline devices exist; when the offline equipment exists, generating a scanning instruction to instruct each online equipment to scan; respectively receiving scanning results generated by each online device, wherein the scanning results comprise addresses of each offline device in a signal range of the online device; generating a support instruction carrying support information according to the scanning result to instruct a target online device to send a connection request to each corresponding offline device to establish connection, wherein the support information comprises a corresponding relation between the target online device and at least one offline device; the target online equipment is online equipment used for initiating a connection request to the offline equipment;
the online equipment is used for receiving a scanning instruction sent by the intelligent gateway; responding to the scanning instruction to scan the offline equipment in the signal range and generating a scanning result; when a support instruction which is generated by the intelligent gateway according to the scanning result and carries support information is received, the support instruction is used as a target online device to send a connection request to each corresponding target offline device to establish connection, and the support information comprises a corresponding relation between the target online device and at least one offline device;
the off-line equipment is used for sending a broadcast signal, and the broadcast signal is used for informing the on-line equipment of the existence of the off-line equipment in a scanning signal range when the on-line equipment scans; and receiving a connection request sent by the online equipment, and responding to the connection request to establish connection with the online equipment.
8. The system of claim 7, wherein the scanning result further comprises a signal strength of a broadcast signal of each offline device scanned by each online device; the intelligent gateway is further configured to obtain a maximum value of the signal strengths corresponding to the same offline device, and use the online device corresponding to the maximum value as the target online device corresponding to the current offline device; and acquiring addresses of the target online devices, and generating support instructions by using the addresses of the offline devices and the addresses of the target online devices corresponding to the offline devices as support information.
9. The system of claim 7, wherein the online device is further configured to include a parent node device and a child node device, the child node device is directly connected to the parent node device and is connected to the intelligent gateway via the parent node device, and the parent node device is configured to forward a heartbeat packet received from the intelligent gateway to the child node device; and when the child node equipment is normally connected with the father node equipment within the preset time but does not receive the instruction received by the heartbeat packet, marking the child node equipment as offline equipment.
10. The system of claim 7, wherein the online device is further configured to obtain a real-time communication strength between a child node device and a parent node device, and mark the current online device as a dropped device when the real-time communication strength is smaller than a threshold value.
11. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 6.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202210368216.8A 2022-04-08 2022-04-08 Method, system, computer device and storage medium for repairing network connection Active CN114641023B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210368216.8A CN114641023B (en) 2022-04-08 2022-04-08 Method, system, computer device and storage medium for repairing network connection
PCT/CN2022/121947 WO2023193410A1 (en) 2022-04-08 2022-09-28 Method and system for repairing network connection, and computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210368216.8A CN114641023B (en) 2022-04-08 2022-04-08 Method, system, computer device and storage medium for repairing network connection

Publications (2)

Publication Number Publication Date
CN114641023A CN114641023A (en) 2022-06-17
CN114641023B true CN114641023B (en) 2023-04-14

Family

ID=81951942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210368216.8A Active CN114641023B (en) 2022-04-08 2022-04-08 Method, system, computer device and storage medium for repairing network connection

Country Status (2)

Country Link
CN (1) CN114641023B (en)
WO (1) WO2023193410A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114641023B (en) * 2022-04-08 2023-04-14 深圳市欧瑞博科技股份有限公司 Method, system, computer device and storage medium for repairing network connection

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105071996A (en) * 2015-08-31 2015-11-18 浙江开盈信息科技有限公司 Terminal on-line detection method, terminal and server

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10873983B1 (en) * 2019-07-15 2020-12-22 Verizon Patent And Licensing Inc. Method and device for selecting a network mode for an internet of things device
CN110519360A (en) * 2019-08-20 2019-11-29 深圳市丰润达科技有限公司 ZigBee equipment state scan method, device and readable storage medium storing program for executing
CN111224809A (en) * 2019-10-08 2020-06-02 珠海格力电器股份有限公司 Fault log transmission method and device, electronic equipment and storage medium
CN110691398B (en) * 2019-10-09 2023-02-24 宁波方太厨具有限公司 Network interaction method, system, equipment and storage medium of intelligent equipment
CN110753331B (en) * 2019-10-18 2021-05-25 珠海格力电器股份有限公司 Data transmission method, system, storage medium and networking device
CN111031589A (en) * 2019-12-24 2020-04-17 深圳奇迹智慧网络有限公司 Network connection method, device, computer readable storage medium and computer equipment
CN113132983B (en) * 2019-12-30 2023-09-19 天翼数字生活科技有限公司 Network disconnection reconnection method for intelligent terminal
CN111245677A (en) * 2020-01-07 2020-06-05 深圳绿米联创科技有限公司 Communication abnormity reporting method and device, electronic equipment and storage medium
CN113225195A (en) * 2020-01-21 2021-08-06 虫极科技(北京)有限公司 Equipment detection method, device, controller and medium
CN113573383B (en) * 2020-04-29 2023-04-07 京东方科技集团股份有限公司 Re-network access method after mobile terminal network disconnection and related equipment
CN111629423A (en) * 2020-06-03 2020-09-04 美的集团武汉制冷设备有限公司 Network distribution method and terminal of household appliance, storage medium and household appliance
CN112788576B (en) * 2020-12-16 2022-12-02 青岛海尔科技有限公司 Equipment offline processing method and system, storage medium and electronic device
CN113992508A (en) * 2021-11-23 2022-01-28 四川虹美智能科技有限公司 Local area network automatic networking method of intelligent equipment and intelligent equipment
CN114641023B (en) * 2022-04-08 2023-04-14 深圳市欧瑞博科技股份有限公司 Method, system, computer device and storage medium for repairing network connection

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105071996A (en) * 2015-08-31 2015-11-18 浙江开盈信息科技有限公司 Terminal on-line detection method, terminal and server

Also Published As

Publication number Publication date
CN114641023A (en) 2022-06-17
WO2023193410A1 (en) 2023-10-12

Similar Documents

Publication Publication Date Title
WO2021063059A1 (en) Networking method and apparatus, bluetooth device, and computer-readable medium
CN105308993B (en) Method for configuring a node and node configured thereby
JP5440123B2 (en) Wireless communication apparatus, wireless communication system, wireless communication method, and program
CN110740460B (en) Network access method and device of equipment, network equipment and storage medium
CN112584364A (en) Bluetooth network, communication method, device and storage medium thereof
CN104113458A (en) Mobile terminal and intelligent household appliance interconnecting method and device
US20050108331A1 (en) Presence tracking for datagram based protocols with search
EP3229420A1 (en) Method for establishing persistent connection between multiple smart devices and server, and smart device
CN109890065B (en) Networking method and system of household appliance
JP2013517659A (en) Electronic device and method of operating electronic device
CN114641023B (en) Method, system, computer device and storage medium for repairing network connection
US20200396582A1 (en) Communication Device Establishing Wireless Connection with Terminal Device and Non-Transitory Computer-Readable Medium for Terminal Device Establishing Wireless Connection with Communication Device
CN103634657A (en) Television and mobile terminal synchronous WIFI connection setup method and device
JP2010219629A (en) Device and method for processing data
CN114866365B (en) Arbitration machine election method, device, intelligent equipment and computer readable storage medium
CN103248543A (en) Code verification method, code verification control equipment and code verification equipment
CN113794996B (en) Device communication, device control method, device, electronic device, and storage medium
CN106453011B (en) network connection method of intelligent household equipment and intelligent household gateway
CN113196721B (en) Method and device for discovering Internet of things equipment and terminal equipment
JP2003289309A (en) Radio communication terminal
JP2004320741A (en) Apparatus and method for connecting independent networks
CN114025408B (en) Network establishing and accessing method and device for self-adaptive networking and computer equipment
CN115004650B (en) Node configuration method, node configuration device, distributed system and computer readable medium
CN112422674A (en) Equipment networking method and device
CN105451367A (en) Wireless network connection method, device and system

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