CN114637265A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN114637265A
CN114637265A CN202210256389.0A CN202210256389A CN114637265A CN 114637265 A CN114637265 A CN 114637265A CN 202210256389 A CN202210256389 A CN 202210256389A CN 114637265 A CN114637265 A CN 114637265A
Authority
CN
China
Prior art keywords
state
target object
control instruction
control
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210256389.0A
Other languages
Chinese (zh)
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.)
Alibaba Cloud Computing Ltd
Original Assignee
Alibaba Cloud Computing 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 Alibaba Cloud Computing Ltd filed Critical Alibaba Cloud Computing Ltd
Priority to CN202210256389.0A priority Critical patent/CN114637265A/en
Publication of CN114637265A publication Critical patent/CN114637265A/en
Priority to PCT/CN2023/080334 priority patent/WO2023174125A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total 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]
    • G05B19/41885Total 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] characterised by modeling, simulation of the manufacturing system
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/32Operator till task planning
    • G05B2219/32339Object oriented modeling, design, analysis, implementation, simulation language
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Selective Calling Equipment (AREA)
  • Feedback Control In General (AREA)

Abstract

The application provides a data processing method and device. Acquiring a first control instruction for controlling the state of a target object to be changed to a target state in a first time period, and generating a plurality of second control instructions with a sequential execution sequence according to the first control instruction, wherein the plurality of second control instructions are used for controlling the state of the target object to be gradually changed to the target state through a plurality of second time periods in sequence; the second control instruction at the later execution sequence is used for controlling the difference between the state to which the target object needs to be changed and the target state to be smaller than the second control instruction at the earlier execution sequence is used for controlling the difference between the state to which the target object needs to be changed and the target state. And transmitting a plurality of second control instructions to the target object so that the target object sequentially executes the plurality of second control instructions according to the execution sequence. This can increase the probability that the state of the target object can be changed from the initial state to the target state in the first period of time.

Description

