CN113825191A - Subscription method and device for equipment information - Google Patents
Subscription method and device for equipment information Download PDFInfo
- Publication number
- CN113825191A CN113825191A CN202110998531.4A CN202110998531A CN113825191A CN 113825191 A CN113825191 A CN 113825191A CN 202110998531 A CN202110998531 A CN 202110998531A CN 113825191 A CN113825191 A CN 113825191A
- Authority
- CN
- China
- Prior art keywords
- time point
- subscription
- reporting
- information
- interval duration
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 230000001960 triggered effect Effects 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 10
- 238000005406 washing Methods 0.000 description 18
- 238000010586 diagram Methods 0.000 description 5
- 238000010411 cooking Methods 0.000 description 3
- 238000010438 heat treatment Methods 0.000 description 3
- 235000014347 soups Nutrition 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 1
- 230000018044 dehydration Effects 0.000 description 1
- 238000006297 dehydration reaction Methods 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0011—Control or signalling for completing the hand-off for data sessions of end-to-end connection
- H04W36/0033—Control or signalling for completing the hand-off for data sessions of end-to-end connection with transfer of context information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/20—Transfer of user or subscriber data
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a subscription method and a device for equipment information, wherein the method comprises the following steps: acquiring reporting indication information sent by a terminal; under the condition that the event or the attribute of the equipment changes, determining a subscription mode of the equipment for reporting subscription information according to the reporting indication information, wherein the subscription information is information generated by the changed event or attribute; under the condition that the subscription mode is event trigger reporting, sending the subscription information to the terminal; and under the condition that the subscription mode is timed reporting, determining a target timed time point, and under the condition that the current time point reaches the target timed time point, sending the subscription information to the terminal. According to the method, the device sends the subscription information to the terminal under the condition that the attribute of the device and the execution event are detected to be changed, so that the user can timely know the changed device information through the received subscription information.
Description
Technical Field
The present invention relates to a device information subscription technology, and in particular, to a device information subscription method and apparatus.
Background
The development of the random Internet of things is gradually increased, and the intelligent household equipment is gradually increased. The user can subscribe the information of the intelligent home in the family through the terminal, and know the running state of the equipment in the family in time, so that the state of the equipment can be adjusted in time.
Currently, a user sets a maximum reporting period and a minimum reporting period for a device through a terminal, so that the device subscribed by the user sends device information to the terminal between the maximum reporting period and the minimum reporting period for the user to look up.
The state or parameters of the device may change, which may cause damage to the device, waste of energy consumption, etc., and thus the changed device information needs to be transmitted to the terminal in time. The maximum reporting period and the minimum reporting period exist in the device, the device reports the device information strictly according to the maximum reporting period and the minimum reporting period, that is, the device needs to send the device to the terminal at a fixed time point, so that the user cannot receive the changed device information in time, and property loss of the user is caused.
Disclosure of Invention
The invention provides a subscription method and a subscription device for equipment information, which are used for solving the problem that a user cannot timely receive changed equipment information.
In one aspect, the present invention provides a method for subscribing to device information, including:
acquiring reporting indication information sent by a terminal;
under the condition that the event or the attribute of the equipment changes, determining a subscription mode of the equipment for reporting subscription information according to the reporting indication information, wherein the subscription information is information generated by the changed event or attribute;
when the subscription mode is event trigger reporting, the subscription information is sent to the terminal;
and under the condition that the subscription mode is timed reporting, determining a target timed time point, and under the condition that the current time point reaches the target timed time point, sending the subscription information to the terminal.
In an embodiment, the step of determining, according to the reporting indication information, a subscription mode for the device to report subscription information includes:
judging whether the reporting indication information comprises indication content or not, wherein the indication content is used for indicating a subscription mode of subscription information;
when the reporting indication information comprises the indication content, determining a subscription mode of the equipment for reporting the subscription information according to the indication content;
and when the reporting indication information does not include the indication content, determining a subscription mode of the subscription information reported by the equipment according to the maximum reporting interval duration and the minimum reporting interval duration included in the reporting indication information.
In an embodiment, the step of determining, according to the maximum reporting interval duration and the minimum reporting interval duration included in the reporting indication information, a subscription mode for the device to report the subscription information includes:
and determining the subscription mode of the subscription information reported by the equipment as event trigger reporting under the condition that the maximum reporting interval duration is less than the minimum reporting interval duration.
In an embodiment, the step of determining, according to the indication content, a subscription mode for the device to report the subscription information includes:
determining a subscription mode of the subscription information reported by the equipment as event trigger reporting under the condition that the indication content indicates the equipment to report according to attributes and/or execution event change time;
and under the condition that the indication content indicates the equipment to report according to the appointed time, determining the subscription mode of the subscription information reported by the equipment as the timed report.
In one embodiment, the step of determining the target timing point in time comprises:
acquiring the maximum reporting interval duration, the minimum reporting interval duration and the historical time point of the last subscription information sending of the equipment;
determining a latest timing time point according to the maximum reporting interval duration and the historical time point, and determining an earliest timing time point according to the minimum reporting interval duration and the historical time point;
comparing the current time point, the latest timing time point and the earliest timing time point;
taking the earliest timing time point as a target timing time point under the condition that the current time point is earlier than the earliest timing time point;
determining the current time point as a target timing time point if the current time point is later than or equal to the earliest timing time point and earlier than the latest timing time point.
In an embodiment, after the step of sending the subscription information to the terminal when the subscription mode is a timed report and the current time point reaches the target timed time point, the method further includes:
acquiring a maximum reporting interval duration and a minimum reporting interval duration;
updating the latest timing time point of the equipment for sending subscription information next time according to the current time point and the maximum reporting interval duration;
and updating the earliest timing time point of the equipment for sending subscription information next time according to the current time point and the minimum reporting interval duration.
In another aspect, the present invention also provides an apparatus comprising:
the acquisition module is used for acquiring the reporting indication information sent by the terminal;
a generating module, configured to determine, according to the reporting indication information, a subscription mode in which the device reports subscription information when an event or an attribute of the device changes, where the subscription information is information generated by the changed event or attribute;
a determining module, configured to send the subscription information to the terminal when the subscription mode is event-triggered reporting;
a sending module, configured to send the subscription information to the terminal when the subscription mode is event-triggered reporting;
the sending module is further configured to determine a target timing time point when the subscription mode is timed reporting, and send the subscription information to the terminal when the current time point reaches the target timing time point.
In another aspect, the present invention also provides an apparatus comprising: a memory and a processor;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored by the memory, causing the processor to perform the method of subscribing to device information as described above.
In another aspect, the present invention also provides a computer-readable storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are executed by a processor to implement the subscription method for device information as described above.
In another aspect, the present invention also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the subscription method for device information as described above.
The subscription method and device for the equipment information provided by the invention are characterized in that when the event or attribute of the equipment changes, the reporting indication information sent by the terminal is obtained, the subscription mode of the equipment for reporting the subscription information is determined according to the reporting indication information, if the subscription mode is event-triggered reporting, the subscription information corresponding to the changed event or attribute is sent to the terminal, and if the subscription mode is timed reporting, the target timing time point is determined, and the subscription information is sent to the terminal when the current time point reaches the target timing time point. In the invention, when the device detects that the attribute of the device and the execution event change and the current subscription mode is that the instant event triggers the report, the subscription information is sent to the terminal, so that the user can timely know the changed device information through the received subscription information, and the user can timely adopt corresponding measures based on the changed attribute and event of the device, thereby avoiding the property loss of the user; if the subscription mode is timed reporting, the equipment sends the subscription information according to the appointed target timing time point, and the running state of the equipment is prevented from being influenced by sending the subscription information.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a system architecture diagram of a method for implementing device information subscription according to the present invention;
fig. 2 is a flowchart illustrating a subscription method for device information according to a first embodiment of the present invention;
fig. 3 is a detailed flowchart of step S20 in the second embodiment of the method for subscribing to device information according to the present invention;
fig. 4 is a flowchart illustrating a third embodiment of a device information subscription method according to the present invention;
FIG. 5 is a functional block diagram of the apparatus of the present invention;
fig. 6 is a schematic diagram of the hardware structure of the apparatus of the present invention.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The invention provides a subscription method of device information, which can be realized by a system architecture diagram shown in figure 1. As shown in fig. 1, the device 100 and the terminal 200 are communicatively connected via a network. The appliance 100 is a household appliance such as a washing machine, a television, an air conditioner, etc. The terminal 200 may be a portable device, such as a mobile phone, a notebook, etc. The user may subscribe to the device information of the device 100 through a subscription request instruction transmitted to the device 100 through the terminal 200. The device information includes the current operation model and operation parameters of the device.
The following describes the technical solutions of the present invention and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Referring to fig. 2, fig. 2 is a first embodiment of a device information subscription method according to the present invention, where the device information subscription method includes the following steps:
and step S10, acquiring the reporting indication information sent by the terminal.
In the present embodiment, the execution subject is a device, and the device is a household device, for example, a washing machine, a television, an air conditioner, an electric cooker, or the like. The user can subscribe to the attributes of the device and events through the terminal. The terminal is a portable terminal of a user, such as a mobile phone, a notebook, etc. The attributes and events of the device may be characterized by target parameters of the device, the target parameters being at least one of operational parameters and status parameters of the device. For example, if the device is an electric cooker and the electric cooker is currently cooking soup, the state parameter is the current time length of cooking the soup by the electric cooker, and the event is the soup cooking. For another example, the device is a washing machine, the washing machine is currently in a dehydration state, the state parameter is a current washing stage of the washing machine and a duration of the current washing stage, and the event is washing of the washing machine. In addition, the device is a lamp, the light of the lamp changes from bright to soft, and the attribute is a color temperature change parameter of the lamp.
After subscribing the device information of the device, the device may obtain its own target parameters in real time or at regular time, where the target parameters are operation parameters and state parameters representing device attributes and events.
The device acquires the target parameter periodically or in real time, so that whether at least one of the attribute of the device and the event is changed or not can be determined through the target parameter. For example, the target parameter is a state parameter of the lamp, and the state parameter characterizes that the current state of the lamp is startup; if the current state of the state parameter representation lamp is closed, the property of the equipment can be determined to be changed. It will be appreciated that a change in a property of a device may be a change from one state of the device to another.
In addition, if the target parameter is an operating parameter, the operating parameter may be compared with a set operating parameter, thereby determining whether the attribute of the device is changed. For example, the operation parameter is the heating power of the electric cooker, and if the heating power is greater than the preset heating power, it may be determined that the target parameter changes, that is, the attribute of the device or the execution event changes. For another example, the target parameter is a washing duration of the washing machine, and if the currently acquired washing duration is smaller than the last acquired washing duration and the last acquired washing duration is smaller than the set washing duration, it may be determined that the washing machine finishes washing in advance, and it may be determined that an event executed by the washing machine changes.
The device then generates subscription information based on the target parameters. The subscription information may be a description of the changed attributes and execution events, or may be directly a target parameter.
Step S20, when the event or attribute of the device changes, determining a subscription mode for the device to report subscription information according to the reporting indication information, where the subscription information is generated by the changed event or attribute.
And the terminal sends reporting indication information to the equipment under the condition of subscribing the information to the equipment, wherein the reporting indication information is used for indicating the subscription mode of the equipment for reporting the subscription information. The mode is timing reporting and instant reporting. The regular reporting refers to that the equipment reports according to the time appointed by the terminal, and the instant reporting refers to that an event triggers the reporting, namely that the equipment generates attribute or the change of the event, and immediately sends the subscription information for representing the equipment attribute and executing the event to the terminal.
The device may determine a subscription mode in which the device reports the subscription information by reporting the indication information. Specifically, the terminal may create a data packet for reporting the indication information, and if the data in the data packet is empty, the subscription mode for the device to report the subscription information is event-triggered reporting. If the data packet includes the reporting interval duration of the device, the subscription mode for the device to report the subscription information is timed reporting. That is, the device analyzes the reporting indication information, and if the reporting indication information includes the reporting interval duration, the subscription mode of the device reporting the subscription information is timed reporting; if the reporting indication information has no reporting interval duration or no content, the subscription mode of the device for reporting subscription information is event-triggered reporting.
And step S30, sending the subscription information to the terminal under the condition that the subscription mode is event-triggered reporting.
And step S40, determining a target timing time point under the condition that the subscription mode is timed report, and sending the subscription information to the terminal under the condition that the current time point reaches the target timing time point.
And the equipment directly sends the subscription information to the terminal under the condition that the subscription mode for reporting the subscription information is determined to be event-triggered reporting. If the subscription mode of the subscription information is the timed reporting, the device needs to determine the target timing time point based on the reporting interval duration in the reporting indication information, so as to send the subscription information to the terminal when the current time point reaches the target timing time point. The device may determine a time point at which the subscription information was last sent, and the time point and the reporting interval duration may determine the target timing time point.
In the technical scheme provided by this embodiment, when an event or an attribute of a device changes, reporting indication information sent by a terminal is acquired, a subscription mode for the device to report subscription information is determined according to the reporting indication information, if the subscription mode is event-triggered reporting, subscription information corresponding to the changed event or attribute is sent to the terminal, and if the subscription mode is timed reporting, a target timing time point is determined, and the subscription information is sent to the terminal when the current time point reaches the target timing time point. In the invention, when the device detects that the attribute of the device and the execution event change and the current subscription mode is that the instant event triggers the report, the subscription information is sent to the terminal, so that the user can timely know the changed device information through the received subscription information, and the user can timely adopt corresponding measures based on the changed attribute and event of the device, thereby avoiding the property loss of the user; if the subscription mode is timed reporting, the equipment sends the subscription information according to the appointed target timing time point, and the running state of the equipment is prevented from being influenced by sending the subscription information.
Referring to fig. 3, fig. 3 is a second embodiment of the subscription method for device information according to the present invention, and based on the first embodiment, step S20 includes:
step S21, determining whether the reporting indication information includes indication content, where the indication content is used to indicate a subscription mode of the subscription information.
In this embodiment, the user may add the indication content to the report indication information through the terminal, so as to indicate a subscription mode of the device for reporting the subscription information through the indication content. In addition, the report indication content further includes a maximum report interval duration and a minimum report interval duration.
After receiving the reporting indication information sent by the terminal, the device judges whether the reporting indication information contains indication content.
Step S22, when the indication information includes the indication content, determining a subscription mode of the device for reporting the subscription information according to the indication content.
After the device analyzes the reporting indication information, if the analyzed reporting indication information includes the indication content, the device may determine a subscription mode of the device for reporting the subscription information based on the indication content. Specifically, if the content indication device is instructed to report according to the attribute change of the device, the execution event of the device, or the attribute and the execution event of the device, it may be determined that the subscription mode in which the device reports the subscription information is event-triggered reporting. If the indication content indicates that the equipment reports according to the appointed time, the subscription mode of the equipment for reporting the subscription information is timed reporting, and the appointed time is the maximum reporting interval duration and the minimum reporting interval duration in the reporting indication information.
The content of the instruction may be the text content exemplified above, or may be a symbol. For example, if the indication content is symbol a, the subscription mode for the device to report the subscription information is a timed report, and if the indication content is not symbol a, the subscription mode for the device to report the subscription information is an event-triggered report.
Step S23, when the reporting instruction information does not include the instruction content, determining a subscription mode of the device for reporting the subscription information according to the maximum reporting interval duration and the minimum reporting interval duration included in the reporting instruction information.
And under the condition that the reporting indication information does not include the indication content, the equipment determines the subscription mode of the equipment for reporting the subscription information according to the maximum reporting interval duration and the minimum reporting interval duration. Specifically, the user may add two reporting interval durations to the reporting indication information, and mark one of the reporting interval durations as a maximum reporting interval duration and the other as a minimum reporting interval duration. After obtaining the maximum reporting interval duration and the minimum reporting interval duration from the reporting indication content, the device compares the maximum reporting interval duration with the minimum reporting interval duration, and if the maximum reporting interval duration is smaller than the minimum reporting interval duration, it can be determined that the user specially sets the maximum reporting interval duration to be smaller than the minimum reporting interval duration, that is, the user indicates the device to trigger event reporting. Of course, if the maximum reporting interval duration is greater than the minimum reporting interval duration, the subscription mode for the device to report the subscription information is a timed reporting.
In the technical scheme provided by this embodiment, the device determines whether the reporting indication information includes indication content, and if the reporting indication information includes the indication content, determines a subscription mode of the device for reporting subscription information according to the indication content; if the subscription mode does not include the indication content, the subscription mode of the device for reporting the subscription information is determined according to the maximum reporting interval duration and the minimum reporting interval duration in the reporting indication information, so that the device can accurately determine the subscription mode of the reporting subscription information.
In one embodiment, the step of determining the target timing point in time comprises:
acquiring the maximum reporting interval duration, the minimum reporting interval duration and the historical time point of the last time of sending subscription information by the equipment;
determining a latest timing time point according to the maximum reporting interval duration and the historical time point, and determining an earliest timing time point according to the minimum reporting interval duration and the historical time point;
comparing the current time point, the latest timing time point and the earliest timing time point;
taking the earliest timing time point as a target timing time point under the condition that the current time point is earlier than the earliest timing time point;
in the case where the current time point is later than or equal to the earliest timing time point and later than the latest timing time point, the current time point is determined as the target timing time point.
In this embodiment, the subscription mode for the device to report the subscription information is a timed report, so that a target timed time point for sending the subscription information needs to be determined. Specifically, the device obtains a maximum reporting interval duration, a minimum reporting interval duration, and a historical time point at which the device last sent the subscription information. The maximum reporting interval duration and the minimum reporting interval duration can be obtained from the reporting indication information.
The device can determine the earliest time point of sending the subscription information based on the historical time point and the minimum reporting interval duration, and the time point is defined as the earliest timing time point. The device can determine the latest time point of sending the subscription information by the historical time point and the maximum reporting interval duration, and the time point is defined as the latest timing time point. The device needs to compare the current time point, the earliest timing time point and the latest timing time point, so as to determine the target timing time point.
If the current time point is later than the earliest timing time point, that is, the interval duration of the subscription information reported by the device does not reach the minimum upper interval duration, and in order to enable the user to know the attribute of the device and the change of the execution event as soon as possible, the device determines the earliest timing time point as the target timing time point.
If the current time point is earlier than or equal to the earliest timing time point and later than the latest timing time point, the current time point is determined as the target timing time point, namely the subscription information is sent to the terminal immediately, so that the user can quickly know the attribute of the equipment and the change of the execution event.
Referring to fig. 4, fig. 4 is a third embodiment of the method for subscribing to device information according to the present invention, and based on the first or second embodiment, after step S40, the method further includes:
step S50, obtaining the maximum reporting interval duration and the minimum reporting interval duration.
And step S60, updating the latest timing time point of the next subscription information sending by the equipment according to the current time point and the maximum reporting interval duration.
And step S70, updating the earliest timing time point of the next subscription information sending by the equipment according to the current time point and the minimum reporting interval duration.
The timed reporting of the device is divided into two cases, one is that the current time point is earlier than the earliest timing time point, and the other is that the current time point is later than or equal to the earliest timing time point and is earlier than the latest timing time point. If the current time point is later than or equal to the earliest timing time point and is earlier than the latest timing time point, the time point of the next subscription information sending of the updating device can be selected, or the time point of the next subscription information sending of the updating device can not be updated.
In the present embodiment, the time point at which the device transmits the subscription information next time needs to be updated when the current time point is later than or equal to the earliest timing time point and earlier than the latest timing time point. Specifically, the device obtains the maximum reporting cycle duration and the minimum reporting interval duration, so as to update the latest timing time point at which the device next sends the subscription information according to the current time point and the maximum reporting interval duration, and update the earliest time point at which the device next sends the subscription information based on the current time point and the minimum reporting interval duration.
In the technical scheme provided in this embodiment, after the device sends the subscription information to the terminal in a timed reporting manner, the device updates the latest timing point at which the device sends the subscription information next time through the maximum reporting interval duration and the current time point, and updates the earliest timing point at which the device sends the subscription information next time through the minimum reporting interval duration and the current time point, so as to shorten the duration at which the device sends the subscription information next time, thereby enabling the user to quickly know the operation state of the device after the attribute and the execution event.
The following briefly describes a method of subscribing to device information according to the present invention.
In the present invention, the method for subscribing to device information can be divided into at least four embodiments, which are specifically as follows:
example 1
The terminal sends reporting indication information to the equipment, wherein the reporting indication information carries indication content, maximum reporting interval duration and minimum reporting interval duration, the indication content is used for indicating the equipment to carry out timing reporting through the maximum reporting interval duration and the minimum reporting interval duration, or the indication content is used for indicating the equipment to carry out reporting when the equipment changes according to the attribute and the execution event of the equipment; and the equipment reports the subscription information based on the indication content.
Example 2
And the terminal sends reporting indication information to the equipment, wherein the reporting indication information at least carries the maximum reporting interval duration and the minimum reporting interval duration. If the maximum reporting interval duration is smaller than the minimum reporting interval, the device reports the subscription information under the condition that the attribute is determined and the execution event is changed.
Example 3
The device reports according to the appointed time (the appointed time is the maximum reporting interval duration and the minimum reporting interval duration). When the device determines that the attribute and the execution event are changed and the current time point is between the latest timing time point and the earliest timing time point, the device immediately reports subscription information, and the device reports the subscription information at the next time according to the appointed time.
Example 4
The device reports according to the appointed time (the appointed time is the maximum reporting interval duration and the minimum reporting interval duration). The device determines that the attribute and the execution event are changed, and the current time point is located between the latest timing time point and the earliest timing time point, the device immediately reports the subscription information, but the device updates the latest timing time point and the earliest timing time point of the next reported subscription information through the maximum reporting interval time length, the minimum reporting interval time length and the current time point.
The present invention also provides an apparatus, and referring to fig. 5, the apparatus 500 comprises:
an obtaining module 501, configured to obtain reporting indication information sent by a terminal;
a determining module 502, configured to determine, according to the reporting indication information, a subscription mode in which the device reports subscription information when the event or the attribute of the device changes, where the subscription information is information generated by the changed event or attribute;
a sending module 503, configured to send the subscription information to the terminal when the mode is event triggered reporting;
a sending module 503, configured to determine a target timing time point when the manner is timed reporting, and send the subscription information to the terminal when the current time point reaches the target timing time point.
In an embodiment, the apparatus 500 further comprises:
the judging module is used for judging whether the reporting indication information comprises indication content or not, and the indication content is used for indicating the subscription mode of the subscription information;
a determining module 502, configured to determine, according to the indication content, a subscription mode of the device for reporting subscription information when the reporting indication information includes the indication content;
a determining module 502, configured to determine, when the reporting indication information does not include the indication content, a subscription mode of the device for reporting the subscription information according to a maximum reporting interval duration and a minimum reporting interval duration included in the reporting indication information.
In an embodiment, the apparatus 500 further comprises:
a determining module 502, configured to determine, when the maximum reporting interval duration is less than the minimum reporting interval duration, a subscription mode for the device to report the subscription information as event-triggered reporting.
In an embodiment, the apparatus 500 further comprises:
a determining module 502, configured to determine, when the content indicating device is instructed to report according to the attribute and/or the execution event change time, a subscription mode in which the device reports subscription information as an event-triggered report;
a determining module 502, configured to determine, when the indication content indicates that the device reports according to the appointed time, a subscription mode of the subscription information reported by the device as a timed report.
In an embodiment, the apparatus 500 further comprises:
an obtaining module 501, configured to obtain a maximum reporting interval duration, a minimum reporting interval duration, and a historical time point when a device last sends subscription information;
a determining module 502, configured to determine a latest timing time point according to the maximum reporting interval duration and the historical time point, and determine an earliest timing time point according to the minimum reporting interval duration and the historical time point;
the comparison module is used for comparing the current time point, the latest timing time point and the earliest timing time point;
a determining module 502, configured to take the earliest timing time point as a target timing time point when the current time point is earlier than the earliest timing time point;
a determining module 502, configured to determine the current time point as the target timing time point if the current time point is later than or equal to the earliest timing time point and is earlier than the latest timing time point.
In an embodiment, the apparatus 500 further comprises:
an obtaining module 501, configured to obtain a maximum reporting interval duration and a minimum reporting interval duration;
the updating module is used for updating the latest timing time point of the next time of sending the subscription information by the equipment according to the current time point and the maximum reporting interval duration;
and the updating module is used for updating the earliest timing time point of the next subscription information sending of the equipment according to the current time point and the minimum reporting interval duration.
FIG. 6 is a block diagram illustrating a device according to an example embodiment.
The apparatus 600 may include: a processor 61, such as a CPU, a memory 62 and a transceiver 63. Those skilled in the art will appreciate that the configuration shown in fig. 6 does not constitute a limitation of the device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. The memory 62 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The processor 61 may call a computer program stored in the memory 62 to complete all or part of the steps of the above-described subscription method for device information.
The transceiver 63 is used for receiving and transmitting information from and to an external device.
A non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor of a device, enable the device to perform the above-mentioned subscription method for device information.
A computer program product comprising a computer program which, when executed by a processor of a device, enables the device to perform the above-mentioned subscription method for device information.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (10)
1. A method for subscribing to device information, comprising:
acquiring reporting indication information sent by a terminal;
under the condition that the event or the attribute of the equipment changes, determining a subscription mode of the equipment for reporting subscription information according to the reporting indication information, wherein the subscription information is information generated by the changed event or attribute;
under the condition that the subscription mode is event trigger reporting, sending the subscription information to the terminal;
and under the condition that the subscription mode is timed reporting, determining a target timed time point, and under the condition that the current time point reaches the target timed time point, sending the subscription information to the terminal.
2. The method for subscribing to device information according to claim 1, wherein the step of determining the subscription mode for the device to report subscription information according to the reporting indication information comprises:
judging whether the reporting indication information comprises indication content or not, wherein the indication content is used for indicating a subscription mode of subscription information;
when the reporting indication information comprises the indication content, determining a subscription mode of the equipment for reporting the subscription information according to the indication content;
and when the reporting indication information does not include the indication content, determining a subscription mode of the subscription information reported by the equipment according to the maximum reporting interval duration and the minimum reporting interval duration included in the reporting indication information.
3. The method for subscribing to device information according to claim 2, wherein the step of determining the subscription mode for the device to report the subscription information according to the maximum reporting interval duration and the minimum reporting interval duration included in the reporting indication information comprises:
and determining the subscription mode of the subscription information reported by the equipment as event trigger reporting under the condition that the maximum reporting interval duration is less than the minimum reporting interval duration.
4. The method for subscribing to device information according to claim 2, wherein the step of determining, according to the indication content, a subscription mode in which the device reports the subscription information includes:
determining a subscription mode of the subscription information reported by the equipment as event trigger reporting under the condition that the indication content indicates the equipment to report according to attributes and/or execution event change time;
and under the condition that the indication content indicates the equipment to report according to the appointed time, determining the subscription mode of the subscription information reported by the equipment as the timed report.
5. The method for subscribing to device information according to any one of claims 1-4, wherein the step of determining the target timing point in time comprises:
acquiring the maximum reporting interval duration, the minimum reporting interval duration and the historical time point of the last subscription information sending of the equipment;
determining a latest timing time point according to the maximum reporting interval duration and the historical time point, and determining an earliest timing time point according to the minimum reporting interval duration and the historical time point;
comparing the current time point, the latest timing time point and the earliest timing time point;
taking the earliest timing time point as a target timing time point under the condition that the current time point is earlier than the earliest timing time point;
determining the current time point as a target timing time point if the current time point is later than or equal to the earliest timing time point and earlier than the latest timing time point.
6. The method for subscribing to device information according to any one of claims 1 to 4, wherein after the step of sending the subscription information to the terminal when the subscription mode is timed reporting and the current time point reaches the target timed time point, the method further comprises:
acquiring a maximum reporting interval duration and a minimum reporting interval duration;
updating the latest timing time point of the equipment for sending subscription information next time according to the current time point and the maximum reporting interval duration;
and updating the earliest timing time point of the equipment for sending subscription information next time according to the current time point and the minimum reporting interval duration.
7. An apparatus, comprising:
the acquisition module is used for acquiring the reporting indication information sent by the terminal;
a generating module, configured to determine, according to the reporting indication information, a subscription mode in which the device reports subscription information when an event or an attribute of the device changes, where the subscription information is information generated by the changed event or attribute;
a determining module, configured to send the subscription information to the terminal when the subscription mode is event-triggered reporting;
a sending module, configured to send the subscription information to the terminal when the subscription mode is event-triggered reporting;
the sending module is further configured to determine a target timing time point when the subscription mode is timed reporting, and send the subscription information to the terminal when the current time point reaches the target timing time point.
8. An apparatus, comprising: a memory and a processor;
the memory stores computer-executable instructions;
the processor executing the computer-executable instructions stored by the memory causes the processor to perform the method of subscribing to device information of any of claims 1-6.
9. A computer-readable storage medium having computer-executable instructions stored therein, which when executed by a processor, are configured to implement the subscription method for device information according to any one of claims 1 to 6.
10. A computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the method of subscribing to device information of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110998531.4A CN113825191B (en) | 2021-08-27 | 2021-08-27 | Subscription method and device for equipment information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110998531.4A CN113825191B (en) | 2021-08-27 | 2021-08-27 | Subscription method and device for equipment information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113825191A true CN113825191A (en) | 2021-12-21 |
CN113825191B CN113825191B (en) | 2023-11-28 |
Family
ID=78923216
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110998531.4A Active CN113825191B (en) | 2021-08-27 | 2021-08-27 | Subscription method and device for equipment information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113825191B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024092379A1 (en) * | 2022-10-31 | 2024-05-10 | Oppo广东移动通信有限公司 | Data transmission method and apparatus, device, and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050083900A1 (en) * | 2002-05-15 | 2005-04-21 | Nokia Corporation | Event based reporting method |
WO2006122466A1 (en) * | 2005-05-17 | 2006-11-23 | Huawei Technologies Co., Ltd. | An implement method for indicating the state of user terminal |
CN101754180A (en) * | 2008-12-03 | 2010-06-23 | 华为终端有限公司 | Subscribing method, subscribing terminal and subscribing system |
CN101998497A (en) * | 2009-08-19 | 2011-03-30 | 中兴通讯股份有限公司 | Method and device for reporting channel state information aperiodically |
CN104168558A (en) * | 2013-05-17 | 2014-11-26 | ***通信集团公司 | User positional information report flow control method and system |
WO2017219754A1 (en) * | 2016-06-24 | 2017-12-28 | 华为技术有限公司 | Position information obtaining method, device and system |
US20180098279A1 (en) * | 2016-10-05 | 2018-04-05 | Qualcomm Incorporated | Systems and methods to enable combined periodic and triggered location of a mobile device |
CN109155726A (en) * | 2018-03-09 | 2019-01-04 | 北京小米移动软件有限公司 | Information transferring method, device, system and storage medium |
-
2021
- 2021-08-27 CN CN202110998531.4A patent/CN113825191B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050083900A1 (en) * | 2002-05-15 | 2005-04-21 | Nokia Corporation | Event based reporting method |
WO2006122466A1 (en) * | 2005-05-17 | 2006-11-23 | Huawei Technologies Co., Ltd. | An implement method for indicating the state of user terminal |
CN101754180A (en) * | 2008-12-03 | 2010-06-23 | 华为终端有限公司 | Subscribing method, subscribing terminal and subscribing system |
CN101998497A (en) * | 2009-08-19 | 2011-03-30 | 中兴通讯股份有限公司 | Method and device for reporting channel state information aperiodically |
US20120195213A1 (en) * | 2009-08-19 | 2012-08-02 | Zte Corporation | Method and Equipment for Reporting Channel State Information Aperiodically |
CN104168558A (en) * | 2013-05-17 | 2014-11-26 | ***通信集团公司 | User positional information report flow control method and system |
WO2017219754A1 (en) * | 2016-06-24 | 2017-12-28 | 华为技术有限公司 | Position information obtaining method, device and system |
US20180098279A1 (en) * | 2016-10-05 | 2018-04-05 | Qualcomm Incorporated | Systems and methods to enable combined periodic and triggered location of a mobile device |
CN109155726A (en) * | 2018-03-09 | 2019-01-04 | 北京小米移动软件有限公司 | Information transferring method, device, system and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024092379A1 (en) * | 2022-10-31 | 2024-05-10 | Oppo广东移动通信有限公司 | Data transmission method and apparatus, device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113825191B (en) | 2023-11-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3896916A1 (en) | Network distribution method for household appliance, household appliance, mobile terminal and storage medium | |
US10949255B2 (en) | Compact schedules for resource-constrained devices | |
CN111031565B (en) | Method and device for identifying off-line state of ZigBee device | |
WO2004095753A2 (en) | A method and apparatus for managing wireless mobile terminals | |
CN112804319B (en) | Intelligent device control method and device, electronic device and computer readable medium | |
CN109600401A (en) | Household electrical appliances upgrade method, client and server | |
CN104780556A (en) | Method and system for accessing domestic appliance to WiFi | |
CN113825191B (en) | Subscription method and device for equipment information | |
CN114938365B (en) | Function module updating method and device, storage medium and electronic device | |
CN108303902B (en) | Equipment control method, medium, equipment and device | |
CN105487387A (en) | Intelligent household control method and device | |
CN109861854A (en) | A kind of intelligent device management method, apparatus and system | |
CN106998501B (en) | Television control method and device | |
CN105373005A (en) | Universal control method, apparatus and system of Internet of things | |
CN112468536A (en) | Method and system for controlling intelligent equipment | |
CN108134720B (en) | Equipment self-adaptive control method and device and server | |
CN108768802B (en) | Equipment information deleting method and device, server and mobile terminal | |
CN112583617A (en) | Fault determination method, server, control terminal and storage medium | |
CN108931923B (en) | Device control method and apparatus, storage medium, and electronic apparatus | |
CN108306798B (en) | Intelligent equipment management method and device | |
CN111831380A (en) | Task execution method and device, storage medium and electronic device | |
CN111464575A (en) | Internet of things communication scheme for packaging monitoring interface to hardware equipment | |
CN112328245A (en) | Page display method, system, electronic equipment and storage medium | |
CN112448870A (en) | Household appliance control method, device and equipment | |
CN112311831B (en) | Distribution network control method, distribution network control device, household appliance and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |