Data reporting method and device, equipment and medium

By distinguishing the reporting type and time of response data, the problem of network data congestion in multiple devices and scenarios is solved, and a balance is achieved between the smoothness of broadcast control and data synchronization.

CN116248691BActive Publication Date: 2026-03-20MIDEA INTELLIGENT LIGHTING & CONTROLS TECHNOLOGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-07
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

In multi-device, multi-scenario applications, existing data reporting methods lead to network data congestion, broadcast data loss, and unsmooth control.

Method used

By distinguishing the reporting type of response data, different reporting times are determined, including obtaining broadcast information sent by the coordinator, determining whether the controlled object identifier matches the local device identifier, generating target response data and determining the target reporting time based on the response time and broadcast type identifier, and finally feeding back the target response data to the coordinator.

Benefits of technology

It balances the contradiction between the real-time nature of data reporting and network data congestion, improves the smoothness of broadcast control, and avoids network data congestion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116248691B_ABST
    Figure CN116248691B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to a data reporting method, device, equipment and medium, wherein the method comprises: obtaining broadcast information sent by a preset coordinator, wherein the broadcast instruction comprises a control instruction, a control object identifier and a broadcast type identifier; determining whether the control object identifier matches the local device identifier; if the control object identifier matches the local device identifier, generating target response data in response to the control instruction; obtaining a response time of the target response data, and generating a target reporting time according to the response time and the broadcast type identifier; and feeding back the target response data to the coordinator according to the target reporting time. Thus, the reporting type of the response data is distinguished to determine different reporting times of the relevant response data, balancing the contradiction between the real-time performance of data reporting and network data congestion caused by reporting time, and improving the smoothness of broadcast control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of communication technology, and in particular to a data reporting method, apparatus, device and medium. Background Technology

[0002] Broadcast mechanisms can typically be categorized into unicast and multicast. Nodes with broadcast capabilities, such as routing nodes, will forward broadcast information to neighboring nodes that have not received it after receiving the broadcast information.

[0003] In related technologies, under unicast mode, such as Figure 1 As shown, the sending node directly specifies the target address and broadcasts the information to the corresponding receiving node. In multicast mode, as... Figure 2 As shown, the nodes are first divided into playback groups. Then, the sending nodes broadcast information to specific playback groups, such as the group number. Regardless of whether the transmission is unicast or multicast, a reporting mechanism is pre-defined according to relevant protocols to achieve data synchronization. For example, a reporting mechanism is provided by Zigbee 3.0. Therefore, whether in unicast or multicast mode, the receiving nodes directly report the corresponding updated data after responding to the broadcast information, thus facilitating data synchronization.

[0004] However, the method of reporting and synchronizing data as soon as the receiving node changes can lead to network congestion, loss of broadcast data, and unsmooth broadcast control in some multi-device, multi-scenario applications due to the large amount of data being reported. Summary of the Invention

[0005] To solve, or at least partially solve, the above-mentioned technical problems, this disclosure provides a data reporting method, apparatus, device, and medium, thereby distinguishing the reporting type of response data to determine different reporting times for the relevant response data, balancing the contradiction between the real-time nature of data reporting and the network data congestion caused during reporting, and improving the smoothness of broadcast control.

[0006] This disclosure provides a data processing method, the method comprising: acquiring broadcast information sent by a preset coordinator, wherein the broadcast instruction includes a control instruction, a control object identifier, and a broadcast type identifier; determining whether the control object identifier matches a local device identifier; if it matches the local device identifier, generating target response data in response to the control instruction; acquiring the response time of the target response data, and generating a target reporting time based on the response time and the broadcast type identifier; and feeding back the target response data to the coordinator based on the target reporting time.