Data processing method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method and apparatus.
Background
At present, in the industrial field, production equipment is often included in a production workshop, and along with the rapid development of the internet of things technology, the automatic management and control of the production equipment in the production workshop has become the demand of each large enterprise.
In order to be able to automate management and control of production equipment in a production plant, management and control equipment for managing and controlling production equipment in a production plant has been developed.
The policing device may include at least the following functions: the method comprises the steps of collecting operation data of the production equipment in the operation process, visually displaying the operation state of the production equipment in the operation process, controlling the production equipment to operate through instructions and the like.
In the industrial field, the reliability of the management and control equipment is particularly important in view of cost and yield considerations, which can be understood as the ability to control the production equipment to achieve a specific purpose over a period of time, etc.
Disclosure of Invention
The application shows a data processing method and device.
In a first aspect, the present application shows a data processing method, comprising:
acquiring a first control instruction, wherein the first control instruction is used for controlling the state of a target object to be changed to a target state in a first time period;
generating a plurality of second control instructions with a sequential execution sequence according to the first control instruction, wherein the plurality of second control instructions are used for gradually changing the state of the control target object to the target state through a plurality of second time periods in sequence; the duration of each second time period is respectively less than that of the first time period; the second control instruction at the back of the execution sequence is used for controlling the difference between the state to which the target object needs to be changed and the target state to be smaller than the second control instruction at the front of the execution sequence is used for controlling the difference between the state to which the target object needs to be changed and the target state;
and transmitting a plurality of second control instructions to the target object so that the target object sequentially executes the plurality of second control instructions according to the execution sequence.
In an optional implementation manner, the generating, according to the first control instruction, a plurality of second control instructions having a sequential execution order includes:
sequentially determining at least one intermediate state which gradually progresses towards the target state and has a sequential appearance order between the initial state and the target state of the target object;
dividing the first time period into at least two second time periods with a sequential time sequence;
generating a second control instruction … … for controlling the state of the target object to change to the intermediate state of the 1 st bit within the second time period of the 1 st bit, a second control instruction for controlling the state of the target object to change to the intermediate state of the N-th bit within the second time period of the N-th bit, and a second control instruction for controlling the state of the target object to change to the target state within the second time period of the N +1 th bit;
wherein N is an integer greater than or equal to 1, N is the number of intermediate states, and N +1 is the number of second time periods.
In an optional implementation manner, after the delivering the plurality of second control instructions to the target object, the method further includes:
acquiring the actual state of the target object after the target object sequentially executes the plurality of second control instructions according to the execution sequence;
determining that the state of the target object has changed to the target state within the first time period in case of a match between the actual state of the target object and the target state before or at the expiration of the first time period;
alternatively, the first and second liquid crystal display panels may be,
in the event of a mismatch between the actual state of the target object and the target state after expiration of the first time period, it is determined that the state of the target object has not changed to the target state within the first time period.
In an optional implementation manner, the obtaining an actual state of the target object after the target object sequentially executes the plurality of second control instructions according to the sequential execution order includes:
actively polling actual states of the target object after the target object sequentially executes the plurality of second control instructions according to the execution sequence;
alternatively, the first and second electrodes may be,
and receiving the actual state of the target object actively fed back after the target object sequentially executes the plurality of second control instructions according to the execution sequence.
In an optional implementation, the method further includes:
and under the condition that the state of the target object is not changed to the target state within the first time period, transmitting the plurality of second control instructions to the target object again so that the target object sequentially executes the plurality of second control instructions again according to the sequential execution order.
In an optional implementation manner, after the delivering the plurality of second control instructions to the target object, the method further includes:
for any one second control instruction, acquiring an actual state of the target object after the target object executes the second control instruction;
when the actual state of the target object is matched with the state to which the second control instruction is used for controlling the target object, before a second time period corresponding to the second control instruction expires or when the second time period corresponding to the second control instruction expires, determining that the state of the target object has been changed to the state to which the second control instruction is used for controlling the target object to need to be changed within the second time period corresponding to the second control instruction;
alternatively, the first and second electrodes may be,
and determining that the state of the target object is not changed to the state that the second control instruction needs to be used for controlling the target object to change to within the second time period corresponding to the second control instruction when the actual state of the target object does not match with the state that the second control instruction needs to be used for controlling the target object to change to after the second time period corresponding to the second control instruction expires.
In an optional implementation manner, the obtaining an actual state of the target object after the second control instruction is executed includes:
actively polling an actual state of the target object after the target object executes the second control instruction from the target object;
alternatively, the first and second electrodes may be,
and receiving the actual state of the target object actively fed back after the target object executes the second control instruction.
In an optional implementation, the method further includes:
and when the state of the target object is not changed to the state that the second control instruction is used for controlling the target object to be changed within a second time period corresponding to the second control instruction, transmitting the second control instruction to the target object again to enable the target object to execute the second control instruction again.
In a second aspect, the present application shows a data processing apparatus comprising:
the first acquisition module is used for acquiring a first control instruction, and the first control instruction is used for controlling the state of the target object to be changed to a target state within a first time period;
the generating module is used for generating a plurality of second control instructions with a sequential execution sequence according to the first control instruction, and the plurality of second control instructions are used for controlling the state of the target object to be gradually changed to the target state through a plurality of second time periods in sequence; the duration of each second time period is respectively less than the duration of the first time period; the second control instruction at the back of the execution sequence is used for controlling the difference between the state to which the target object needs to be changed and the target state to be smaller than the second control instruction at the front of the execution sequence is used for controlling the difference between the state to which the target object needs to be changed and the target state;
and the first transmission module is used for transmitting the plurality of second control instructions to the target object so that the target object sequentially executes the plurality of second control instructions according to the execution sequence.
In an optional implementation manner, the generating module includes:
the determining unit is used for sequentially determining at least one intermediate state which gradually progresses towards the target state and has a sequential appearance order between the initial state and the target state of the target object;
the dividing unit is used for dividing the first time period into at least two second time periods with a sequential time sequence;
a generation unit, configured to generate a second control instruction … … for changing the state of the control target object to the intermediate state of the 1 st bit within the second period of the 1 st bit, a second control instruction for changing the state of the control target object to the intermediate state of the N th bit within the second period of the N th bit, and a second control instruction for changing the state of the control target object to the target state within the second period of the N +1 th bit;
wherein N is an integer greater than or equal to 1, N is the number of intermediate states, and N +1 is the number of second time periods.
In an optional implementation, the apparatus further comprises:
the second acquisition module is used for acquiring the actual state of the target object after the target object sequentially executes the plurality of second control instructions according to the execution sequence;
a first determining module, configured to determine that the state of the target object has changed to the target state within a first time period if there is a match between the actual state of the target object and the target state before or when the first time period expires;
alternatively, the first and second electrodes may be,
and the second determination module is used for determining that the state of the target object is not changed to the target state in the first time period under the condition that the actual state of the target object is not matched with the target state after the first time period expires.
In an optional implementation manner, the second obtaining module includes:
the first polling unit is used for actively polling actual states of the target object after the target object sequentially executes the plurality of second control instructions according to the execution sequence;
alternatively, the first and second electrodes may be,
and the first receiving unit is used for receiving the actual state of the target object actively fed back after the target object sequentially executes the plurality of second control instructions according to the execution sequence.
In an optional implementation, the apparatus further comprises:
the first transfer module is further to: and under the condition that the state of the target object is not changed to the target state within the first time period, transmitting the plurality of second control instructions to the target object again so that the target object sequentially executes the plurality of second control instructions again according to the sequential execution order.
In an optional implementation, the apparatus further comprises:
the third acquisition module is used for acquiring the actual state of the target object after the second control instruction is executed for any one second control instruction;
a third determining module, configured to determine that the state of the target object has been changed to the state to which the second control instruction is used to control the target object to be changed within the second time period corresponding to the second control instruction, when a second time period corresponding to the second control instruction expires or the second time period corresponding to the second control instruction expires and an actual state of the target object is matched with a state to which the second control instruction is used to control the target object to be changed;
alternatively, the first and second electrodes may be,
and a fourth determining module, configured to determine that the state of the target object is not changed to the state to which the second control instruction needs to be changed in the second time period corresponding to the second control instruction when the actual state of the target object does not match the state to which the second control instruction needs to be changed after the second time period corresponding to the second control instruction expires.
In an optional implementation manner, the third obtaining module includes:
the second polling unit is used for actively polling the actual state of the target object after the target object executes the second control instruction;
alternatively, the first and second electrodes may be,
and the second receiving unit is used for receiving the actual state of the target object actively fed back after the target object executes the second control instruction.
In an optional implementation manner, the apparatus further includes:
and the second transmission module is used for transmitting the second control instruction to the target object again under the condition that the state of the target object is not changed to the state that the second control instruction is used for controlling the target object to be changed in a second time period corresponding to the second control instruction, so that the target object executes the second control instruction again.
In a third aspect, the present application shows an electronic device comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform a method as shown in any of the preceding aspects.
In a fourth aspect, the present application illustrates a non-transitory computer readable storage medium having instructions which, when executed by a processor of an electronic device, enable the electronic device to perform a method as in any one of the preceding aspects.
In a fifth aspect, the present application shows a computer program product, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the method according to any of the preceding aspects.
Compared with the prior art, the method has the following advantages:
in the application, a first control instruction is acquired, and the first control instruction is used for controlling the state of a target object to be changed to a target state in a first time period. Generating a plurality of second control instructions with a sequential execution sequence according to the first control instruction, wherein the plurality of second control instructions are used for gradually changing the state of the control target object to the target state through a plurality of second time periods in sequence; the duration of each second time period is respectively less than the duration of the first time period; the second control instruction at the later execution sequence is used for controlling the difference between the state to which the target object needs to be changed and the target state to be smaller than the second control instruction at the earlier execution sequence is used for controlling the difference between the state to which the target object needs to be changed and the target state. And transmitting a plurality of second control instructions to the target object so that the target object sequentially executes the plurality of second control instructions according to the execution sequence.
For any one of a plurality of second control commands for changing the state of the target object from one state to another (from an initial state to an intermediate state with a first order, from one intermediate state to an adjacent next intermediate state, from an intermediate state with a last order to a target state, etc.), the difference between the one state and the other state is smaller than the difference between the initial state and the target state, that is, the "width" of the action performed by the target object in accordance with the second control command to control the target object is smaller than the "width" of the action performed by the target object in accordance with the first control command to control the target object, and the larger the number of the second control commands, the "width" of the action performed by the target object in accordance with each of the second control commands and the "width" of the action performed by the target object in accordance with the first control command to control the target object are larger, respectively The greater the difference between degrees ". That is, the greater the degree of reduction of the "magnitude" of the action performed by the target object in accordance with the respective second control instructions with respect to the "magnitude" of the action performed by the target object in accordance with the first control instructions, the target object can be made to perform a lower "magnitude" of action each time the target object is controlled in accordance with the second control instructions as much as possible. The target object can change the state of the target object to the state to which the second control instruction needs to control the target object to change as much as possible after the target object is controlled to perform the action with lower 'amplitude' according to the second control instruction. In this way, the target object sequentially executes the second control commands in the execution order, and the probability that the state of the target object can be changed from the initial state to the target state within the first time period can be increased.
For example, in the above example, the probability that the target object "the temperature of the boiler can be successfully controlled from 0 degrees to 25 degrees within a period of 0 to 5 seconds according to the second control command 1" is greater than the probability that the target object "the temperature of the boiler can be successfully controlled from 0 degrees to 100 degrees within a period of 20 seconds according to the first control command". The probability that the target object is 'capable of successfully controlling the temperature of the boiler to rise from 25 degrees to 50 degrees within a time period of 5-10 seconds according to the second control command 2' is greater than the probability that the target object is 'capable of successfully controlling the temperature of the boiler to rise from 0 degrees to 100 degrees within a time period of 20 seconds according to the first control command'. The probability that the target object is 'capable of successfully controlling the temperature of the boiler to rise from 50 degrees to 75 degrees within a time period of 10-15 seconds according to the second control command 3' is greater than the probability that the target object is 'capable of successfully controlling the temperature of the boiler to rise from 0 degrees to 100 degrees within a time period of 20 seconds according to the first control command'. The probability that the target object is 'capable of successfully controlling the temperature of the boiler to rise from 75 degrees to 100 degrees within a time period of 15-20 seconds according to the second control instruction 4' is greater than the probability that the target object is 'capable of successfully controlling the temperature of the boiler to rise from 0 degrees to 100 degrees within a time period of 20 seconds according to the first control instruction'.
In this way, the probability that the target object "can successfully control the temperature of the boiler to rise from 0 degrees to 100 degrees within a period of 20 seconds according to the second control command 1, the second control command 2, the second control command 3, and the second control command 4" is greater than the probability that the target object "can successfully control the temperature of the boiler to rise from 0 degrees to 100 degrees within a period of 20 seconds according to the first control command".
In this way, the target object sequentially executes the second control command 1, the second control command 2, the second control command 3, and the second control command 4 in the execution order, and the probability that the temperature of the boiler can be raised from 0 degrees to 100 degrees within a period of 20 seconds can be improved.
Drawings
FIG. 1 is a flow chart of the steps of a data processing method of the present application.
Fig. 2 is a block diagram of a data processing apparatus according to the present application.
Fig. 3 is a block diagram of an apparatus of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
In order to improve the reliability of the management and control device, in one mode, the reliability of issuing the control instruction to the production device by the management and control device may be improved. For example, a Control instruction is issued to the production device through a Transmission Protocol with higher reliability, and the Transmission Protocol with higher reliability may include TCP (Transmission Control Protocol), HTTP (Hyper Text Transfer Protocol), Modbus (a serial communication Protocol), and the like, so as to ensure that the production device can obtain the Control instruction as much as possible, and thus, the production device may often execute the Control instruction, thereby achieving a specific purpose within a period of time.
However, the inventors have conducted a long statistical investigation on the case where the operation of the production equipment in the production plant is controlled by the management and control equipment, and found as a result that: there still exists a situation that after the management and control device issues the control instruction to the production device, the production device cannot be made to achieve a specific purpose within a period of time.
In view of this, the present inventors have analyzed the present situation and found that: in a scene that the management and control equipment controls the production equipment to operate through the control instruction, the management and control equipment can issue the control instruction to the production equipment, the production equipment can receive the control instruction, and can execute the control instruction under the condition that the control instruction is received, so that the production equipment is controlled to operate, and a specific purpose is achieved within a period of time.
However, the inventors analyzed a large number of statistical samples of "controlling the operation of the production equipment in the production plant by the management and control equipment" and found that: in some cases, the management and control device transmits the control instruction to the production device through a transmission protocol with higher reliability, so that the production device can receive the control instruction sent by the management and control device, and the production device can also execute the control instruction, but after the production device executes the control instruction, a specific purpose cannot be achieved within a period of time (for example, the production device cannot reach a required state, etc.).
For example, in one example, assuming that one of the production devices included in the production plant is a boiler, the current temperature of the boiler is 0 degrees, and the temperature of the boiler is raised to 100 degrees for a period of time as required by the production.
The control device can send a control instruction to the boiler, the control instruction is used for raising the temperature of the boiler to 100 degrees, the boiler can receive the control instruction, and then corresponding action is executed according to the control instruction, so that the temperature of the boiler can be raised to 100 degrees within a period of time.
For example, in order to raise the temperature of the boiler, more fuel (for example, coal or natural gas) and oxygen need to be input into the combustion chamber of the boiler, so that the fuel is combusted to release heat, thereby raising the temperature of the boiler.
Thus, the boiler can automatically calculate according to the control command: in the case where it is required to raise the temperature of the boiler from 0 degrees to 100 degrees for a period of time, it is required to input a first amount of fuel and a second amount of oxygen into the combustion chamber of the boiler and automatically input the first amount of fuel into the combustion chamber of the boiler, and automatically input a second amount of oxygen and the like into the combustion chamber of the boiler so that the first amount of fuel and the second amount of oxygen reflect (the fuel is combusted via oxygen) to release heat.
However, the inventor observes and analyzes the scene of raising the temperature of the boiler for a plurality of times to find that: the boiler tends to input the calculated total amount of fuel to the combustion chamber of the boiler at one time and the calculated total amount of oxygen to the combustion chamber of the boiler at one time.
For example, in the above example, the boiler may input a first amount of fuel to the combustion chamber of the boiler at a time, and input a second amount of oxygen calculated to the combustion chamber of the boiler at a time, and the like.
The inventor further finds that: in the case where the difference between the current temperature of the boiler and the target temperature to which the control command is to be raised is large (for example, the difference between 0 degrees and 100 degrees in the above example) the calculated amount of fuel to be input to the combustion chamber of the boiler is large and the calculated amount of oxygen to be input to the combustion chamber of the boiler is large.
The input of all the calculated fuel and oxygen into the combustion chamber of the boiler at one time may result in a large amount of fuel accumulated in the combustion chamber, which may result in insufficient combustion of the fuel, insufficient heat release of the fuel, and failure to raise the temperature of the boiler to a desired target temperature (e.g., 100 degrees in the above example) within a certain period of time.
Or, in another example, assuming that a lighting tool is included in a production shop, a plurality of illumination lamps are included in the lighting tool, and the illumination lamps may include LED (Light-Emitting Diode) lamps or the like, currently, the plurality of illumination lamps included in the lighting tool are in an off state, and now the states of the plurality of illumination lamps included in the lighting tool are changed to an on state (so that the illumination lamps may illuminate) within a period of time according to production needs.
The management and control device may transmit, to the lighting tool, a control instruction for changing a state of a plurality of lighting lamps included in the lighting tool to a lighting state. The lighting tool can receive the control instruction and execute corresponding action according to the control instruction so as to change the states of a plurality of lighting lamps included in the lighting tool into lighting states in a period of time.
For example, in order to change the state of a plurality of illumination lamps included in an illumination tool to a lighting state, it is necessary to input a current to the illumination tool.
Thus, the lighting tool can automatically calculate according to the control instruction: in the case where it is necessary to change the state of a plurality of illumination lamps included in the illumination tool to the lighting state for a certain period of time, the total amount of current to be input to the illumination tool is necessary, and the total amount of current is automatically input to the illumination tool through the line.
However, the inventors have found that, after observing and analyzing a scene in which a plurality of illumination lamps included in an illumination tool are turned on a plurality of times: safety considerations for the devices in the production plant often include overcurrent protection, for example, to limit the maximum current input to the individual devices.
Thus, when the number of illumination lamps included in the illumination tool is large, the total amount of current required to be input into the illumination tool tends to be large, and if the total amount is larger than the maximum current input amount, the current of the total amount cannot be input into the illumination tool, and the current of the aforementioned "maximum current input amount" is input into the illumination tool at most, and since the input current amount is small, all illumination lamps included in the illumination tool cannot be turned on within a certain period of time (due to the absence of current, some illumination lamps cannot be turned on), or the luminance after all illumination lamps included in the illumination tool are turned on within a certain period of time cannot reach the required luminance.
In view of this, the inventors summarized the analysis of a large number of samples:
in some cases, the production equipment can get the control instructions, but for some reasons of the production equipment itself, the production equipment cannot achieve a specific purpose for a period of time according to the control instructions. For example, when the production equipment controls the production equipment to execute some actions according to the control instruction, the execution "amplitude" of the action is large, but due to the production equipment itself, even if the production equipment executes the action of the required "amplitude" for a period of time, the production equipment cannot realize the specific purpose for a period of time after executing the action.
Alternatively, in other cases, the production equipment may be able to obtain control instructions, but due to some limitations (which may be objective limitations, or subjective limitations of the production equipment itself), the production equipment may not be able to achieve a particular purpose over time based on the control instructions. For example, when the production equipment controls the production equipment to execute some actions according to the control instruction, the required execution "amplitude" of the action is large, but the objective condition limits the allowed execution "amplitude" of the action, so that the production equipment cannot execute the required "amplitude" action within a period of time, and further cannot achieve a specific purpose within a period of time.
It can be seen that the above cases have in common that: when the production equipment controls the production equipment to execute some actions according to the control instruction, the execution 'amplitude' of the actions is larger. That is, the large "amplitude" of the execution of the action results in the production facility not being able to achieve a particular purpose over a period of time.
As such, the inventors thought: an attempt may be made to reduce the "magnitude" of the performance of the action, for example, to adjust the control instructions so that the production equipment can perform the action with the smaller "magnitude" according to the adjusted control instructions.
However, the inventor has found that although the production equipment can execute the action of the "amplitude" corresponding to the adjusted control command within a period of time, the "amplitude" of the action is reduced, which may result in that the production equipment cannot achieve the expected effect after executing the action according to the adjusted control command, and thus, the specific purpose cannot be achieved within a period of time.
As such, in order to enable a production facility to achieve a particular objective over a period of time, the inventors have followed the idea of reducing the "amplitude" of the actions performed by the production facility to think again: for any control instruction (used for enabling the production device to achieve a specific purpose within a period of time, for example, for changing the state of the production device from an initial state to a target state within a period of time) that the management and control device needs to issue to the production device, the management and control device may split the control instruction into a plurality of gradual sub-instructions with sequential execution order. And then issuing a plurality of sub-instructions to the production equipment so that the production equipment sequentially executes the plurality of sub-instructions according to the execution sequence.
For any sub-instruction in the plurality of sub-instructions, the sub-instruction is used for changing the state of the production equipment from one state to another state, the difference between the one state and the another state is smaller than the difference between the initial state and the target state, that is, the amplitude of the action executed by the production equipment according to the sub-instruction is smaller than the amplitude of the action executed by the production equipment according to the control instruction, and the larger the number of the sub-instructions is, the larger the difference between the amplitude of the action executed by the production equipment according to the control instruction and the amplitude of the action executed by the production equipment according to the control instruction is. The larger the reduction degree of the "amplitude" of the action executed by the production equipment respectively controlled by the production equipment according to each sub-instruction is relative to the "amplitude" of the action executed by the production equipment controlled by the production equipment according to the control instruction, the lower "amplitude" action can be executed by the production equipment controlled by the sub-instruction every time as much as possible, and the state of the production equipment can be successfully changed to the state to which the production equipment needs to be controlled to change after the production equipment controls the production equipment to execute the lower "amplitude" action according to one sub-instruction.
In addition, the one state may be a state to which a former sub-instruction whose execution sequence is before the sub-instruction and adjacent to the execution sequence of the sub-instruction needs to control the production apparatus to change, and a latter sub-instruction whose execution sequence is after the sub-instruction and adjacent to the execution sequence of the sub-instruction is used to change the state of the production apparatus from another state to another state. The difference between the other state and the target state is smaller than the difference between the one state and the target state. The difference between the further state and the target state is smaller than the difference between the further state and the target state.
The same is true for each of the other sub-instructions in the plurality of sub-instructions.
In this way, the production device sequentially executes the sub-instructions in the execution order, and the probability that the state of the production device can be changed from the initial state to the target state can be increased.
Specifically, fig. 1 shows a flow chart of a processing method of the present application, which is applied to an electronic device, which may include a terminal, a display device, and a display device,
An application program for controlling a target object (the target object comprises a production device in a production workshop or comprises other physical devices capable of changing states and the like) is installed in the electronic device, so that the electronic device can execute the flow of the scheme based on the application program. As such, the electronic device has the ability to manipulate the target object.
Electronic devices may include, but are not limited to: a mobile terminal (e.g., a mobile phone, a tablet Computer, etc.), a Personal Computer (PC), a PDA (Personal Digital Assistant), a server, or the like.
The electronic equipment is in communication connection with the target object, and data interaction can be carried out between the electronic equipment and the target object.
Wherein, the method comprises the following steps:
in step S101, a first control instruction for controlling the state of the target object to change to the target state within a first time period is acquired.
In the present application, the user may control the target object through the electronic device, for example, the state of the target object may be changed to the target state through the electronic device within the first time period.
In a case where the state of the target object needs to be controlled by the electronic device is changed to the target state within the first time period, the user may input a first control instruction in the electronic device. The first control instruction is used for controlling the state of the target object to be changed to the target state in the first time period.
In the case where the electronic device obtains the first control instruction, step S102 may be executed.
The first time period has a duration, i.e., the target object needs to perform some action according to the first control instruction, and requires a state change to a target state within the first time period.
The starting time of the first time period may be a time when the target object receives the first control instruction, or a time when the electronic device acquires the first control instruction, or the like.
In step S102, a plurality of second control instructions with a sequential execution order are generated according to the first control instruction, and the plurality of second control instructions are used for gradually changing the state of the control target object to the target state through a plurality of second time periods in sequence; the duration of each second time period is respectively less than that of the first time period; the second control instruction at the later execution sequence is used for controlling the difference between the state to which the target object needs to be changed and the target state to be smaller than the second control instruction at the earlier execution sequence is used for controlling the difference between the state to which the target object needs to be changed and the target state.
In an embodiment of the present application, the step may be implemented by the following process, including:
1021. and sequentially determining at least one intermediate state which gradually progresses towards the target state and has a sequential appearance order between the initial state and the target state of the target object. And dividing the first time period into at least two second time periods with a chronological order.
The number of second time periods may be 1 more than the number of intermediate states, etc.
In the present application, the specific number of intermediate states is not limited, and the number of intermediate states may be 1 less than the number of second time periods.
In an embodiment, according to an actual situation, at least one intermediate state gradually progressive toward the target state and having a chronological order may be sequentially determined between the initial state and the target state of the target object, and then the first time period may be divided into at least two second time periods having chronological orders.
In this embodiment, the intermediate state may be determined first, then the number of the second time periods may be determined according to the number of the intermediate states, and then the second time periods may be determined according to the number of the second time periods.
Assuming that in a scene in which the target object changes the state of the target object from one state to another state according to one instruction, in the case that the difference between the one state and the another state is small, the success rate of the target object changing the state of the target object from one state to another state according to the one instruction is high, and in the case that the difference between the one state and the another state is large, the success rate of the target object changing the state of the target object from one state to another state according to the one instruction is low, so that a boundary line corresponding to "difference" can be analyzed through a large number of sample statistics.
In this way, in the case where the difference between the one state and the other state is smaller than the boundary, the success rate of the target object changing the state of the target object from the one state to the other state according to the one instruction is high, and in the case where the difference between the one state and the other state is greater than or equal to the boundary, the success rate of the target object changing the state of the target object from the one state to the other state according to the one instruction is low.
For example, in a scenario where the temperature of a boiler is to be measured, it is found after a large number of samples are counted: in the above example of raising the temperature of the boiler from 0 degrees to 100 degrees in the first period of time, the first control command is used to raise the temperature of the boiler from 0 degrees to 100 degrees in 20 seconds, and it is assumed that in a scenario where the boiler raises the temperature of the boiler according to one command, a success rate of raising the temperature of the boiler by 25 degrees or less according to one command is high, and a success rate of raising the temperature of the boiler by 25 degrees or more according to one command is low, and thus, a temperature rise range of 25 degrees may be a boundary.
Thus, the temperature interval of 0 to 100 degrees may be divided by 25 degrees, for example, 0 to 25 degrees, 25 to 50 degrees, 50 to 75 degrees, and 75 to 100 degrees, and thus the obtained intermediate temperatures (intermediate states) include 25 degrees, 50 degrees, and 75 degrees, that is, include 3 intermediate states, and the number of the second periods may be 4. And dividing the time length of 20 seconds into 4 second time periods which are respectively 0-5 seconds, 5-10 seconds, 10-15 seconds and 15-20 seconds. The duration of each time period may be 5 seconds, etc.
Or, according to the actual situation, the first time period may be divided into at least two second time periods with a chronological order, and then at least one intermediate state gradually progressive toward the target state and with a chronological order is sequentially determined between the initial state and the target state of the target object. In this embodiment, the second time period may be determined, the number of intermediate states may be determined according to the number of the second time period, and the intermediate states may be determined according to the number of the intermediate states. And will not be exemplified in detail herein.
1023. Generating a second control instruction … … for controlling the state of the target object to change to the intermediate state of the 1 st bit within the second time period of the 1 st bit, a second control instruction for controlling the state of the target object to change to the intermediate state of the N-th bit within the second time period of the N-th bit, and a second control instruction for controlling the state of the target object to change to the target state within the second time period of the N +1 th bit;
where N is the number of intermediate states and N +1 is the number of second time periods.
N is an integer greater than or equal to 1.
The method comprises the steps of generating a second control command 1 for controlling the temperature of the boiler to rise from 0 ℃ to 25 ℃ within a time period of 0-5 seconds, generating a second control command 2 for controlling the temperature of the boiler to rise from 25 ℃ to 50 ℃ within a time period of 5-10 seconds, generating a second control command 3 for controlling the temperature of the boiler to rise from 50 ℃ to 75 ℃ within a time period of 10-15 seconds, generating a second control command 4 for controlling the temperature of the boiler to rise from 75 ℃ to 100 ℃ within a time period of 15-20 seconds, and counting 4 second control commands.
In step S103, a plurality of second control instructions are transmitted to the target object, so that the target object sequentially executes the plurality of second control instructions according to the execution order.
For example, the electronics may communicate second control command 1, second control command 2, second control command 3, and second control command 4 to the boiler. The boiler may execute the second control command 1 to control the temperature of the boiler to rise from 0 to 25 degrees within a time period of 0 to 5 seconds, execute the second control command 2 to control the temperature of the boiler to rise from 25 to 50 degrees within a time period of 5 to 10 seconds, execute the second control command 3 to control the temperature of the boiler to rise from 50 to 75 degrees within a time period of 10 to 15 seconds, and execute the second control command 4 to control the temperature of the boiler to rise from 75 to 100 degrees within a time period of 15 to 20 seconds.
In the application, a first control instruction is acquired, and the first control instruction is used for controlling the state of a target object to be changed to a target state in a first time period. Generating a plurality of second control instructions with a sequential execution sequence according to the first control instruction, wherein the plurality of second control instructions are used for gradually changing the state of the control target object to the target state through a plurality of second time periods in sequence; the duration of each second time period is respectively less than the duration of the first time period; the second control instruction at the later execution sequence is used for controlling the difference between the state to which the target object needs to be changed and the target state to be smaller than the second control instruction at the earlier execution sequence is used for controlling the difference between the state to which the target object needs to be changed and the target state. And transmitting a plurality of second control instructions to the target object so that the target object sequentially executes the plurality of second control instructions according to the execution sequence.
For any one of the plurality of second control commands for changing the state of the target object from one state to another (from the initial state to the intermediate state with the first order, from one intermediate state to the next adjacent intermediate state, from the intermediate state with the last order to the target state, etc.), the difference between the one state and the other state is smaller than the difference between the initial state and the target state, that is, the "amplitude" of the action performed by the target object in accordance with the second control command is smaller than the "amplitude" of the action performed by the target object in accordance with the first control command, and the larger the number of the second control commands, the "amplitude" of the action performed by the target object in accordance with each of the second control commands and the "amplitude" of the action performed by the target object in accordance with the first control command are larger for the target object in accordance with the first control command The greater the difference between degrees ". That is, the greater the degree of reduction of the "magnitude" of the action performed by the target object in accordance with the respective second control instructions with respect to the "magnitude" of the action performed by the target object in accordance with the first control instructions, the target object can be made to perform a lower "magnitude" of action each time the target object is controlled in accordance with the second control instructions as much as possible. The target object can change the state of the target object to the state to which the second control instruction needs to control the target object to change as much as possible after the target object is controlled to perform the action with lower 'amplitude' according to the second control instruction. In this way, the target object sequentially executes the second control commands in the execution order, and the probability that the state of the target object can be changed from the initial state to the target state within the first time period can be increased.
For example, in the above-described example,
the probability that the target object is 'capable of successfully controlling the temperature of the boiler to rise from 0 to 25 degrees within a time period of 0 to 5 seconds according to the second control instruction 1' is greater than the probability that the target object is 'capable of successfully controlling the temperature of the boiler to rise from 0 to 100 degrees within a time period of 20 seconds according to the first control instruction'. The probability that the target object is 'capable of successfully controlling the temperature of the boiler to rise from 25 degrees to 50 degrees within a time period of 5-10 seconds according to the second control command 2' is greater than the probability that the target object is 'capable of successfully controlling the temperature of the boiler to rise from 0 degrees to 100 degrees within a time period of 20 seconds according to the first control command'. The probability that the target object is 'capable of successfully controlling the temperature of the boiler to rise from 50 degrees to 75 degrees within a time period of 10-15 seconds according to the second control command 3' is greater than the probability that the target object is 'capable of successfully controlling the temperature of the boiler to rise from 0 degrees to 100 degrees within a time period of 20 seconds according to the first control command'. The probability that the target object is 'capable of successfully controlling the temperature of the boiler to rise from 75 degrees to 100 degrees within a time period of 15-20 seconds according to the second control instruction 4' is greater than the probability that the target object is 'capable of successfully controlling the temperature of the boiler to rise from 0 degrees to 100 degrees within a time period of 20 seconds according to the first control instruction'.
In this way, the probability that the target object "can successfully control the temperature of the boiler to rise from 0 degrees to 100 degrees within a period of 20 seconds according to the second control command 1, the second control command 2, the second control command 3, and the second control command 4" is greater than the probability that the target object "can successfully control the temperature of the boiler to rise from 0 degrees to 100 degrees within a period of 20 seconds according to the first control command".
In this way, the target object sequentially executes the second control command 1, the second control command 2, the second control command 3, and the second control command 4 in the execution order, and the probability that the temperature of the boiler can be raised from 0 degrees to 100 degrees within a period of 20 seconds can be improved.
Further, after the electronic device delivers the plurality of second control instructions to the target object, the electronic device may further determine whether the state of the target object is changed to the target state within the first time period to know a change situation of the state of the target object.
For example, in one embodiment, the electronic device may acquire an actual state of the target object after the plurality of second control instructions are sequentially executed according to the execution order.
For example, the electronic device may actively poll (e.g., may actively poll periodically within a first time period, etc.) the target object from the actual states after the target object executes the plurality of second control instructions sequentially in the sequential execution order.
For example, the electronic device may send an acquisition request to the target object, where the acquisition request is used to acquire an actual state of the target object, and after receiving the acquisition request, the target object may return an actual current state of the target object to the electronic device according to the acquisition request, and the electronic device may receive the actual current state of the target object returned by the target object according to the acquisition request.
Or, in another embodiment, the electronic device may receive an actual state of the target object actively fed back after the target object sequentially executes the plurality of second control instructions according to the execution sequence.
For example, after receiving the plurality of second control instructions, the target object may sequentially execute the plurality of second control instructions according to a sequential execution order, and may actively send the actual state of the target object to the electronic device at regular intervals, so that the electronic device may periodically receive the actual state of the target object actively fed back by the target object.
Determining that the state of the target object has changed to the target state within the first time period in case of a match between the actual state of the target object and the target state before or at the expiration of the first time period; alternatively, in the case of a mismatch between the actual state of the target object and the target state after the expiration of the first time period, it is determined that the state of the target object has not been changed to the target state within the first time period.
For whether the states match, the matching between the actual state of the target object and the target state can be understood as: the actual state of the target object is the same as the target state, or the difference between the actual state and the target state of the target object is smaller than a preset difference, and the preset difference may be determined according to the actual situation, which is not limited in the present application.
And the calculation manner or the measurement manner of the difference between the actual state and the target state of the target object may also be determined according to the actual situation, which is not described in detail herein.
In one example, in a case where a difference between an actual temperature of a boiler and 100 degrees (a target temperature) is less than a preset difference in a scenario in which the temperature of the boiler is raised, it is determined that the actual temperature of the boiler matches 100 degrees (the target temperature). Otherwise, the actual temperature of the boiler does not match 100 degrees (target temperature).
The preset difference may include a difference of 1 degree, a difference of 2 degrees, a difference of 3 degrees, and the like, which may be determined according to actual situations, and this is not limited in this application.
Further, in the case where the state of the target object is not changed to the target state within the first time period, it is described that the purpose of controlling the state of the target object to be changed to the target state according to the first control instruction (or the plurality of second control instructions) is not achieved, and the demand of the user for controlling the target object by the electronic device is not achieved (the production efficiency of the device in the production plant in which the target object is located may be lowered, or the like).
In order to meet the demand of the user for controlling the target object by the electronic device (for example, to improve the production efficiency of the device in the production plant where the target object is located), it is necessary to change the state of the control target object to the target state.
In order to achieve the purpose of controlling the state of the target object to change to the target state, in an embodiment, the electronic device may transmit the plurality of second control instructions to the target object again, so that the target object sequentially executes the plurality of second control instructions again according to the execution sequence.
Therefore, the execution times of the target object for sequentially executing the plurality of second control instructions according to the execution sequence are increased, so that the probability of changing the state of the target object to the target state can be improved, and the state of the target object can be finally changed to the target state.
Alternatively, in a case that the state of the target object is not changed to the target state within the first time period, the electronic device may acquire an alternative control instruction corresponding to the first control instruction (the alternative control instruction may be set in the electronic device by the user, for example, may be set in the electronic device when the user inputs the first control instruction in the electronic device, and so on, and thus the electronic device may directly read the alternative control instruction from the electronic device), and then may transmit the alternative control instruction to the target object, so that the target object executes the alternative control instruction.
Alternatively, when the candidate of the target object exists in the production plant, the plurality of second control commands may be sent to the candidate, so that the candidate may sequentially execute the plurality of second control commands in the sequential execution order, so that the state of the candidate may be switched to the target state, thereby achieving an effect of changing the state of the target object to the target state (for example, in a plant where the target object and the candidate are located at the same time, changing the state of the target object to the target state is to improve the production efficiency of other production equipment in the production plant, and thus, if the state of the candidate in the same production plant as the target object is changed to the target state, the production efficiency of other production equipment in the production plant may be improved as well, although the state of the target object is not changed to the target state).
In an embodiment of the application, after the electronic device transmits the plurality of second control instructions to the target object, for any one of the plurality of second control instructions, the electronic device may further determine whether a state of the target object after executing the second control instruction is changed to a state to which the second control instruction is used for controlling the target object, so as to know a change situation of the state of the target object.
For example, in one embodiment, the electronic device may obtain an actual state of the target object after executing the second control instruction.
For example, the electronic device may actively poll (e.g., periodically actively poll during a second time period corresponding to the second control command, etc.) an actual state of the target object after the second control command is executed from the target object.
For example, the electronic device may send an acquisition request to the target object, where the acquisition request is used to acquire an actual state of the target object, and after receiving the acquisition request, the target object may return an actual state of the target object at the time to the electronic device according to the acquisition request, and the electronic device may receive the actual state of the target object at the time returned by the target object according to the acquisition request.
Or, in another embodiment, the electronic device may receive an actual state after the target object actively feeds back the target object executes the second control instruction.
For example, during the execution of the second control instruction by the target object, the actual state of the target object may be periodically and actively sent to the electronic device, so that the electronic device may periodically receive the actual state of the target object actively fed back by the target object.
Further, when the actual state of the target object matches with the state (one of the intermediate states or the target state or the like) to which the second control instruction is used for controlling the target object, before the second time period corresponding to the second control instruction expires or when the second time period corresponding to the second control instruction expires, it is determined that the state of the target object has been changed to the state to which the second control instruction is used for controlling the target object, within the second time period corresponding to the second control instruction.
Or, after a second time period corresponding to the second control instruction expires, in a case that the actual state of the target object does not match the state to which the second control instruction needs to be changed for controlling the target object, determining that the state of the target object is not changed to the state to which the second control instruction needs to be changed for controlling the target object within the second time period corresponding to the second control instruction.
The second control instruction is used for controlling an intermediate state to which the state of the target object is changed within a second time period, and the second time period is the second time period corresponding to the second control instruction.
Further, when the state of the target object is not changed to the state to which the second control instruction is used to control the target object, within the second time period corresponding to the second control instruction, the purpose of changing the state of the target object to the state to which the second control instruction is used to control the target object according to the second control instruction is not achieved, and the user's demand for controlling the target object through the electronic device is not met (the production efficiency of the device in the production plant in which the target object is located may be reduced, and the like).
In order to meet the demand of the user for controlling the target object by the electronic device (for example, to improve the production efficiency of the device in the production plant in which the target object is located), it is necessary to achieve the purpose of "changing the state of the control target object to the state to which the second control command is used for the control target object.
In order to achieve the purpose of "the state of the control target object is changed to the state that the second control instruction is used for the control target object to be changed", in one embodiment, the electronic device may transmit the second control instruction to the target object again so that the target object executes the second control instruction again;
in this way, by increasing the execution times of the target object executing the second control instruction, the probability that the state of the target object is changed to the state to which the second control instruction is used for controlling the target object to be changed can be increased, and further, the state of the target object can be finally changed to the state to which the second control instruction is used for controlling the target object to be changed.
The same is true for each other of the plurality of second control instructions.
In another embodiment of the present application, for any one of the plurality of second control instructions, when the state of the target object is not changed to a state that the second control instruction is used to control the target object and needs to be changed within a second time period corresponding to the second control instruction, the second control instruction and a second control instruction whose execution sequence is located after the control instruction are determined in the plurality of second control instructions.
Changing the determined second control instruction into a plurality of third control instructions with a sequential execution order, wherein the number of the third control instructions is greater than that of the determined second control instructions, and the plurality of third control instructions are used for gradually changing the state of the control target object to the target state sequentially through a plurality of third time periods (for example, the state of the control target object is gradually changed from the current state to the target state sequentially through a plurality of third time periods, and the current state may be an initial state or an intermediate state); the duration of the third time period may be less than the duration of the second time period.
And in the determined second control instructions, each second control instruction has a respective execution order, and in the obtained plurality of third control instructions, each third control instruction has a respective execution order.
For any execution sequence, the end time corresponding to the second control instruction needing to be executed in the execution sequence is later than the end time corresponding to the third control instruction needing to be executed in the execution sequence.
The second control instruction which needs to be executed in the execution sequence is used for changing the state of the target object into one state in a second time period, and the end time corresponding to the second control instruction which needs to be executed in the execution sequence is the end time of the second time period.
The third control instruction that needs to be executed in the execution sequence is used to change the state of the target object to a state in a third time period, and the end time corresponding to the third control instruction that needs to be executed in the execution sequence is the end time of the third time period.
The electronic device may transmit the plurality of third control instructions to the target object, so that the target object sequentially executes the plurality of third control instructions according to the execution sequence.
Because the target object fails to change the state of the target object to the state that the second control instruction needs to be changed within the second time period corresponding to the second control instruction according to the second control instruction, the second time period corresponding to the second control instruction is delayed, so that the probability that the state of the target object can be changed to the target state within the first time period can be improved by shortening the duration of the third time period corresponding to the third control instruction (or the ending time corresponding to the corresponding third time period), and the efficiency of changing the state of the target object to the target state is prevented from being reduced.
The same is true for each other of the plurality of second control instructions.
It is noted that, for simplicity of explanation, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will appreciate that the present application is not limited by the order of acts, as some steps may, in accordance with the present application, occur in other orders and concurrently. Further, those of skill in the art will also appreciate that the embodiments described in the specification are exemplary of alternative embodiments and that the acts involved are not necessarily required of the application.
Referring to fig. 2, there is shown a block diagram of a data processing apparatus of the present application, the apparatus comprising:
a first obtaining module 11, configured to obtain a first control instruction, where the first control instruction is used to control a state of a target object to change to a target state within a first time period;
the generating module 12 is configured to generate a plurality of second control instructions with a sequential execution order according to the first control instruction, where the plurality of second control instructions are used to control the state of the target object to be gradually changed to the target state through a plurality of second time periods in sequence; the duration of each second time period is respectively less than the duration of the first time period; the second control instruction at the back of the execution sequence is used for controlling the difference between the state to which the target object needs to be changed and the target state to be smaller than the second control instruction at the front of the execution sequence is used for controlling the difference between the state to which the target object needs to be changed and the target state;
the first transmitting module 13 is configured to transmit the plurality of second control instructions to the target object, so that the target object sequentially executes the plurality of second control instructions according to the execution sequence.
In an optional implementation manner, the generating module includes:
the determining unit is used for sequentially determining at least one intermediate state which gradually progresses towards the target state and has a sequential appearance order between the initial state and the target state of the target object;
the dividing unit is used for dividing the first time period into at least two second time periods with a sequential time sequence;
a generation unit, configured to generate a second control instruction … … for changing the state of the control target object to the intermediate state of the 1 st bit within the second period of the 1 st bit, a second control instruction for changing the state of the control target object to the intermediate state of the N th bit within the second period of the N th bit, and a second control instruction for changing the state of the control target object to the target state within the second period of the N +1 th bit;
wherein N is an integer greater than or equal to 1, N is the number of intermediate states, and N +1 is the number of second time periods.
In an optional implementation, the apparatus further comprises:
the second acquisition module is used for acquiring the actual state of the target object after the target object sequentially executes the plurality of second control instructions according to the execution sequence;
a first determining module, configured to determine that the state of the target object has changed to the target state within a first time period if there is a match between the actual state of the target object and the target state before or when the first time period expires;
alternatively, the first and second electrodes may be,
and the second determination module is used for determining that the state of the target object is not changed to the target state in the first time period under the condition that the actual state of the target object is not matched with the target state after the first time period expires.
In an optional implementation manner, the second obtaining module includes:
the first polling unit is used for actively polling the actual state of the target object after the target object sequentially executes the plurality of second control instructions according to the execution sequence;
alternatively, the first and second electrodes may be,
and the first receiving unit is used for receiving the actual state of the target object actively fed back after the target object sequentially executes the plurality of second control instructions according to the execution sequence.
In an optional implementation, the apparatus further comprises:
the first transfer module is further to: and under the condition that the state of the target object is not changed to the target state within the first time period, transmitting the plurality of second control instructions to the target object again so that the target object sequentially executes the plurality of second control instructions again according to the sequential execution order.
In an optional implementation manner, the apparatus further includes:
the third acquisition module is used for acquiring the actual state of the target object after the second control instruction is executed for any one second control instruction;
a third determining module, configured to determine that the state of the target object has been changed to a state to which the second control instruction is used for controlling the target object to need to be changed within a second time period corresponding to the second control instruction when a second time period corresponding to the second control instruction expires or when a second time period corresponding to the second control instruction expires and an actual state of the target object is matched with a state to which the second control instruction is used for controlling the target object to need to be changed;
alternatively, the first and second electrodes may be,
and a fourth determining module, configured to determine that the state of the target object is not changed to the state to which the second control instruction needs to be changed in the second time period corresponding to the second control instruction when the actual state of the target object does not match the state to which the second control instruction needs to be changed after the second time period corresponding to the second control instruction expires.
In an optional implementation manner, the third obtaining module includes:
the second polling unit is used for actively polling the actual state of the target object after the target object executes the second control instruction;
alternatively, the first and second electrodes may be,
and the second receiving unit is used for receiving the actual state of the target object actively fed back after the target object executes the second control instruction.
In an optional implementation manner, the apparatus further includes:
and the second transmission module is used for transmitting the second control instruction to the target object again under the condition that the state of the target object is not changed to the state that the second control instruction is used for controlling the target object to be changed in a second time period corresponding to the second control instruction, so that the target object executes the second control instruction again.
In the application, a first control instruction is acquired, and the first control instruction is used for controlling the state of a target object to be changed to a target state in a first time period. Generating a plurality of second control instructions with a sequential execution sequence according to the first control instruction, wherein the plurality of second control instructions are used for gradually changing the state of the control target object to the target state through a plurality of second time periods in sequence; the duration of each second time period is respectively less than the duration of the first time period; the second control instruction at the later execution sequence is used for controlling the difference between the state to which the target object needs to be changed and the target state to be smaller than the second control instruction at the earlier execution sequence is used for controlling the difference between the state to which the target object needs to be changed and the target state. And transmitting a plurality of second control instructions to the target object so that the target object sequentially executes the plurality of second control instructions according to the execution sequence.
For any one of the plurality of second control commands for changing the state of the target object from one state to another (from the initial state to the intermediate state with the first order, from one intermediate state to the next adjacent intermediate state, from the intermediate state with the last order to the target state, etc.), the difference between the one state and the other state is smaller than the difference between the initial state and the target state, that is, the "amplitude" of the action performed by the target object in accordance with the second control command is smaller than the "amplitude" of the action performed by the target object in accordance with the first control command, and the larger the number of the second control commands, the "amplitude" of the action performed by the target object in accordance with each of the second control commands and the "amplitude" of the action performed by the target object in accordance with the first control command are larger for the target object in accordance with the first control command The greater the difference between degrees ". That is, the greater the degree of reduction of the "magnitude" of the action performed by the target object in accordance with the respective second control instructions with respect to the "magnitude" of the action performed by the target object in accordance with the first control instructions, the target object can be made to perform a lower "magnitude" of action each time the target object is controlled in accordance with the second control instructions as much as possible. The target object can change the state of the target object to the state to which the second control instruction needs to control the target object to change as much as possible after the target object is controlled to perform the action with lower 'amplitude' according to the second control instruction. In this way, the target object sequentially executes the second control commands in the execution order, and the probability that the state of the target object can be changed from the initial state to the target state within the first time period can be increased.
For example, in the above example, the probability that the target object "the temperature of the boiler can be successfully controlled from 0 to 25 degrees in a period of 0 to 5 seconds according to the second control command 1" is higher than the probability that the target object "the temperature of the boiler can be successfully controlled from 0 to 100 degrees in a period of 20 seconds according to the first control command". The probability that the target object is 'capable of successfully controlling the temperature of the boiler to rise from 25 degrees to 50 degrees within a time period of 5-10 seconds according to the second control command 2' is greater than the probability that the target object is 'capable of successfully controlling the temperature of the boiler to rise from 0 degrees to 100 degrees within a time period of 20 seconds according to the first control command'. The probability that the target object is "the temperature of the boiler can be successfully controlled to rise from 50 degrees to 75 degrees within a time period of 10-15 seconds according to the second control command 3" is greater than the probability that the target object is "the temperature of the boiler can be successfully controlled to rise from 0 degrees to 100 degrees within a time period of 20 seconds according to the first control command". The probability that the target object is 'capable of successfully controlling the temperature of the boiler to rise from 75 degrees to 100 degrees within a time period of 15-20 seconds according to the second control instruction 4' is greater than the probability that the target object is 'capable of successfully controlling the temperature of the boiler to rise from 0 degrees to 100 degrees within a time period of 20 seconds according to the first control instruction'.
In this way, the probability that the target object "can successfully control the temperature of the boiler to rise from 0 to 100 degrees within a period of 20 seconds according to the second control command 1, the second control command 2, the second control command 3, and the second control command 4" is greater than the probability that the target object "can successfully control the temperature of the boiler to rise from 0 to 100 degrees within a period of 20 seconds according to the first control command".
In this way, the target object sequentially executes the second control command 1, the second control command 2, the second control command 3, and the second control command 4 in the execution order, and the probability that the temperature of the boiler can be raised from 0 degrees to 100 degrees within a period of 20 seconds can be improved.
The present application further provides a non-transitory, readable storage medium, where one or more modules (programs) are stored, and when the one or more modules are applied to a device, the device may execute instructions (instructions) of method steps in this application.
Embodiments of the present application provide one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause an electronic device to perform the methods as described in one or more of the above embodiments. In the embodiment of the application, the electronic device comprises a server, a gateway, a sub-device and the like, wherein the sub-device is a device such as an internet of things device.
Embodiments of the present disclosure may be implemented as an apparatus, which may include electronic devices such as servers (clusters), terminal devices such as IoT devices, and the like, using any suitable hardware, firmware, software, or any combination thereof, for a desired configuration.
Fig. 3 schematically illustrates an example apparatus 1300 that can be used to implement various embodiments described herein.
For one embodiment, fig. 3 illustrates an example apparatus 1300 having one or more processors 1302, a control module (chipset) 1304 coupled to at least one of the processor(s) 1302, memory 1306 coupled to the control module 1304, non-volatile memory (NVM)/storage 1308 coupled to the control module 1304, one or more input/output devices 1310 coupled to the control module 1304, and a network interface 1312 coupled to the control module 1304.
Processor 1302 may include one or more single-core or multi-core processors, and processor 1302 may include any combination of general-purpose or special-purpose processors (e.g., graphics processors, application processors, baseband processors, etc.). In some embodiments, the apparatus 1300 can be a server device such as a gateway described in the embodiments of the present application.
In some embodiments, apparatus 1300 may include one or more computer-readable media (e.g., memory 1306 or NVM/storage 1308) having instructions 1314 and one or more processors 1302, which in combination with the one or more computer-readable media, are configured to execute instructions 1314 to implement modules to perform actions described in this disclosure.
For one embodiment, control module 1304 may include any suitable interface controllers to provide any suitable interface to at least one of the processor(s) 1302 and/or any suitable device or component in communication with control module 1304.
The control module 1304 may include a memory controller module to provide an interface to the memory 1306. The memory controller module may be a hardware module, a software module, and/or a firmware module.
Memory 1306 may be used, for example, to load and store data and/or instructions 1314 for device 1300. For one embodiment, memory 1306 may comprise any suitable volatile memory, such as suitable DRAM. In some embodiments, the memory 1306 may comprise double data rate four synchronous dynamic random access memory (DDR4 SDRAM).
For one embodiment, control module 1304 may include one or more input/output controllers to provide an interface to NVM/storage 1308 and input/output device(s) 1310.
For example, NVM/storage 1308 may be used to store data and/or instructions 1314. NVM/storage 1308 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more Hard Disk Drives (HDDs), one or more Compact Disc (CD) drives, and/or one or more Digital Versatile Disc (DVD) drives).
NVM/storage 1308 may include storage resources that are physically part of the device on which apparatus 1300 is installed, or it may be accessible by the device and need not be part of the device. For example, NVM/storage 1308 may be accessible over a network via input/output device(s) 1310.
Input/output device(s) 1310 may provide an interface for apparatus 1300 to communicate with any other suitable device, input/output device(s) 1310 may include a communications component, a pinyin component, a sensor component, and so forth. The network interface 1312 may provide an interface for the device 1300 to communicate over one or more networks, and the device 1300 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and/or protocols, such as access to a communication standard-based wireless network, e.g., WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof.
For one embodiment, at least one of the processor(s) 1302 may be packaged together with logic for one or more controllers (e.g., memory controller modules) of the control module 1304. For one embodiment, at least one of the processor(s) 1302 may be packaged together with logic for one or more controllers of the control module 1304 to form a System In Package (SiP). For one embodiment, at least one of the processor(s) 1302 may be integrated on the same die with logic for one or more controller(s) of the control module 1304. For one embodiment, at least one of the processor(s) 1302 may be integrated on the same die with logic of one or more controllers of the control module 1304 to form a system on chip (SoC).
In various embodiments, apparatus 1300 may be, but is not limited to being: a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet, a netbook, etc.) among other terminal devices. In various embodiments, apparatus 1300 may have more or fewer components and/or different architectures. For example, in some embodiments, device 1300 includes one or more cameras, a keyboard, a Liquid Crystal Display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an Application Specific Integrated Circuit (ASIC), and speakers.
An embodiment of the present application provides an electronic device, including: one or more processors; and one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the electronic device to perform a method as described in one or more of the present applications.
For the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable information processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable information processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable information processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable information processing terminal device to cause a series of operational steps to be performed on the computer or other programmable terminal device to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal device provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the true scope of the embodiments of the present application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The data processing method and apparatus provided by the present application are introduced in detail, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A method of data processing, the method comprising:
acquiring a first control instruction, wherein the first control instruction is used for controlling the state of a target object to be changed to a target state in a first time period;
generating a plurality of second control instructions with a sequential execution sequence according to the first control instruction, wherein the plurality of second control instructions are used for gradually changing the state of the control target object to the target state through a plurality of second time periods in sequence; the duration of each second time period is respectively less than the duration of the first time period; the second control instruction at the back of the execution sequence is used for controlling the difference between the state to which the target object needs to be changed and the target state to be smaller than the second control instruction at the front of the execution sequence is used for controlling the difference between the state to which the target object needs to be changed and the target state;
and transmitting a plurality of second control instructions to the target object so that the target object sequentially executes the plurality of second control instructions according to the execution sequence.
2. The method according to claim 1, wherein the generating a plurality of second control instructions having a sequential execution order according to the first control instruction comprises:
sequentially determining at least one intermediate state which gradually progresses towards the target state and has a sequential appearance order between the initial state and the target state of the target object;
dividing the first time period into at least two second time periods with a sequential time sequence;
generating a second control instruction … … for controlling the state of the target object to change to the intermediate state of the 1 st bit within the second time period of the 1 st bit, a second control instruction for controlling the state of the target object to change to the intermediate state of the N-th bit within the second time period of the N-th bit, and a second control instruction for controlling the state of the target object to change to the target state within the second time period of the N +1 th bit;
wherein N is an integer greater than or equal to 1, N is the number of intermediate states, and N +1 is the number of second time periods.
3. The method of claim 1, wherein after the delivering the second plurality of control commands to the target object, further comprises:
acquiring actual states of the target object after the target object sequentially executes the plurality of second control instructions according to the execution sequence;
determining that the state of the target object has changed to the target state within the first time period in case of a match between the actual state of the target object and the target state before or at the expiration of the first time period;
alternatively, the first and second electrodes may be,
in the event of a mismatch between the actual state of the target object and the target state after expiration of the first time period, it is determined that the state of the target object has not changed to the target state within the first time period.
4. The method according to claim 3, wherein the obtaining of the actual state of the target object after the plurality of second control instructions are executed in sequence according to the execution order comprises:
actively polling actual states of the target object after the target object sequentially executes the plurality of second control instructions according to the execution sequence;
alternatively, the first and second electrodes may be,
and receiving the actual state of the target object actively fed back after the target object sequentially executes the plurality of second control instructions according to the execution sequence.
5. The method of claim 3, further comprising:
and under the condition that the state of the target object is not changed to the target state within the first time period, transmitting the plurality of second control instructions to the target object again so that the target object sequentially executes the plurality of second control instructions again according to the sequential execution order.
6. The method of claim 1, wherein after the delivering the second plurality of control commands to the target object, further comprises:
for any one second control instruction, acquiring an actual state of the target object after the target object executes the second control instruction;
determining that the state of the target object is changed to the state that the second control instruction is used for controlling the target object to be changed within the second time period corresponding to the second control instruction when the actual state of the target object is matched with the state that the second control instruction is used for controlling the target object to be changed before the second time period corresponding to the second control instruction expires or when the second time period corresponding to the second control instruction expires;
alternatively, the first and second electrodes may be,
and determining that the state of the target object is not changed to the state that the second control instruction needs to be used for controlling the target object to change to within the second time period corresponding to the second control instruction when the actual state of the target object does not match with the state that the second control instruction needs to be used for controlling the target object to change to after the second time period corresponding to the second control instruction expires.
7. The method of claim 6, wherein obtaining the actual state of the target object after executing the second control instruction comprises:
actively polling an actual state of the target object after the target object executes the second control instruction from the target object;
alternatively, the first and second electrodes may be,
and receiving the actual state of the target object actively fed back after the target object executes the second control instruction.
8. The method of claim 6, further comprising:
and when the state of the target object is not changed to the state that the second control instruction is used for controlling the target object to be changed within a second time period corresponding to the second control instruction, transmitting the second control instruction to the target object again to enable the target object to execute the second control instruction again.
9. A data processing apparatus, characterized in that the apparatus comprises:
the first acquisition module is used for acquiring a first control instruction, and the first control instruction is used for controlling the state of the target object to be changed to a target state in a first time period;
the generating module is used for generating a plurality of second control instructions with a sequential execution sequence according to the first control instruction, and the plurality of second control instructions are used for controlling the state of the target object to be gradually changed to the target state through a plurality of second time periods in sequence; the duration of each second time period is respectively less than the duration of the first time period; the second control instruction at the back of the execution sequence is used for controlling the difference between the state to which the target object needs to be changed and the target state to be smaller than the second control instruction at the front of the execution sequence is used for controlling the difference between the state to which the target object needs to be changed and the target state;
and the first transmission module is used for transmitting the plurality of second control instructions to the target object so that the target object sequentially executes the plurality of second control instructions according to the execution sequence.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 8 are implemented when the processor executes the program.
11. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 8.
CN202210256389.0A 2022-03-15 2022-03-15 Data processing method and device Pending CN114637265A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210256389.0A CN114637265A (en) 2022-03-15 2022-03-15 Data processing method and device
PCT/CN2023/080334 WO2023174125A1 (en) 2022-03-15 2023-03-08 Data processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210256389.0A CN114637265A (en) 2022-03-15 2022-03-15 Data processing method and device

Publications (1)

Publication Number Publication Date
CN114637265A true CN114637265A (en) 2022-06-17

Family

ID=81948848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210256389.0A Pending CN114637265A (en) 2022-03-15 2022-03-15 Data processing method and device

Country Status (2)

Country Link
CN (1) CN114637265A (en)
WO (1) WO2023174125A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023174125A1 (en) * 2022-03-15 2023-09-21 阿里云计算有限公司 Data processing method and apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6163730A (en) * 1997-08-11 2000-12-19 Motorola, Inc. Method and control system for changing the state of a plant
CN109271082A (en) * 2018-08-22 2019-01-25 珠海格力电器股份有限公司 A kind of control method, device and equipment
CN109960290A (en) * 2017-12-14 2019-07-02 深圳市优必选科技有限公司 Steering engine output control method, system and device
CN110780922A (en) * 2019-10-22 2020-02-11 珠海格力电器股份有限公司 Instruction generation method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114637265A (en) * 2022-03-15 2022-06-17 阿里云计算有限公司 Data processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6163730A (en) * 1997-08-11 2000-12-19 Motorola, Inc. Method and control system for changing the state of a plant
CN109960290A (en) * 2017-12-14 2019-07-02 深圳市优必选科技有限公司 Steering engine output control method, system and device
CN109271082A (en) * 2018-08-22 2019-01-25 珠海格力电器股份有限公司 A kind of control method, device and equipment
CN110780922A (en) * 2019-10-22 2020-02-11 珠海格力电器股份有限公司 Instruction generation method and device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
孙晓鸣;朱华魏;: "战场态势发生器中海上目标信息产生和控制", 舰船电子工程, no. 03, 20 March 2013 (2013-03-20) *
谢宝昌等: "电机的DSP控制技术及其应用", 31 December 2005, pages: 2 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023174125A1 (en) * 2022-03-15 2023-09-21 阿里云计算有限公司 Data processing method and apparatus

