Data Processing Method and Device Based on Network Topology Structure

By adopting a network topology-based data processing method in the IoT IOT system, detecting and resending commands for lost sub-device and updating the software version when the network is disconnected, the problem of packet loss and inability to upgrade online in smart home systems is solved, and the stability and reliability of the system are improved.

CN116232889BActive Publication Date: 2025-06-13LEAYUN TECH CO LTD OF ZHUHAI +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211667069.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-22
Publication Date
2025-06-13
Estimated Expiration
2042-12-22

AI Technical Summary

Technical Problem

In the IoT industry, sub-device of smart homes are prone to data loss and inability to upgrade online when environmental fluctuates or networks are lost.

Method used

Using a data processing method based on network topology, through the connection between the centralized control device and the sub-device, it detects whether the sub-device loses commands, and resends the commands in the event of loss. At the same time, the disconnection state between the sub-device and the centralized control device is detected, and the software version of the sub-device is updated to ensure that it is available online.

Benefits of technology

It effectively solves the problems of packet loss and inability to upgrade online in the sub-device, improves the reliability and real-time nature of data transmission, and ensures the stable operation of smart home systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116232889B_ABST
    Figure CN116232889B_ABST
Patent Text Reader

Abstract

A data processing method and device based on a network topology provided by this application connect through the centralized control device and each sub-device. One sub-device is connected to at least one sub-device. In the case where the second sub-device loses a command, the command is sent to the second sub-device, which can solve the problem of packet loss in the sub-device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technologies, and particularly to a data processing method and apparatus based on a network topology structure. Background Art

[0002] In the Internet of Things (IoT) industry, the effectiveness, reliability, and real-time nature of data communication are very important. In the area of smart homes, many centralized control devices such as gateways, super gateways, and centralized control panels have been developed to act as hosts for various smart devices such as those using Wi-Fi, BLE, Mesh, 485, and CAN bus protocols. As the host of sub-devices, the centralized control device can control all the sub-devices below it. However, its control means are relatively single. Usually, the centralized control device sends a command data frame, and the sub-device makes corresponding actions after receiving the command. This data transmission method usually has the situation that data is easily lost when the environment fluctuates, and the sub-device loses the network and cannot be upgraded online, etc. Summary of the Invention

[0003] In view of the above problems, this application provides a data processing method and apparatus based on a network topology structure, which can solve the problem of packet loss of sub-devices.

[0004] An embodiment of this application provides a data processing method based on a network topology structure. The network topology structure includes: a centralized control device and multiple sub-devices. The centralized control device is connected to each sub-device, and one sub-device is connected to at least one sub-device. The sub-devices include: a first sub-device and a second sub-device, and the first sub-device is connected to the second sub-device. The method is applied to the first sub-device, and the method includes:

[0005] When the centralized control device sends a command to each sub-device, determining whether the second sub-device has lost the command;

[0006] When it is determined that the second sub-device has lost the command, sending the command to the second sub-device.

[0007] In some embodiments, the method further includes:

[0008] Obtaining first feedback information on the second device's execution of the command;

[0009] Sending the first feedback information to the centralized control device.

[0010] In some embodiments, the method further includes:

[0011] Detecting whether the second sub-device is in a disconnected state from the centralized control device;

[0012] When the second sub-device is in a disconnected state from the centralized control device, determine whether the software version of the second sub-device is the latest version;

[0013] When the software version of the second sub-device is not the latest version, download the latest version;

[0014] Send the latest version to the second sub-device so that the second sub-device can be updated.

[0015] In some embodiments, the method further includes:

[0016] When the second feedback information indicating that the second sub-device has completed the update is obtained, send the second feedback information to the centralized control device.

[0017] In some embodiments, the centralized control device includes a gateway device, and the sub-devices include: smart home devices.

[0018] An embodiment of the present application provides a data processing device based on a network topology structure. The network topology structure includes: a centralized control device and multiple sub-devices. The centralized control device is connected to each sub-device, and one sub-device is connected to at least one sub-device. The sub-devices include: a first sub-device and a second sub-device. The first sub-device is connected to the second sub-device. The method is applied to the first sub-device, and the device includes:

