[go: up one dir, main page]

CN112019445A - Method and device for flow control of smart device, smart device - Google Patents

Method and device for flow control of smart device, smart device Download PDF

Info

Publication number
CN112019445A
CN112019445A CN202010762279.2A CN202010762279A CN112019445A CN 112019445 A CN112019445 A CN 112019445A CN 202010762279 A CN202010762279 A CN 202010762279A CN 112019445 A CN112019445 A CN 112019445A
Authority
CN
China
Prior art keywords
data
reported
priority
smart device
reporting
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
Application number
CN202010762279.2A
Other languages
Chinese (zh)
Other versions
CN112019445B (en
Inventor
张澍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202010762279.2A priority Critical patent/CN112019445B/en
Publication of CN112019445A publication Critical patent/CN112019445A/en
Application granted granted Critical
Publication of CN112019445B publication Critical patent/CN112019445B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/20Traffic policing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/62Establishing a time schedule for servicing the requests

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本申请涉及通信技术领域,公开一种用于智能设备流量控制的方法,应用于智能设备侧,包括:生成上报数据;在判断所述上报数据有效时,将所述上报数据写入缓存;当单位时间内的历史上报数量小于所述上报数据的周期额度时,发送缓存内的待上报数据至服务器,并对已上报数据进行计数,以更新所述历史上报数量。本公开实施例中,智能设备在发送待上报数据至服务器之前对数据的有效性进行判断,避免无效数据的发送浪费流量,节约了通信成本,便于服务器根据有效的上报数据动态调整智能设备的限流参数,保证设备在控制其他互联设备或在接受其他互联设备的控制时,能够及时上报数据或进行远程控制。本申请还公开一种用于智能设备流量控制的装置及设备。

Figure 202010762279

The present application relates to the field of communication technologies, and discloses a method for flow control of a smart device, which is applied to a smart device and includes: generating report data; when judging that the report data is valid, writing the report data into a cache; When the number of historical reports per unit time is less than the period quota of the reported data, the data to be reported in the cache is sent to the server, and the reported data is counted to update the number of historical reports. In the embodiment of the present disclosure, the smart device judges the validity of the data before sending the data to be reported to the server, which avoids wasting traffic by sending invalid data, saves communication costs, and facilitates the server to dynamically adjust the limit of the smart device according to the valid reported data. Stream parameters to ensure that the device can report data in time or perform remote control when it controls other interconnected devices or accepts control from other interconnected devices. The present application also discloses an apparatus and device for flow control of smart devices.

Figure 202010762279

Description

用于智能设备流量控制的方法及装置、智能设备Method and device for flow control of smart device, smart device

技术领域technical field

本申请涉及通信技术领域,例如涉及一种用于智能设备流量控制的方法及装置、智能设备。The present application relates to the field of communication technologies, for example, to a method and apparatus for flow control of smart devices, and smart devices.

背景技术Background technique

目前,窄带物联网因其低功耗、连接稳定、成本低、架构优化等特点被广泛应用。现有的低功耗广域网设备在与远程设备互联时,往往设置固定时间间隔进行数据上报,或者使用简单粗暴的低功耗模式,使设备进入睡眠状态。At present, NB-IoT is widely used due to its low power consumption, stable connection, low cost, and optimized architecture. When an existing low-power WAN device is interconnected with a remote device, it often sets a fixed time interval to report data, or uses a simple and rude low-power mode to make the device enter a sleep state.

在实现本公开实施例的过程中,发现相关技术中至少存在如下问题:在根据固定时间间隔进行数据上报时,设备无法对数据有效性进行判断,造成了大量无效的流量被浪费,在考虑低功耗需求时,设备无法及时的上报数据或进行远程控制。In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art: when reporting data according to a fixed time interval, the device cannot judge the validity of the data, causing a large amount of invalid traffic to be wasted. When the power consumption is required, the device cannot report data in time or perform remote control.

发明内容SUMMARY OF THE INVENTION

为了对披露的实施例的一些方面有基本的理解,下面给出了简单的概括。所述概括不是泛泛评述,也不是要确定关键/重要组成元素或描绘这些实施例的保护范围,而是作为后面的详细说明的序言。In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not intended to be an extensive review, nor to identify key/critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

本公开实施例提供了一种用于智能设备流量控制的方法及装置、智能设备,以解决现有技术无法高效及时的上报数据或进行远程控制技术问题。The embodiments of the present disclosure provide a method and device for flow control of smart devices, and smart devices, so as to solve the technical problem that the prior art cannot efficiently and timely report data or perform remote control.

在一些实施例中,所述方法应用于智能设备侧,包括:In some embodiments, the method is applied to the smart device side, including:

生成待上报数据;Generate data to be reported;

在判断所述待上报数据有效时,将所述待上报数据写入缓存;When judging that the data to be reported is valid, write the data to be reported into the cache;

当单位时间内的历史上报数量小于周期额度时,发送缓存内的待上报数据至服务器,并对历史上报数据进行计数,以更新所述历史上报数量。When the number of historical reports per unit time is less than the periodic quota, the data to be reported in the cache is sent to the server, and the historically reported data is counted to update the historically reported number.

在一些实施例中,当缓存中不存在与新生成的待上报数据相同的数据时,判断所述新生成的待上报数据有效。In some embodiments, when the same data as the newly generated data to be reported does not exist in the cache, it is determined that the newly generated data to be reported is valid.

在一些实施例中,对历史上报数据进行计数,包括:In some embodiments, counting historically reported data includes:

确定历史上报数据的优先级;Determine the priority of historically reported data;

根据所述优先级对历史上报数据进行计数。The historically reported data is counted according to the priority.

在一些实施例中,所述历史上报数据包括状态汇报帧数据和报警帧数据;所述报警帧数据的优先级高于所述状态汇报帧数据。In some embodiments, the historical report data includes status report frame data and alarm frame data; the alarm frame data has a higher priority than the status report frame data.

在一些实施例中,根据所述优先级对历史上报数据进行计数,包括:In some embodiments, the historical reporting data is counted according to the priority, including:

当历史上报数据为状态汇报帧数据时,所述状态汇报帧数据对应的优先级计数增加;When the historical report data is status report frame data, the priority count corresponding to the status report frame data is increased;

当历史上报数据为报警帧数据时,作为最高优先级的状态汇报帧数据进行计数。When the historical report data is the alarm frame data, it is counted as the status report frame data with the highest priority.

在一些实施例中,发送缓存内的待上报数据至服务器,包括:In some embodiments, sending the data to be reported in the cache to the server includes:

缓存中存在两条或两条以上的待上报数据时,根据优先级发送所述待上报数据。When there are two or more pieces of data to be reported in the cache, the data to be reported is sent according to the priority.

在一些实施例中,所述方法还包括:In some embodiments, the method further includes:

当单位时间内的历史上报数量等于周期额度时,在下个上报周期时进行上报。When the number of historical reports per unit time is equal to the period quota, the report will be carried out in the next reporting period.

在一些实施例中,所述方法应用于服务器侧,包括:In some embodiments, the method is applied to the server side, including:

接收智能设备发送的上报数据,并记录所述上报数据的上报数量;Receive the reported data sent by the smart device, and record the reported quantity of the reported data;

根据设定时间内的所述上报数量调整周期额度,并反馈调整后的周期额度至所述智能设备。The periodic quota is adjusted according to the reported quantity within the set time period, and the adjusted periodic quota is fed back to the smart device.

在一些实施例中,根据设定时间内接收到的上报数量调整周期额度,包括:In some embodiments, the periodic quota is adjusted according to the number of reports received within a set time, including:

确定设定时间内各优先级的独立上报数量;Determine the number of independent reports for each priority within the set time;

根据所述独立上报数量调整对应优先级的周期额度。The periodic quota corresponding to the priority is adjusted according to the number of independent reports.

在一些实施例中,根据所述独立上报数量调整对应优先级的周期额度,包括:In some embodiments, adjusting the period quota corresponding to the priority according to the number of independent reports includes:

获取调整前的周期额度和调整后的周期额度的计算关系;Obtain the calculation relationship between the period quota before adjustment and the period quota after adjustment;

根据所述独立上报数量、调整前的周期额度和所述计算关系确定调整后的周期额度。The adjusted period quota is determined according to the independently reported quantity, the period quota before adjustment, and the calculation relationship.

在一些实施例中,在调整周期额度前,还包括:In some embodiments, before adjusting the period quota, the method further includes:

获取所述智能设备的设备信息;obtain device information of the smart device;

根据所述设备信息确定上报数据的优先级。The priority of reporting data is determined according to the device information.

在一些实施例中,所述上报数据包括状态汇报帧数据和报警帧数据;所述报警帧数据的优先级高于所述状态汇报帧数据。In some embodiments, the report data includes status report frame data and alarm frame data; the alarm frame data has a higher priority than the status report frame data.

在一些实施例中,记录所述上报数据的上报数量,包括:In some embodiments, recording the reported quantity of the reported data includes:

当所述上报数据为状态汇报帧数据时,所述状态汇报帧数据对应的优先级上报数量增加;When the reported data is status report frame data, the number of priority reports corresponding to the status report frame data is increased;

当所述上报数据为报警帧数据时,作为最高优先级的状态汇报帧数据进行计数。When the reported data is alarm frame data, it is counted as the status report frame data with the highest priority.

在一些实施例中,所述方法还包括:In some embodiments, the method further includes:

根据设定时间内接收到的上报数量调整心跳周期。Adjust the heartbeat period according to the number of reports received within the set time.

在一些实施例中,所述装置包括处理器和存储有程序指令的存储器,应用于智能设备侧,所述处理器被配置为在执行所述程序指令时,执行应用于智能设备侧的方法。In some embodiments, the apparatus includes a processor and a memory storing program instructions, applied to the smart device side, the processor is configured to execute the method applied to the smart device side when executing the program instructions.

在一些实施例中,所述装置包括处理器和存储有程序指令的存储器,应用于服务器侧,所述处理器被配置为在执行所述程序指令时,执行应用于服务器侧的方法。In some embodiments, the apparatus includes a processor and a memory storing program instructions, applied to the server side, the processor is configured to execute the method applied to the server side when executing the program instructions.

本公开实施例提供的用于智能设备流量控制的方法及装置、智能设备,可以实现以下技术效果:The method and device for flow control of a smart device, and the smart device provided by the embodiments of the present disclosure can achieve the following technical effects:

智能设备在发送待上报数据至服务器之前对数据的有效性进行判断,避免无效数据的发送浪费流量,节约了通信成本,便于服务器根据有效的上报数据动态调整智能设备的限流参数,保证设备在控制其他互联设备或在接受其他互联设备的控制时,能够及时上报数据或进行远程控制。The smart device judges the validity of the data before sending the data to be reported to the server, which avoids wasting traffic by sending invalid data, saves communication costs, and facilitates the server to dynamically adjust the current limiting parameters of the smart device according to the valid reported data, ensuring that the device is in When controlling other interconnected devices or accepting the control of other interconnected devices, it can report data in time or perform remote control.

以上的总体描述和下文中的描述仅是示例性和解释性的,不用于限制本申请。The foregoing general description and the following description are exemplary and explanatory only and are not intended to limit the application.

附图说明Description of drawings

一个或多个实施例通过与之对应的附图进行示例性说明,这些示例性说明和附图并不构成对实施例的限定,附图中具有相同参考数字标号的元件示为类似的元件,附图不构成比例限制,并且其中:One or more embodiments are exemplified by the accompanying drawings, which are not intended to limit the embodiments, and elements with the same reference numerals in the drawings are shown as similar elements, The drawings do not constitute a limitation of scale, and in which:

图1是本公开实施例提供的一种用于智能设备流量控制的方法的流程示意图;1 is a schematic flowchart of a method for flow control of a smart device provided by an embodiment of the present disclosure;

图2是本公开实施例提供的另一种用于智能设备流量控制的方法的流程示意图;2 is a schematic flowchart of another method for smart device flow control provided by an embodiment of the present disclosure;

图3是本公开实施例提供的一种用于智能设备流量控制的装置的结构示意图。FIG. 3 is a schematic structural diagram of an apparatus for flow control of a smart device provided by an embodiment of the present disclosure.

具体实施方式Detailed ways

为了能够更加详尽地了解本公开实施例的特点与技术内容,下面结合附图对本公开实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本公开实施例。在以下的技术描述中,为方便解释起见,通过多个细节以提供对所披露实施例的充分理解。然而,在没有这些细节的情况下,一个或多个实施例仍然可以实施。在其它情况下,为简化附图,熟知的结构和装置可以简化展示。In order to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings, which are for reference only and are not intended to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, numerous details are provided to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown simplified in order to simplify the drawings.

本公开实施例的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开实施例的实施例。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含。The terms "first", "second" and the like in the description and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data so used may be interchanged under appropriate circumstances for the purposes of implementing the embodiments of the disclosure described herein. Furthermore, the terms "comprising" and "having", and any variations thereof, are intended to cover non-exclusive inclusion.

除非另有说明,术语“多个”表示两个或两个以上。Unless stated otherwise, the term "plurality" means two or more.

本公开实施例中,字符“/”表示前后对象是一种“或”的关系。例如,A/B表示:A或B。In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an "or" relationship. For example, A/B means: A or B.

术语“和/或”是一种描述对象的关联关系,表示可以存在三种关系。例如,A和/或B,表示:A或B,或,A和B这三种关系。The term "and/or" is an associative relationship describing objects, indicating that three relationships can exist. For example, A and/or B, means: A or B, or, A and B three relationships.

图1是本公开实施例提供的一种用于智能设备流量控制的方法的流程示意图,应用于智能设备侧,该方法包括如下步骤:1 is a schematic flowchart of a method for smart device traffic control provided by an embodiment of the present disclosure, applied to the smart device side, and the method includes the following steps:

S101,生成待上报数据。S101, generating data to be reported.

其中,智能设备根据用户的需求生成待上报数据。为避免智能设备上报的数据过多降低通信或控制效率,用户可以设置智能设备的上报信息包含的信息类型。另外,根据设备类型的不同,上报数据的类型也不相同。例如:用户设置空调器上报室内温度信息、室外温度信息和设定温度信息,无需上报风速信息;设置冰箱上报设定温度信息,无需上报室内温度信息。The smart device generates the data to be reported according to the user's needs. In order to avoid too much data reported by the smart device and reduce the communication or control efficiency, the user can set the type of information contained in the report information of the smart device. In addition, the types of reported data are also different according to different device types. For example, if the user sets the air conditioner to report the indoor temperature information, the outdoor temperature information and the set temperature information, there is no need to report the wind speed information; if the user sets the refrigerator to report the set temperature information, there is no need to report the indoor temperature information.

S102,在判断待上报数据有效时,将待上报数据写入缓存。S102, when it is determined that the data to be reported is valid, write the data to be reported into the cache.

在不同实施例中,判断待上报数据有效的方式有多种。In different embodiments, there are various ways to determine that the data to be reported is valid.

在一些实施例中,根据用户的设定的上报规则进行待上报数据有效性的判断。In some embodiments, the validity of the data to be reported is judged according to a reporting rule set by the user.

智能设备中针对不同的组件会定时生成上报信息,以便于服务器对智能设备的状态进行监控和记录,而对于组件过多的智能设备,上报数据数量过大会占用网络资源,降低控制效率及用户体验。为避免大量上报数据降低用户体验,用户可以通过设定上报规则以减少上报的数据量,当智能设备生成的上报信息为用户设定的上报规则中禁止的类型,则判断为无效,当智能设备生成的上报信息为用户设定的上报规则中允许上报的类型,则判断为有效。For different components in the smart device, report information will be generated regularly, so that the server can monitor and record the status of the smart device. For smart devices with too many components, the amount of reported data will take up network resources and reduce control efficiency and user experience. . In order to avoid a large amount of reported data and reduce the user experience, users can reduce the amount of reported data by setting reporting rules. When the reporting information generated by the smart device is of a type prohibited by the reporting rules set by the user, it is judged to be invalid. If the generated report information is the type allowed to be reported in the report rule set by the user, it is judged to be valid.

在一些实施例中,当智能设备的缓存数据中不存在与待上报数据相同的数据时,判断待上报数据有效。In some embodiments, when no data identical to the data to be reported exists in the cached data of the smart device, it is determined that the data to be reported is valid.

智能设备为避免同时发送多条信息时导致网络拥挤,将生成的待上报数据先存入缓存中,待依次发送至服务器。而在网络质量不佳的情况下或上报信息生成速度过快时,缓存中的信息量会逐渐增大,缓存压力逐渐增大。当缓存中不存在与新生成的待上报数据相同的数据时,判断待上报数据有效,进行缓存并作为待上报数据等待上报,便于服务器记录或发送给用户,当缓存中存在与新生成的待上报数据相同的数据时,判断新生成的待上报数据无效,不进行缓存及上报,减小缓存压力避免网络拥堵。In order to avoid network congestion when sending multiple pieces of information at the same time, the smart device stores the generated data to be reported in the cache first, and then sends it to the server in sequence. In the case of poor network quality or too fast generation of reported information, the amount of information in the cache will gradually increase, and the cache pressure will gradually increase. When there is no data in the cache that is the same as the newly generated data to be reported, it is judged that the data to be reported is valid, cached and waited for reporting as the data to be reported, which is convenient for the server to record or send to the user. When reporting data with the same data, it is judged that the newly generated data to be reported is invalid, and no caching and reporting are performed to reduce the cache pressure and avoid network congestion.

S103,当单位时间内的历史上报数量小于周期额度时,发送到待上报数据至服务器,并对历史上报数据进行计数,以更新所述历史上报数量。S103, when the historically reported quantity per unit time is less than the period quota, send the data to be reported to the server, and count the historically reported data to update the historically reported quantity.

在不同实施例中,对历史上报数据进行计数的方式有多种。In different embodiments, there are various ways of counting the historically reported data.

在一些实施例中,智能设备的上报数据类型少或仅有一种,或者网络质量良好智能设备对于数据上报的效率或控制效率的要求较低时,对于历史上报数据进行统一计数。In some embodiments, when there are few or only one data type reported by the smart device, or when the smart device with good network quality has low requirements for data reporting efficiency or control efficiency, the historically reported data is counted uniformly.

在一些实施例中,步骤S103中对历史上报数据进行计数,包括:确定历史上报数据的优先级;根据优先级对历史上报数据进行计数。基于优先级对历史上报数据进行独立计数,使用户及时获取到紧急信息或用户关注度高的信息。In some embodiments, counting the historically reported data in step S103 includes: determining the priority of the historically reported data; and counting the historically reported data according to the priority. Based on the priority, the historically reported data is independently counted, so that users can obtain urgent information or information that is highly concerned by users in a timely manner.

在一些实施例中,历史上报数据包括状态汇报帧数据和报警帧数据;报警帧数据的优先级高于状态汇报帧数据。In some embodiments, the historical report data includes status report frame data and alarm frame data; the alarm frame data has a higher priority than the status report frame data.

在一些实施例中,状态汇报帧数据包括:关注信息数据和设备组件数据。其中,关注信息数据为用户关心的设备状态类数据;设备组件数据为系统组件如传感器、电源、主板等的信息,用于售后维护或统计。In some embodiments, the status report frame data includes information of interest data and device component data. Among them, the concerned information data is the device status data that the user cares about; the device component data is the information of system components such as sensors, power supplies, motherboards, etc., which are used for after-sales maintenance or statistics.

在一些实施例中,关注信息数据的优先级高于设备组件数据的优先级。在一些实施例中,设备组件数据的优先级高于关注信息数据的优先级。In some embodiments, informational data of interest is prioritized over device component data. In some embodiments, device component data has a higher priority than information-of-interest data.

可选的,优先级可以由用户进行设定。Optionally, the priority can be set by the user.

在一些实施例中,在判断状态汇报帧数据的类型时,解析待上报数据以确定设定帧字符对应的参数类型或者根据设定帧字节数确定对应的类型。In some embodiments, when judging the type of the status report frame data, the data to be reported is parsed to determine the parameter type corresponding to the set frame character or the corresponding type is determined according to the set frame byte number.

在一些实施例中,根据优先级对历史上报数据进行计数,包括:当历史上报数据为状态汇报帧数据时,状态汇报帧数据对应的优先级计数增加;当历史上报数据为报警帧数据时,作为最高优先级的状态汇报帧数据进行计数。In some embodiments, counting the historically reported data according to the priority includes: when the historically reported data is the status report frame data, the priority count corresponding to the status report frame data is increased; when the historically reported data is the alarm frame data, Counted as the highest priority status report frame data.

如下以一具体实施例说明。以状态汇报帧数据包括:传感器状态汇报数据、电源状态汇报数据和主板状态汇报数据。其中,主板状态汇报数据优先级为一级,电源状态汇报数据优先级为二级,传感器状态汇报数据优先级为三级。主板状态汇报数据优先级高于,电源状态汇报数据优先级高于传感器状态汇报数据。A specific example is described below. The frame data reported by the status includes: sensor status report data, power status report data and mainboard status report data. Among them, the priority of the mainboard status report data is the first level, the power status report data priority is the second level, and the sensor status report data priority is the third level. The motherboard status report data has a higher priority, and the power status report data has a higher priority than the sensor status report data.

当新增的历史上报数据为传感器状态汇报数据时,则对应优先级三级的历史上报数量加1;当新增的历史上报数据为电源状态汇报数据时,则对应优先级二级的历史上报数量加1;当新增的历史上报数据为主板状态汇报数据时,则对应优先级一级的历史上报数量加1;当新增的历史上报数据为报警帧数据时,作为最高优先级的状态汇报帧数据进行计数,即优先级一级的历史上报数量加1。When the newly added historical report data is the sensor status report data, the number of historical reports corresponding to the third priority level is increased by 1; when the newly added historical report data is the power status report data, it corresponds to the historical report data of the second priority level. The number is incremented by 1; when the newly-added historically reported data is the motherboard status report data, the corresponding priority-level historically-reported quantity is incremented by 1; when the newly-added historically reported data is the alarm frame data, it is regarded as the status with the highest priority The report frame data is counted, that is, the number of historical reports at the priority level is increased by 1.

其中,报警帧数据用于特殊情况的提醒,对于正常运行的智能设备,报警帧数据的发送次数有限,将报警帧数据作为最高优先级的状态汇报帧数据进行计数,可以降低用于智能设备流量控制的方法复杂度,提高对于智能设备的限流参数调整的效率及对于智能设备的控制效率,改善用户体验。Among them, the alarm frame data is used to remind special situations. For the normal operation of smart devices, the number of alarm frame data is limited, and the alarm frame data is counted as the highest priority status report frame data, which can reduce the traffic used for smart devices. The complexity of the control method improves the efficiency of adjusting the current limiting parameters of the smart device and the control efficiency of the smart device, and improves the user experience.

在一些实施例中,对限流参数的调整包括用户设置和自动修正两种方式。当历史上报数据为报警帧数据时,作为最高优先级的状态汇报帧数据进行计数,能够简化对于限流参数的设置复杂度,便于用户对限流参数的调整,提升用户体验。In some embodiments, the adjustment of the current limiting parameter includes two ways: user setting and automatic correction. When the historical report data is the alarm frame data, it is counted as the status report frame data with the highest priority, which can simplify the setting complexity of the current limiting parameters, facilitate the user to adjust the current limiting parameters, and improve the user experience.

在一些实施例中,步骤S103中发送缓存内的待上报数据至服务器,包括:缓存中存在两条或两条以上的待上报数据时,根据优先级发送待上报数据。根据优先级上报数据可以让用户及时获取到重要信息或用户所关注的信息,以保证用户能够根据收到的信息及时对智能设备进行处理。例如:报警帧数据的优先级高于状态汇报帧数据,当缓存中包括一条状态汇报帧数据和一条报警帧数据时,优先发送报警帧数据;当缓存中包括两条状态汇报帧数据时,优先发送关注信息数据;当存在两条相同优先级的数据时,按照时间顺序,优先发送在前生成的数据。In some embodiments, sending the data to be reported in the cache to the server in step S103 includes: when there are two or more data to be reported in the cache, sending the data to be reported according to the priority. Reporting data according to priority allows users to obtain important information or information that users care about in a timely manner, so as to ensure that users can process smart devices in a timely manner according to the received information. For example, the priority of the alarm frame data is higher than that of the status report frame data. When the cache includes one status report frame data and one alarm frame data, the alarm frame data is sent first; when the cache includes two status report frame data, the priority is given. Send concerned information data; when there are two pieces of data with the same priority, the data generated earlier will be sent first in chronological order.

在一些实施例中,该方法还包括:当单位时间内的历史上报数量等于周期额度时,在下个上报周期时进行上报。In some embodiments, the method further includes: when the historical reporting quantity per unit time is equal to the period quota, reporting in the next reporting period.

其中,周期额度用于限定上报数量,避免服务器处理能力有限,接收到过多上报数据时,无法有效进行处理。可选的,单位时间为1分钟、5分钟、10分钟、30分钟、1小时、3小时、6小时、12小时或1天。智能设备在一个周期结束后重新开始计数。例如:单位时间为1小时,周期额度为60,当本周期内历史上报数量为59时,则将待上报数据发送至服务器;当本周期内历史上报数量已经达到60时,则将缓存待上报数据,待周期结束后再发送至服务器。Among them, the periodic quota is used to limit the number of reports, so as to avoid the limited processing capacity of the server, and when too much reported data is received, it cannot be effectively processed. Optionally, the unit time is 1 minute, 5 minutes, 10 minutes, 30 minutes, 1 hour, 3 hours, 6 hours, 12 hours or 1 day. The smart device restarts counting after a cycle ends. For example: the unit time is 1 hour and the period quota is 60. When the number of historical reports in this period is 59, the data to be reported will be sent to the server; when the number of historical reports in this period has reached 60, the buffer will be cached to be reported. The data is sent to the server after the period ends.

本公开实施例中,智能设备在发送待上报数据至服务器之前对数据的有效性进行判断,避免无效数据的发送浪费流量,节约了通信成本,便于服务器根据有效的上报数据动态调整智能设备的限流参数,保证设备在控制其他互联设备或在接受其他互联设备的控制时,能够及时上报数据或进行远程控制。In the embodiment of the present disclosure, the smart device judges the validity of the data before sending the data to be reported to the server, which avoids wasting traffic by sending invalid data, saves communication costs, and facilitates the server to dynamically adjust the limit of the smart device according to the valid reported data. Stream parameters to ensure that the device can report data in time or perform remote control when it controls other interconnected devices or accepts control from other interconnected devices.

图2是本公开实施例提供的另一种用于智能设备流量控制的方法的流程示意图,应用于服务器侧,该方法包括如下步骤:2 is a schematic flowchart of another method for smart device traffic control provided by an embodiment of the present disclosure, applied to the server side, and the method includes the following steps:

S201,接收智能设备发送的上报数据,并记录历史上报数据的上报数量。S201: Receive the report data sent by the smart device, and record the reported quantity of the historical report data.

服务器的处理能力有限,为避免收到过多的消息导致反馈不及时,在接收智能设备发送的上报数据后,及时记录历史上报数据的上报数量,以便于后续对智能设备上报数据的周期额度进行调整。The processing capacity of the server is limited. In order to avoid untimely feedback due to receiving too many messages, after receiving the report data sent by the smart device, the report quantity of the historical report data will be recorded in time, so as to facilitate the follow-up of the periodic quota of the data reported by the smart device. Adjustment.

S202,根据设定时间内的上报数量调整周期额度,并反馈调整后的周期额度至智能设备。S202, adjust the periodic quota according to the reported quantity within the set time, and feed back the adjusted periodic quota to the smart device.

在一些实施例中,步骤S202中根据设定时间内接收到的上报数量调整周期额度,包括:确定设定时间内各优先级的独立上报数量;根据独立上报数量调整对应优先级的周期额度。针对不同优先级设定对应的周期额度,避免限定单一上报数量时,智能设备优先发送较高优先级的上报数据导致服务器无法及时获取到较低优先级的上报数据,能够增加服务器获取智能设备信息的类型,以全面的记录智能设备状态。In some embodiments, adjusting the periodic quota according to the number of reports received within the set time in step S202 includes: determining the number of independent reports for each priority within the set time; and adjusting the periodic quota corresponding to the priority according to the number of independent reports. Set corresponding periodic quotas for different priorities to avoid that when the number of single reports is limited, the smart device preferentially sends the report data of higher priority, so that the server cannot obtain the report data of lower priority in time, which can increase the server's acquisition of smart device information type to comprehensively record the status of smart devices.

在一些实施例中,根据独立上报数量调整对应优先级的周期额度,包括:获取调整前的周期额度和调整后的周期额度的计算关系;根据所述独立上报数量、调整前的周期额度和所述计算关系确定调整后的周期额度。基于优先级调整周期额度,使用户及时获取到紧急信息或用户关注度高的信息。In some embodiments, adjusting the period quota corresponding to the priority according to the number of independent reports includes: obtaining a calculation relationship between the period quota before adjustment and the period quota after adjustment; The above calculation relationship determines the adjusted period quota. The periodic quota is adjusted based on the priority, so that users can obtain urgent information or information that is highly concerned by users in a timely manner.

在一些实施例中,周期额度的计算关系如下:In some embodiments, the calculation relationship of the period quota is as follows:

Figure BDA0002613407780000081
Figure BDA0002613407780000081

其中,Pt为调整后的周期额度;Tp为调整前的周期额度;Up为独立上报数量;t为单位时间;Qv为设定时间内上报数据量因子。可选的,Qv的取值范围为0.5~1.5。可选的,Qv的值为0.5、1或1.5。Among them, P t is the period quota after adjustment; Tp is the period quota before adjustment; Up is the number of independent reports; t is the unit time; Q v is the amount of data reported within the set time factor. Optionally, the value of Q v ranges from 0.5 to 1.5. Optionally, the value of Q v is 0.5, 1 or 1.5.

在一些实施例中,Qv的值根据上报数据优先级确定。在一些实施例中,Qv的值根据各优先级的独立上报数量确定。调整Qv的值以动态调整周期额度,使用户及时获取到紧急信息或用户关注度高的信息。In some embodiments, the value of Q v is determined according to the reporting data priority. In some embodiments, the value of Q v is determined according to the number of independent reports for each priority. The value of Q v is adjusted to dynamically adjust the periodic quota, so that users can obtain urgent information or information that is highly concerned by users in time.

在一些实施例中,智能设备的上报数据类型少,或者智能设备对于数据上报的效率或控制效率的要求较低,则对于限流参数进行调整过程中仅对系统设置统一的限流参数。In some embodiments, there are few data types reported by the smart device, or the smart device has low requirements for data reporting efficiency or control efficiency, and only a unified current limiting parameter is set for the system during the adjustment of the current limiting parameter.

在一些实施例中,在步骤S202调整周期额度前,还包括:获取智能设备的设备信息;根据设备信息确定上报数据的优先级。其中,上报数据中的状态汇报帧数据包括:关注信息数据和设备组件数据,关注信息数据和设备组件数据为不同的优先级。实际应用过程中,智能设备的种类有很多,根据智能设备类型的不同,包含的组件会有所不同,另外,针对相同类型的智能设备,不同用户关心的设备状态类数据也会有所不同,因此,根据智能设备的设备信息确定上报数据的优先级,可以具有针对性的调整上报数据的周期额度,提高有效信息的上报效率。In some embodiments, before adjusting the period quota in step S202, the method further includes: acquiring device information of the smart device; and determining the priority of reporting data according to the device information. The status report frame data in the reported data includes: attention information data and device component data, and attention information data and device component data have different priorities. In the actual application process, there are many types of smart devices. Depending on the type of smart device, the components included will be different. In addition, for the same type of smart device, the device status data that different users care about will also be different. Therefore, by determining the priority of the reported data according to the device information of the smart device, the periodic quota of the reported data can be adjusted in a targeted manner, and the reporting efficiency of the effective information can be improved.

在一些实施例中,上报数据包括状态汇报帧数据和报警帧数据;报警帧数据的优先级高于状态汇报帧数据。In some embodiments, the report data includes status report frame data and alarm frame data; the alarm frame data has a higher priority than the status report frame data.

在一些实施例中,记录上报数据的上报数量,包括:当上报数据为状态汇报帧数据时,状态汇报帧数据对应的优先级上报数量增加;当上报数据为报警帧数据时,作为最高优先级的状态汇报帧数据进行计数。In some embodiments, recording the reported number of reported data includes: when the reported data is status report frame data, the number of priority reports corresponding to the status report frame data is increased; when the reported data is alarm frame data, as the highest priority The status report frame data is counted.

其中,报警帧数据用于特殊情况的提醒,对于正常运行的智能设备,报警帧数据的发送次数有限,将报警帧数据作为最高优先级的状态汇报帧数据进行计数,可以降低用于智能设备流量控制的方法复杂度,提高对于智能设备的限流参数调整的效率及对于智能设备的控制效率,改善用户体验。Among them, the alarm frame data is used to remind special situations. For the normal operation of smart devices, the number of alarm frame data is limited, and the alarm frame data is counted as the highest priority status report frame data, which can reduce the traffic used for smart devices. The complexity of the control method improves the efficiency of adjusting the current limiting parameters of the smart device and the control efficiency of the smart device, and improves the user experience.

在一些实施例中,对限流参数的调整包括用户设置和自动修正两种方式。当上报数据为报警帧数据时,作为最高优先级的状态汇报帧数据进行计数,能够简化对于限流参数的设置复杂度,便于用户对限流参数的调整,提升用户体验。In some embodiments, the adjustment of the current limiting parameter includes two ways: user setting and automatic correction. When the reported data is the alarm frame data, it is counted as the status report frame data with the highest priority, which can simplify the setting complexity of the current limiting parameters, facilitate the user to adjust the current limiting parameters, and improve the user experience.

在一些实施例中,该方法还包括:根据设定时间内接收到的上报数量调整心跳周期。通过心跳周期的调整,在保证智能设备和服务器处于连接状态同时,避免造成网络拥塞。In some embodiments, the method further includes: adjusting the heartbeat period according to the number of reports received within a set time. Through the adjustment of the heartbeat cycle, the network congestion can be avoided while ensuring that the smart device and the server are connected.

在一些实施例中,上报数量、设定时间与心跳周期的关系如下:In some embodiments, the relationship between the number of reports, the set time and the heartbeat period is as follows:

Figure BDA0002613407780000091
Figure BDA0002613407780000091

其中,Sup为设定时间内接收到的上报数量;ts为设定时间;T为心跳周期。ts的单位为秒。其中,Sup为设定时间内接收到的所有优先级上报数据的上报数量。Among them, S up is the number of reports received within the set time; t s is the set time; T is the heartbeat cycle. The unit of t s is seconds. Wherein, S up is the reported quantity of all priority reporting data received within the set time.

本公开实施例中,智能设备在发送待上报数据至服务器之前对数据的有效性进行判断,避免无效数据的发送浪费流量,节约了通信成本,便于服务器根据有效的上报数据动态调整智能设备的限流参数,保证设备在控制其他互联设备或在接受其他互联设备的控制时,能够及时上报数据或进行远程控制。In the embodiment of the present disclosure, the smart device judges the validity of the data before sending the data to be reported to the server, which avoids wasting traffic by sending invalid data, saves communication costs, and facilitates the server to dynamically adjust the limit of the smart device according to the valid reported data. Stream parameters to ensure that the device can report data in time or perform remote control when it controls other interconnected devices or accepts control from other interconnected devices.

本公开实施例还提供了一种用于智能设备流量控制的装置,包括处理器和存储有程序指令的存储器,应用于智能设备侧,处理器被配置为在执行程序指令时,执行前述用于智能设备流量控制的方法。An embodiment of the present disclosure further provides an apparatus for flow control of a smart device, which includes a processor and a memory storing program instructions, and is applied to the smart device side. The processor is configured to, when executing the program instructions, execute the foregoing for A method for smart device flow control.

本公开实施例还提供了一种用于智能设备流量控制的装置,包括处理器和存储有程序指令的存储器,应用于服务器侧,处理器被配置为在执行程序指令时,执行前述用于智能设备流量控制的方法。Embodiments of the present disclosure further provide an apparatus for flow control of smart devices, which includes a processor and a memory storing program instructions, and is applied to the server side. A method for device flow control.

结合图3所示,本公开实施例提供一种用于智能设备流量控制的装置,包括处理器(processor)300和存储器(memory)301。可选地,该装置还可以包括通信接口(Communication Interface)302和总线303。其中,处理器300、通信接口302、存储器301可以通过总线303完成相互间的通信。通信接口302可以用于信息传输。处理器300可以调用存储器301中的逻辑指令,以执行上述实施例的用于智能设备流量控制的方法。With reference to FIG. 3 , an embodiment of the present disclosure provides an apparatus for flow control of a smart device, including a processor (processor) 300 and a memory (memory) 301 . Optionally, the apparatus may further include a communication interface (Communication Interface) 302 and a bus 303 . The processor 300 , the communication interface 302 , and the memory 301 can communicate with each other through the bus 303 . Communication interface 302 may be used for information transfer. The processor 300 may invoke the logic instructions in the memory 301 to execute the method for smart device flow control in the above-mentioned embodiments.

此外,上述的存储器301中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。In addition, the above-mentioned logic instructions in the memory 301 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.

存储器301作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序,如本公开实施例中的方法对应的程序指令/模块。处理器300通过运行存储在存储器301中的程序指令/模块,从而执行功能应用以及数据处理,即实现上述实施例中用于智能设备流量控制的方法。As a computer-readable storage medium, the memory 301 can be used to store software programs and computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 300 executes the function application and data processing by executing the program instructions/modules stored in the memory 301 , that is, to implement the method for flow control of the smart device in the above embodiment.

存储器301可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器301可以包括高速随机存取存储器,还可以包括非易失性存储器。The memory 301 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. In addition, the memory 301 may include high-speed random access memory, and may also include non-volatile memory.

本公开实施例提供了一种智能设备,包含上述的用于智能设备侧的装置。其中,智能设备为空调、冰箱、洗衣机等家用电器或智能手环、电子秤等具有互联功能的便携式电子设备。An embodiment of the present disclosure provides a smart device, including the above-mentioned apparatus for the smart device side. Among them, the smart devices are household appliances such as air conditioners, refrigerators, and washing machines, or portable electronic devices with interconnection functions such as smart bracelets and electronic scales.

本公开实施例提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述用于智能设备流量控制的方法。An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, where the computer-executable instructions are configured to execute the above method for flow control of a smart device.

本公开实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述用于智能设备流量控制的方法。An embodiment of the present disclosure provides a computer program product, where the computer program product includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions that, when executed by a computer, cause all The computer executes the above method for smart device flow control.

上述的计算机可读存储介质可以是暂态计算机可读存储介质,也可以是非暂态计算机可读存储介质。The above-mentioned computer-readable storage medium may be a transient computer-readable storage medium, and may also be a non-transitory computer-readable storage medium.

本公开实施例的技术方案可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括一个或多个指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开实施例所述方法的全部或部分步骤。而前述的存储介质可以是非暂态存储介质,包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。The technical solutions of the embodiments of the present disclosure may be embodied in the form of software products, and the computer software products are stored in a storage medium and include one or more instructions to enable a computer device (which may be a personal computer, a server, or a network equipment, etc.) to execute all or part of the steps of the methods described in the embodiments of the present disclosure. The aforementioned storage medium may be a non-transitory storage medium, including: U disk, removable hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk, etc. A medium that can store program codes, and can also be a transient storage medium.

以上描述和附图充分地示出了本公开的实施例,以使本领域的技术人员能够实践它们。其他实施例可以包括结构的、逻辑的、电气的、过程的以及其他的改变。实施例仅代表可能的变化。除非明确要求,否则单独的部件和功能是可选的,并且操作的顺序可以变化。一些实施例的部分和特征可以被包括在或替换其他实施例的部分和特征。而且,本申请中使用的用词仅用于描述实施例并且不用于限制权利要求。如在实施例以及权利要求的描述中使用的,除非上下文清楚地表明,否则单数形式的“一个”(a)、“一个”(an)和“所述”(the)旨在同样包括复数形式。类似地,如在本申请中所使用的术语“和/或”是指包含一个或一个以上相关联的列出的任何以及所有可能的组合。另外,当用于本申请中时,术语“包括”(comprise)及其变型“包括”(comprises)和/或包括(comprising)等指陈述的特征、整体、步骤、操作、元素,和/或组件的存在,但不排除一个或一个以上其它特征、整体、步骤、操作、元素、组件和/或这些的分组的存在或添加。在没有更多限制的情况下,由语句“包括一个…”限定的要素,并不排除在包括所述要素的过程、方法或者设备中还存在另外的相同要素。本文中,每个实施例重点说明的可以是与其他实施例的不同之处,各个实施例之间相同相似部分可以互相参见。对于实施例公开的方法、产品等而言,如果其与实施例公开的方法部分相对应,那么相关之处可以参见方法部分的描述。The foregoing description and drawings sufficiently illustrate the embodiments of the present disclosure to enable those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, process, and other changes. The examples represent only possible variations. Unless expressly required, individual components and functions are optional and the order of operations may vary. Portions and features of some embodiments may be included in or substituted for those of other embodiments. Also, the terms used in this application are used to describe the embodiments only and not to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a" (a), "an" (an) and "the" (the) are intended to include the plural forms as well, unless the context clearly dictates otherwise. . Similarly, the term "and/or" as used in this application is meant to include any and all possible combinations of one or more of the associated listings. Additionally, when used in this application, the term "comprise" and its variations "comprises" and/or including and/or the like refer to stated features, integers, steps, operations, elements, and/or The presence of a component does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and/or groupings of these. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, or device that includes the element. Herein, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method section disclosed in the embodiments, reference may be made to the description of the method section for relevant parts.

本领域技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,可以取决于技术方案的特定应用和设计约束条件。所述技术人员可以对每个特定的应用来使用不同方法以实现所描述的功能,但是这种实现不应认为超出本公开实施例的范围。所述技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Skilled artisans may use different methods for implementing the described functionality for each particular application, but such implementations should not be considered beyond the scope of the disclosed embodiments. The skilled person can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units can refer to the corresponding processes in the foregoing method embodiments, and details are not repeated here.

本文所披露的实施例中,所揭露的方法、产品(包括但不限于装置、设备等),可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,可以仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例。另外,在本公开实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In the embodiments disclosed herein, the disclosed methods and products (including but not limited to apparatuses, devices, etc.) may be implemented in other ways. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units may only be a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be combined Either it can be integrated into another system, or some features can be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. This embodiment may be implemented by selecting some or all of the units according to actual needs. In addition, each functional unit in the embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.

附图中的流程图和框图显示了根据本公开实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这可以依所涉及的功能而定。在附图中的流程图和框图所对应的描述中,不同的方框所对应的操作或步骤也可以以不同于描述中所披露的顺序发生,有时不同的操作或步骤之间不存在特定的顺序。例如,两个连续的操作或步骤实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这可以依所涉及的功能而定。框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more functions for implementing the specified logical function(s) executable instructions. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, operations or steps corresponding to different blocks may also occur in different sequences than those disclosed in the description, and sometimes there is no specific relationship between different operations or steps. order. For example, two consecutive operations or steps may, in fact, be performed substantially concurrently, or they may sometimes be performed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or actions, or special purpose hardware implemented in combination with computer instructions.

Claims (14)

1. A method for flow control of intelligent equipment is applied to the intelligent equipment side and comprises the following steps:
generating data to be reported;
when the data to be reported is judged to be valid, writing the data to be reported into a cache;
and when the historical reporting quantity in unit time is less than the period limit, sending the data to be reported in the cache to a server, and counting the historical reporting data so as to update the historical reporting quantity.
2. The method of claim 1, wherein when there is no data in the buffer that is the same as the newly generated data to be reported, the newly generated data to be reported is determined to be valid.
3. The method of claim 1, wherein counting historical reporting data comprises:
determining the priority of historical reported data;
and counting the historical reported data according to the priority.
4. The method of claim 3, wherein the historical reporting data comprises status reporting frame data and alarm frame data; the alarm frame data has a higher priority than the status report frame data.
5. The method of claim 4, wherein counting historical reporting data according to the priority comprises:
when the historical reported data is state report frame data, the priority count corresponding to the state report frame data is increased;
and when the historical reported data is alarm frame data, counting the state reported frame data serving as the highest priority.
6. The method according to any one of claims 1 to 5, wherein sending the data to be reported in the buffer to the server comprises:
and when two or more pieces of data to be reported exist in the cache, sending the data to be reported according to the priority.
7. The method of any of claims 1 to 5, further comprising:
when the historical reporting quantity in unit time is equal to the period limit, reporting is carried out in the next reporting period.
8. A method for intelligent device flow control is applied to a server side, and comprises the following steps:
receiving reported data sent by intelligent equipment, and recording the reported quantity of the reported data;
and adjusting the cycle limit according to the reported quantity within the set time, and feeding back the adjusted cycle limit to the intelligent equipment.
9. The method of claim 8, wherein adjusting the period limit according to the reported amount received within a predetermined time comprises:
determining the independent reporting quantity of each priority in set time;
and adjusting the period limit corresponding to the priority according to the independent reporting quantity.
10. The method of claim 9, wherein adjusting the period quota corresponding to the priority according to the independent reporting number comprises:
obtaining a calculation relation between the period limit before adjustment and the period limit after adjustment;
and determining the adjusted cycle limit according to the independent report quantity, the cycle limit before adjustment and the calculation relation.
11. The method of claim 9, further comprising, before adjusting the amount of cycles:
acquiring equipment information of the intelligent equipment;
and determining the priority of the reported data according to the equipment information.
12. The method of any of claims 8 to 11, further comprising:
and adjusting the heartbeat period according to the reported number received in the set time.
13. An apparatus for smart device flow control, comprising a processor and a memory storing program instructions, wherein the apparatus is applied to a smart device side, and the processor is configured to execute the method for smart device flow control according to any one of claims 1 to 7 when executing the program instructions.
14. An apparatus for smart device flow control, comprising a processor and a memory storing program instructions, wherein the processor is configured to execute the method for smart device flow control according to any one of claims 8 to 12 when executing the program instructions, and the memory is applied to a server side.
CN202010762279.2A 2020-07-31 2020-07-31 Method and device for controlling flow of intelligent equipment and intelligent equipment Active CN112019445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010762279.2A CN112019445B (en) 2020-07-31 2020-07-31 Method and device for controlling flow of intelligent equipment and intelligent equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010762279.2A CN112019445B (en) 2020-07-31 2020-07-31 Method and device for controlling flow of intelligent equipment and intelligent equipment

Publications (2)

Publication Number Publication Date
CN112019445A true CN112019445A (en) 2020-12-01
CN112019445B CN112019445B (en) 2024-02-02

Family

ID=73500266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010762279.2A Active CN112019445B (en) 2020-07-31 2020-07-31 Method and device for controlling flow of intelligent equipment and intelligent equipment

Country Status (1)

Country Link
CN (1) CN112019445B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115175111A (en) * 2022-07-11 2022-10-11 上海庆科信息技术有限公司 Message processing method, device, bluetooth gateway equipment, storage medium and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580424A (en) * 2014-12-26 2015-04-29 珠海格力电器股份有限公司 Data reporting method and device of intelligent home system
CN106534231A (en) * 2015-09-09 2017-03-22 阿里巴巴集团控股有限公司 Method, device and system for controlling use limit of network resources
CN106921506A (en) * 2015-12-25 2017-07-04 北京京东尚科信息技术有限公司 The data acquisition report method and system of mobile device
CN107346280A (en) * 2017-06-26 2017-11-14 乐视致新电子科技(天津)有限公司 A kind of data report the method, apparatus and electronic equipment with data processing
CN108449404A (en) * 2018-03-13 2018-08-24 深圳市中科智联科技有限公司 Reporting terminal information approach, terminal, concentrator and computer readable storage medium
CN108810098A (en) * 2018-05-22 2018-11-13 腾讯科技(深圳)有限公司 A kind of data reporting method, device, terminal and storage medium
CN109067626A (en) * 2018-07-25 2018-12-21 北京小米移动软件有限公司 Report the method, apparatus and storage medium of information
CN109618331A (en) * 2019-02-01 2019-04-12 深圳乐信软件技术有限公司 Data reporting method, device, device and storage medium
CN110460676A (en) * 2019-08-22 2019-11-15 腾讯科技(深圳)有限公司 Request quantity control method and device, storage medium and computer equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580424A (en) * 2014-12-26 2015-04-29 珠海格力电器股份有限公司 Data reporting method and device of intelligent home system
CN106534231A (en) * 2015-09-09 2017-03-22 阿里巴巴集团控股有限公司 Method, device and system for controlling use limit of network resources
CN106921506A (en) * 2015-12-25 2017-07-04 北京京东尚科信息技术有限公司 The data acquisition report method and system of mobile device
CN107346280A (en) * 2017-06-26 2017-11-14 乐视致新电子科技(天津)有限公司 A kind of data report the method, apparatus and electronic equipment with data processing
CN108449404A (en) * 2018-03-13 2018-08-24 深圳市中科智联科技有限公司 Reporting terminal information approach, terminal, concentrator and computer readable storage medium
CN108810098A (en) * 2018-05-22 2018-11-13 腾讯科技(深圳)有限公司 A kind of data reporting method, device, terminal and storage medium
CN109067626A (en) * 2018-07-25 2018-12-21 北京小米移动软件有限公司 Report the method, apparatus and storage medium of information
CN109618331A (en) * 2019-02-01 2019-04-12 深圳乐信软件技术有限公司 Data reporting method, device, device and storage medium
CN110460676A (en) * 2019-08-22 2019-11-15 腾讯科技(深圳)有限公司 Request quantity control method and device, storage medium and computer equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115175111A (en) * 2022-07-11 2022-10-11 上海庆科信息技术有限公司 Message processing method, device, bluetooth gateway equipment, storage medium and system

Also Published As

Publication number Publication date
CN112019445B (en) 2024-02-02

Similar Documents

Publication Publication Date Title
US11709534B2 (en) Method and apparatus for managing global chip power on a multicore system on chip
US7009493B2 (en) Electronic device with paging for energy curtailment and code generation for manual verification of curtailment
US7035719B2 (en) Tone generating electronic device with paging module for verification of energy curtailment
Rao et al. Hedging against uncertainty: A tale of internet data center operations under smart grid environment
EP2399183B1 (en) Energy-aware server management
US20120173029A1 (en) Adaptive appliance scheduling for managing electricity consumption
JP6248049B2 (en) Method and system for requesting compliance of requirements over a network
CN113265829B (en) Method and device for laundry reminder, washing machine
US20120206274A1 (en) System for sending utility meter alerts
CN103905227B (en) A kind of server energy consumption control method and system
WO2024099474A1 (en) Energy efficiency evaluation method, apparatus, and system, and related device
US8644999B2 (en) Keep alive method for RFD devices
CN103309843A (en) Configuration method and system for servers
CN112019445A (en) Method and device for flow control of smart device, smart device
CN109840141A (en) Thread control method, device, electronic equipment and storage medium based on cloud monitoring
CN114827033B (en) Data flow control method, device, equipment and computer readable storage medium
JP6560359B2 (en) Power management server and power management method
CN115291797A (en) Capacity expansion method, capacity expansion device, capacity expansion equipment and readable storage medium
JP2019518254A (en) System and method for coping with outages in utility systems
CN114841431A (en) Method for predicting power consumption of equipment and related components thereof
US20210349516A1 (en) Energy saving device and method for saving energy in data center
Forshaw Operating policies for energy efficient large scale computing
CN114151921B (en) Air Conditioner Power Consumption Control Method, Device, Server and Storage Medium
CN112422627B (en) An Internet of Things node control method, device, intelligent terminal, and storage medium
US11892930B2 (en) Performance metric calculations

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