Also Published As

Publication number Publication date
WO2023174125A1 (en) 2023-09-21

Similar Documents

Publication Publication Date Title
US20160299956A1 (en) Data ingestion process
TWM539648U (en) Predictive control systems
CN103326958A (en) Method and system for monitoring data cache
CN110086658B (en) Interface switching method and device and computer readable storage medium
CN102857578A (en) File uploading method and file uploading system of network drive and network drive client
US10558191B2 (en) Generation and publication of shared tagsets
CN109309698B (en) Data processing system, method and device
CN114637265A (en) Data processing method and device
US20140324368A1 (en) Test method, test system and electronic device employing the same
US20220141115A1 (en) Gateway, communication system, and communication method
CN108347355B (en) Application state detection method and device
US20180048732A1 (en) Techniques for storing or accessing a key-value item
CN109725913A (en) The method and apparatus that data update
EP3229144A1 (en) Distribution method, device, and program
JP5967322B1 (en) Information processing apparatus and information processing method
CN114968728A (en) Data acquisition method, device, equipment and storage medium
US10379561B2 (en) Energy saving method based on confidence interval and apparatus using the same
CN115755737A (en) Single crystal furnace system control method and device, computer equipment and storage medium
US20180059640A1 (en) Techniques for event driven scheduling in a welding or cutting system
US10148584B2 (en) Adaptive compression
KR101415270B1 (en) Network system monitoring application installed on computing device
CN115208939B (en) Access control method, device, storage medium and electronic equipment
CN113839976B (en) Data sampling method and device
CN111031383B (en) Streaming media transmission method and device and electronic equipment
CN106156018B (en) Data indexing method and device

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