[0019] A determination module, configured to determine whether the second sub-device has lost the command when the centralized control device sends a command to each sub-device;

[0020] A sending module, configured to send the command to the second sub-device when it is determined that the second sub-device has lost the command.

[0021] In some embodiments, the device is further configured to:

[0022] Obtain first feedback information on the execution of the command by the second device;

[0023] Send the first feedback information to the centralized control device.

[0024] In some embodiments, the device is further configured to:

[0025] Detect whether the second sub-device is in a disconnected state from the centralized control device;

[0026] When the second sub-device is in a disconnected state from the centralized control device, determine whether the software version of the second sub-device is the latest version;

[0027] When the software version of the second sub-device is not the latest version, download the latest version;

[0028] Send the latest version to the second sub-device so that the second sub-device can be updated.

[0029] An embodiment of the present application provides an electronic device, including a memory and a processor. A computer program is stored on the memory. When the computer program is executed by the processor, it executes the data processing method based on the network topology structure as described in any one of the above.

[0030] An embodiment of the present application provides a computer-readable storage medium. The computer program stored on the computer-readable storage medium can be executed by one or more processors and can be used to implement the data processing method based on the network topology structure described above.

[0031] A data processing method and device based on the network topology structure provided by the present application are connected to each sub-device through the centralized control device, and one sub-device is connected to at least one sub-device. When the second sub-device loses a command, the command is sent to the second sub-device, which can solve the problem of packet loss of the sub-device. Description of the Drawings

[0032] Hereinafter, the present application will be described in more detail based on embodiments and with reference to the drawings.

[0033] Figure 1 It is a schematic diagram of a network topology structure provided by an embodiment of the present application;

[0034] Figure 2 It is a schematic diagram of the implementation process of a data processing method based on the network topology structure provided by an embodiment of the present application;

[0035] Figure 3 It is a schematic diagram of the composition structure of the electronic device provided by an embodiment of the present application.

[0036] In the drawings, the same components are denoted by the same reference numerals, and the drawings are not drawn to actual scale. Detailed Description of the Embodiments

[0037] In order to make the objectives, technical solutions, and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings. The described embodiments should not be construed as limiting the present application. All other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of the present application.

[0038] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments. However, it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0039] If similar descriptions such as "first / second / third" appear in the application documents, the following explanation shall be added. In the following description, the terms "first / second / third" are only used to distinguish similar objects and do not represent a specific order for the objects. It is understood that "first / second / third" can be interchanged with a specific order or sequence when permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0040] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0041] Based on the problems existing in the related art, an embodiment of the present application provides a data processing method based on a network topology structure. The network topology structure includes: a centralized control device and multiple sub-devices. The centralized control device is connected to each sub-device, and one sub-device is connected to at least one sub-device. The sub-devices include: a first sub-device and a second sub-device, and the first sub-device is connected to the second sub-device. Figure 1 A schematic diagram of a network topology structure provided for Embodiment 5 of this application is as Figure 1 shown. Among them, the centralized control device can be regarded as the main node, and the sub-devices can be sub-nodes. The method is applied to the first sub-device, and the first sub-device can be any one of the sub-devices. The first sub-device can be an electronic device, and the electronic device can be a computer, a mobile terminal, a home device, etc. The mobile terminal can include a mobile phone, a tablet computer, etc. The home device can include: a washing machine, a refrigerator, an air conditioner, a television, etc. The functions implemented by the data processing method based on the network topology structure provided by the embodiments of the present application can be called by the processor of the electronic device

[0042] to implement the program code, where the program code can be stored in a computer storage medium.

[0043] Example 1

[0044] An embodiment of the present application provides a data processing method based on a network topology structure, which is applied to a first device.

[0045] Figure 2This is a schematic diagram of the implementation process of a data processing method based on a network topology structure provided by an embodiment of the present application. As Figure 2 shown, it includes:

[0046] Step S101, when the centralized control device sends a command to each sub-device, determine whether the second sub-device has lost the command.

[0047] In an embodiment of the present application, when the centralized control device wants to send a command to each sub-device, the command can be sent to each sub-device by broadcasting.

[0048] 0 In an embodiment of the present application, when the second sub-device does not lose packets, the second sub-device will feedback the execution status of the command.

[0049] In the implementation of the present application, the first sub-device and the second sub-device are communicatively connected, and the first sub-device can detect whether the second sub-device executes. If the second sub-device does not execute, it is determined that the second device has lost the command. If the second device executes, the second device has not lost the command.

[0050] 5 Step S102, when it is determined that the second sub-device has lost the command, send the command to the second sub-device.

[0051] In the implementation of the present application, since the second sub-device has lost the command, in order to avoid packet loss problems, the first sub-device can send the command to the second sub-device.

[0052] A data processing method, an electronic device, and a storage medium based on a network topology structure provided by the present application, by connecting the centralized control device with each sub-device, and one sub-device is connected with at least one sub-device. When the second sub-device loses the command, the command is sent to the second sub-device, which can solve the packet loss problem of the sub-device.

[0053] In some embodiments, after step S102, the method further includes:

[0054] Step S103, obtain the first feedback information of the second device executing the command;

[0055] Step S104, send the first feedback information to the centralized control device.

[0056] Example 2

[0057] Based on the foregoing embodiments, an embodiment of the present application further provides a data processing method based on a network topology structure. The network topology structure includes: a centralized control device and multiple sub-devices. The centralized control device is connected to each sub-device, and one sub-device is connected to at least one sub-device. The sub-devices include: a first sub-device and a second sub-device, and the first sub-device is connected to the second sub-device. The method is applied to the first sub-device and includes:

[0058] Step S201, detect whether the second sub-device is in a disconnected state from the centralized control device.

[0059] In an embodiment of the present application, the first sub-device can obtain the network status information of the second sub-device, and determine whether the second sub-device is in a disconnected state from the centralized control device through the network status information.

[0060] Step S202, when the second sub-device is in a disconnected state from the centralized control device, determine whether the software version of the second sub-device is the latest version.

[0061] Step S203, when the software version of the second sub-device is not the latest version, download the latest version.

[0062] Step S204, send the latest version to the second sub-device so that the second sub-device can be updated.

[0063] For the method provided by the embodiment of the present application, when a certain sub-device loses its network, its adjacent node device can download the update package of the sub-device, and then through the local data transmission method, communication between sub-nodes can also be updated, achieving the effect of updating without a network.

[0064] In some embodiments, after step S204, the method further includes:

[0065] Step S205, when obtaining the second feedback information indicating that the second sub-device has been updated, send the second feedback information to the centralized control device.

[0066] In an embodiment of the present application, the centralized control device includes a gateway device, and the sub-devices include: smart home devices.

[0067] Example 3

[0068] Based on the foregoing embodiments, the embodiments of the present application further provide a data processing method based on a network topology structure. The centralized control device is defined as the main node in the topology structure, and each sub-device below it is defined as a sub-node. The nodes are connected by dots and lines to form links, and finally a network topology structure is formed. In this network topology structure, the main node is connected to all sub-nodes, and adjacent sub-nodes are connected. When the main node issues a command and a certain sub-node loses the command, the adjacent node devices of this node in the topology network structure will also send the command frame to this node, effectively preventing the problem of sub-devices losing commands. Or when a certain node device loses the network, its adjacent node devices can download the ota package of this device, and then through the local data transmission method, communication between sub-nodes can also perform ota, achieving the effect of ota without network.

[0069] The specific implementation of this method is as follows:

[0070] Connect the main device and the sub-devices one by one, that is, connect all the main nodes and sub-nodes.

[0071] Connect the sub-devices to each other, that is, connect the sub-nodes by dots and lines to form a topology structure.

[0072] The main node issues a command and determines whether the sub-node receives the command data frame. If the command is not received: this sub-node loses the packet, and other sub-nodes send the command.

[0073] The sub-device receives the command and makes corresponding actions.

