CN115268968A - Internet of things control system and method based on cloud platform - Google Patents
Internet of things control system and method based on cloud platform Download PDFInfo
- Publication number
- CN115268968A CN115268968A CN202210999400.2A CN202210999400A CN115268968A CN 115268968 A CN115268968 A CN 115268968A CN 202210999400 A CN202210999400 A CN 202210999400A CN 115268968 A CN115268968 A CN 115268968A
- Authority
- CN
- China
- Prior art keywords
- executed
- module
- upgraded
- time interval
- execution
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 18
- 238000011156 evaluation Methods 0.000 claims abstract description 10
- 238000012937 correction Methods 0.000 claims description 58
- 230000008878 coupling Effects 0.000 claims description 15
- 238000010168 coupling process Methods 0.000 claims description 15
- 238000005859 coupling reaction Methods 0.000 claims description 15
- 238000004364 calculation method Methods 0.000 claims description 8
- 230000006855 networking Effects 0.000 claims description 2
- 230000002085 persistent effect Effects 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2642—Domotique, domestic, home control, automation, smart house
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Manufacturing & Machinery (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to the field of Internet of things, in particular to a cloud platform-based Internet of things control system and method, wherein the system comprises a receiving module, a determining module and a judging module, wherein the receiving module is used for receiving upgrading instruction information, the determining module is used for determining equipment to be upgraded according to an equipment identifier to be upgraded, determining the current running state of the equipment to be upgraded, and evaluating the first running time of a current module and the second running time of a next execution module; the evaluation module is used for determining an influence range for executing the upgrading operation according to the relation between the execution duration and the first running time and the second running time, and determining a corresponding target execution module in the influence range; and the enabling module is used for continuously enabling the non-target execution module which is not in the influence range, and finishing the to-be-executed upgrading operation of the to-be-upgraded equipment according to the upgrading instruction after stopping enabling the target execution module. The execution duration of the upgrade operation to be executed is determined more accurately, and accurate control over the equipment to be upgraded is facilitated.
Description
Technical Field
The invention relates to the field of Internet of things, in particular to a cloud platform-based Internet of things control system and method.
Background
With the development of the internet of things technology, more and more household electrical appliances, vehicle-mounted equipment and the like have networking capability. In addition, the types of the internet of things devices supported by the cloud platform are also increased in a large amount, so that the internet of things based on the cloud platform is more complex and intelligent, and the probability and scenes of the occurrence of the abnormity are correspondingly increased.
Patent document with application number 201710462949.7 discloses an internet of things control system based on a cloud platform, wherein: the controller performs statistical analysis on environmental parameter information acquired by the environmental sensor through the cloud platform and sends an analysis result to the terminal equipment; the user can make a decision according to the analysis result, if the indoor environment needs to be adjusted, the virtual machine which can operate the terminal equipment generates a control signal and sends the control signal to the household appliance equipment for control, the terminal equipment is also used for sending the request information for upgrading the household appliance equipment to the cloud platform, the cloud platform is used for determining the household appliance equipment appointed by the request information and sending the determined upgrading package of the household appliance equipment to the controller, and the controller is used for receiving the upgrading package and using the upgrading package for upgrading the household appliance equipment.
When the household appliance equipment is upgraded, the control signal cannot be responded, so that the internet of things control based on the cloud platform in the prior art has limitations, and a control blind spot exists for the control of the equipment.
Disclosure of Invention
Therefore, the invention provides a cloud platform-based Internet of things control system and method, which can solve the problem of limitation on equipment control in the prior art.
In order to achieve the above object, an aspect of the present invention provides a cloud platform-based internet of things control system, including:
the receiving module is used for receiving upgrading instruction information, and the upgrading instruction information comprises an identifier of equipment to be upgraded and upgrading operation to be executed;
the determining module is used for determining the equipment to be upgraded according to the equipment to be upgraded, determining the current running state of the equipment to be upgraded, presuming a current execution module and a next execution module of the equipment to be upgraded based on the running state and the historical running state, and evaluating the first running time of the current module and the second running time of the next execution module;
the evaluation module is used for evaluating the execution duration of the upgrading operation to be executed, determining the influence range of the upgrading operation to be executed according to the relation between the execution duration and the first running time and the second running time, and determining a corresponding target execution module in the influence range;
and the enabling module is used for continuously enabling the non-target execution module which is not in the influence range, and finishing the to-be-executed upgrading operation on the to-be-upgraded equipment according to the upgrading instruction after stopping enabling the target execution module.
Further, the evaluation module comprises an acquisition unit, a statistical unit, a calculation unit and a selection unit;
the obtaining unit is used for obtaining the code segments in the code storage unit corresponding to the upgrading operation to be executed;
the statistical unit is used for counting the actual line number of the code segment and the actual length of each line;
the calculation unit is used for comparing the actual line number with the preset line number and comparing the actual length with the preset standard length when the actual line number is less than the preset line number, and calculating the sum of the positive difference value and the negative difference value of the actual length and the preset standard length in each line of codes;
if the sum of the positive difference value and the negative difference value is less than 0, the selection unit selects a first time interval T1 as the execution duration of the upgrading operation to be executed;
if the sum of the positive difference value and the negative difference value =0, the selection unit selects the second time interval T2 as the execution duration of the upgrade operation to be executed;
if the sum of the positive difference and the negative difference is greater than 0, the selection unit selects the third time period T3 as the execution duration of the upgrade operation to be executed.
Furthermore, a first correction coefficient k1 and a second correction coefficient k2 are also arranged in the selection unit;
when the sum of the positive difference value and the negative difference value =0 and the execution time length is selected, the selection unit determines the proportion of the total storage space of the code storage unit occupied by the code to be executed stored in the code storage unit, if the proportion is larger than or equal to 80%, the first correction coefficient k1 is selected to correct the second time interval T2, and the corrected time interval length is used as a new second time interval T2';
if the percentage is less than or equal to 20%, selecting a second correction coefficient k2 to correct the second time interval T2, and taking the corrected time interval length as a new second time interval T2';
if 80% >20% by weight, no correction is necessary.
Further, the selecting unit selects the first correction coefficient k1 to correct the second period T2, and takes the corrected period length as a new second period T2', then the new second period T2' = T2 × (1 + k 1);
selecting the second correction coefficient k2 to correct the second time period T2, and taking the corrected time period length as a new second time period T2 ", so that the new second time period T2" = T2 × (1 +k 2);
the first correction coefficient k1= space occupied by code to be executed/total space of the code storage unit;
the second correction factor k2=1 — the space occupied by the code to be executed/the total space of the code storage unit.
Further, the evaluation module further comprises a comparison unit and a determination unit, wherein the comparison unit is used for comparing the execution duration with the relationship between the first operation time and the second operation time;
if the execution time is less than or equal to the first operation time, taking the current execution module as a target execution module, and taking other modules in the equipment to be upgraded as non-target execution modules;
and if the second running time is greater than or equal to the first running time, taking the current execution module and the next execution module as target execution modules, and taking other modules in the equipment to be upgraded as non-target upgrading modules.
Furthermore, when the to-be-executed upgrading operation of the to-be-upgraded equipment is completed according to the upgrading instruction, the enabling module determines the coupling relationship between the non-target execution modules, and performs the sequence of the upgrading operation according to the coupling tightness of the coupling relationship.
In another aspect of the present invention, a cloud platform-based internet of things control method using the cloud platform-based internet of things control system described above is further provided, and the method includes:
receiving upgrading instruction information, wherein the upgrading instruction information comprises an identifier of equipment to be upgraded and upgrading operation to be executed;
determining equipment to be upgraded according to the equipment to be upgraded, determining the current running state of the equipment to be upgraded, presuming a current execution module and a next execution module of the equipment to be upgraded based on the running state and the historical running state, and evaluating the first running time of the current module and the second running time of the next execution module;
evaluating the execution duration of the upgrading operation to be executed, determining the influence range of the upgrading operation to be executed according to the relation between the execution duration and the first running time and the second running time, and determining a corresponding target execution module in the influence range;
and continuously enabling the non-target execution module which is not in the influence range, and finishing the to-be-executed upgrading operation on the to-be-upgraded equipment according to the upgrading instruction after the enabling of the target execution module is stopped.
Further, the evaluating the execution duration of the upgrade operation to be executed includes:
acquiring code segments in a code storage unit corresponding to the upgrading operation to be executed;
counting the actual row number of the code segments and the actual length of each row;
comparing the actual number of lines with the preset number of lines and comparing the actual length with the preset standard length when the actual number of lines is less than the preset number of lines, and calculating the sum of the positive difference value and the negative difference value of the actual length and the preset standard length in each line of codes;
if the sum of the positive difference value and the negative difference value is less than 0, the selection unit selects a first time interval T1 as the execution duration of the upgrading operation to be executed;
if the sum of the positive difference value and the negative difference value =0, the selection unit selects the second time interval T2 as the execution duration of the upgrade operation to be executed;
if the sum of the positive difference value and the negative difference value is greater than 0, the selection unit selects the third time period T3 as the execution duration of the upgrade operation to be executed.
Further, a first correction coefficient k1 and a second correction coefficient k2 are also provided;
when the sum of the positive difference value and the negative difference value =0 and the execution time length is selected, determining the proportion of the total storage space of the code storage unit occupied by the code to be executed stored in the code storage unit, if the proportion is larger than or equal to 80%, selecting a first correction coefficient k1 to correct a second time interval T2, and taking the corrected time interval length as a new second time interval T2';
if the proportion is less than or equal to 20%, selecting a second correction coefficient k2 to correct the second time period T2, and taking the corrected time period length as a new second time period T2';
if 80% >20%, no correction is necessary.
Further, selecting a first correction coefficient k1 to correct the second time interval T2, and taking the corrected time interval length as a new second time interval T2', the new second time interval T2' = T2 × (1 + k 1);
selecting a second correction coefficient k2 to correct the second time period T2, and using the corrected time period length as a new second time period T2 ", so that the new second time period T2" = T2 × (1 + k 2);
the first correction coefficient k1= space occupied by code to be executed/total space of the code storage unit;
the second correction factor k2=1 — space occupied by code to be executed/total space of the code storage unit.
Compared with the prior art, the method has the advantages that the execution duration of the upgrading operation to be executed is evaluated, the range of the execution module affected by the execution of the upgrading operation to be executed is determined, the continuous enabling and control over the non-target execution module are realized, the continuous control over the equipment to be upgraded is realized, and the continuous control over the equipment to be upgraded is guaranteed.
Particularly, by comparing the actual line number with the preset line number and comparing the actual length with the preset standard length when the actual line number is smaller than the preset line number, the relation between the sum of the positive difference and the negative difference of the actual length and the preset standard length in each line of codes and 0 is calculated, and different time periods are determined according to different relations to be used as execution time duration, so that the execution time duration of the upgrading operation to be executed is determined more accurately, the upgrading equipment to be accurately controlled is conveniently realized, and the accuracy of control time is improved.
In particular, the determination of the second time interval is more accurate by determining the range of the occupation ratio of the total storage space of the code storage unit occupied by the code to be executed stored in the code storage unit, and further determining the coefficient for correcting the second time interval, in practical application, when the sum =0 of the positive difference value and the negative difference value, the sum indicates that the lengths of the code to be executed are different and are all around a preset standard length, but in practical application, the occupation ratio of the storage space Q of the code to be executed to the total storage space Q0 of the code storage unit indicates that the total storage space in the code storage unit is occupied by the code to be executed if the occupation ratio is larger, and indicates that the total storage space in the code storage unit is occupied by the code to be executed if the occupation ratio is smaller, indicates that the proportion of the total storage space in the code storage unit occupied by the code to be executed is smaller, indicates that the amount of data of the code to be executed is smaller, and the amount of data of the code to be executed is smaller, so that the execution of the upgrade operation is more accurate, the rational control over the device to be upgraded is realized, and the efficiency is improved.
Particularly, the occupied space of the code to be executed is used as a calculation mode of the correction coefficient, so that the correction coefficient is determined more accurately, the execution time length is judged more accurately, the reasonable planning and arrangement of the upgrading strategy of the equipment to be executed are improved, the continuous control of the non-target execution module is realized, and the control efficiency is greatly improved.
In particular, effective judgment of the target execution module and the non-target execution module is realized through the relation between the execution duration and the first and second operation times, so that the judgment accuracy of the execution duration, the first operation time and the second operation time is crucial, the judgment of the target execution module and the non-target execution module is determined, and the number of the function modules of the device to be upgraded which are continuously controlled is indirectly influenced, so that the non-target upgrade module is continuously controlled in the upgrade operation process, whether the execution module is effectively controlled or not is determined through time selection, and the control efficiency is greatly improved.
Particularly, the upgrading operation with high coupling tightness is arranged in front of the upgrading operation with low coupling tightness arranged behind the upgrading operation, and then after the functional modules executing the upgrading operation are upgraded, the sequential upgrading according to the coupling tightness is realized, and the upgrading efficiency is greatly improved.
Drawings
Fig. 1 is a schematic structural diagram of an internet of things control system based on a cloud platform according to an embodiment of the present invention;
fig. 2 is another schematic structural diagram of an internet of things control system based on a cloud platform according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a cloud platform-based internet of things control method provided by the embodiment of the invention.
Detailed Description
In order that the objects and advantages of the invention will be more clearly understood, the invention is further described below with reference to examples; it should be understood that the specific embodiments described herein are merely illustrative of the invention and do not delimit the invention.
Preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only for explaining the technical principles of the present invention, and do not limit the scope of the present invention.
It should be noted that in the description of the present invention, the terms of direction or positional relationship indicated by the terms "upper", "lower", "left", "right", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, which are only for convenience of description, and do not indicate or imply that the device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present invention.
Furthermore, it should be noted that, in the description of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
Referring to fig. 1, a cloud platform-based internet of things control system provided in an embodiment of the present invention includes:
the system comprises a receiving module 10, a processing module and a processing module, wherein the receiving module is used for receiving upgrading instruction information, and the upgrading instruction information comprises an identifier of equipment to be upgraded and upgrading operation to be executed;
the determining module 20 is configured to determine the device to be upgraded according to the device identifier to be upgraded, determine a current operating state of the device to be upgraded, infer a current execution module and a next execution module of the device to be upgraded based on the operating state and a historical operating state, and evaluate a first operating time of the current module and a second operating time of the next execution module;
the evaluation module 30 is configured to evaluate an execution duration of the upgrade operation to be executed, determine an influence range of the upgrade operation according to a relationship between the execution duration and the first and second running times, and determine a corresponding target execution module within the influence range;
and the enabling module 40 continuously enables the non-target execution module which is not in the influence range, and finishes the to-be-executed upgrading operation on the to-be-upgraded equipment according to the upgrading instruction after stopping enabling the target execution module.
Specifically, in practical application, the devices to be upgraded are provided with unique device identifiers to be upgraded, the devices to be upgraded comprise a plurality of execution modules, different execution modules are used for executing different functions, when the devices are upgraded, the execution modules related to the upgrade instructions are upgraded, non-target execution modules which are not related to the upgrade instructions can continue to be used, the influence of the upgrade on the devices is reduced, the hierarchical execution of the upgrade instructions and the modular execution of the devices to be upgraded are realized, and the continuous control of the devices to be upgraded is realized.
Specifically, the embodiment of the present invention determines the range of the execution module affected by the execution of the upgrade operation to be executed by evaluating the execution duration of the upgrade operation to be executed, and implements persistent enabling and control on the non-target execution module and the device to be upgraded, and implements persistent control on the device to be upgraded, thereby ensuring persistent control on the device to be upgraded.
Specifically, as shown in fig. 2, the evaluation module 30 includes an acquisition unit 31, a statistical unit 32, a calculation unit 33, and a selection unit 34;
the obtaining unit is used for obtaining the code segments in the code storage unit corresponding to the upgrading operation to be executed;
the statistical unit is used for counting the actual line number of the code segment and the actual length of each line;
the calculation unit is used for comparing the actual line number with the preset line number and comparing the actual length with the preset standard length when the actual line number is less than the preset line number, and calculating the sum of the positive difference value and the negative difference value of the actual length and the preset standard length in each line of codes;
if the sum of the positive difference value and the negative difference value is less than 0, the selection unit selects a first time interval T1 as the execution duration of the upgrading operation to be executed;
if the sum of the positive difference value and the negative difference value =0, the selection unit selects the second time period T2 as the execution duration of the upgrade operation to be executed;
if the sum of the positive difference and the negative difference is greater than 0, the selection unit selects the third time period T3 as the execution duration of the upgrade operation to be executed.
Specifically, according to the embodiment of the invention, by comparing the actual line number with the preset line number and comparing the actual length with the preset standard length when the actual line number is less than the preset line number, the relationship between the sum of the positive difference and the negative difference of the actual length and the preset standard length in each line of codes and 0 is calculated, and different time periods are determined according to different relationships to serve as the execution time duration, so that the execution time duration of the upgrade operation to be executed is determined more accurately, the accurate control of the upgrade device to be executed is facilitated, and the accuracy of the control time is improved.
Specifically, a first correction coefficient k1 and a second correction coefficient k2 are also provided in the selection unit;
when the sum of the positive difference value and the negative difference value =0 and the execution time length is selected, the selection unit determines the proportion of the total storage space of the code storage unit occupied by the code to be executed stored in the code storage unit, if the proportion is larger than or equal to 80%, the first correction coefficient k1 is selected to correct the second time interval T2, and the corrected time interval length is used as a new second time interval T2';
if the percentage is less than or equal to 20%, selecting a second correction coefficient k2 to correct the second time interval T2, and taking the corrected time interval length as a new second time interval T2';
if 80% >20%, no correction is necessary.
Specifically, the embodiment of the present invention determines the range of the occupation ratio of the total storage space of the code storage unit occupied by the code to be executed stored in the code storage unit, and further determines the coefficient for correcting the second time period, so that the determination of the second time period is more accurate, in practical applications, when the sum =0 of the positive difference value and the negative difference value, the sum indicates that the lengths of the codes to be executed are different, and is about a preset standard length, and the lengths of the codes are not much different.
Specifically, the selection unit selects the first correction coefficient k1 to correct the second period T2, and takes the corrected period length as a new second period T2', so that the new second period T2' = T2 × (1 + k 1);
selecting the second correction coefficient k2 to correct the second time period T2, and taking the corrected time period length as a new second time period T2 ", so that the new second time period T2" = T2 × (1 +k 2);
the first correction coefficient k1= space occupied by code to be executed/total space of the code storage unit;
the second correction factor k2=1 — the space occupied by the code to be executed/the total space of the code storage unit.
Specifically, the embodiment of the invention takes the occupied space of the code to be executed as the calculation mode of the correction coefficient, so that the determination of the correction coefficient is more accurate, the judgment of the execution time is more accurate, the reasonable planning and arrangement of the upgrading strategy of the equipment to be executed are improved, the continuous control of the non-target execution module is realized, and the control efficiency is greatly improved.
Specifically, the evaluation module further comprises a comparison unit and a determination unit, wherein the comparison unit is used for comparing the execution duration with the relation between the first running time and the second running time;
if the execution duration is not longer than the first operation time, taking the current execution module as a target execution module, and taking other modules in the equipment to be upgraded as non-target execution modules;
and if the second running time is larger than or equal to the execution duration and is larger than the first running time, both the current execution module and the next execution module are used as target execution modules, and other modules in the equipment to be upgraded are used as non-target upgrading modules.
Specifically, the embodiment of the invention realizes effective judgment of the target execution module and the non-target execution module through the relation between the execution duration and the first and second operation times, so that the judgment accuracy of the execution duration, the first operation time and the second operation time is very important, the judgment of the target execution module and the non-target execution module is determined, and the number of the continuously controlled functional modules of the equipment to be upgraded is indirectly influenced, so that the non-target upgrade module is continuously controlled in the upgrade operation process, whether the execution module is effectively controlled or not is determined through the selection of time, and the control efficiency is greatly improved.
Specifically, when the to-be-executed upgrading operation on the to-be-upgraded equipment is completed according to the upgrading instruction, the enabling module determines the coupling relation between the non-target execution modules, and performs the sequence execution order of the upgrading operation according to the coupling compactness of the coupling relation.
Specifically, the embodiment of the invention realizes sequential upgrading according to the sequence of the coupling compactness after upgrading the functional module executing the upgrading operation by arranging the upgrading operation with high coupling compactness in front and the upgrading operation with low coupling compactness in back, thereby greatly improving the upgrading efficiency.
On the other hand, an embodiment of the present invention further provides a cloud platform-based internet of things control method, as shown in fig. 3, the method includes:
step S100: receiving upgrading instruction information, wherein the upgrading instruction information comprises an identifier of equipment to be upgraded and upgrading operation to be executed;
step S200: determining equipment to be upgraded according to the equipment to be upgraded, determining the current running state of the equipment to be upgraded, presuming a current execution module and a next execution module of the equipment to be upgraded based on the running state and the historical running state, and evaluating the first running time of the current module and the second running time of the next execution module;
step S300: evaluating the execution duration of the upgrading operation to be executed, determining the influence range of the upgrading operation to be executed according to the relation between the execution duration and the first running time and the second running time, and determining a corresponding target execution module in the influence range;
step S400: and continuously enabling the non-target execution module which is not in the influence range, and finishing the operation of upgrading to be executed on the equipment to be upgraded according to the upgrading instruction after stopping enabling the target execution module.
Specifically, the evaluating the execution duration of the upgrade operation to be executed includes:
acquiring a code segment in a code storage unit corresponding to the upgrade operation to be executed;
counting the actual line number of the code segment and the actual length of each line;
comparing the actual line number with a preset line number and comparing the actual length with a preset standard length when the actual line number is less than the preset line number, and calculating the sum of a positive difference value and a negative difference value of the actual length and the preset standard length in each line of codes;
if the sum of the positive difference value and the negative difference value is less than 0, the selection unit selects a first time interval T1 as the execution duration of the upgrade operation to be executed;
if the sum of the positive difference value and the negative difference value =0, the selection unit selects the second time interval T2 as the execution duration of the upgrade operation to be executed;
if the sum of the positive difference value and the negative difference value is greater than 0, the selection unit selects the third time period T3 as the execution duration of the upgrade operation to be executed.
Specifically, a first correction coefficient k1 and a second correction coefficient k2 are also provided;
when the sum of the positive difference value and the negative difference value =0 and the execution time length is selected, determining the proportion of codes to be executed stored in the code storage unit occupying the total storage space of the code storage unit, if the proportion is more than or equal to 80%, selecting a first correction coefficient k1 to correct a second time interval T2, and taking the corrected time interval length as a new second time interval T2';
if the percentage is less than or equal to 20%, selecting a second correction coefficient k2 to correct the second time interval T2, and taking the corrected time interval length as a new second time interval T2';
if 80% >20%, no correction is necessary.
Specifically, the first correction coefficient k1 is selected to correct the second time interval T2, and the corrected time interval length is taken as a new second time interval T2', so that the new second time interval T2' = T2 × (1 + k 1);
selecting a second correction coefficient k2 to correct the second time period T2, and using the corrected time period length as a new second time period T2 ", so that the new second time period T2" = T2 × (1 + k 2);
the first correction coefficient k1= space occupied by code to be executed/total space of the code storage unit;
the second correction factor k2=1 — the space occupied by the code to be executed/the total space of the code storage unit.
The cloud platform-based control method of the internet of things is applied to the cloud platform-based control system of the internet of things, and the same technical scheme is used, so that the same technical effect can be achieved, and the details are not repeated herein.
So far, the technical solutions of the present invention have been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of the present invention is obviously not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the invention, and the technical scheme after the changes or substitutions can fall into the protection scope of the invention.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention; various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. The utility model provides a thing networking control system based on cloud platform which characterized in that includes:
the receiving module is used for receiving upgrading instruction information, and the upgrading instruction information comprises an identifier of equipment to be upgraded and upgrading operation to be executed;
the determining module is used for determining the equipment to be upgraded according to the equipment to be upgraded, determining the current running state of the equipment to be upgraded, presuming the current execution module and the next execution module of the equipment to be upgraded based on the running state and the historical running state, and evaluating the first running time of the current module and the second running time of the next execution module;
the evaluation module is used for evaluating the execution duration of the upgrading operation to be executed, determining the influence range of the upgrading operation to be executed according to the relation between the execution duration and the first running time and the second running time, and determining a corresponding target execution module in the influence range;
and the enabling module is used for continuously enabling the non-target execution module which is not in the influence range, and finishing the to-be-executed upgrading operation on the to-be-upgraded equipment according to the upgrading instruction after the enabling of the target execution module is stopped.
2. The cloud platform based IOT control system of claim 1,
the evaluation module comprises an acquisition unit, a statistical unit, a calculation unit and a selection unit;
the obtaining unit is used for obtaining the code segments in the code storage unit corresponding to the upgrading operation to be executed;
the statistical unit is used for counting the actual line number of the code segment and the actual length of each line;
the calculation unit is used for comparing the actual line number with the preset line number and comparing the actual length with the preset standard length when the actual line number is less than the preset line number, and calculating the sum of the positive difference value and the negative difference value of the actual length and the preset standard length in each line of codes;
if the sum of the positive difference value and the negative difference value is less than 0, the selection unit selects a first time interval T1 as the execution duration of the upgrading operation to be executed;
if the sum of the positive difference value and the negative difference value =0, the selection unit selects the second time interval T2 as the execution duration of the upgrade operation to be executed;
if the sum of the positive difference and the negative difference is greater than 0, the selection unit selects the third time period T3 as the execution duration of the upgrade operation to be executed.
3. The cloud platform-based IOT control system of claim 2,
a first correction coefficient k1 and a second correction coefficient k2 are also arranged in the selection unit;
when the sum of the positive difference value and the negative difference value =0 and the execution time length is selected, the selection unit determines the proportion of codes to be executed stored in the code storage unit occupying the total storage space of the code storage unit, if the proportion is larger than or equal to 80%, a first correction coefficient k1 is selected to correct the second time interval T2, and the corrected time interval length is used as a new second time interval T2';
if the percentage is less than or equal to 20%, selecting a second correction coefficient k2 to correct the second time interval T2, and taking the corrected time interval length as a new second time interval T2';
if 80% >20% by weight, no correction is necessary.
4. The cloud platform based IOT control system of claim 3,
the selecting unit selects the first correction coefficient k1 to correct the second time interval T2, and takes the corrected time interval length as a new second time interval T2', so that the new second time interval T2' = T2 × (1 + k 1);
selecting a second correction coefficient k2 to correct the second time period T2, and using the corrected time period length as a new second time period T2 ", so that the new second time period T2" = T2 × (1 + k 2);
the first correction coefficient k1= space occupied by code to be executed/total space of the code storage unit;
the second correction factor k2=1 — the space occupied by the code to be executed/the total space of the code storage unit.
5. The cloud platform-based IOT control system of claim 4,
the evaluation module further comprises a comparison unit and a determination unit, wherein the comparison unit is used for comparing the execution duration with the relation between the first operation time and the second operation time;
if the execution duration is not longer than the first operation time, taking the current execution module as a target execution module, and taking other modules in the equipment to be upgraded as non-target execution modules;
and if the second running time is larger than or equal to the execution duration and is larger than the first running time, both the current execution module and the next execution module are used as target execution modules, and other modules in the equipment to be upgraded are used as non-target upgrading modules.
6. The cloud platform-based IOT control system of claim 5,
and when the enabling module finishes the to-be-executed upgrading operation on the to-be-upgraded equipment according to the upgrading instruction, determining the coupling relation between the non-target execution modules, and performing the sequence of the upgrading operation according to the coupling compactness of the coupling relation.
7. A cloud platform-based Internet of things control method applying the cloud platform-based Internet of things control system of any one of claims 1-6, comprising:
receiving upgrading instruction information, wherein the upgrading instruction information comprises an identifier of equipment to be upgraded and upgrading operation to be executed;
determining equipment to be upgraded according to the equipment to be upgraded, determining the current running state of the equipment to be upgraded, presuming a current execution module and a next execution module of the equipment to be upgraded based on the running state and the historical running state, and evaluating the first running time of the current module and the second running time of the next execution module;
evaluating the execution duration of the upgrading operation to be executed, determining the influence range of the upgrading operation to be executed according to the relation between the execution duration and the first running time and the second running time, and determining a corresponding target execution module in the influence range;
and continuously enabling the non-target execution module which is not in the influence range, and finishing the to-be-executed upgrading operation on the to-be-upgraded equipment according to the upgrading instruction after the enabling of the target execution module is stopped.
8. The cloud platform-based internet of things control method according to claim 7, wherein the evaluating the execution duration of the upgrade operation to be executed comprises:
acquiring code segments in a code storage unit corresponding to the upgrading operation to be executed;
counting the actual row number of the code segments and the actual length of each row;
comparing the actual line number with a preset line number and comparing the actual length with a preset standard length when the actual line number is less than the preset line number, and calculating the sum of a positive difference value and a negative difference value of the actual length and the preset standard length in each line of codes;
if the sum of the positive difference value and the negative difference value is less than 0, the selection unit selects a first time interval T1 as the execution duration of the upgrading operation to be executed;
if the sum of the positive difference value and the negative difference value =0, the selection unit selects the second time interval T2 as the execution duration of the upgrade operation to be executed;
if the sum of the positive difference and the negative difference is greater than 0, the selection unit selects the third time period T3 as the execution duration of the upgrade operation to be executed.
9. The cloud platform-based Internet of things control method according to claim 8,
a first correction coefficient k1 and a second correction coefficient k2 are also set;
when the sum of the positive difference value and the negative difference value =0 and the execution time length is selected, determining the proportion of codes to be executed stored in the code storage unit occupying the total storage space of the code storage unit, if the proportion is more than or equal to 80%, selecting a first correction coefficient k1 to correct a second time interval T2, and taking the corrected time interval length as a new second time interval T2';
if the percentage is less than or equal to 20%, selecting a second correction coefficient k2 to correct the second time interval T2, and taking the corrected time interval length as a new second time interval T2';
if 80% >20% by weight, no correction is necessary.
10. The cloud platform based control method of the Internet of things as claimed in claim 9,
selecting a first correction coefficient k1 to correct the second time interval T2, and taking the corrected time interval length as a new second time interval T2', so that the new second time interval T2' = T2 × (1 + k 1);
selecting a second correction coefficient k2 to correct the second time period T2, and using the corrected time period length as a new second time period T2 ", so that the new second time period T2" = T2 × (1 + k 2);
the first correction coefficient k1= space occupied by code to be executed/total space of the code storage unit;
the second correction factor k2=1 — space occupied by code to be executed/total space of the code storage unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210999400.2A CN115268968A (en) | 2022-08-19 | 2022-08-19 | Internet of things control system and method based on cloud platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210999400.2A CN115268968A (en) | 2022-08-19 | 2022-08-19 | Internet of things control system and method based on cloud platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115268968A true CN115268968A (en) | 2022-11-01 |
Family
ID=83752957
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210999400.2A Withdrawn CN115268968A (en) | 2022-08-19 | 2022-08-19 | Internet of things control system and method based on cloud platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115268968A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117240645A (en) * | 2023-11-15 | 2023-12-15 | 广州斯沃德科技有限公司 | OTA upgrading method and device of intelligent home system, electronic equipment and medium |
-
2022
- 2022-08-19 CN CN202210999400.2A patent/CN115268968A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117240645A (en) * | 2023-11-15 | 2023-12-15 | 广州斯沃德科技有限公司 | OTA upgrading method and device of intelligent home system, electronic equipment and medium |
CN117240645B (en) * | 2023-11-15 | 2024-02-09 | 广州斯沃德科技有限公司 | OTA upgrading method and device of intelligent home system, electronic equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110346725B (en) | Construction method, evaluation method and device of battery health degree evaluation model | |
CN110196404A (en) | A kind of metering chip calibration method, device and the terminal device of charging pile | |
WO2013006273A2 (en) | Methods and systems for determining an association between nodes and phases via a smart grid | |
CN108496059A (en) | A kind of bearing calibration, device, terminal device and the storage medium of inertia sensor | |
CN115268968A (en) | Internet of things control system and method based on cloud platform | |
CN106598822B (en) | A kind of abnormal deviation data examination method and device for Capacity Assessment | |
CN111026460B (en) | Method and device for rapidly allocating points by using regional templates in configuration tool | |
CN116300540A (en) | Control method and system based on intelligent equipment | |
CN110021792A (en) | Charge control method, device, terminal device and computer storage medium | |
CN116739202B (en) | Power routing method, system, equipment and storage medium | |
CN109839889A (en) | Equipment recommendation system and method | |
CN104679858A (en) | Method and device for inquiring data | |
EP2608123A1 (en) | System for distributing electrical energy over a cluster of electrical devices, method for distributing electrical energy over a cluster of electrical devices of such a system and controller for use in such a system | |
CN106162668A (en) | The method and apparatus determining network parameter | |
CN114135928B (en) | Centralized control method, terminal and storage medium for electric heating system | |
CN115907391A (en) | Scheduling method and system for electric energy meter verification task | |
CN108937702A (en) | Boundary detection method and device for robot, robot and medium | |
CN113129168B (en) | Line loss determination method and device for power distribution area and terminal equipment | |
CN115829646A (en) | Order data processing method and device, electronic equipment and storage medium | |
CN114779081A (en) | Method and device for predicting service life of vehicle battery through mutual learning and storage medium | |
CN115239207B (en) | User behavior energy-saving evaluation method and device, electronic equipment and readable storage medium | |
CN117235873B (en) | Smart home layout method and system based on historical work record | |
CN110220639A (en) | Pressure gauge meter register method, device and terminal device in substation | |
CN109696592B (en) | Charger test load control method and device and storage medium | |
CN116100578B (en) | Instruction quick response system of double-joint robot |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20221101 |