[0007] The embodiment of the present disclosure further provides a data processing apparatus, the apparatus comprising: an acquisition module configured to acquire broadcast information sent by a preset coordinator, wherein the broadcast instruction comprises a control instruction, a control object identifier and a broadcast type identifier; a judgment module configured to judge whether the control object identifier matches a local device identifier; a first generation module configured to generate target response data in response to the control instruction when the local device identifier matches; a second generation module configured to acquire a response time of the target response data and generate a target reporting time according to the response time and the broadcast type identifier; and a feedback module configured to feed back the target response data to the coordinator according to the target reporting time.

[0008] The embodiment of the present disclosure further provides an electronic device, comprising: a processor; a memory for storing executable instructions of the processor; and the processor is configured to read the executable instructions from the memory and execute the instructions to implement the data reporting method provided by the embodiment of the present disclosure.

[0009] The embodiment of the present disclosure further provides a computer readable storage medium, the storage medium stores a computer program, and the computer program is used to execute the data reporting method provided by the embodiment of the present disclosure.

[0010] The technical solution provided by the embodiment of the present disclosure has the following advantages compared with the prior art.

[0011] The data reporting solution provided by the embodiment of the present disclosure acquires broadcast information sent by a preset coordinator, wherein the broadcast instruction comprises a control instruction, a control object identifier and a broadcast type identifier, and then judges whether the control object identifier matches a local device identifier. If the local device identifier matches, target response data is generated in response to the control instruction, the response time of the target response data is acquired, and a target reporting time is generated according to the response time and the broadcast type identifier. Finally, the target response data is fed back to the coordinator according to the target reporting time. Thus, the broadcast type of the response data is distinguished to determine different reporting times of the relevant response data, balancing the contradiction between the real-time performance of data reporting and network data congestion caused by reporting time, and improving the smoothness of broadcast control. BRIEF DESCRIPTION OF DRAWINGS

[0012] The above and other features, advantages, and aspects of the embodiments of the present disclosure will become more apparent by describing in detail the following specific embodiments with reference to the attached drawings. Throughout the drawings, the same or similar reference numerals refer to the same or similar elements. It should be understood that the drawings are schematic, and the original and elements are not necessarily drawn according to the scale.

[0013] Figure 1 A unicast broadcast scenario schematic diagram is provided for the embodiment of the present disclosure;

[0014] Figure 2 A multicast broadcast scenario schematic diagram provided for an embodiment of the present disclosure;

[0015] Figure 3 A data synchronization parameter schematic diagram provided for an embodiment of the present disclosure;

[0016] Figure 4 A data reporting method flow schematic diagram provided for an embodiment of the present disclosure;

[0017] Figure 5 A broadcast information setting scenario schematic diagram provided for an embodiment of the present disclosure;

[0018] Figure 6 Another data reporting method flow schematic diagram provided for an embodiment of the present disclosure;

[0019] Figure 7 Another data reporting method flow schematic diagram provided for an embodiment of the present disclosure;

[0020] Figure 8 A data reporting device structure schematic diagram provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

[0021] Embodiments of the present disclosure will be described in more detail by referring to the drawings. Although certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein, but rather the embodiments are provided so as to more completely and thoroughly understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for exemplary purposes only and are not intended to limit the scope of the present disclosure.

[0022] It should be understood that each step recited in the method embodiments of the present disclosure can be executed in different order and / or in parallel. In addition, the method embodiments can include additional steps and / or omit the execution of the steps shown. The scope of the present disclosure is not limited in this respect.

[0023] The term "comprising" and variations thereof as used herein are open-ended, and mean "including but not limited to". The term "based on" means "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Related terms are defined in the description that follows.

[0024] It should be noted that the terms "first", "second", and the like in the present disclosure are only used to distinguish different devices, modules or units, and are not intended to limit the order or interdependence of the functions performed by these devices, modules or units.

[0025] It should be noted that the terms "one", "multiple" in the present disclosure are illustrative and not limiting, and those skilled in the art should understand that unless the context clearly indicates otherwise, "one" or "multiple" should be understood as "one or more".

[0026] The names of the messages or information exchanged between the devices in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of the messages or information.

[0027] As mentioned above, in the broadcast mechanism, a reporting mechanism is defined to facilitate data synchronization between the client and the server, for example, as shown in Figure 3 Zigbee 3.0 provides the report parameter function of the attribute attribute, that is, a mechanism for data synchronization between the server and the client. In the existing Zigbee Report mechanism, after the corresponding report parameter is configured by the device, the corresponding attribute will be reported after the attribute changes within the set sending time period. Thus, in some multi-device, multi-scene applications, it may cause network data congestion, data loss, unsmooth control, and poor customer experience.

[0028] To solve the above problems, the present disclosure provides a data reporting method, in which, on the one hand, the target reporting time is re-determined for the relevant data to be reported, which delays the reporting of the relevant data to a certain extent, thereby avoiding the congestion caused by too much data being reported at the same time, on the other hand, the unicast reporting, multicast and broadcast broadcast types are distinguished, and different target reporting times are matched for different broadcast mechanisms to avoid data congestion caused by target reporting time conflicts, and balance the contradiction between reporting real-time and reporting congestion.

[0029] The method will be described in detail below in conjunction with specific embodiments.

[0030] Figure 4 A flowchart of a data reporting method provided by the embodiments of the present disclosure is shown, which can be executed by a data reporting device. The device can be implemented by software and / or hardware, and can be integrated in a receiving device corresponding to a receiving node. As shown in Figure 4 The method comprises the following steps:

[0031] Step 401, obtaining the broadcast information sent by the preset coordinator, wherein the broadcast instruction comprises a control instruction, a control object identifier and a broadcast type identifier.

[0032] The preset coordinator can be understood as a node that relays the server-side broadcast data to other receiving nodes in the broadcast mechanism. The coordinator can be preset or determined according to the processor computing power of all nodes in the broadcast network.

[0033] In addition, the broadcast information in the embodiments of the present disclosure includes but is not limited to control instructions, etc. For example, it can be a switch instruction for controlling a switch, such as controlling the temperature of an air conditioner to rise, etc. The control object identifier can correspond to one or more receiving nodes. For example, when the control object identifier is a group number, the control object identifier corresponds to multiple receiving nodes belonging to the corresponding group number. For example, when the control object identifier is a MAC address, the control object identifier corresponds to one receiving node. The receiving nodes include but are not limited to routing nodes, etc. The broadcast type identifier in the present embodiment corresponds to whether the report is a unicast, multicast, or broadcast report type, etc.

[0034] It should be noted that in different application scenarios, the way to obtain the broadcast information sent by the preset coordinator is different:

[0035] In some possible embodiments, an operation interface corresponding to the broadcast information can be displayed, as shown in FIG. 6, the corresponding candidate control object identifier can be displayed on the operation interface, and after one of the control object identifiers is selected, a control instruction input interface is displayed. The control instruction input interface can include different control instruction controls, can include a control instruction input area, can further include different controls for specifying different broadcast type identifiers, etc. Figure 5

[0036] In another possible embodiment, the server can obtain the device attribute information and environmental information corresponding to all receiving nodes in the current broadcast network, and generate corresponding broadcast information according to the device attribute information and environmental information. For example, the environmental information is high temperature, the device attribute information of the air conditioner node is that the air conditioner is in an off state, and the broadcast information including the control instruction of opening the air conditioning cooling mode, the air conditioner identifier and the preset broadcast type identifier corresponding to the air conditioner is generated.

[0037] Step 402, determining whether the control object identifier matches the local device identifier.

[0038] It can be understood that by determining whether the control object identifier matches the local device identifier, it is determined whether the received broadcast information is used to control the local machine (i.e., the receiving node receiving the broadcast information).

[0039] ​As mentioned above, the control object identifier can correspond to one receiving node or to multiple receiving nodes, and therefore the corresponding manner of judging whether the control object identifier matches the local device identifier is also different.

[0040] In one embodiment of the present disclosure, the identifier type of the control object identifier, such as judging whether the control object identifier belongs to the unicast type or the broadcast group type, can be obtained according to the keyword matching of the control object identifier.

[0041] In the present embodiment, if the identifier type is the broadcast group identifier type, the target broadcast group identifier in which the local device identifier is located, i.e., the receiving node and other multiple receiving nodes belong to the same broadcast group and adopt the common target broadcast group identifier, is obtained, which can be a group number, and then it is judged whether the control object identifier matches the target broadcast group identifier, and if it matches, it is determined that the control object identifier matches the local device identifier.

[0042] In the present embodiment, if the identifier type is the device identifier type, which can be the MAC address, device serial number, etc., information uniquely identifying the device corresponding to the receiving node, it is judged whether the control object identifier matches the local device identifier, and if it matches, it is determined that the control object identifier matches the local device identifier.

[0043] Step 403, if it matches the local device identifier, target response data is generated in response to the control instruction.

[0044] In the present embodiment, if it matches the local device identifier, it is determined that the receiving node belongs to the control object corresponding to the control instruction, and therefore target response data is generated in response to the control instruction. The response data includes the current value of the device attribute corresponding to the control instruction, etc., such as if the control instruction is to control the light to turn off, the corresponding target response data is the current on attribute value of the corresponding light.

[0045] Since the purpose of reporting the target response data is to synchronize the device attribute information, etc., of the receiving node with the device attribute information, etc., recorded in the server, such as if the current off network air conditioner is in cooling mode, the current mode of the air conditioner needs to be synchronized in the server in order to facilitate the overall coordinated control of the server.

[0046] However, some control instructions can change the attribute value of the relevant object multiple times, such as the control instruction is to control the air conditioner to continuously increase the temperature by 3 degrees, if the initial temperature of the air conditioner is 23 degrees, the temperature attribute of the air conditioner changes to 24 degrees, 25 degrees and 26 degrees, if all temperatures are reported, it is obviously not appropriate, only the last "26 degrees" needs to be reported to realize the synchronization of the temperature.

[0047] Therefore, in the embodiment, it is determined whether the candidate response data corresponding to the control instruction is multiple, if the candidate response data is multiple, the response object and the candidate response time of each candidate response data are determined, all candidate response data of the same response object are sorted in the order from front to back according to the candidate response time, and the last candidate response data in the sorting result is determined as the target response data corresponding to the response object. The response object is any functional module on the device corresponding to each receiving node, for example, it can be a temperature control module, a light module, etc.

[0048] In step 404, the response time of the target response data is obtained, and the target reporting time is generated according to the response time and the broadcast type identifier.

[0049] In the embodiment, the response time of the target response data is obtained, which can be the update time corresponding to the target response data. For example, if the target response data is the air conditioner temperature, the response time is the generation time of the latest air conditioner temperature.

[0050] If it is pre-set that the target response data is sent according to the preset sending period, the response time can be the time corresponding to the nearest sending period after the target response data is generated. For example, if the sending period is pre-set to be data reporting every 20 seconds, after the corresponding target response data is obtained, the time when the nearest 20-second period is reached is determined as the response time.

[0051] In the embodiment, the reporting is not directly performed according to the response time, but the target reporting time is further generated in combination with the broadcast type identifier, so that the target reporting time corresponding to different broadcast type identifiers is inconsistent, the reporting time of multicast and unicast can be distinguished, and the congestion of reported data is avoided to a certain extent.

[0052] In step 405, the target response data is fed back to the coordinator according to the target reporting time.

[0053] In the embodiment, the target response data is fed back to the coordinator according to the target reporting time. Since the target reporting time is generated according to the response time and the broadcast type identifier, the reporting time of multicast and unicast can be distinguished, the reporting time of the target response data corresponding to different types of reporting types is distinguished, and the congestion of reported data is avoided to a certain extent.

[0054] In summary, the data reporting method of the embodiment of the present disclosure acquires broadcast information sent by a preset coordinator, wherein the broadcast instruction comprises a control instruction, a control object identifier and a broadcast type identifier, then it is judged whether the control object identifier matches the local device identifier, if it matches, the target response data is generated in response to the control instruction, the response time of the target response data is acquired, and the target reporting time is generated according to the response time and the broadcast type identifier, finally, the target response data is fed back to the coordinator according to the target reporting time. Thus, the broadcast type of the response data is distinguished to determine the different reporting time of the relevant response data, balancing the contradiction between the real-time of data reporting and the network data congestion caused by reporting time, and improving the flow of broadcast control.

[0055] Based on the above embodiment, if there are more data to be reported of the same reporting type, it may also cause congestion of network data propagation, therefore, in order to further ensure the flow of broadcast control, the reporting time is appropriately delayed to further avoid network data congestion.

[0056] In an embodiment of the present disclosure, as shown in Figure 6 The target reporting time is generated according to the response time and the broadcast type identifier, comprising:

[0057] In step 601, it is judged whether the broadcast type identifier belongs to a preset delay identifier.

[0058] It can be understood that the preset delay identifier of each node that can be delayed for reporting is set in advance.

[0059] In some possible examples, the configuration setting can be performed by a coordination processor.

[0060] For example, if the preset delay identifier comprises one or more of unicast reporting delay identifier, broadcast reporting identifier, multicast reporting delay identifier, for each relevant receiving node, as shown in Figure 7 After joining the corresponding broadcast network, the coordinator sends the preset delay identifier for each receiving node, after the relevant receiving node receives the preset delay identifier, it is judged whether the preset delay identifier is a unicast reporting delay identifier, if it is, it is judged whether the receiving node supports unicast reporting delay, for example, it is judged whether the corresponding security level of the corresponding receiving node belongs to the security level supporting the guaranteed reporting delay, if it does not belong to the corresponding security level, it is determined that the corresponding node does not support unicast delay reporting, etc., if the receiving node supports unicast reporting delay, the unicast reporting delay function is turned on, and the unicast broadcast message is reported with delay in subsequent reporting.

[0061] Continuing to refer to Figure 7If the preset delay identifier is a broadcast or multicast reporting delay identifier, if it is a multicast reporting delay identifier, it is further judged whether the receiving node supports broadcast or multicast reporting, for example, whether the receiving node belongs to the corresponding broadcast group, if it supports broadcast or multicast reporting, the broadcast or multicast reporting function is opened, and the broadcast message is reported with delay in subsequent reporting. Of course, the coordinator can also set other parameters of the receiving node in the form of broadcast.

[0062] In step 602, if it belongs to the delay reporting identifier, the target delay time corresponding to the broadcast type identifier is obtained.

[0063] In the embodiment, if it belongs to the delay reporting identifier, the target delay time corresponding to the broadcast type identifier is obtained.

[0064] In some possible embodiments, if the delay reporting identifier is a unicast reporting identifier, the delay time of unicast reporting can be stored in the preset database in advance, and the target delay time corresponding to the unicast reporting identifier is obtained by querying the preset database.

[0065] In the embodiment, the local device identifier of the unicast reporting identifier can also be obtained, and the target delay time is obtained by calculating the local device identifier according to the preset random number generation algorithm, wherein the target delay time generated by the preset random number generation algorithm is less than a preset value.

[0066] In another embodiment of the present disclosure, if the delay reporting identifier is a multicast reporting identifier, a preset standard delay time corresponding to the multicast reporting identifier is obtained, and the target delay time is generated by calculating the preset standard delay time and the local device identifier according to the preset random generation algorithm, wherein the target delay time generated by the preset random generation algorithm is less than a preset value, and the preset value is used to balance the real-time performance of reporting.

[0067] For example, after the local device identifier is normalized, a first time is obtained, the sum of the preset standard delay time and the first time is calculated, and the corresponding target delay time is obtained.

[0068] Therefore, in the embodiment, since the local device identifiers corresponding to different receiving nodes are different, even if there are multiple receiving nodes belonging to the same broadcast group, the corresponding reporting times can be distinguished, avoiding congestion of network data and improving the smoothness of broadcast control.

[0069] In another embodiment of the present disclosure, if the delay reporting identifier is a multicast reporting identifier, a preset number identifier of the local device identifier in the group network is obtained, and the target delay time is obtained by calculating the preset number identifier according to the preset random generation algorithm, wherein the target delay time generated by the preset random generation algorithm is less than a preset value, and the preset value is used to balance the real-time performance of reporting.

[0070] For example, after the preset number identifier is normalized, the second time length is obtained, the sum of the preset standard delay time length and the second time length is calculated, and the corresponding target delay time length is obtained.

[0071] In another embodiment of the present disclosure, if the delay reporting identifier is a broadcast reporting identifier, a plurality of different target delay time lengths less than a preset value are randomly generated, and the plurality of target delay time lengths are randomly assigned to a plurality of corresponding receiving nodes, so that the corresponding receiving nodes report response data according to the target delay time length. The number of target delay time lengths can be equal to the number of receiving nodes in a broadcast scenario. If the number of target delay time lengths is less than the number of receiving nodes in a broadcast scenario, the target delay time lengths of part of the receiving nodes can be allowed to be the same, but the ratio of the number of receiving nodes with the same target delay time length to the total number of receiving nodes is not greater than a preset ratio. The preset ratio can be determined according to the idle resources of the broadcast network.

[0072] In step 603, the target delay time length after the response time is determined as the target reporting time.

[0073] In this embodiment, the target delay time length after the response time is determined as the target reporting time. For example, the response time is a, the target delay time length is b, and when the time reaches a+b, the target reporting time for reporting the relevant response data is determined.

[0074] In an embodiment of the present disclosure, after the target delay time length is obtained, a countdown can be started, and when the countdown time reaches b, the corresponding response data is reported.

[0075] In another embodiment of the present disclosure, if the delay reporting identifier is a broadcast reporting identifier, the local device identifier is obtained, and the target delay time length corresponding to the local device identifier is calculated according to a preset algorithm, wherein the target delay time length calculated by the preset algorithm is not greater than a preset value.

[0076] In some possible embodiments, in order to further avoid congestion, it can also be determined whether the number of response data sent to the coordinator within a preset time period exceeds a preset number threshold. If the number of response data exceeds the preset number threshold, the other data packets exceeding the preset number threshold are cached to a preset storage location and queued in the preset storage location. After the other response data is successfully sent, the other response data in the preset storage location is read according to the queuing sequence.

[0077] In summary, the data reporting method of the embodiments of the present disclosure distinguishes different types of broadcast to perform different reporting delays, and in the same multicast or broadcast type, the reporting delays of different nodes are also different, thereby further balancing the contradiction between the real-time performance of data reporting and the network data congestion caused by reporting time, and improving the smoothness of broadcast control.

[0078] To achieve the above-embodiments, the present disclosure further provides a data reporting device.

[0079] Figure 8 A structural diagram of a data reporting device provided by the embodiments of the present disclosure is shown in the figure. The device can be realized by software and / or hardware, and can be integrated in an electronic device. As shown in the figure, the device comprises: Figure 8

[0080] The acquisition module 810 is configured to acquire broadcast information sent by a preset coordinator, wherein the broadcast instruction comprises a control instruction, a control object identifier, and a broadcast type identifier.

[0081] The judgment module 820 is configured to judge whether the control object identifier matches the local device identifier.

[0082] The first generation module 830 is configured to generate target response data in response to the control instruction when the local device identifier matches.

[0083] The second generation module 840 is configured to acquire the response time of the target response data, and generate a target reporting time according to the response time and the broadcast type identifier.

[0084] The feedback module 850 is configured to feed back the target response data to the coordinator according to the target reporting time.

[0085] The data reporting device provided by the embodiments of the present disclosure can execute the data reporting method provided by any of the embodiments of the present disclosure, and has the corresponding function modules and beneficial effects of the execution method.

[0086] To achieve the above-embodiments, the present disclosure further provides an electronic device, which comprises a processor, a memory for storing processor-executable instructions, and the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the above-mentioned data reporting method.

[0087] To achieve the above-embodiments, the present disclosure further provides a computer program product, which comprises a computer program / instruction, and the computer program / instruction is executed by a processor to implement the data reporting method in the above-embodiments.

[0088] To achieve the above-embodiments, the present disclosure further provides a computer-readable storage medium, which stores a computer program, and the computer program is used to execute the data reporting method. ​

[0089] Note that the computer readable medium described above in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination thereof. The computer readable storage medium can be, for example and without limitation, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any suitable combination thereof. More specific examples of the computer readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, the computer readable storage medium can be any tangible medium that contains or stores a program used by or in connection with an instruction execution system, apparatus or device. In the present disclosure, the computer readable signal medium can include a data signal propagated in baseband or propagated as a carrier wave in a propagated data signal, in which the computer readable program code is contained. Such a propagated data signal can take any of a variety of forms, including but not limited to electro-magnetic, optical, or any suitable combination thereof. The computer readable signal medium can also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate or transport a program for use by or in connection with an instruction execution system, apparatus or device. The program code contained on the computer readable medium can be transmitted by any suitable medium, including but not limited to wire, cable, RF, etc., or any suitable combination thereof.

[0090] In some embodiments, the client, server, or both can communicate using any current known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet, and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any current known or future developed networks.

[0091] The computer readable medium described above can be included in the electronic device described above; or can exist separately from the electronic device, and can be accessed via the electronic device.

[0092] The above computer readable medium can carry one or more programs, which when executed by the electronic device, can cause the electronic device to: computer program code for executing operations of the present disclosure can be written in one or more programming languages, or combinations thereof, including object oriented programming languages such as Java, Smalltalk, C++ as well as conventional procedural programming languages such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).

[0093] The flow diagrams and the block diagrams in the drawings are illustrations of architectures, functionalities, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flow diagrams or block diagrams can represent a module, a procedure, or a part of code, which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or in the reverse order, depending on the functionality involved. It is also noted that each block in the block diagrams and / or flow diagrams and combinations of blocks in the block diagrams and / or flow diagrams can be implemented by special-purpose hardware-based systems that perform the specified functions or operations, or combinations of hardware and computer instructions.

[0094] The units described in the embodiments of the present disclosure can be implemented by software, or by hardware. In some cases, the name of the unit does not constitute a limitation on the unit itself.

[0095] The functions described in the foregoing description can be implemented in part or in whole by one or more hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Program-specific Integrated Circuits (ASICs), Program-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc.

[0096] In the context of this disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium would include a lined- up electrical connection, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0097] The foregoing description merely exemplifies the preferred embodiments of the disclosure and the principles of the technology applied. It is understood by those skilled in the art that the disclosed scope of the disclosure is not limited to the technical solutions formed by the specific combinations of the technical features described above, and also covers other technical solutions formed by any combinations of the technical features described above or their equivalent features without departing from the disclosed concept. For example, the technical solutions formed by the mutual replacement of the above-described features and the technical features disclosed in the disclosure (but not limited to) having similar functions.

[0098] Furthermore, although the operations have been depicted in a particular order, this should not be understood as requiring the operations to be performed in the particular order shown or in sequential order, and that certain operations can be performed in parallel or in any order. Also, although specific implementation details have been included for the purpose of illustration, these need not be interpreted in a limiting manner. Certain features described in the context of separate embodiments can also be implemented together in a single embodiment. Conversely, various features described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable sub-combination.

[0099] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims

1. A data reporting method, characterized in that, Includes the following steps: Obtain broadcast information sent by a preset coordinator, wherein the broadcast information includes control instructions, control object identifiers, and broadcast type identifiers, wherein the broadcast type identifiers include unicast, multicast, and broadcast reporting types; Determine whether the controlled object identifier matches the local device identifier; If it matches the local device identifier, when the control instruction is a multiple modification instruction for the attribute value of the controlled object, and there are multiple candidate response data corresponding to the control instruction, the candidate response data of the last response time is determined as the target response data. The response time of the target response data is obtained, and a target reporting time is generated based on the response time and the broadcast type identifier. Different broadcast type identifiers correspond to different target reporting times. The target response data is fed back to the coordinator based on the target reporting time.

2. The method as described in claim 1, characterized in that, The step of determining whether the controlled object identifier matches the local device identifier includes: Obtain the identifier type of the controlled object identifier; If the identifier type is a broadcast group identifier type, then obtain the target broadcast group identifier where the local device identifier is located; Determine whether the controlled object identifier matches the target broadcast group identifier.

3. The method as described in claim 2, characterized in that, After obtaining the identifier type of the controlled object identifier, the method further includes: If the identifier type is a device identifier type, then determine whether the controlled object identifier matches the local device identifier.

4. The method as described in claim 1, characterized in that, The step of generating the target reporting time based on the response time and the broadcast type identifier includes: Determine whether the broadcast type identifier belongs to a preset delay identifier; If it belongs to the preset delay identifier, then obtain the target delay duration corresponding to the broadcast type identifier; After determining the response time, the target delay duration is the target reporting time.

5. The method as described in claim 4, characterized in that, If the preset delay identifier is a unicast reporting identifier, then obtaining the target delay duration corresponding to the broadcast type identifier includes: Query the preset database to obtain the target delay duration corresponding to the preset delay identifier.

6. The method as described in claim 4, characterized in that, If the preset delay identifier is a multicast reporting identifier, then obtaining the target delay duration corresponding to the broadcast type identifier includes: Obtain the preset standard delay duration corresponding to the multicast reporting identifier; The target delay duration is generated by calculating the preset standard delay duration and the local device identifier based on the preset random generation algorithm.

7. The method as described in claim 4, characterized in that, If the preset delay identifier is a multicast reporting identifier, then obtaining the target delay duration corresponding to the broadcast type identifier includes: Obtain the preset number identifier of the local device identifier in its network; The preset number identifier is calculated according to a preset random generation algorithm to obtain the target delay duration.

8. A data reporting device, characterized in that, include: The acquisition module is used to acquire broadcast information sent by a preset coordinator, wherein the broadcast information includes control instructions, control object identifiers, and broadcast type identifiers, wherein the broadcast type identifiers include unicast, multicast, and broadcast reporting types; The judgment module is used to determine whether the controlled object identifier matches the local device identifier; The first generation module is used to determine the candidate response data of the last response time as the target response data when the control instruction is a multiple modification instruction of the attribute value of the controlled object, and when there are multiple candidate response data corresponding to the control instruction, when the control instruction matches the local device identifier; The second generation module is used to obtain the response time of the target response data and generate a target reporting time based on the response time and the broadcast type identifier. The target reporting time corresponding to different broadcast type identifiers is different. The feedback module is used to feed back the target response data to the coordinator based on the target reporting time.

9. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store the processor's executable instructions; The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the data reporting method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program for executing the data reporting method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Method for controlling vehicles to enter and exit

    CN103116927A

  • Use of broadcast / multicast for M2m and MTC communications

    CN104704895A

  • Data transmission control method and system of zigbee network

    CN108834110A