[0074] In the case of a sub-device being disconnected from the network:

[0075] In the case of a sub-device being disconnected from the network and the version has not been updated to the latest version.

[0076] Other sub-devices detect that this sub-device is disconnected from the network and download its latest firmware version.

[0077] The sub-devices communicate with each other and send the downloaded firmware to the unupdated device.

[0078] The unconnected device realizes ota without network.

[0079] Example 4

[0080] Based on the foregoing embodiments, the embodiments of the present application provide a data processing device based on a network topology structure. Each module included in the device, as well as each unit included in each module, can be implemented by a processor in a computer device; of course, it can also be implemented by specific logic circuits. During implementation, the processor can be a central processing unit (CPU), a microprocessor unit (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA), etc.

[0081] The embodiments of the present application provide a data processing device based on a network topology structure. The network topology structure includes: a centralized control device and multiple sub-devices. The centralized control device is connected to each sub-device, and one sub-device is connected to at least one sub-device. The sub-devices include: a first sub-device and a second sub-device. The first sub-device is connected to the second sub-device. The method is applied to the first sub-device. The data processing device based on the network topology structure includes:

[0082] A determination module, configured to determine whether the second sub-device loses the command when the centralized control device sends a command to each sub-device;

[0083] A sending module, configured to send the command to the second sub-device when it is determined that the second sub-device loses the command.

[0084] In some embodiments, the device is further configured to:

[0085] Obtain first feedback information on the execution of the command by the second device;

[0086] Send the first feedback information to the centralized control device.

[0087] In some embodiments, the device is further configured to:

[0088] Detect whether the second sub-device is in a disconnected state from the centralized control device;

[0089] When the second sub-device is in a disconnected state from the centralized control device, determine whether the software version of the second sub-device is the latest version;

[0090] When the software version of the second sub-device is not the latest version, download the latest version;

[0091] Send the latest version to the second sub-device so that the second sub-device can be updated.

[0092] In some embodiments, the data processing apparatus based on the network topology is further configured to:

[0093] When the second feedback information indicating that the update of the second sub-device is completed is obtained, send the second feedback information to the centralized control device.

[0094] In some embodiments, the centralized control device includes a gateway device, and the sub-devices include: smart home devices.

[0095] It should be noted that in the embodiments of the present application, if the above-mentioned data processing method based on the network topology is implemented in the form of software function modules and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present application, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the various embodiments of the present application. The foregoing storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read Only Memory), a magnetic disk, or an optical disc that can store program codes. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.

[0096] Correspondingly, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and characterized in that when the computer program is executed by a processor, the steps in the data processing method based on the network topology provided in the above embodiments are implemented.

[0097] Example 5

[0098] An embodiment of the present application provides an electronic device; Figure 3 It is a schematic diagram of the composition structure of the electronic device provided in the embodiment of the present application, as Figure 3 shown, the electronic device 700 includes: a processor 701, at least one communication bus 702, a user interface 703, at least one external communication interface 704, and a memory 705. Among them, the communication bus 702 is configured to implement connection communication between these components. Among them, the user interface 703 may include a control screen, and the external communication interface 704 may include a standard wired interface and a wireless interface. The processor 701 is configured to execute the program of the data processing method based on the network topology stored in the memory to implement the steps in the data processing method based on the network topology provided in the above embodiments.

[0099] The descriptions of the above embodiments of the electronic device and the storage medium are similar to those of the above method embodiments, and have similar beneficial effects to the method embodiments. For the technical details not disclosed in the embodiments of the computer device and the storage medium of the present application, please refer to the descriptions of the method embodiments of the present application for understanding.

[0100] It should be noted here that: the descriptions of the above embodiments of the storage medium and the device are similar to those of the above method embodiments, and have similar beneficial effects to the method embodiments. For the technical details not disclosed in the embodiments of the storage medium and the device of the present application, please refer to the descriptions of the method embodiments of the present application for understanding.

[0101] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures, or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the appearances of "in one embodiment" or "in an embodiment" throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the magnitudes of the serial numbers of the above processes do not mean the order of execution is prior or subsequent, and the order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The serial numbers of the embodiments of the present application above are only for description and do not represent the advantages or disadvantages of the embodiments.

[0102] It should be noted that in this article, the term "comprising", "including" or any other variant thereof is intended to cover a non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article or device. Without further limitation, the element defined by the statement "including one..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0103] In several embodiments provided in the present application, it should be understood that the disclosed device and method can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components controlled or discussed with each other can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical, or other forms.

[0104] The units described above as separate components may or may not be physically separated, and the components controlled as units may or may not be physical units; they may be located in one place or distributed across multiple network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0105] In addition, in each embodiment of the present application, all the functional units may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of a combination of hardware and software functional units.

[0106] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps including the above method embodiments; and the foregoing storage medium includes: removable storage devices, read-only memories (ROMs), magnetic disks, or optical disks, etc., which can store program codes.

[0107] Alternatively, if the above-mentioned integrated units of the present application are implemented in the form of software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present application, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a controller to execute all or part of the methods described in various embodiments of the present application. And the foregoing storage medium includes: removable storage devices, ROMs, magnetic disks, or optical disks, etc., which can store program codes.

[0108] The above is only the implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A data processing method based on a network topology structure, characterized in that, the network topology structure includes: a centralized control device and multiple sub-devices, the centralized control device is connected to each sub-device, one sub-device is connected to at least one sub-device, the sub-devices include: a first sub-device and a second sub-device, the first sub-device is connected to the second sub-device, and the method is applied to the first sub-device. The method includes: When the centralized control device sends a command to each sub-device, determining whether the second sub-device has lost the command; When it is determined that the second sub-device has lost the command, sending the command to the second sub-device.

2. The method according to claim 1, characterized in that, the method further includes: obtaining first feedback information on the execution of the command by the second sub-device; sending the first feedback information to the centralized control device.

3. The method according to claim 2, characterized in that, the method further includes: detecting whether the second sub-device and the centralized control device are in a disconnected state; when the second sub-device and the centralized control device are in a disconnected state, determining whether the software version of the second sub-device is the latest version; when the software version of the second sub-device is not the latest version, downloading the latest version; sending the latest version to the second sub-device so that the second sub-device can be updated.

4. The method according to claim 3, characterized in that, the method further includes: when second feedback information on the completion of the update of the second sub-device is obtained, sending the second feedback information to the centralized control device.

5. The method according to any one of claims 1-4, characterized in that, the centralized control device includes a gateway device, and the sub-devices include: smart home devices.

6. A data processing device based on a network topology structure, characterized in that, the network topology structure includes: a centralized control device and multiple sub-devices, the centralized control device is connected to each sub-device, one sub-device is connected to at least one sub-device, the sub-devices include: a first sub-device and a second sub-device, the first sub-device is connected to the second sub-device, and the device includes: a determination module, configured to determine whether the second sub-device has lost the command when the centralized control device sends a command to each sub-device; a sending module, configured to send the command to the second sub-device when it is determined that the second sub-device has lost the command.

7. The device according to claim 6, characterized in that, the device is further configured to: obtain first feedback information on the execution of the command by the second sub-device; send the first feedback information to the centralized control device.

8. The device according to claim 7, characterized in that, the device is further configured to: detect whether the second sub-device and the centralized control device are in a disconnected state; when the second sub-device and the centralized control device are in a disconnected state, determine whether the software version of the second sub-device is the latest version; when the software version of the second sub-device is not the latest version, download the latest version; Send the latest version to the second sub-device so that the second sub-device can be updated.

9. An electronic device, characterized in that, it includes a memory and a processor, and a computer program is stored on the memory. When the computer program is executed by the processor, it executes the data processing method based on the network topology structure according to any one of claims 1 to 5.

10. A storage medium, characterized in that, the computer program stored in the storage medium can be executed by one or more processors and can be used to implement the data processing method based on the network topology structure according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Terminal upgrading method, device and apparatus and computer readable medium

    CN110839235A

  • Firmware upgrading method and system, readable storage medium and terminal equipment

    CN110875850A