Disclosure of Invention
In order to solve the existing technical problems, the embodiment of the invention provides a smoke stove linkage processing method and device, a computer readable storage medium and a smoke machine.
The technical scheme of the invention is realized as follows:
the embodiment of the invention provides a smoke stove linkage processing method, which comprises the following steps:
determining a working gear according to an input instruction;
determining a judgment threshold corresponding to the working gear according to the corresponding relation between the stored working gear and the judgment threshold;
acquiring a detection value obtained by at least one sensor;
and generating a new judgment threshold value according to the determined judgment threshold value and the detection value, and updating and storing the corresponding relation between the working gear and the judgment threshold value.
In the above solution, the sensor at least includes one of the following: smoke sensors and brightness sensors;
the acquiring of the detection value obtained by the at least one sensor includes:
and acquiring a smoke detection value obtained by the smoke sensor and/or a brightness detection value obtained by the brightness sensor.
In the foregoing solution, the determining a determination threshold corresponding to a working gear according to a correspondence between a stored working gear and a determination threshold includes:
determining a smoke judgment threshold corresponding to the motor working gear determined according to the input instruction according to the corresponding relation between the stored motor working gear and the smoke judgment threshold corresponding to each motor working gear; and/or the presence of a gas in the gas,
and determining the brightness judgment threshold corresponding to the lighting working position determined according to the input instruction according to the corresponding relation between the stored lighting working position and the brightness judgment threshold corresponding to each lighting working position.
In the foregoing aspect, the generating a new determination threshold value according to the determined determination threshold value and the detection value includes:
judging whether the detection value is effective or not, and processing the determined judgment threshold value and the detection value according to a preset strategy to generate a new judgment threshold value when the detection value is determined to be effective;
the judging whether the detection value is valid includes:
and determining the difference value between the detection value and the determined judgment threshold value, wherein if the difference value is less than or equal to the difference threshold value, the detection value is determined to be effective.
The embodiment of the invention also provides a smoke stove linkage processing method, which comprises the following steps:
acquiring a detection value obtained by at least one sensor, and determining a working gear corresponding to the detection value;
and generating a working instruction according to the working gear, and controlling the working states of the first equipment and the second equipment according to the working instruction.
In the above solution, the sensor at least includes one of the following: smoke sensors and brightness sensors;
the acquiring a detection value obtained by at least one sensor and determining a working gear corresponding to the detection value comprises:
acquiring a smoke detection value obtained by the smoke sensor and/or a brightness detection value obtained by the brightness sensor;
acquiring a corresponding relation between the stored motor working gears and smoke judgment thresholds corresponding to the motor working gears, determining a maximum smoke judgment threshold exceeding the smoke detection value, and determining the motor working gears according to the maximum smoke judgment threshold; and/or the presence of a gas in the gas,
and acquiring the corresponding relation between the stored lighting working positions and the brightness judgment threshold corresponding to each lighting working position, determining the maximum brightness judgment threshold over which the brightness detection value exceeds, and determining the lighting working positions according to the maximum brightness judgment threshold.
In the foregoing solution, the generating a working instruction according to the working gear and controlling the first device according to the working instruction includes:
and generating a first working instruction according to the working gear of the motor and/or the working gear of the lighting, and controlling the first equipment according to the first working instruction.
In the above scheme, the sensor further comprises a combustible gas sensor;
the acquiring of the detection value obtained by at least one sensor and the determining of the working gear corresponding to the detection value further comprise:
acquiring a combustible gas detection value obtained by the combustible gas sensor;
and determining the working gear of the gas valve according to the combustible gas detection value and the stored combustible gas threshold value.
In the foregoing solution, the generating a working instruction according to the working gear and controlling the second device according to the working instruction includes:
and generating a second working instruction according to the working gear of the gas valve, and controlling the second equipment according to the second working instruction.
The embodiment of the invention also provides a smoke stove linkage processing device, which comprises: the device comprises a first receiving module and a first processing module; wherein,
the first receiving module is used for acquiring a detection value obtained by at least one sensor;
the first processing module is used for determining a working gear according to an input instruction; determining a judgment threshold corresponding to the working gear according to the corresponding relation between the stored working gear and the judgment threshold; and a process for the preparation of a coating,
and generating a new judgment threshold value according to the determined judgment threshold value and the detection value, and updating and storing the corresponding relation between the working gear and the judgment threshold value.
In the above solution, the sensor at least includes one of the following: smoke sensors and brightness sensors;
the first receiving module is specifically configured to: and acquiring a smoke detection value obtained by the smoke sensor and/or a brightness detection value obtained by the brightness sensor.
In the above scheme, the first processing module is specifically configured to determine, according to a correspondence between a stored motor working gear and a smoke determination threshold corresponding to each motor working gear, a smoke determination threshold corresponding to a motor working gear determined according to an input instruction; and/or the presence of a gas in the gas,
and determining the brightness judgment threshold corresponding to the lighting working position determined according to the input instruction according to the corresponding relation between the stored lighting working position and the brightness judgment threshold corresponding to each lighting working position.
In the foregoing solution, the first processing module is specifically configured to determine whether the detection value is valid, and when the detection value is determined to be valid, process the determined determination threshold and the detection value according to a preset policy to generate a new determination threshold;
the first processing module is specifically configured to determine a difference between the detection value and the determined determination threshold, and if the difference is smaller than or equal to a difference threshold, determine that the detection value is valid.
The embodiment of the invention also provides a smoke stove linkage processing device, which comprises: the second receiving module and the second processing module; wherein,
the second receiving module is used for acquiring a detection value obtained by at least one sensor;
the second processing module is used for determining a working gear corresponding to the detection value; and generating a working instruction according to the working gear, and controlling the working states of the first equipment and the second equipment according to the working instruction.
In the above solution, the sensor at least includes one of the following: smoke sensors and brightness sensors;
the second receiving module is specifically configured to obtain a smoke detection value obtained by the smoke sensor and/or a brightness detection value obtained by the brightness sensor;
the second processing module is specifically configured to obtain a correspondence between a stored motor working gear and a smoke determination threshold corresponding to each motor working gear, determine a maximum smoke determination threshold that the smoke detection value exceeds, and determine a motor working gear according to the maximum smoke determination threshold; and/or the presence of a gas in the gas,
and acquiring the corresponding relation between the stored lighting working positions and the brightness judgment threshold corresponding to each lighting working position, determining the maximum brightness judgment threshold over which the brightness detection value exceeds, and determining the lighting working positions according to the maximum brightness judgment threshold.
In the foregoing scheme, the second processing module is specifically configured to generate a first working instruction according to the motor working position and/or the lighting working position, and control the first device according to the first working instruction.
In the above scheme, the sensor further comprises a combustible gas sensor;
the second receiving module is specifically used for acquiring a combustible gas detection value obtained by the combustible gas sensor
The second processing module is specifically configured to determine an operating range of the gas valve according to the detected combustible gas value and the stored combustible gas threshold value.
In the foregoing scheme, the second processing module is specifically configured to generate a second operating instruction according to an operating range of the gas valve, and control the second device according to the second operating instruction.
The embodiment of the invention also provides a smoke stove linkage processing device, which comprises: a processor and a memory for storing a computer program capable of running on the processor;
wherein, the processor is used for executing the steps of the smoke stove linkage processing method when the computer program is run; or,
and the processor is used for executing the steps of the smoke stove linkage processing method when the computer program is run.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, wherein the computer program is used for realizing the steps of the smoke stove linkage processing method when being executed by a processor; or,
the computer program, when executed by a processor, implements the steps of the above-described smoke-cooker linkage processing method.
The embodiment of the invention also provides a cigarette making machine, which comprises a processor and a memory for storing executable programs run by the processor,
the processor executes the smoke stove linkage processing method when running the executable program; or,
and when the processor runs the executable program, executing the steps of the smoke stove linkage processing method.
The embodiment of the invention also provides a cooker, which comprises a processor and a memory for storing executable programs run by the processor,
the processor executes the smoke stove linkage processing method when running the executable program; or,
and when the processor runs the executable program, executing the steps of the smoke stove linkage processing method.
According to the method, the device and the computer readable storage medium provided by the embodiment of the invention, the working gear is determined according to the input instruction; determining a judgment threshold corresponding to the working gear according to the corresponding relation between the stored working gear and the judgment threshold; acquiring a detection value obtained by at least one sensor; and generating a new judgment threshold value according to the determined judgment threshold value and the detection value, and updating and storing the corresponding relation between the working gear and the judgment threshold value. According to the scheme of the embodiment of the invention, a user does not need to input a large amount of configuration parameters, the parameters are adjusted according to the use habits of the user by learning the use habits of the user, the problem that the user habits cannot be adapted to because the fixed parameters of the smoke stove linkage equipment cannot be changed is avoided, the smoke stove linkage equipment is more intelligent, personalized and customized, and the user experience is improved by centering on the user.
According to the method, the device and the computer readable storage medium provided by the embodiment of the invention, the detection value obtained by at least one sensor is obtained, and the working gear corresponding to the detection value is determined; and generating a working instruction according to the working gear, and controlling the working states of the first equipment and the second equipment according to the working instruction. According to the scheme of the embodiment of the invention, the smoke stove linkage equipment can be controlled according to the detection values obtained by the sensors without the operation of a user, so that the smoke stove linkage equipment is more convenient and intelligent, and the user experience is improved.
In the fourth embodiment, the first device may further include: the temperature sensor is used for detecting the change of the temperature of the stove burner or the temperature in the cooker;
the second device further includes: a gas valve working state detector.
Before the step 201, the method further includes:
after the first equipment acquires a temperature detection value obtained by a temperature sensor, the temperature detection value is sent to the second equipment, and the second equipment obtains the temperature detection value;
the second device detects whether the gas valve is in a working state or not through a gas valve working state detector;
and the second equipment determines that the temperature detection value exceeds a temperature threshold value, or determines that the gas valve is in a working state, the second equipment starts to acquire a detection value obtained by a brightness sensor, and controls the working gear of the lighting equipment according to the brightness detection value and a brightness judgment threshold value.
When the first device or the second device uses the smoke range linkage processing method shown in fig. 1, the first device or the second device is in a manual operation mode, operates according to an input instruction from a user, and adjusts a correspondence relationship between a pre-stored operating range and a determination threshold value according to the input instruction and a detection value; when the smoke stove linkage processing method shown in fig. 2 is applied to the first device or the second device, the first device or the second device is in an intelligent operation mode, and the first device or the second device is automatically controlled according to the corresponding relation between the stored working gear and the judgment threshold.
The user can select the first device or the second device to be in a manual operation mode or an intelligent operation mode; the operating mode may also be selected by the first device or the second device.
Here, the selecting of the operation mode by the first device or the second device includes:
the first device or the second device determines that an input instruction from a user is not detected within a preset time in a manual operation mode, or when the user inputs the instruction but determines that a detection value obtained by a sensor is invalid, the first device or the second device automatically exits the manual operation mode to enter an intelligent operation mode, and the first device or the second device is controlled according to the smoke stove linkage processing method shown in the figure 2;
and in the intelligent operation mode, the first device or the second device determines to receive the working gear input by the user, exits the intelligent operation mode, enters the manual operation mode, works according to the working gear corresponding to the input instruction from the user, and learns the use habit of the user according to the smoke stove linkage processing method shown in the figure 1.
Fig. 3 is a schematic structural diagram of a smoke stove linkage processing system according to an embodiment of the present invention; as shown in fig. 3, the smoke stove linkage processing system includes: smoke exhaust machines and stoves;
the cigarette machine includes: the smoke machine comprises a smoke machine processor, a temperature sensor, a smoke sensor, a brightness sensor, a combustible gas sensor, a wireless communication module, a motor control module and an illumination control module;
the cooking utensils, include: the gas valve control system comprises a stove processor, a wireless communication module, a gas valve controller and a gas valve working state detector; wherein,
the smoke machine processor is used for receiving detection values obtained by the sensors, monitoring the detection values, updating the judgment threshold value, monitoring an input instruction from a user, sending a working instruction to the motor control module, the illumination control module and the gas valve controller and the like;
the cooker processor is used for acquiring the state of the gas valve, receiving a working instruction aiming at the gas valve and then controlling the gas valve of the cooker through the gas valve controller;
here, the smoke machine processor and the cooking utensil processor communicate through a wireless communication module of the smoke machine and a wireless communication module of the cooking utensil;
the temperature sensor is used for detecting the temperature change of the burner or the inner part of the cooker, and the obtained temperature detection value can be used for determining the dormancy or standby of the range hood and can be used as a precondition for starting the lighting equipment;
the smoke sensor is used for detecting smoke in a kitchen;
the brightness sensor is used for detecting the brightness of the cooking bench;
here, the detection values acquired by the smoke sensor and the brightness sensor may be used as a judgment basis for determining a motor working gear and an illumination working gear in an intelligent operation mode, may also be used as a basis for the smoke stove linkage processing system to learn habits of a user, and may also be used as a judgment basis for the smoke stove linkage processing system to exit from a manual operation mode;
the combustible gas sensor is used for detecting the concentration of combustible gas in the kitchen and used as a data basis of the alarm;
the motor control module is used for controlling the working gear of the motor of the cigarette machine according to the working instruction sent by the processor of the cigarette machine;
the lighting control module is used for controlling lighting working gears of lighting equipment of the cigarette machine according to working instructions sent by a processor of the cigarette machine;
the gas valve controller is used for receiving a working instruction sent by the cooker processor and controlling the working state of the gas valve;
and the gas valve working state detector is used for detecting the working state of the gas controller.
The temperature sensor, the smoke sensor, the brightness sensor and the combustible gas sensor can be positioned on a smoke machine or a cooker, and when the temperature sensor, the smoke sensor, the brightness sensor and the combustible gas sensor are positioned on the cooker, the smoke sensor, the brightness sensor and the combustible gas sensor are shown in figure 4.
The above embodiments are not limited to the smoke machine processor and the kitchen range processor, and the kitchen range processor may receive detection values obtained by various sensors, monitor the detection values, update the determination threshold values, monitor input instructions from users, send working instructions to the motor control module, the illumination control module, the gas valve controller, and the like; and collecting the state of the gas valve, generating a working instruction of the gas valve, and controlling the gas valve of the cooker through the gas valve controller. Correspondingly, the motor control module, the illumination control module and the gas valve controller receive working instructions sent by the smoke stove processor.
Fig. 5 is a schematic structural diagram of a first smoke stove linkage processing device according to an embodiment of the present invention; as shown in fig. 5, the apparatus includes: the device comprises a first receiving module and a first processing module; wherein,
the first receiving module is used for acquiring a detection value obtained by at least one sensor;
the first processing module is used for determining a working gear according to an input instruction; determining a judgment threshold corresponding to the working gear according to the corresponding relation between the stored working gear and the judgment threshold; and a process for the preparation of a coating,
and generating a new judgment threshold value according to the determined judgment threshold value and the detection value, and updating and storing the corresponding relation between the working gear and the judgment threshold value.
Specifically, the sensor comprises at least one of the following: smoke sensors and brightness sensors;
the first receiving module is specifically configured to: and acquiring a smoke detection value obtained by the smoke sensor and/or a brightness detection value obtained by the brightness sensor.
Specifically, the first processing module is specifically configured to determine, according to a correspondence between a stored motor operating range and a smoke determination threshold corresponding to each motor operating range, a smoke determination threshold corresponding to a motor operating range determined according to an input instruction; and/or the presence of a gas in the gas,
and determining the brightness judgment threshold corresponding to the lighting working position determined according to the input instruction according to the corresponding relation between the stored lighting working position and the brightness judgment threshold corresponding to each lighting working position.
Specifically, the first processing module is specifically configured to determine whether the detection value is valid, and when the detection value is determined to be valid, process the determined determination threshold and the detection value according to a preset policy to generate a new determination threshold;
the first processing module is specifically configured to determine a difference between the detection value and the determined determination threshold, and if the difference is smaller than or equal to a difference threshold, determine that the detection value is valid.
Fig. 6 is a schematic structural view of a second smoke stove linkage processing device according to an embodiment of the present invention; as shown in fig. 6, the apparatus includes: the second receiving module and the second processing module; wherein,
the second receiving module is used for acquiring a detection value obtained by at least one sensor;
the second processing module is used for determining a working gear corresponding to the detection value; and generating a working instruction according to the working gear, and controlling the working states of the first equipment and the second equipment according to the working instruction.
Specifically, the sensor comprises at least one of the following: smoke sensors and brightness sensors;
the second receiving module is specifically configured to obtain a smoke detection value obtained by the smoke sensor and/or a brightness detection value obtained by the brightness sensor;
the second processing module is specifically configured to obtain a correspondence between a stored motor working gear and a smoke determination threshold corresponding to each motor working gear, determine a maximum smoke determination threshold that the smoke detection value exceeds, and determine a motor working gear according to the maximum smoke determination threshold; and/or the presence of a gas in the gas,
and acquiring the corresponding relation between the stored lighting working positions and the brightness judgment threshold corresponding to each lighting working position, determining the maximum brightness judgment threshold over which the brightness detection value exceeds, and determining the lighting working positions according to the maximum brightness judgment threshold.
Specifically, the second processing module is specifically configured to generate a first working instruction according to the motor working range and/or the lighting working range, and control the first device according to the first working instruction.
Specifically, the sensor further comprises a combustible gas sensor;
the second receiving module is specifically used for acquiring a combustible gas detection value obtained by the combustible gas sensor
The second processing module is specifically configured to determine an operating range of the gas valve according to the detected combustible gas value and the stored combustible gas threshold value.
Specifically, the second processing module is specifically configured to generate a second working instruction according to a working gear of the gas valve, and control the second device according to the second working instruction.
Fig. 7 is a schematic flow chart of a third smoke-oven linkage processing method according to an embodiment of the present invention; as shown in fig. 7, the method is applied to a cigarette making machine, the method comprising:
step 701, constructing an initial database.
The database includes a set of factory default initial values.
The default initial values include: the relation between the default motor working gear and the smoke judgment threshold corresponding to each motor working gear and the relation between the illumination working gear and the brightness judgment threshold corresponding to each illumination working gear. For example: for the lighting working position, starting a first gear position when the detection value of the brightness is between 0lx and 100lx, and starting a second gear position when the detection value of the brightness is between 100lx and 200 lx; starting a gear III when the detection value of the brightness is between 200lx and 300lx, and starting a gear IV when the brightness is more than 300lx, namely, the lamp is not turned on;
for the working gear of the motor, when the smoke detection value is between 0ppm and 1000ppm, the gear I is started, the gear II is started when the smoke detection value is between 1000ppm and 3000ppm, and the gear III is started when the smoke detection value is above 3000 ppm.
Step 702, learning the use habits of the user and optimizing the database.
Here, the determination threshold corresponding to the current operating range is weighted according to the detection value obtained by the sensor when the user inputs the operating range, a new determination threshold is produced, and the corresponding relationship between the operating range and the determination threshold is updated and stored. And optimizing the judgment threshold value stored in the database through the working gear input by the user each time and the detection value obtained by the sensor, wherein the judgment threshold value corresponding to each working gear is closer to the actual operation of the user.
For example, when the smoke sensor detects that the smoke concentration is 2000ppm, the range hood works in the second gear, but at the moment, a user inputs an instruction to adjust the working gear of the motor to the third gear, the range hood enters a manual operation mode, the working gear input by the user is recorded to be the third gear, and the smoke sensor concentration is 2000 ppm; the smoke determination threshold 3000ppm corresponding to 2000ppm and the operating range is weighted, and if the weighting is performed according to the following formula, 2000 × 0.6+3000 × 0.4 is 2400, and the result 2400 is stored as a new determination threshold for range three.
Here, the learning user uses habits to optimize the database; the method comprises the following steps:
the cigarette machine records an input instruction of a user, determines a working gear according to the input instruction, and acquires a detection value obtained by a sensor; and judging whether the detection value is effective or not, and when the detection value is determined to be effective, performing weighting processing according to the detection value and a judgment threshold corresponding to a working gear to obtain a new judgment threshold, so as to update the corresponding relation between the working gear and the judgment threshold in the database.
And step 703, acquiring a detection value acquired by the sensor in an intelligent operation mode.
The smoke machine compares the detection value acquired by the sensor with a stored judgment threshold value, and judges whether the smoke concentration and the brightness reach the corresponding judgment threshold value;
and if the judgment threshold value is reached, entering step 704, controlling the range of the range hood to enter the working state corresponding to the current judgment threshold value, and if the judgment threshold value is not reached, keeping the working state of the range hood range unchanged.
And 704, determining a working gear corresponding to the detection value, and controlling the range of the range hood according to the working gear.
Here, step 704 includes:
the smoke machine processor determines a maximum smoke judgment threshold value which is exceeded by the smoke detection value, determines a working gear of the motor according to the maximum smoke judgment threshold value, sends a corresponding working instruction to the motor control module, and controls the smoke machine motor to enter different rotating speed gears through the motor control module; and/or the presence of a gas in the gas,
the cigarette machine processor determines the maximum brightness judgment threshold value which is exceeded by the brightness detection value, determines the illumination working gear corresponding to the illumination lamp of the cigarette machine processor according to the maximum brightness judgment threshold value, and controls the illumination lamp to emit different brightness through the illumination control module.
The step 704 further comprises:
when the cigarette machine treater confirms that the combustible gas sensor detects the combustible gas of certain concentration, the cigarette machine treater sends control and sends audible alarm, light warning, removes the end propelling movement, and the cigarette machine treater sends alarm information or control command to cooking utensils communication module through wireless communication module, and the cooking utensils treater receives cooking utensils communication module's alarm information or control command after, controls gas valve controller and closes the gas valve.
Step 705, displaying the current working state and the states of the sensors.
Here, each operating state and action of the smoke range linkage system is prompted to the user in a voice, display or other manner. For example: and displaying the smoke concentration, the temperature, the brightness and the information of a gas valve of the smoke stove linkage system, and prompting the current working state by voice when the state changes.
Fig. 8 is a schematic flow chart of a fourth smoke-oven linkage processing method according to an embodiment of the present invention; as shown in fig. 8, the method is applied to a cigarette making machine, the method comprising:
step 801, acquiring a detection value of a sensor;
step 802, judging whether an input instruction from a user is received, if so, determining a working gear according to the input instruction, and entering step 803, otherwise, entering step 807;
step 803, recording a detection value obtained by the sensor;
step 804, weighting processing is carried out according to the detection value obtained by the sensor and the stored judgment threshold value;
here, the method specifically includes: acquiring a corresponding relation between the stored working gear and a judgment threshold;
and judging whether the detection value is effective or not, and when the detection value is determined to be effective, performing weighting processing on the detection value and a judgment threshold corresponding to the working gear to generate and store a new judgment threshold.
Step 804, generating a new judgment threshold as the current judgment threshold;
step 806, working for a certain time according to the working gear input by the user, returning to step 801 if the user does not operate within a preset time;
step 807, comparing the detection value sent by the sensor with the current judgment threshold value to determine a working instruction;
here, the step 807 includes: and acquiring the corresponding relation between the stored working gear and the judgment threshold, determining the working gear corresponding to the maximum judgment threshold which is exceeded by the detection value, and generating a working instruction according to the determined working gear.
The step 807 specifically includes: acquiring a corresponding relation between the stored motor working gears and smoke judgment thresholds corresponding to the motor working gears, determining a maximum smoke judgment threshold exceeding the smoke detection value, and determining the motor working gears according to the maximum smoke judgment threshold; and/or the presence of a gas in the gas,
acquiring a corresponding relation between the stored illumination working positions and brightness judgment thresholds corresponding to the illumination working positions, determining a maximum brightness judgment threshold exceeding the brightness detection value, and determining the illumination working positions according to the maximum brightness judgment threshold;
and generating a working instruction according to at least one of the motor working gear and the illumination working gear so as to control the cigarette machine.
The step 807 further comprises: acquiring a combustible gas detection value obtained by the combustible gas sensor; determining the working gear of the gas valve according to the combustible gas detection value and the stored combustible gas threshold value; and generating a working instruction according to the working gear of the gas valve so as to control the cooker.
And 808, controlling the range hood and the kitchen range according to the working instruction.
In order to implement the method of the embodiment of the present invention, the embodiment of the present invention provides a smoke and cooking stove linkage processing device three, which is arranged on a smoke machine or a cooking stove, specifically, as shown in fig. 9, the device 90 includes:
a first processor 901 and a first memory 902 for storing a computer program operable on said first processor; wherein,
the first processor 901 is configured to, when running the computer program, execute:
determining a working gear according to an input instruction; determining a judgment threshold corresponding to the working gear according to the corresponding relation between the stored working gear and the judgment threshold; acquiring a detection value obtained by at least one sensor; and generating a new judgment threshold value according to the determined judgment threshold value and the detection value, and updating and storing the corresponding relation between the working gear and the judgment threshold value.
In an embodiment, the first processor 901 is configured to execute, when running the computer program, the following steps:
and acquiring a smoke detection value obtained by the smoke sensor and/or a brightness detection value obtained by the brightness sensor.
In an embodiment, the first processor 901 is configured to execute, when running the computer program, the following steps:
determining a smoke judgment threshold corresponding to the motor working gear determined according to the input instruction according to the corresponding relation between the stored motor working gear and the smoke judgment threshold corresponding to each motor working gear; and/or the presence of a gas in the gas,
and determining the brightness judgment threshold corresponding to the lighting working position determined according to the input instruction according to the corresponding relation between the stored lighting working position and the brightness judgment threshold corresponding to each lighting working position.
In an embodiment, the first processor 901 is configured to execute, when running the computer program, the following steps:
and judging whether the detection value is effective or not, and processing the determined judgment threshold value and the detection value according to a preset strategy to generate a new judgment threshold value when the detection value is determined to be effective.
In an embodiment, the first processor 901 is configured to execute, when running the computer program, the following steps:
and determining the difference value between the detection value and the determined judgment threshold value, wherein if the difference value is less than or equal to the difference threshold value, the detection value is determined to be effective.
It should be noted that: the smoke and stove linkage processing device and the smoke and stove linkage processing method provided by the embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment and is not described again.
Of course, in practical applications, as shown in fig. 9, the apparatus 90 may further include: at least one network interface 903. The various components in the device 90 are coupled together by a bus system 904. It is understood that the bus system 904 is used to enable communications among the components. The bus system 904 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various buses are labeled as bus system 904 in figure 6. The number of the processors 904 may be at least one. The network interface 903 is used for communication between the apparatus 90 and other devices in a wired or wireless manner.
Memory 902 in embodiments of the present invention is used to store various types of data to support the operation of device 90.
The method disclosed in the above embodiments of the present invention may be applied to the first processor 901, or implemented by the first processor 901. The first processor 901 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by an integrated logic circuit of hardware or an instruction in the form of software in the first processor 901. The first processor 901 may be a general-purpose processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, or the like. The first processor 901 may implement or perform the methods, steps and logic blocks disclosed in the embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the first memory 902, and the first processor 901 reads the information in the memory 902 and in combination with its hardware performs the steps of the aforementioned method.
In an exemplary embodiment, the apparatus 90 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the foregoing methods.
In order to implement the method of the embodiment of the present invention, the fourth smoke stove linkage processing device is provided on the server, and specifically, as shown in fig. 9,
a second processor 111 and a second memory 112 for storing computer programs executable on said processor; wherein,
the second processor 111 is configured to, when running the computer program, perform:
acquiring a detection value obtained by at least one sensor, and determining a working gear corresponding to the detection value; and generating a working instruction according to the working gear, and controlling the working states of the first equipment and the second equipment according to the working instruction.
In an embodiment, the second processor 111 is configured to execute, when running the computer program, the following:
acquiring a smoke detection value obtained by the smoke sensor and/or a brightness detection value obtained by the brightness sensor;
acquiring a corresponding relation between the stored motor working gears and smoke judgment thresholds corresponding to the motor working gears, determining a maximum smoke judgment threshold exceeding the smoke detection value, and determining the motor working gears according to the maximum smoke judgment threshold; and/or the presence of a gas in the gas,
and acquiring the corresponding relation between the stored lighting working positions and the brightness judgment threshold corresponding to each lighting working position, determining the maximum brightness judgment threshold over which the brightness detection value exceeds, and determining the lighting working positions according to the maximum brightness judgment threshold.
In an embodiment, the second processor 111 is configured to execute, when running the computer program, the following:
and generating a first working instruction according to the working gear of the motor and/or the working gear of the lighting, and controlling the first equipment according to the first working instruction.
In an embodiment, the second processor 111 is configured to execute, when running the computer program, the following:
acquiring a combustible gas detection value obtained by the combustible gas sensor;
and determining the working gear of the gas valve according to the combustible gas detection value and the stored combustible gas threshold value.
In an embodiment, the second processor 111 is configured to execute, when running the computer program, the following:
and generating a second working instruction according to the working gear of the gas valve, and controlling the second equipment according to the second working instruction.
It should be noted that: the smoke and stove linkage processing device and the smoke and stove linkage processing method provided by the embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment and is not described again.
Of course, in practical applications, as shown in fig. 10, the apparatus 11 may further include: at least one network interface 113. The various components in the device 11 are coupled together by a bus system 114. It will be appreciated that the bus system 114 is used to enable communications among the components. The bus system 114 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 114 in fig. 6. The number of the processors 114 may be at least one. The network interface 113 is used for wired or wireless communication between the apparatus 10 and other devices.
Memory 112 in embodiments of the present invention is used to store various types of data to support the operation of device 10.
The method disclosed in the above embodiment of the present invention may be applied to the second processor 111, or implemented by the second processor 111. The second processor 111 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the second processor 111. The processor 111 may be a general purpose processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The second processor 111 may implement or perform the methods, steps and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software module may be located in a storage medium located in the second memory 112, and the second processor 111 reads the information in the second memory 112 and, in conjunction with its hardware, performs the steps of the aforementioned method.
In an exemplary embodiment, the apparatus 11 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field-Programmable Gate arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the foregoing methods.
Specifically, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program performs:
determining a working gear according to an input instruction; determining a judgment threshold corresponding to the working gear according to the corresponding relation between the stored working gear and the judgment threshold; acquiring a detection value obtained by at least one sensor; and generating a new judgment threshold value according to the determined judgment threshold value and the detection value, and updating and storing the corresponding relation between the working gear and the judgment threshold value.
In one embodiment, the computer program, when executed by the processor, performs:
and acquiring a smoke detection value obtained by the smoke sensor and/or a brightness detection value obtained by the brightness sensor.
In one embodiment, the computer program, when executed by the processor, performs:
determining a smoke judgment threshold corresponding to the motor working gear determined according to the input instruction according to the corresponding relation between the stored motor working gear and the smoke judgment threshold corresponding to each motor working gear; and/or the presence of a gas in the gas,
and determining the brightness judgment threshold corresponding to the lighting working position determined according to the input instruction according to the corresponding relation between the stored lighting working position and the brightness judgment threshold corresponding to each lighting working position.
In one embodiment, the computer program, when executed by the processor, performs:
and judging whether the detection value is effective or not, and processing the determined judgment threshold value and the detection value according to a preset strategy to generate a new judgment threshold value when the detection value is determined to be effective.
In one embodiment, the computer program, when executed by the processor, performs:
and determining the difference value between the detection value and the determined judgment threshold value, wherein if the difference value is less than or equal to the difference threshold value, the detection value is determined to be effective.
Specifically, another computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the computer program performs:
acquiring a detection value obtained by at least one sensor, and determining a working gear corresponding to the detection value; and generating a working instruction according to the working gear, and controlling the working states of the first equipment and the second equipment according to the working instruction.
In one embodiment, the computer program, when executed by the processor, performs:
acquiring a smoke detection value obtained by the smoke sensor and/or a brightness detection value obtained by the brightness sensor;
acquiring a corresponding relation between the stored motor working gears and smoke judgment thresholds corresponding to the motor working gears, determining a maximum smoke judgment threshold exceeding the smoke detection value, and determining the motor working gears according to the maximum smoke judgment threshold; and/or the presence of a gas in the gas,
and acquiring the corresponding relation between the stored lighting working positions and the brightness judgment threshold corresponding to each lighting working position, determining the maximum brightness judgment threshold over which the brightness detection value exceeds, and determining the lighting working positions according to the maximum brightness judgment threshold.
In one embodiment, the computer program, when executed by the processor, performs:
and generating a first working instruction according to the working gear of the motor and/or the working gear of the lighting, and controlling the first equipment according to the first working instruction.
In one embodiment, the computer program, when executed by the processor, performs:
acquiring a combustible gas detection value obtained by the combustible gas sensor;
and determining the working gear of the gas valve according to the combustible gas detection value and the stored combustible gas threshold value.
In one embodiment, the computer program, when executed by the processor, performs:
and generating a second working instruction according to the working gear of the gas valve, and controlling the second equipment according to the second working instruction.
It should be noted that: the computer-readable storage medium provided by the embodiment of the invention can be memories such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
The embodiment of the invention also provides a smoke machine or a cooker, which comprises a processor and a memory, wherein the memory is used for storing the executable program operated by the processor; when the processor runs the executable program, executing:
determining a working gear according to an input instruction; determining a judgment threshold corresponding to the working gear according to the corresponding relation between the stored working gear and the judgment threshold; acquiring a detection value obtained by at least one sensor; and generating a new judgment threshold value according to the determined judgment threshold value and the detection value, and updating and storing the corresponding relation between the working gear and the judgment threshold value.
In one embodiment, the computer program, when executed by the processor, performs:
and acquiring a smoke detection value obtained by the smoke sensor and/or a brightness detection value obtained by the brightness sensor.
In one embodiment, the computer program, when executed by the processor, performs:
determining a smoke judgment threshold corresponding to the motor working gear determined according to the input instruction according to the corresponding relation between the stored motor working gear and the smoke judgment threshold corresponding to each motor working gear; and/or the presence of a gas in the gas,
and determining the brightness judgment threshold corresponding to the lighting working position determined according to the input instruction according to the corresponding relation between the stored lighting working position and the brightness judgment threshold corresponding to each lighting working position.
In one embodiment, the computer program, when executed by the processor, performs:
and judging whether the detection value is effective or not, and processing the determined judgment threshold value and the detection value according to a preset strategy to generate a new judgment threshold value when the detection value is determined to be effective.
In one embodiment, the computer program, when executed by the processor, performs:
and determining the difference value between the detection value and the determined judgment threshold value, wherein if the difference value is less than or equal to the difference threshold value, the detection value is determined to be effective.
The embodiment of the invention also provides another smoke machine or cooker, which comprises a processor and a memory, wherein the memory is stored with an executable program run by the processor; when the processor runs the executable program, executing:
acquiring a detection value obtained by at least one sensor, and determining a working gear corresponding to the detection value; and generating a working instruction according to the working gear, and controlling the working states of the first equipment and the second equipment according to the working instruction.
In one embodiment, the computer program, when executed by the processor, performs:
acquiring a smoke detection value obtained by the smoke sensor and/or a brightness detection value obtained by the brightness sensor;
acquiring a corresponding relation between the stored motor working gears and smoke judgment thresholds corresponding to the motor working gears, determining a maximum smoke judgment threshold exceeding the smoke detection value, and determining the motor working gears according to the maximum smoke judgment threshold; and/or the presence of a gas in the gas,
and acquiring the corresponding relation between the stored lighting working positions and the brightness judgment threshold corresponding to each lighting working position, determining the maximum brightness judgment threshold over which the brightness detection value exceeds, and determining the lighting working positions according to the maximum brightness judgment threshold.
In one embodiment, the computer program, when executed by the processor, performs:
and generating a first working instruction according to the working gear of the motor and/or the working gear of the lighting, and controlling the first equipment according to the first working instruction.
In one embodiment, the computer program, when executed by the processor, performs:
acquiring a combustible gas detection value obtained by the combustible gas sensor;
and determining the working gear of the gas valve according to the combustible gas detection value and the stored combustible gas threshold value.
In one embodiment, the computer program, when executed by the processor, performs:
and generating a second working instruction according to the working gear of the gas valve, and controlling the second equipment according to the second working instruction.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.