CN110275804B - Information processing method, device and computer readable storage medium - Google Patents

Information processing method, device and computer readable storage medium Download PDF

Info

Publication number
CN110275804B
CN110275804B CN201910401679.8A CN201910401679A CN110275804B CN 110275804 B CN110275804 B CN 110275804B CN 201910401679 A CN201910401679 A CN 201910401679A CN 110275804 B CN110275804 B CN 110275804B
Authority
CN
China
Prior art keywords
processor
trigger
detection circuits
instructions
environmental parameters
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.)
Active
Application number
CN201910401679.8A
Other languages
Chinese (zh)
Other versions
CN110275804A (en
Inventor
谭经纶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ICLeague Technology Co Ltd
Original Assignee
ICLeague Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ICLeague Technology Co Ltd filed Critical ICLeague Technology Co Ltd
Priority to CN201910401679.8A priority Critical patent/CN110275804B/en
Publication of CN110275804A publication Critical patent/CN110275804A/en
Application granted granted Critical
Publication of CN110275804B publication Critical patent/CN110275804B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2236Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2289Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test

Abstract

The embodiment of the application discloses an information processing method, an information processing device and a computer readable storage medium, wherein the method comprises the following steps: configuring M detection circuits for M environmental parameters; wherein M is a positive integer, and the detection circuit is used for detecting whether the input environmental parameters meet preset trigger conditions; acquiring the M environmental parameters, and inputting the M environmental parameters into the M detection circuits; when the environmental parameters input by N detection circuits in the M detection circuits meet preset trigger conditions, outputting N trigger instructions; wherein N is a positive integer less than or equal to M; and controlling the processor to enter an operating state based on the N trigger instructions so as to generate N control instructions for N electronic devices. Therefore, the running time of the processor is shortened, and the processor can respond to the trigger event in time.

Description

Information processing method, device and computer readable storage medium
Technical Field
The present application relates to the internet of things, and in particular, to an information processing method, an information processing device, and a computer readable storage medium.
Background
When controlling the internet of things device based on event information in the internet of things architecture, a processor constantly polls for input events to determine whether certain program codes need to be executed to realize control over the internet of things device. To reduce power consumption, the processor sometimes goes to sleep, but to ensure a speed of response to a trigger event, the processor must be in an operating state for a long period of time, detect the trigger event in time, and run corresponding program code. Therefore, the processor is in an operation state for too long, so that the power consumption of the processor is high and the operation efficiency is low.
Disclosure of Invention
In order to solve the above technical problems, it is desirable to provide an information processing method and a computer storage medium.
The technical scheme of the application is realized as follows:
in a first aspect, there is provided an information processing method, the method including:
configuring M detection circuits for M environmental parameters; wherein M is a positive integer, and the detection circuit is used for detecting whether the input environmental parameters meet preset trigger conditions;
acquiring the M environmental parameters, and inputting the M environmental parameters into the M detection circuits;
when the environmental parameters input by N detection circuits in the M detection circuits meet preset trigger conditions, outputting N trigger instructions; wherein N is a positive integer less than or equal to M;
and controlling the processor to enter an operating state based on the N trigger instructions so as to generate N control instructions for N electronic devices.
In a second aspect, there is provided an information processing apparatus including: a processor and M detection circuits; wherein M is a positive integer;
the M detection circuits are used for detecting whether the input environmental parameters meet preset trigger conditions or not;
the M detection circuits are also used for acquiring M environmental parameters; when the environmental parameters input by N detection circuits in the M detection circuits meet preset trigger conditions, the N detection circuits output N trigger instructions; wherein N is a positive integer less than or equal to M;
the processor is used for entering an operation state based on the N trigger instructions so as to generate N control instructions for N electronic devices.
In a third aspect, there is provided another information processing apparatus comprising: a processor and a memory configured to store a computer program capable of running on the processor, wherein the processor is configured to perform the steps of the aforementioned method when the computer program is run.
In a fourth aspect, a computer storage medium is provided, on which a computer program is stored, wherein the computer program, when being executed by a processor, carries out the steps of the aforementioned method.
By adopting the technical scheme, the corresponding detection circuits are configured for different environment parameters, whether the environment parameters meet the trigger conditions is detected by the detection circuits, and when the environment parameters are determined to meet the trigger conditions, the processor is triggered to enter the running state, so that the control instruction for the electronic equipment is generated, the processor is not required to detect the environment parameters in a polling mode, the running time of the processor is shortened, and the processor can respond to the trigger event in time.
Drawings
FIG. 1 is a schematic diagram of the structure of an information processing apparatus according to an embodiment of the present application;
FIG. 2 is a flow chart of an information processing method according to an embodiment of the application;
FIG. 3 is a schematic diagram of waveforms of input and output signals of the detection circuit according to an embodiment of the present application;
FIG. 4 is a schematic flow chart of an information processing method according to an embodiment of the application;
FIG. 5 is a schematic diagram of the structure of an information processing apparatus according to an embodiment of the present application;
FIG. 6 is a schematic diagram of the structure of a control system according to an embodiment of the present application;
fig. 7 is a schematic diagram of the composition structure of an information processing apparatus according to an embodiment of the present application.
Detailed Description
For a more complete understanding of the nature and the technical content of the embodiments of the present application, reference should be made to the following detailed description of embodiments of the application, taken in conjunction with the accompanying drawings, which are meant to be illustrative only and not limiting of the embodiments of the application.
Example 1
The embodiment of the application provides an information processing method, which is used for triggering a processor of an information processing device to enter an operation state and executing corresponding control operation, as shown in fig. 1, the information processing device comprises the processor, a communication interface, an input port and an output port, the communication interface is used for realizing the communication between the information processing device and external equipment, the processor processes signals input by the input port or signals received by the communication interface so as to determine whether certain application programs need to be operated, and the output port is used for outputting processing results.
An embodiment of the present application provides an information processing method, which is applied to the above information processing apparatus, as shown in fig. 2, where the information processing method specifically includes:
step 101: configuring M detection circuits for M environmental parameters; wherein M is a positive integer, and the detection circuit is used for detecting whether the input environmental parameters meet preset trigger conditions;
in practical application, different detection circuits correspond to different trigger conditions. The trigger condition may include one of: the environmental parameter varies from a first parameter range to a second parameter range; wherein the first parameter variation range is before the second parameter variation range; the environmental parameter varies from the third parameter range to the fourth parameter range; wherein the third parameter variation range is after the fourth parameter variation. Here, the first parameter range does not coincide with or only end-points of the second parameter range, the third parameter range does not coincide with or only end-points of the fourth parameter range, and the second parameter range is identical or different from the third parameter range.
That is, the detection circuit is configured to detect a change in the environmental parameter, and trigger the processor to control the electronic device to perform a corresponding operation only when the environmental parameter changes from the first parameter range to the second parameter range. For example, the electronic device may be started, turned off, or adjusted from a first operating state to a second operating state, where the first operating state and the second operating state may be different operating parameters.
When the environmental parameter is stabilized in the first parameter range or the second parameter range, the processor is not triggered to execute the control operation, and the electronic equipment keeps the state of the electronic equipment. Such as an off state or an on state.
In practical applications, the detection circuit is used to compare the magnitude of an input signal, such as a single-limit comparator, a hysteresis comparator, or a two-wire comparator. The single-limit comparator and the hysteresis comparator are used for judging whether the input signal is higher than the threshold value or lower than the threshold value, for example, outputting a high-level signal when the input signal is higher than the threshold value and outputting a low-level signal when the input signal is lower than the threshold value. And a double-limit comparator for judging whether the output signal is between the threshold ranges, for example, outputting a high-level signal when the input signal is between the threshold ranges and outputting a low-level signal when the input signal is outside the threshold ranges.
The detection circuit is used for detecting the change of the input signal, fig. 3 shows a waveform diagram of the input signal and the output signal of the detection circuit, and when the input signal changes from high level to low level in fig. 3, the output signal is high level; when the input signal is continuously high level or continuously low level, the output signal is low level; when the input signal changes from low level to high level, the output signal is high level.
Step 102: acquiring the M environmental parameters, and inputting the M environmental parameters into the M detection circuits;
in practice, the environmental parameter is a parameter for characterizing the environmental state, such as temperature, humidity, illuminance, cleanliness, which may specifically be the concentration of certain substances in the air, such as PM2.5, oxygen, sulfur dioxide, carbon monoxide, formaldehyde or other harmful gases.
The environmental parameters can be detected by various sensors and sent to corresponding detection circuits to detect whether the environmental parameters meet the triggering conditions. Here, the sensor may include: temperature sensor, humidity sensor, illumination sensor, smoke sensor, gas sensor, such as: the gas sensor may be a formaldehyde sensor, a carbon dioxide sensor, other toxic gas sensor, etc.
The sensor may be located in the information processing apparatus, or separately located in the environmental space, or located on another electronic device, and embodiments of the present application are not limited in particular.
Step 103: when the environmental parameters input by N detection circuits in the M detection circuits meet preset trigger conditions, outputting N trigger instructions; wherein N is a positive integer less than or equal to M;
in practical application, the environmental parameters input in the M-N detection circuits do not meet preset trigger conditions, and M-N non-trigger instructions are output.
As shown in fig. 3, when the input signal changes from a high level to a low level, a high level signal (i.e., a trigger instruction) is output; when the input signal is continuously high or continuously low, a low level signal (namely, a non-trigger instruction) is output; when the input signal changes from low level to high level, a high level signal is output.
Step 104: and controlling the processor to enter an operating state based on the N trigger instructions so as to generate N control instructions for N electronic devices.
In some embodiments, the controlling the processor to enter the running state based on the N trigger instructions includes: controlling the processor to enter an operating state based on a first trigger instruction in the N trigger instructions; the first trigger instruction is the earliest acquired trigger instruction when the processor is in a sleep state.
That is, when the processor is in the sleep state, N detection circuits detect that the environmental parameter satisfies the trigger condition, and the detection circuit that outputs the trigger instruction first triggers the processor to enter the running state from the sleep state.
In some embodiments, the generating N control instructions for N electronic devices includes: triggering the processor to run N application programs based on the N trigger instructions; wherein, different application programs correspond to control operations of different electronic devices; and generating N control instructions for the N electronic devices based on the environmental parameters input by the N detection circuits.
That is, the processor is provided with application programs for different electronic devices, and after the processor enters an operation state, the processor can activate the different application programs to operate according to different trigger instructions so as to realize control over the different electronic devices, and can execute actual control operation according to current environmental parameters. For example, when the environment temperature changes, a corresponding application program is activated to run, and the actual control operation is determined according to the current environment parameters when the application program runs.
Specifically, when the processor acquires N trigger instructions, the processor processes the N trigger instructions one by one according to the acquisition time of the trigger instructions (or the generation time of the trigger instructions), that is, activates corresponding application programs one by one, and generates corresponding control instructions. Or when the processor acquires the N trigger instructions, the N trigger instructions are processed in parallel, namely corresponding application programs are activated simultaneously, and corresponding control instructions are generated. The actual processing sequence of the trigger instructions may depend on the actual processing capability of the processor, and the present application is not limited in particular.
In an actual application, after generating N control instructions for the N electronic devices, the method may further include: and controlling the processor to stop running the N application programs.
That is, after the control of a certain electronic device is completed, the running of the application program is stopped. The corresponding application program is triggered and operated only when the environmental parameters are expected to change, so that timely response to the triggering event is realized, and the application program is not required to be operated when the environmental parameters are not expected to change. Therefore, the operation efficiency of the processor is improved, and the power consumption is reduced.
Here, the electronic device may be an internet of things device, such as an air conditioner, a purifier, a humidifier, a refrigerator, a lamp, a massage armchair, a sweeping robot, or the like.
By adopting the technical scheme, the corresponding detection circuits are configured for different environment parameters, whether the environment parameters meet the trigger conditions is detected by the detection circuits, and when the environment parameters are determined to meet the trigger conditions, the processor is triggered to enter the running state, so that the control instruction for the electronic equipment is generated, the processor is not required to detect the environment parameters in a polling mode, the running time of the processor is shortened, and the processor can respond to the trigger event in time.
Example two
In order to further embody the technical solution of the present application, a further illustration is made on the basis of the first embodiment, as shown in fig. 4, the information processing method specifically may include:
step 201: configuring M detection circuits for M environmental parameters; wherein M is a positive integer, and the detection circuit is used for detecting whether the input environmental parameters meet preset trigger conditions;
in practical application, different detection circuits correspond to different trigger conditions. The trigger condition may include one of: the environmental parameter varies from a first parameter range to a second parameter range; wherein the first parameter variation range is before the second parameter variation range; the environmental parameter varies from the third parameter range to the fourth parameter range; wherein the third parameter variation range is after the fourth parameter variation. Here, the first parameter range does not coincide with or only coincides with the second parameter range, the third parameter range does not coincide with or only coincides with the fourth parameter range, the first parameter range is the same as or identical to the fourth parameter range, and the second parameter range is the same as or different from the third parameter range. For example, the first parameter range is 0-35 degrees celsius, the second parameter range is more than 35 degrees celsius, the third parameter range is more than 35 degrees celsius, and the fourth parameter range is 0-35 degrees celsius.
In practical applications, the detection circuit is used to compare the magnitude of an input signal, such as a single-limit comparator, a hysteresis comparator, or a two-wire comparator. The single-limit comparator and the hysteresis comparator are used for judging whether the input signal is higher than the threshold value or lower than the threshold value, for example, outputting a high-level signal when the input signal is higher than the threshold value and outputting a low-level signal when the input signal is lower than the threshold value. And a double-limit comparator for judging whether the output signal is between the threshold ranges, for example, outputting a high-level signal when the input signal is between the threshold ranges and outputting a low-level signal when the input signal is outside the threshold ranges.
The detection circuit is used for detecting the change of the input signal, fig. 3 shows a waveform diagram of the input signal and the output signal of the detection circuit, and when the input signal changes from high level to low level in fig. 3, the output signal is high level; when the input signal is continuously high level or continuously low level, the output signal is low level; when the input signal changes from low level to high level, the output signal is high level.
In practical applications, compared with the prior art, the processor needs to detect environmental parameters in a polling manner, so that the processor needs to be in an operation state for a long time in order to ensure the response speed to a trigger event, and the power consumption of the processor is high in the operation state for a long time. In the embodiment of the application, the detection circuit with smaller power consumption is used for detecting the change of the environmental parameter, so that the power consumption loss of the processor can be reduced.
Step 202: acquiring the M environmental parameters, and inputting the M environmental parameters into the M detection circuits;
in practice, the environmental parameter is a parameter for characterizing the environmental state, such as temperature, humidity, illuminance, cleanliness, which may specifically be the concentration of certain substances in the air, such as PM2.5, oxygen, sulfur dioxide, carbon monoxide, formaldehyde or other harmful gases.
The environmental parameters can be detected by various sensors and sent to corresponding detection circuits to detect whether the environmental parameters meet the triggering conditions.
Step 203: when the environmental parameters input by N detection circuits in the M detection circuits meet preset trigger conditions, outputting N trigger instructions; wherein N is a positive integer less than or equal to M;
in practical application, the environmental parameters input in the M-N detection circuits do not meet the preset trigger conditions, and M-N non-trigger instructions are output.
After the N detection circuits output the N trigger instructions, the method may further include: and when the environmental parameters input by the N detection circuits do not meet the preset trigger conditions, outputting N non-trigger instructions.
That is, after the processor has processed all trigger instructions, no new trigger instruction is generated in the M detection circuits.
Step 204: controlling a processor to enter an operating state based on the N trigger instructions to generate N control instructions for N electronic devices;
in practical application, the method further comprises the following steps: and sending the N control instructions to the N electronic devices. Wherein different control instructions are used to control different electronic devices.
Here, taking temperature adjustment as an example, the first temperature range is less than 35 degrees celsius and the second temperature range is greater than 35 degrees celsius. When the detection circuit detects that the ambient temperature changes from the first temperature range to the second temperature range, a trigger instruction is generated and used for triggering the processor to enter an operating state, the processor operates an application program code related to temperature control, generates a control instruction for starting an air conditioner according to the current ambient temperature, and sends the control instruction to the air conditioner to start the air conditioner; when the detection circuit detects that the ambient temperature changes from the second temperature range to the first temperature range, a trigger instruction is generated and used for triggering the processor to enter an operating state, the processor operates application program codes related to temperature control, and a control instruction for closing the air conditioner is generated according to the current ambient temperature and is sent to the air conditioner to close the air conditioner.
In some embodiments, the controlling the processor to enter the running state based on the N trigger instructions includes: controlling the processor to enter an operating state based on a first trigger instruction in the N trigger instructions; the first trigger instruction is the earliest acquired trigger instruction when the processor is in a sleep state.
That is, when the processor is in the sleep state, N detection circuits detect that the environmental parameter satisfies the trigger condition, and the detection circuit that outputs the trigger instruction first triggers the processor to enter the running state from the sleep state.
Step 205: controlling the processor to enter a sleep state.
In some embodiments, the method may further comprise: controlling the processor to enter a sleep state based on a second trigger instruction in the N trigger instructions; the second trigger instruction is the trigger instruction acquired latest when the processor is in a sleep state. Here, the processor is controlled to enter a sleep state immediately after the processor processes the last trigger instruction, or after the processor processes the last trigger instruction and the preset time period is set.
In other embodiments, the method may further comprise: outputting M non-trigger instructions when the environmental parameters input by the M detection circuits do not meet preset trigger conditions; and when the M detection circuits output M non-trigger instructions, controlling the processor to enter a sleep state.
That is, when the processor processes all the trigger instructions in the running state and the detection circuit does not have a newly generated trigger instruction at this time, the processor is controlled to enter the sleep state until the new trigger instruction wakes up again.
Therefore, the detection circuit detects the trigger event, the processor enters the running state when the trigger event occurs, and the processor enters the sleep state when the trigger event does not occur, so that the processor does not need to detect the trigger event, and is in the sleep state as long as possible, and the processor can be awakened in time to respond to the trigger event when the trigger event occurs, thereby ensuring the response speed.
Example IV
The embodiment of the application also provides an information processing device, as shown in fig. 5, which specifically comprises: a processor 501 and M detection circuits 502; wherein M is a positive integer;
the M detection circuits 501 are configured to detect whether an input environmental parameter meets a preset trigger condition;
the M detection circuits 501 are further configured to obtain M environmental parameters; when the environmental parameters input by N detection circuits in the M detection circuits meet preset trigger conditions, the N detection circuits output N trigger instructions; wherein N is a positive integer less than or equal to M;
the processor 502 is configured to enter an operational state based on the N trigger instructions, so as to generate N control instructions for N electronic devices.
In some embodiments, the processor is specifically configured to control the processor to enter an operation state based on a first trigger instruction of the N trigger instructions; the first trigger instruction is the earliest acquired trigger instruction when the processor is in a sleep state.
In some embodiments, the processor is specifically configured to trigger the processor to run N applications based on the N trigger instructions; wherein, different application programs correspond to control operations of different electronic devices; and generating N control instructions for the N electronic devices based on the environmental parameters input by the N detection circuits.
In some embodiments, the processor is further configured to control the processor to stop running the N applications.
In some embodiments, the preset trigger condition includes one of: the environmental parameter varies from a first parameter range to a second parameter range; wherein the first parameter variation range is before the second parameter variation range; the environmental parameter varies from the third parameter range to the fourth parameter range; wherein the third parameter variation range is after the fourth parameter variation.
In some embodiments, the processor is further configured to control the processor to enter a sleep state.
In some embodiments, after outputting the N trigger instructions, the M detection circuits are further configured to output M non-trigger instructions when the environmental parameters input by the M detection circuits do not meet a preset trigger condition;
correspondingly, the processor is specifically configured to control the processor to enter a sleep state when the M detection circuits output M non-trigger instructions.
Here, the electronic device may be an internet of things device, such as an air conditioner, a purifier, a humidifier, a refrigerator, a lamp, a massage armchair, a sweeping robot, or the like.
Fig. 6 shows a schematic diagram of the composition structure of a control system, as shown in fig. 6, the control system includes: a sensor, an information processing device and an electronic device. The information processing device specifically comprises M detection circuits and a processor, wherein the sensor 1 and the sensors 2 to M are respectively connected with the detection circuits 1 and 2 to M and used for converting detected environmental parameters into voltage signals and inputting the voltage signals into the respectively connected detection circuits, and the detection circuits 1 and 2 to M are connected with the processor and used for transmitting output signals to the processor; the processor is used for controlling the M electronic devices. It is assumed that the processor enters an operation state based on the earliest detection of the trigger instruction output by the detection circuit 1, to process the trigger event corresponding to the detection circuit 1, and to control the operation of the electronic device 1 corresponding to the trigger event. For example, the humidity is less than a humidity threshold and the humidifier is activated. After the processor processes the trigger event corresponding to the detection circuit 1, the processor continues to detect whether other detection circuits generate trigger instructions or not, if yes, the processor is controlled to enter a sleep state.
In practical application, the information processing device is separated from the electronic device, the information processing device and the electronic device can perform wireless communication in a local area network, the local area network can be ethernet, token ring, optical fiber distributed data interface (Fiber Distributed Data Interface, FDDI), asynchronous transmission mode (Asynchronous Transfer Mode, ATM) and the like, and the wireless communication mode can be Wi-Fi, bluetooth, zigBee, wireless mesh network.
In practical applications, the information processing device is located on a certain electronic device, and the information processing device controls the located electronic device and other electronic devices.
By adopting the technical scheme, the corresponding detection circuits are configured for different environment parameters, whether the environment parameters meet the trigger conditions is detected by the detection circuits, and when the environment parameters are determined to meet the trigger conditions, the processor is triggered to enter the running state, so that the control instruction for the electronic equipment is generated, the processor is not required to detect the environment parameters in a polling mode, the running time of the processor is shortened, and the processor can respond to the trigger event in time.
Example IV
The embodiment of the present application also provides another information processing apparatus, as shown in fig. 7, the information processing 70 includes: a processor 701 and a memory 702 configured to store a computer program capable of running on the processor;
wherein the processor 701 is configured to execute the method steps of the previous embodiments when running a computer program.
Of course, in actual practice, the various components of the information processing apparatus 70 are coupled together by a bus system 703, as shown in FIG. 7. It is appreciated that the bus system 703 is employed to facilitate connected communications between the components. The bus system 703 includes a power bus, a control bus, and a status signal bus in addition to the data bus. But for clarity of illustration the various buses are labeled as bus system 703 in fig. 7.
In practical applications, the processor may be at least one of an application specific integrated circuit (ASIC, application Specific Integrated Circuit), a digital signal processing device (DSPD, digital Signal Processing Device), a programmable logic device (PLD, programmable Logic Device), a Field-programmable gate array (Field-Programmable Gate Array, FPGA), a controller, a microcontroller, and a microprocessor. It will be appreciated that the electronics for implementing the above-described processor functions may be other for different devices, and embodiments of the present application are not particularly limited.
The Memory may be a volatile Memory (RAM) such as Random-Access Memory; or a nonvolatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (HDD) or a Solid State Drive (SSD); or a combination of the above types of memories and provide instructions and data to the processor.
The embodiment of the application also provides a computer readable storage medium for storing a computer program.
Optionally, the computer readable storage medium may be applied to any information processing apparatus in the embodiments of the present application, and the computer program causes a computer to execute a corresponding flow implemented by a processor in each method in the embodiments of the present application, which is not described herein for brevity.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing module, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units. Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware associated with program instructions, where the foregoing program may be stored in a computer readable storage medium, and when executed, the program performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, or the like, which can store program codes.
The methods disclosed in the method embodiments provided by the application can be arbitrarily combined under the condition of no conflict to obtain a new method embodiment.
The features disclosed in the several product embodiments provided by the application can be combined arbitrarily under the condition of no conflict to obtain new product embodiments.
The features disclosed in the embodiments of the method or the apparatus provided by the application can be arbitrarily combined without conflict to obtain new embodiments of the method or the apparatus.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. An information processing method, characterized in that the method comprises:
configuring M detection circuits for M environmental parameters; wherein M is a positive integer, and the detection circuit is used for detecting whether the input environmental parameters meet preset trigger conditions;
acquiring the M environmental parameters, and inputting the M environmental parameters into the M detection circuits;
when the environmental parameters input by N detection circuits in the M detection circuits meet preset trigger conditions, outputting N trigger instructions; wherein N is a positive integer less than or equal to M;
controlling a processor to enter an operating state based on the N trigger instructions to generate N control instructions for N electronic devices;
wherein after the generating N control instructions for N electronic devices, the method further includes:
outputting M non-trigger instructions when the environmental parameters input by the M detection circuits do not meet preset trigger conditions;
and when the M detection circuits output M non-trigger instructions, controlling the processor to enter a sleep state.
2. The method of claim 1, wherein controlling the processor to enter an operational state based on the N trigger instructions comprises:
controlling the processor to enter an operating state based on a first trigger instruction in the N trigger instructions; the first trigger instruction is the earliest acquired trigger instruction when the processor is in a sleep state.
3. The method of claim 1, wherein generating N control instructions for N electronic devices comprises:
triggering the processor to run N application programs based on the N trigger instructions; wherein, different application programs correspond to control operations of different electronic devices;
and generating N control instructions for the N electronic devices based on the environmental parameters input by the N detection circuits.
4. The method of claim 3, wherein after the generating N control instructions for the N electronic devices, the method further comprises:
and controlling the processor to stop running the N application programs.
5. The method according to any one of claims 1-4, wherein the preset trigger condition comprises one of:
the environmental parameter varies from a first parameter range to a second parameter range; wherein the first parameter variation range is before the second parameter variation range;
the environmental parameter varies from a third parameter range to a fourth parameter range; wherein the third parameter variation range is subsequent to the fourth parameter variation range.
6. An information processing apparatus, characterized in that the apparatus comprises: a processor and M detection circuits; wherein M is a positive integer;
the M detection circuits are used for detecting whether the input environmental parameters meet preset trigger conditions or not;
the M detection circuits are also used for acquiring M environmental parameters; when the environmental parameters input by N detection circuits in the M detection circuits meet preset trigger conditions, the N detection circuits output N trigger instructions; wherein N is a positive integer less than or equal to M;
the M detection circuits are further used for outputting M non-trigger instructions when the environmental parameters input by the M detection circuits do not meet preset trigger conditions after the N trigger instructions are output;
the processor is used for entering an operation state based on the N trigger instructions so as to generate N control instructions for N electronic devices;
the processor is further configured to control the processor to enter a sleep state when the M detection circuits output M non-trigger instructions.
7. An information processing apparatus, the apparatus comprising: a processor and a memory configured to store a computer program capable of running on the processor,
wherein the processor is configured to perform the steps of the method of any of claims 1 to 5 when the computer program is run.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 5.
CN201910401679.8A 2019-05-14 2019-05-14 Information processing method, device and computer readable storage medium Active CN110275804B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910401679.8A CN110275804B (en) 2019-05-14 2019-05-14 Information processing method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910401679.8A CN110275804B (en) 2019-05-14 2019-05-14 Information processing method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110275804A CN110275804A (en) 2019-09-24
CN110275804B true CN110275804B (en) 2023-08-11

Family

ID=67960003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910401679.8A Active CN110275804B (en) 2019-05-14 2019-05-14 Information processing method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110275804B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654844A (en) * 2020-04-23 2020-09-11 杭州涂鸦信息技术有限公司 Device pairing method and related device and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101978748A (en) * 2008-04-11 2011-02-16 高通股份有限公司 Power management using at least one of a special purpose processor and motion sensing
CN202437097U (en) * 2012-02-09 2012-09-19 肖梅华 Medical temperature tester
CN103677984A (en) * 2012-09-20 2014-03-26 中国科学院计算技术研究所 Internet of Things calculation task scheduling system and method
CN104025095A (en) * 2011-10-05 2014-09-03 奥普唐公司 Methods, apparatus, and systems for monitoring and/or controlling dynamic environments
CN107458418A (en) * 2017-07-21 2017-12-12 深圳市亚泰光电技术有限公司 self-powered train operation state monitoring system
WO2019033366A1 (en) * 2017-08-17 2019-02-21 深圳市优品壹电子有限公司 Device control method and apparatus

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI438618B (en) * 2010-02-25 2014-05-21 Tatung Co Method for reducing power consumption in an embedded device
US9098096B2 (en) * 2012-04-05 2015-08-04 Google Inc. Continuous intelligent-control-system update using information requests directed to user devices
CN104503286B (en) * 2014-12-26 2017-07-14 上海斐讯数据通信技术有限公司 Intelligence control system and its control method
US10206170B2 (en) * 2015-02-05 2019-02-12 Apple Inc. Dynamic connection path detection and selection for wireless controllers and accessories
CN106292314B (en) * 2015-06-26 2020-03-24 联想(北京)有限公司 Information processing method and electronic equipment
CN109298637A (en) * 2017-07-25 2019-02-01 中国移动通信有限公司研究院 A kind of intelligent home equipment control method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101978748A (en) * 2008-04-11 2011-02-16 高通股份有限公司 Power management using at least one of a special purpose processor and motion sensing
CN104025095A (en) * 2011-10-05 2014-09-03 奥普唐公司 Methods, apparatus, and systems for monitoring and/or controlling dynamic environments
CN202437097U (en) * 2012-02-09 2012-09-19 肖梅华 Medical temperature tester
CN103677984A (en) * 2012-09-20 2014-03-26 中国科学院计算技术研究所 Internet of Things calculation task scheduling system and method
CN107458418A (en) * 2017-07-21 2017-12-12 深圳市亚泰光电技术有限公司 self-powered train operation state monitoring system
WO2019033366A1 (en) * 2017-08-17 2019-02-21 深圳市优品壹电子有限公司 Device control method and apparatus

Also Published As

Publication number Publication date
CN110275804A (en) 2019-09-24

Similar Documents

Publication Publication Date Title
US10932499B2 (en) Electronic cigarette battery assembly, electronic cigarette therewith, and control method of the electronic cigarette
US6559783B1 (en) Programmable auto-converting analog to digital conversion module
US20120221753A1 (en) Method and device for waking up users in a bus system and corresponding users
CN104460326A (en) One-button type intelligent device management system and control method based on gravity sensing
US10382222B2 (en) Method for protecting configuration data from a data bus transceiver, data bus transceiver and data bus system
CN108896613B (en) Water immersion detection device and method
CN110275804B (en) Information processing method, device and computer readable storage medium
JP6698456B2 (en) Switch monitoring semiconductor integrated circuit, electronic control unit, and vehicle
CN109140706B (en) Intelligent control method for air conditioner
CN109074453B (en) Intrusion detection device, intrusion detection method, and computer-readable storage medium
JP6664099B2 (en) Sensors, isolators, and alarm systems
US20200269780A1 (en) Vehicle switch control device and switch state detection method
CN104168679B (en) Electromagnetic oven and charging method thereof
US9369373B2 (en) Peer-to-peer building automation system without knowledge being required of network topology
CN104121215A (en) Intelligent exhaust fan
CN116368947A (en) Determining a position of a presence sensor or an optical switch based on a control history
US20200137658A1 (en) Power savings for wireless sensors
EP2750261A1 (en) Electronic Device and Control Method Thereof
CN113446718A (en) Control method, device and equipment of purification device, air purifier and medium
KR20170068000A (en) Apparatus for managing power of vehicle and method for controlling the same
Thangarajah et al. Implementation of auto monitoring and short-message-service system via GSM modem
JP2014215120A (en) Electronic controller
EP3305032B1 (en) Lighting controller, lighting system and configuration method
US20240008160A1 (en) Transmitting a notification in dependence on what caused a light source to be on while a user is away
Rifat et al. Android controlled home automation system based on different power optimization modes

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant