CN117319943A - Method for transmitting equipment data, networking system and equipment cluster - Google Patents
Method for transmitting equipment data, networking system and equipment cluster Download PDFInfo
- Publication number
- CN117319943A CN117319943A CN202210707313.5A CN202210707313A CN117319943A CN 117319943 A CN117319943 A CN 117319943A CN 202210707313 A CN202210707313 A CN 202210707313A CN 117319943 A CN117319943 A CN 117319943A
- Authority
- CN
- China
- Prior art keywords
- control command
- controlled
- predetermined device
- executed
- target control
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 230000006855 networking Effects 0.000 title claims abstract description 13
- 230000005540 biological transmission Effects 0.000 claims description 25
- 238000004891 communication Methods 0.000 claims description 11
- 230000004044 response Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000009792 diffusion process Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000010365 information processing Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000001151 other effect Effects 0.000 description 2
- 238000012856 packing Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
- 238000005406 washing Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/20—Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application provides a method for transmitting equipment data, a networking system and equipment clusters, wherein the method comprises the following steps: the method comprises the steps that a preset device receives a control command packet sent by a server; the predetermined device determines whether the control command packet has been executed; under the condition that the control command packet is executed, the preset device stops broadcasting the control command packet, and under the condition that the control command packet is executed, the preset device stops broadcasting the control command packet, so that the repeated forwarding problem of invalid data can be reduced as much as possible, and the accuracy and the effectiveness of broadcast data are ensured.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method for device data transmission, a networking system, and a device cluster.
Background
Most intelligent devices cannot automatically form network topology to communicate, and the transmission range and the effectiveness of data transmission cannot be guaranteed by the most intelligent devices, so that repeated forwarding of invalid data is caused, the information processing amount is increased, and loading delay and other effects are caused.
Disclosure of Invention
The main objective of the present application is to provide a method for transmitting device data, a networking system and a device cluster, so as to reduce the repeated forwarding problem of invalid data as much as possible.
According to an aspect of an embodiment of the present invention, there is provided a method of data transmission of devices, the method being applied to devices in a data transmission system, the system including a server and a plurality of devices, one of the plurality of devices being a predetermined device, the predetermined device being in direct communication with the server, the plurality of devices being communicatively connected to each other, the method comprising: the preset equipment receives a control command packet sent by the server; the predetermined device determining whether the control command packet has been executed; in the case where the control command packet has been executed, the predetermined device stops broadcasting the control command packet.
Optionally, one of the devices is a device to be controlled, and the method further includes: in a case where the control command packet is not executed and the predetermined device is the device to be controlled, the predetermined device stops broadcasting the control command packet; in the case where the control command packet is not executed and the predetermined device is not the device to be controlled, the predetermined device continues to broadcast the control command packet.
Optionally, in a case where the control command packet is not executed and the predetermined device is not a device to be controlled, after the predetermined device continues broadcasting the control command packet, the method further includes: after the non-scheduled device receives the control command packet, the non-scheduled device analyzes the control command packet to obtain a target control command, a device identifier to be controlled and a target control command state, wherein the target control command state is a state which is not executed or is executed; and the non-scheduled device adopts a device identifier to be controlled, determines whether the non-scheduled device is the device to be controlled, and searches whether a command table of the non-scheduled device has the same control command as the target control command.
Optionally, the determining, by the non-predetermined device, whether the non-predetermined device is the device to be controlled, and whether the command table of the non-predetermined device has the same control command as the target control command includes: in a case where the non-predetermined device is not the device to be controlled and there is no control command identical to the target control command in the command table, the non-predetermined device stores the target control command and the target control command status in a command table of the non-predetermined device and the non-predetermined device broadcasts the control command packet; in the case where the non-predetermined device is not the device to be controlled and there is the same control command as the target control command in the command table, the non-predetermined device broadcasts the control command packet.
Optionally, in a case where the control command packet is not executed and the predetermined device is not a device to be controlled, after the predetermined device continues broadcasting the control command packet, the method further includes: in the case where the non-predetermined device is the device to be controlled and there is the same control command as the target control command in the command table, the non-predetermined device stops broadcasting the control command packet and there is the same control command as the target control command in the command table indicating that the target control command has been executed; storing the target control command in the command table of the non-predetermined device and executing a corresponding operation according to the target control command when the non-predetermined device is the device to be controlled and the same control command as the target control command does not exist in the command table; updating the state of the target control command in the command table in the non-predetermined device to the state that has been executed.
Optionally, after the non-predetermined device performs a corresponding operation according to the target control command, the method further includes: the non-scheduled device broadcasts a status update instruction; and updating the state of the target control command in a command table in the device except the non-scheduled device to be the executed state according to the state updating instruction.
Optionally, the device to be controlled is identified as a MAC address of the device to be controlled.
According to another aspect of the embodiment of the present invention, there is also provided a networking system, including: the intelligent household equipment comprises a server side, routing equipment and a plurality of intelligent household equipment, wherein one of the plurality of intelligent household equipment is communicated with the server side through the routing equipment, the plurality of intelligent household equipment is communicated with each other, one of the plurality of intelligent household equipment is the intelligent household equipment to be controlled, a wireless module is arranged in each intelligent household equipment, the server side is communicated with the routing equipment, and the intelligent household equipment is used for executing the data transmission method of any one of the intelligent household equipment.
Optionally, the wireless module is a BLE communication module, or a WIFI communication module.
According to another aspect of the embodiment of the present invention, there is also provided a device cluster including: one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising a method for performing any of the above-described device data transmissions.
In the embodiment of the invention, the preset equipment stops broadcasting the control command packet under the condition that the control command packet is executed, so that the repeated forwarding problem of invalid data can be reduced as much as possible, and the accuracy and the effectiveness of the broadcast data are ensured.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 illustrates a flow chart of a method of device data transmission according to an embodiment of the present application;
FIG. 2 shows a schematic diagram of a predetermined apparatus according to an embodiment of the present application;
FIG. 3 shows a schematic diagram of a non-predetermined device according to an embodiment of the present application;
fig. 4 shows a schematic diagram of a networking system according to an embodiment of the present application.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be understood that when an element such as a layer, film, region, or substrate is referred to as being "on" another element, it can be directly on the other element or intervening elements may also be present. Furthermore, in the description and in the claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element or "connected" to the other element through a third element.
As described in the background art, most intelligent devices in the prior art cannot automatically form a network topology to communicate, and most intelligent devices cannot guarantee the transmission range and the effectiveness of data transmission, so that repeated forwarding of invalid data is caused, the information processing capacity is increased, loading delay and other effects are caused, and in order to reduce the repeated forwarding problem of the invalid data as much as possible, in a typical implementation manner of the present application, a method for transmitting device data, a networking system and a device cluster are provided.
According to an embodiment of the present application, a method for transmitting data of a device is provided, where the method is applied to a device in a data transmission system, where the system includes a server and a plurality of devices, one of the plurality of devices is a predetermined device, where the predetermined device communicates directly with the server, and the plurality of devices are in communication connection with each other, and the device may be an intelligent home device, for example, an air conditioner, a washing machine, a refrigerator, an electric cooker, a humidifier, or the like, and when the server needs to issue a command to a certain device, the server performs packing encryption on valid data, and simultaneously performs external packing of a device id (which may be a MAC), a command id (a mixed component of a timestamp and a device MAC) and a command status (an execution condition of the command, which is not executed by default, and can be changed only by a controlled terminal).
Fig. 1 is a flow chart of a method of device data transmission according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
step S101, the preset equipment receives a control command packet sent by the server;
step S102, the preset device determines whether the control command packet is executed;
step S103, the predetermined device stops broadcasting the control command packet when the control command packet has been executed.
In the above step, the predetermined device stops broadcasting the control command packet when the control command packet has been executed, so that the repeated forwarding problem of invalid data can be reduced as much as possible.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
In an embodiment of the present application, one of the plurality of devices is a device to be controlled, and the method further includes: in the case where the control command packet is not executed and the predetermined device is the device to be controlled, the predetermined device stops broadcasting the control command packet; and under the condition that the control command packet is not executed and the preset equipment is not the equipment to be controlled, the preset equipment continuously broadcasts the control command packet, so that the control command packet can be finally transmitted to the equipment to be controlled, and the effective transmission of data is ensured.
In an embodiment of the present application, after the predetermined device continues to broadcast the control command packet in a case where the control command packet is not executed and the predetermined device is not a device to be controlled, the method further includes: after the non-scheduled device receives the control command packet, the non-scheduled device analyzes the control command packet to obtain a target control command, a device identifier to be controlled and a target control command state, wherein the target control command state is a state which is not executed or is executed; the non-scheduled device adopts a device identifier to be controlled, determines whether the non-scheduled device is the device to be controlled, searches whether a command table of the non-scheduled device has a control command identical to the target control command, for example, after the first device sends the target control command to the second device, the second device checks whether the command table of the second device has the control command identical to the target control command, and judges whether the target control command is broadcasted according to multiple factors (for example, the target control command state and whether the second device is the device to be controlled).
In an embodiment of the present application, the determining, by the non-predetermined device, whether the non-predetermined device is the device to be controlled, and whether the command table of the non-predetermined device has the same control command as the target control command includes: when the non-predetermined device is not the device to be controlled and the same control command as the target control command does not exist in the command table, the non-predetermined device stores the target control command and the target control command status in the command table of the non-predetermined device, and the non-predetermined device broadcasts the control command packet; under the condition that the non-scheduled device is not the device to be controlled and the command table contains the same control command as the target control command, the non-scheduled device broadcasts the control command packet, so that the devices which receive the target control command are guaranteed to store the target control command, the follow-up checking work is facilitated, the accuracy and the effectiveness of broadcast data are guaranteed, and under the condition that a network topology diagram is not additionally generated, the autonomous learning capability is increased in the process of rapidly responding and completing the broadcast transmission of the data, and the problems of analysis and repeated forwarding of invalid data are reduced.
In an embodiment of the present application, after the predetermined device continues to broadcast the control command packet in a case where the control command packet is not executed and the predetermined device is not a device to be controlled, the method further includes: in the case where the non-predetermined device is the device to be controlled and the same control command as the target control command exists in the command table, the non-predetermined device stops broadcasting the control command packet and the presence of the same control command as the target control command in the command table indicates that the target control command has been executed; storing the target control command in the command table of the non-predetermined device and executing a corresponding operation by the non-predetermined device according to the target control command when the non-predetermined device is the device to be controlled and the same control command as the target control command does not exist in the command table; updating the state of the target control command in the command table in the non-scheduled device to the executed state, so as to ensure that the device to be controlled can successfully execute the target control command.
In one embodiment of the present application, after the non-predetermined device performs a corresponding operation according to the target control command, the method further includes: broadcasting a state update instruction by the non-scheduled equipment; and updating the state of the target control command in the command table of the equipment except the non-scheduled equipment into the executed state according to the state updating command, so that the equipment to be controlled is ensured to inform other equipment not to do repeated data transmission work after the target control command is executed, and the repeated data forwarding problem is further reduced.
In an embodiment of the present application, the device to be controlled is identified as a MAC address of the device to be controlled.
The embodiment of the application also provides a device cluster, and it should be noted that the device cluster of the embodiment of the application can be used for executing the method for device data transmission provided by the embodiment of the application. The following describes a device cluster provided in an embodiment of the present application.
The device cluster includes predetermined devices, and fig. 2 is a schematic diagram of the predetermined devices according to an embodiment of the present application. As shown in fig. 2, the predetermined apparatus includes a receiving unit 21, a determining unit 22, and a stopping unit 23;
the receiving unit 21 is configured to receive a control command packet sent by the server; the determining unit 22 is configured to determine whether the control command packet has been executed; the stopping unit 23 is configured to stop broadcasting the control command packet in case the control command packet has been executed
In the device cluster, when the control command packet is executed, the predetermined device stops broadcasting the control command packet, so that the repeated forwarding problem of invalid data can be reduced as much as possible.
In an embodiment of the present application, one of the plurality of devices is a device to be controlled, and the predetermined device package further includes a first control unit and a second control unit, where the control command package is not executed, and the first control unit is configured to stop broadcasting the control command package when the predetermined device is the device to be controlled; and when the control command packet is not executed and the predetermined device is not the device to be controlled, the second control unit is used for continuously broadcasting the control command packet, so that the control command packet can be finally transmitted to the device to be controlled, and the effective transmission of data is ensured.
In one embodiment of the present application, the device cluster further includes non-predetermined devices, and fig. 3 is a schematic diagram of the non-predetermined devices according to an embodiment of the present application. As shown in fig. 3, the non-predetermined device includes an parsing unit 31 and a searching unit 32, where, in a case where the control command packet is not executed and the predetermined device is not a device to be controlled, after the predetermined device continues broadcasting the control command packet, after the non-predetermined device receives the control command packet, the parsing unit 31 is configured to parse the control command packet to obtain a target control command, a device identifier to be controlled, and a target control command state, where the target control command state is a state where the control command is not executed or is already executed; the searching unit 32 is configured to determine whether the non-predetermined device is the device to be controlled by using the device to be controlled identifier, and search whether a command table of the non-predetermined device has a control command identical to the target control command, for example, after the first device sends the target control command to the second device, the second device checks whether the command table of the second device has the control command identical to the target control command stored therein, and determines whether to broadcast the target control command according to multiple factors (for example, a target control command state, whether the second device is the device to be controlled).
In one embodiment of the present application, the search unit includes a first control module and a second control module, where the non-predetermined device is not the device to be controlled, and where the command table does not have a control command identical to the target control command, the first control module is configured to store the target control command and the target control command status in the command table of the non-predetermined device, and the non-predetermined device broadcasts the control command packet; and under the condition that the non-scheduled device is not the device to be controlled and the same control command as the target control command exists in the command table, the second control module is used for broadcasting the control command packet, so that the devices which receive the target control command are ensured to store the target control command, and the subsequent checking work is facilitated.
In one embodiment of the present application, the non-predetermined device further includes a first control unit, a second control unit, and a third control unit, where, in a case where the control command packet is not executed and the predetermined device is not a device to be controlled, after the predetermined device continues to broadcast the control command packet, in a case where the non-predetermined device is the device to be controlled and there is a control command identical to the target control command in the command table, the first control unit is configured to stop broadcasting the control command packet and there is a control command identical to the target control command in the command table indicating that the target control command has been executed; in the case that the non-predetermined device is the device to be controlled and the command table does not have the same control command as the target control command, the second control unit is configured to store the target control command in the command table of the non-predetermined device and the non-predetermined device performs a corresponding operation according to the target control command; the third control unit is used for updating the state of the target control command in the command table in the non-scheduled device to the executed state, so as to ensure that the device to be controlled can successfully execute the target control command.
In an embodiment of the present application, the second control unit further includes an update module and a third control module, where the update module is configured to broadcast a status update instruction after the non-predetermined device performs a corresponding operation according to the target control command; the third control module is used for updating the state of the target control command in the command table of the equipment except the non-scheduled equipment to be executed according to the state updating command, so that the equipment to be controlled is guaranteed to inform other equipment not to do repeated data transmission work after the target control command is executed, and the repeated data forwarding problem is further reduced.
The device cluster comprises a processor and a memory, wherein the first receiving unit, the first determining unit, the stopping unit and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the repeated forwarding problem of invalid data is reduced as much as possible by adjusting the kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
An embodiment of the present invention provides a computer-readable storage medium having stored thereon a program which, when executed by a processor, implements the method for data transmission of a device described above.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program runs to execute the method for transmitting the data of the equipment.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the processor realizes at least the following steps when executing the program: the preset equipment receives a control command packet sent by the server; the predetermined device determining whether the control command packet has been executed; in the case where the control command packet has been executed, the predetermined device stops broadcasting the control command packet. The device herein may be a server, PC, PAD, cell phone, etc.
The present application also provides a computer program product adapted to perform a program initialized with at least the following method steps when executed on a data processing device: the preset equipment receives a control command packet sent by the server; the predetermined device determining whether the control command packet has been executed; in the case where the control command packet has been executed, the predetermined device stops broadcasting the control command packet.
The present application also provides a networking system, and fig. 4 is a schematic diagram of the networking system according to an embodiment of the present application, as shown in fig. 4, where the networking system includes: the intelligent home equipment comprises a server side, routing equipment and a plurality of intelligent home equipment, wherein one of the plurality of intelligent home equipment is communicated with the server side through the routing equipment, the plurality of intelligent home equipment is communicated with each other, one of the plurality of intelligent home equipment is the intelligent home equipment to be controlled, a wireless module is arranged in each intelligent home equipment, the server side is communicated with the routing equipment, and the intelligent home equipment is used for executing the method for transmitting data of any one of the intelligent home equipment. By stopping broadcasting the control command packet by the predetermined device in the case where the control command packet has been executed, it is possible to reduce the repeated forwarding problem of invalid data as much as possible.
In one embodiment of the present application, the wireless module is a BLE communication module, or a WIFI communication module.
The application also provides a device cluster, which comprises: the apparatus comprises one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising a method for performing any of the above-described device data transmissions. By stopping broadcasting the control command packet by the predetermined device in the case where the control command packet has been executed, it is possible to reduce the repeated forwarding problem of invalid data as much as possible.
In order that those skilled in the art can more clearly understand the technical solutions of the present application, the technical solutions and technical effects of the present application will be described below with reference to specific embodiments.
Examples
The application also proposes a scheme for data transmission of a device, comprising the steps of:
step 1: the first node equipment (namely the preset equipment) receives the data sent by the server, analyzes the command id and the equipment id in the data, compares the equipment id, if the data is not a controlled object, transmits the address of the data superposition node equipment to other equipment through Bluetooth broadcasting, and stores the command id into a rebroadcast command table of the first node equipment;
step 2: after receiving data broadcast by the Bluetooth of the first node device, the second device (i.e. the non-scheduled device) identifies the command id and the device id, compares the device id, if not the controlled object, the second device is consistent with the first node device, becomes the second node, adds the address of the second device on the basis of the address of the first device, transmits the data to other devices through Bluetooth broadcast, and writes a rebroadcast command table;
step 3: taking the data as transmission logic, until the broadcasted data is transmitted to one section of the controlled device, comparing the device ids, reading the controlled command table when the controlled object is judged, if the command id does not exist in the table, analyzing the encrypted data, executing the corresponding instruction, and writing the command id into the controlled command table. Preventing repeated reception of the broadcasted data;
step 4: the device after executing the instruction broadcasts a data packet with a command id and a command state of successful execution, other devices write the command id into a response table when receiving the data packet with the command state of successful execution, and subsequently when repeatedly receiving the control packet, if the control packet is judged to have been responded, the device directly replies that the instruction has been responded, so that other devices write the id into the response table for updating;
step 5: the device after executing the instruction synchronously analyzes the node device addresses superimposed in the data packet, records the node device addresses in the information table of the device itself, gathers the node device addresses, each device to be controlled gradually obtains the information addresses of all devices in the network through continuous data transmission and reception, in the subsequent device data interaction, the device judges by utilizing the device address table, after filtering the node address information contained in the data packet, the rest device addresses in the device address table are the devices which receive the data broadcast packet, and the device can actively push the response packet, thereby improving the accuracy of the controlled response packet and reducing the data quantity of unnecessary interaction.
When the server issues an instruction, the server is used as a first node device (i.e. a preset device) in the local network, data of the server can be received, meanwhile, the data are compared, each device uses the device as a node core and performs outward diffusion forwarding, in order to avoid repeated forwarding of the data caused by diffusion, each device is cached with a forwarding table, a controlled table and a response table of command ids with a certain period number, the forwarding device uses the forwarding table and the response table as comparison cores to judge whether the data are required to be transmitted and forwarded, and the controlled device uses the controlled command id table as a reference to judge whether the data are required to be responded.
After the device executes, the device returns an id of a response command, other devices store the response command table when receiving the response command id, compare the response command with the command of the response id preferentially when receiving the command id later, and not forward the control data which is controlled by the controlled terminal after finding that the device has completed the response.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units may be a logic function division, and there may be another division manner when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
1) According to the method for transmitting the device data, when the control command packet is executed, the preset device stops broadcasting the control command packet, so that the repeated forwarding problem of invalid data can be reduced as far as possible.
2) In the device cluster of the present application, when the control command packet has been executed, the predetermined device stops broadcasting the control command packet, so that the repeated forwarding problem of invalid data can be reduced as much as possible.
3) In the networking system of the present application, when the control command packet has been executed, the predetermined device stops broadcasting the control command packet, so that the repeated forwarding problem of invalid data can be reduced as much as possible.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims (10)
1. A method of device data transmission, characterized in that it is applied to a device in a data transmission system, the system comprising a server and a plurality of devices, one of said devices being a predetermined device, said predetermined device being in direct communication with said server, a plurality of said devices being communicatively connected to each other, comprising:
the preset equipment receives a control command packet sent by the server;
the predetermined device determining whether the control command packet has been executed;
in the case where the control command packet has been executed, the predetermined device stops broadcasting the control command packet.
2. The method of claim 1, wherein one of the plurality of devices is a device to be controlled, the method further comprising:
in a case where the control command packet is not executed and the predetermined device is the device to be controlled, the predetermined device stops broadcasting the control command packet;
in the case where the control command packet is not executed and the predetermined device is not the device to be controlled, the predetermined device continues to broadcast the control command packet.
3. The method according to claim 2, wherein, in case the control command packet is not executed and a predetermined device is not a device to be controlled, the predetermined device continues to broadcast the control command packet, the method further comprises:
after the non-scheduled device receives the control command packet, the non-scheduled device analyzes the control command packet to obtain a target control command, a device identifier to be controlled and a target control command state, wherein the target control command state is a state which is not executed or is executed;
and the non-scheduled device adopts a device identifier to be controlled, determines whether the non-scheduled device is the device to be controlled, and searches whether a command table of the non-scheduled device has the same control command as the target control command.
4. A method according to claim 3, wherein the non-predetermined device uses a device identification to be controlled, determining whether the non-predetermined device is the device to be controlled, and looking up whether there is the same control command as the target control command in a command table of the non-predetermined device, comprising:
in a case where the non-predetermined device is not the device to be controlled and there is no control command identical to the target control command in the command table, the non-predetermined device stores the target control command and the target control command status in a command table of the non-predetermined device and the non-predetermined device broadcasts the control command packet;
in the case where the non-predetermined device is not the device to be controlled and there is the same control command as the target control command in the command table, the non-predetermined device broadcasts the control command packet.
5. A method according to claim 3, wherein, in case the control command packet is not executed and the predetermined device is not a device to be controlled, the predetermined device continues to broadcast the control command packet, the method further comprises:
in the case where the non-predetermined device is the device to be controlled and there is the same control command as the target control command in the command table, the non-predetermined device stops broadcasting the control command packet and there is the same control command as the target control command in the command table indicating that the target control command has been executed;
storing the target control command in the command table of the non-predetermined device and executing a corresponding operation according to the target control command when the non-predetermined device is the device to be controlled and the same control command as the target control command does not exist in the command table;
updating the state of the target control command in the command table in the non-predetermined device to the state that has been executed.
6. The method of claim 5, wherein after the non-predetermined device performs a corresponding operation according to the target control command, the method further comprises:
the non-scheduled device broadcasts a status update instruction;
and updating the state of the target control command in a command table in the device except the non-scheduled device to be the executed state according to the state updating instruction.
7. A method according to claim 3, characterized in that the device to be controlled is identified as the MAC address of the device to be controlled.
8. A networking system, comprising: the intelligent household equipment comprises a server side, routing equipment and a plurality of intelligent household equipment, wherein one of the intelligent household equipment is communicated with the server side through the routing equipment, the intelligent household equipment is communicated with the server side, one of the intelligent household equipment is the intelligent household equipment to be controlled, a wireless module is arranged in each intelligent household equipment, the server side is communicated with the routing equipment, and the intelligent household equipment is used for executing the method for transmitting data of the intelligent household equipment according to any one of claims 1 to 7.
9. The system of claim 8, wherein the wireless module is a BLE communication module, or a WIFI communication module.
10. A cluster of devices, comprising: one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising a method for performing the device data transfer of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210707313.5A CN117319943A (en) | 2022-06-21 | 2022-06-21 | Method for transmitting equipment data, networking system and equipment cluster |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210707313.5A CN117319943A (en) | 2022-06-21 | 2022-06-21 | Method for transmitting equipment data, networking system and equipment cluster |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117319943A true CN117319943A (en) | 2023-12-29 |
Family
ID=89285373
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210707313.5A Pending CN117319943A (en) | 2022-06-21 | 2022-06-21 | Method for transmitting equipment data, networking system and equipment cluster |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117319943A (en) |
-
2022
- 2022-06-21 CN CN202210707313.5A patent/CN117319943A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7249720B2 (en) | Allocation and Reuse of Network Addresses for Hierarchy-Based RPL Networks | |
KR102193012B1 (en) | Distributed processing system and method of operating the same | |
JP5594171B2 (en) | Communication processing apparatus, address learning program, and address learning method | |
US11083004B2 (en) | Data transmission method and apparatus | |
CN104883547A (en) | IPC access method based on physical port of network access equipment, and NVR | |
KR101436976B1 (en) | Controlling hdmi devices via intelligent emulation of consumer electronics control(cec) protocol | |
CN108770045A (en) | Method of network entry, relevant device and network system | |
CN114710549B (en) | Dynamic management method, system and service node for network card in container platform | |
CN113498110B (en) | Service message transmission method and related equipment | |
CN114585026A (en) | Frequency point switching method, terminal, base station and storage medium | |
US11218441B2 (en) | Use of a network address by a network accessory | |
CN113141267B (en) | Firmware upgrading and information processing method, device and equipment | |
JP6764489B2 (en) | Stacking network equipment | |
CN117319943A (en) | Method for transmitting equipment data, networking system and equipment cluster | |
CN102890635A (en) | Method and device for loading digital signal processor | |
CN117319108A (en) | Method for transmitting equipment data and networking system | |
CN110611589B (en) | Control method and device of regional control system and air conditioning system | |
JP6678093B2 (en) | Data sharing system, data sharing method | |
CN103581171B (en) | A kind of file transmitting method and device | |
US20230319531A1 (en) | Network system and network slice generation method | |
CN118524162B (en) | ZCL information dynamic modification method based on Zigbee SOC | |
CN109672571B (en) | Stacking method, device and storage medium | |
CN114327931B (en) | Network management equipment in complete machine cabinet and network system in complete machine cabinet | |
KR101013836B1 (en) | Data Communication System and Method Using IP Matching in Universal Plug and Play Network | |
CN110233909B (en) | Address code allocation method and device for wireless gateway and network equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |