Equipment control method and device, electronic equipment, storage medium and computer program product

By independently controlling the power supply and setting flags in the security equipment, periodically detecting the CPU status, the problem of the device being unable to start in a low-temperature environment is solved, the repeated start of the device when the temperature fluctuates is avoided, and the stable operation of the device is ensured.

CN119148836APending Publication Date: 2024-12-17DONGGUAN ZKTECO ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411203471.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

In extremely low temperature environments, security equipment cannot start or operate normally, and the prior art causes the equipment temperature to be repeatedly shut down and started when floating up and down the set threshold, affecting effective operation.

Method used

By using independent power supply control security identification module and heating module in the device, setting the setting flag bits are set to mark the communication status of the CPU, periodically detecting the CPU status and deciding whether to perform power-down processing to avoid unnecessary power switching.

Benefits of technology

It effectively prevents the repeated start-up of the equipment in a low-temperature environment, ensures that the equipment maintains stable operation during temperature fluctuations, and avoids interruptions caused by unnecessary power failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119148836A_ABST
    Figure CN119148836A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment control method and device, electronic equipment, a storage medium and a computer program product. The equipment comprises a security identification module and a heating module. Wherein the security identification module is powered on or powered off by controlling the first power supply, and the second power supply uninterruptedly supplies power to the heating module; the heating module operates in a heating mode under the condition that the temperature in the equipment is detected to be smaller than a set threshold value; the method comprises the following steps: reading a flag value of a set flag bit from a heating module every a first set period; wherein when the set flag bit is the first flag value, the set flag bit is used for marking that the communication state of the CPU of the security identification module is normal, and when the set flag bit is the second flag value, the set flag bit is used for marking that the communication state of the CPU is abnormal; and when the security and protection identification module is in a power-on state and the heating module operates in a heating mode, determining whether to perform power-down processing on the security and protection identification module according to the flag value of the set flag bit read most recently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of security, and in particular to a device control method, apparatus, electronic equipment, storage medium and computer program product. Background Art

[0002] Since the discharge amount of the electronic chip of the security equipment (such as the ID card recognition equipment) in the low temperature environment is different from that in the normal temperature environment, the security equipment often cannot start normally in the extremely low temperature environment. In the related art, a heating device is added to the security equipment, so that when the temperature of the equipment is lower than the set threshold, the equipment is powered off and the heating device is started. When the temperature of the equipment returns to normal, that is, exceeds the set threshold, the equipment is powered on and the heating device is turned off. However, this technology easily causes the equipment to be repeatedly shut down and started when the temperature of the equipment fluctuates above and below the set threshold. Summary of the invention

[0003] To solve related technical problems, the embodiments of the present application provide a device control method, apparatus, electronic device, storage medium and computer program product.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The embodiment of the present application provides a device control method, wherein the device includes a security identification module and a heating module; wherein the security identification module is powered on or off by controlling a first power supply, and the heating module is uninterruptedly powered by a second power supply; the heating module operates in a heating mode when it is detected that the temperature inside the device is less than a set threshold value, so as to generate heat energy inside the device;

[0006] The method comprises:

[0007] At every first set period, a flag value of a set flag bit is read from the heating module; wherein when the set flag bit is a first flag value, it is used to mark that the communication state of the central processing unit (CPU) of the security identification module is normal, and when the set flag bit is a second flag value, it is used to mark that the communication state of the CPU is abnormal;

[0008] When the security identification module is in a powered-on state and the heating module is operating in a heating mode, it is determined whether to perform power-off processing on the security identification module according to the flag value of the setting flag position read most recently.

[0009] In the above scheme, the method further comprises:

[0010] When the security identification module is in a powered-on state, detecting whether the communication state of the CPU is normal every second set period to obtain a detection result;

[0011] When the detection result indicates that the communication state of the CPU is normal, the first flag value is written to the set flag bit, and when the detection result indicates that the communication state of the CPU is abnormal, the second flag value is written to the set flag bit.

[0012] In the above scheme, the method further comprises:

[0013] When the security identification module is in a powered-on state, the CPU periodically sends a heartbeat packet to the heating module;

[0014] The step of detecting whether the communication state of the CPU is normal at every second set period to obtain a detection result includes:

[0015] Every second set period, detecting whether a heartbeat packet sent by the CPU is received within the corresponding second set period;

[0016] When it is detected that a number of heartbeat packets greater than or equal to the set number are received within the corresponding second set period, a detection result is obtained indicating that the communication status of the CPU is normal; and when it is detected that a number of heartbeat packets less than the set number are received within the corresponding second set period, a detection result is obtained indicating that the communication status of the CPU is abnormal.

[0017] In the above scheme, the method further comprises:

[0018] When the heating module is running in the heating mode and the security identification module is subjected to power-off processing, the first flag value is written into the setting flag bit.

[0019] In the above scheme, determining whether to power off the security identification module according to the flag value of the set flag bit read most recently includes:

[0020] When the setting flag bit is read as the first flag value the most recently, the security identification module is kept in a powered-on state; and / or,

[0021] When the setting flag bit read most recently is the second flag value, the security identification module is powered off.

[0022] In the above scheme, the method further comprises:

[0023] Triggering temperature detection inside the device every third set period; and / or,

[0024] After the security identification module is powered on, when the set flag bit read is the second flag value, a temperature detection inside the device is triggered.

[0025] In the above scheme, the method further comprises:

[0026] After the card identification module is powered off for more than a set time period and the heating module is not operating in a heating mode, the security identification module is powered on.

[0027] The embodiment of the present application also provides a device control device, which is applied to a device, wherein the device includes a security identification module and a heating module; wherein the security identification module is powered on or off by controlling a first power supply, and the heating module is uninterruptedly powered by a second power supply; the heating module operates in a heating mode when it is detected that the temperature inside the device is less than a set threshold value, so as to generate heat energy inside the device;

[0028] The equipment control device comprises:

[0029] A reading unit, used for reading a flag value of a set flag bit from the heating module every first set period; wherein when the set flag bit is a first flag value, it is used to mark that the communication state of the CPU of the security identification module is normal, and when the set flag bit is a second flag value, it is used to mark that the communication state of the CPU is abnormal;

[0030] The control unit is used to determine whether to power off the security identification module according to the flag value of the set flag position read most recently when the security identification module is in a powered-on state and the heating module is running in a heating mode.

[0031] The embodiment of the present application also provides a device, including: a security identification module and a heating module; the heating module includes: a temperature sensor, a heating device, a memory, a processor and a communication interface, wherein:

[0032] The security identification module is powered on or off by controlling the first power supply, and the heating module is powered on uninterruptedly by the second power supply;

[0033] The processor is configured to:

[0034] When the temperature sensor detects that the temperature inside the device is lower than a set threshold, the heating device is started so that the heating module operates in a heating mode to generate heat energy inside the device;

[0035] The processor is further configured to:

[0036] At every first set period, a flag value of a set flag bit is read from the memory; wherein when the set flag bit is a first flag value, it is used to mark that the communication state of the CPU of the security identification module is normal, and when the set flag bit is a second flag value, it is used to mark that the communication state of the CPU is abnormal;

[0037] When the security identification module is in a powered-on state and the heating module is operating in a heating mode, it is determined whether to perform power-off processing on the security identification module according to the flag value of the setting flag position read most recently.

[0038] An embodiment of the present application further provides a readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of any of the above methods when executed by a processor.

[0039] An embodiment of the present application further provides a computer program product, including a computer program, which implements the steps of any of the above methods when executed by a processor.

[0040] In the embodiment of the present application, the security identification module and the heating module in the device are powered by different power supplies, specifically, the security identification module is powered on or off by controlling the first power supply, and the heating module is powered on uninterruptedly by the second power supply. The heating module operates in the heating mode when it detects that the temperature inside the device is less than the set threshold value to generate heat energy inside the device. A set flag is set in the heating module, and when the set flag is a first flag value, it is used to mark that the communication state of the CPU of the security identification module is normal, and when the set flag is a second flag value, it is used to mark that the communication state of the CPU of the security identification module is abnormal. When controlling the device, the flag value of the set flag is read from the heating module every first set period, and when the security identification module is in the powered-on state and the heating module is running in the heating mode, it is determined whether to power off the security identification module according to the flag value of the set flag that was read the most recently. When the device is controlled by the above solution, it can effectively prevent the security identification module from being powered off immediately when the internal temperature of the device is lower than the set threshold, causing the security identification module to be interrupted. This can avoid the repeated startup of the device in a low temperature environment to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A schematic diagram of a flow chart of a device control method according to an embodiment of the present application;

[0042] Figure 2 This is a flow chart of another device control method according to an embodiment of the present application;

[0043] Figure 3This is a schematic diagram of the structure of the device control device of the embodiment of the present application;

[0044] Figure 4 This is a schematic diagram of a device according to an embodiment of the present application. DETAILED DESCRIPTION

[0045] In the field of security, relevant security equipment includes but is not limited to: ID card recognition equipment, face recognition equipment, fingerprint recognition equipment and palm print recognition equipment. In an extremely low temperature environment, for example, when the security equipment is at a temperature of minus 30°C or lower, the discharge amount of the electronic chip of the security equipment is different from the discharge amount of the electronic chip at a normal temperature of 5 to 70°C. Therefore, at this time, the electronic chip of the security equipment may not work properly, resulting in the inability to start the security equipment normally.

[0046] In order to solve the problem that security equipment cannot start or operate normally in an extremely low temperature environment, the relevant technology adds a heating device to the security equipment, so that when the temperature of the equipment is lower than the set threshold, the equipment is powered off and the heating device is started. When the temperature of the equipment returns to normal, that is, exceeds the set threshold, the equipment is powered on and the heating device is turned off. However, this technology easily causes the equipment to be repeatedly shut down and started when the temperature of the equipment fluctuates above and below the set threshold, affecting the effective operation of the equipment.

[0047] Based on this, in a device control method, apparatus, electronic device, storage medium and computer program product provided by the embodiment of the present application, the security identification module and the heating module in the device are powered by different power supplies respectively. Specifically, the security identification module is powered on or off by controlling the first power supply, and the heating module is powered on uninterruptedly by the second power supply. The heating module operates in the heating mode when it detects that the temperature inside the device is less than the set threshold value to generate heat energy inside the device. A set flag bit is set in the heating module. When the set flag bit is a first flag value, it is used to mark that the communication state of the CPU of the security identification module is normal. When the set flag bit is a second flag value, it is used to mark that the communication state of the CPU of the security identification module is abnormal. When controlling the device, the flag value of the set flag bit is read from the heating module every first set period, and when the security identification module is in the powered-on state and the heating module is running in the heating mode, it is determined whether to power off the security identification module according to the flag value of the set flag bit read the most recently. When the device is controlled by the above solution, it can effectively prevent the security identification module from being powered off immediately when the internal temperature of the device is lower than the set threshold, causing the security identification module to be interrupted. This can avoid the repeated startup of the device in a low temperature environment to a certain extent.

[0048] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0049] The present application embodiment provides a device control method, referring to Figure 1 , the device control method includes: step 101 and step 102.

[0050] The device includes a security identification module and a heating module; the security identification module is powered on or off by controlling the first power supply, and the heating module is continuously powered by the second power supply; when the heating module detects that the temperature inside the device is lower than a set threshold, it operates in a heating mode to generate heat energy inside the device.

[0051] In the embodiment of the present application, the first power supply and the second power supply are independent of each other, that is, the first power supply cannot be used to power the heating module, and the second power supply cannot be used to power on or off the security identification module.

[0052] In the embodiment of the present application, the sub-modules configured in the security identification module include but are not limited to a CPU, peripheral modules and a mainboard, among which the peripheral modules include but are not limited to a lens, a display, a fingerprint collection module, a palm print collection module, etc.

[0053] In an embodiment of the present application, the heating module includes: a temperature sensor, a heating device, a memory, a processor and a communication interface. For example, the heating device can be a high-power resistor, which generates heat energy when powered on, thereby providing heat energy to the inside of the device. For example, in practical applications, the functions of the memory, processor and communication interface in the heating module can be integrated into a single chip, and a microcontroller (MCU, Micro Controller Unit) or a single-chip microcomputer is a microcomputer system that integrates the above functions into a single chip.

[0054] In addition, since the CPU in the security identification module is the computing center of the security identification module inside the device, the price and importance of the CPU are higher than the price and importance of the peripheral modules in the security identification module. Once the CPU fails to operate normally, the peripheral modules in the security identification module cannot operate normally either. Therefore, the temperature sensor in the heating module can be deployed near the CPU of the security identification module to measure the temperature of the device. The set threshold can be set to the minimum operating temperature in the recommended operating temperature range of the CPU of the security identification module when it leaves the factory, or higher than the minimum operating temperature. Exemplarily, the set threshold can be set to -5°C, 0°C or 5°C.

[0055] Step 101 and step 102 are described in detail below.

[0056] Step 101: every first setting period, read the flag value of the setting flag bit from the heating module.

[0057] When the set flag bit is a first flag value, it is used to mark that the communication status of the CPU of the security identification module is normal; when the set flag bit is a second flag value, it is used to mark that the communication status of the CPU is abnormal.

[0058] In an embodiment of the present application, the setting flag bit can be a bit map, and the flag value is presented by a bit value. Exemplarily, the bit length of the setting flag bit is 1 bit, the first flag value can be represented by the bit value "1", and the second flag value can be represented by the bit value "0".

[0059] In the embodiment of the present application, the first flag value and the second flag value are not limited to the use of binary digits, but may also use digits in other bases or other types of information encoding. For example, the first flag value uses decimal "9" or English "yes", and the second flag value uses decimal "7" or English "no".

[0060] In the embodiment of the present application, the processor in the heating module reads the flag value of the set flag bit from the memory in the heating module. When the set flag bit is the first flag value, the heating module considers that the communication state of the CPU of the security identification module is normal. When the set flag bit is the second flag value, the heating module considers that the communication state of the CPU of the security identification module is abnormal. In other words, the flag value in the set flag bit does not represent the actual communication state of the CPU of the security identification module, but the heating module will determine or identify the communication state of the CPU of the security identification module according to the flag value.

[0061] In actual application, the corresponding flag value can be written into the set flag bit according to the actual communication status of the CPU of the security identification module. Based on this, in one embodiment, the method further includes:

[0062] When the security identification module is in a powered-on state, whether the communication status of the CPU is normal is detected every second set period to obtain a detection result; when the detection result indicates that the communication status of the CPU is normal, the first flag value is written to the set flag bit, and when the detection result indicates that the communication status of the CPU is abnormal, the second flag value is written to the set flag bit.

[0063] Here, if the security identification module is in a power-off state, the CPU of the security identification module is also in a power-off state. At this time, it is impossible to determine whether the communication status of the CPU is normal. At this time, the heating module cannot write the first flag value or the second flag value to the set flag bit according to the communication status of the CPU.

[0064] In actual application, the corresponding flag value can also be written into the set flag bit according to the power-off status of the security identification module. Based on this, in one embodiment, the method further includes:

[0065] When the heating module is running in the heating mode and the security identification module is subjected to power-off processing, the first flag value is written into the setting flag bit.

[0066] In this embodiment, the flag value of the set flag bit is not written according to the actual communication state of the CPU, but is written after the security identification module has been powered off, and the first flag value is written. Although the writing conditions are different, the effect is to make the processor in the heating module believe that the communication state of the CPU of the security identification module is normal, so that the security identification module will not be powered off again. In actual application, after the security identification module is powered off for more than a certain period of time and then powered on again, the heating module may not have timely determined whether the state of the CPU is normal. At this time, if the first flag value is not written, and the set flag bit is the second flag value, then the security identification module will be powered off again, thereby affecting the normal operation of the device; if the security identification module has been powered off, that is, the security identification module has been powered off, then the first flag value is written to the set flag bit, and after the security identification module is powered on again after being powered off for more than a certain period of time, it will not be powered off again before the heating module has not timely determined whether the state of the CPU is normal.

[0067] Step 102: when the security identification module is in a powered-on state and the heating module is operating in a heating mode, determine whether to power off the security identification module according to the flag value of the setting flag position read most recently.

[0068] In the embodiment of the present application, there are two situations in which the security identification module is in a powered-on state: 1. The security identification module is powered on for the first time, where the first power-on refers to the first startup of the device after all modules of the device are powered off; 2. After the security identification module is powered on for the first time, the heating module controls the first power supply to power off the security identification module once or multiple times and then powers it on again.

[0069] In the embodiment of the present application, the situation where the heating module operates in the heating mode means that when the heating module detects that the temperature inside the device is lower than a set threshold, the heating module operates in the heating mode to generate heat energy inside the device.

[0070] In the embodiment of the present application, before the security identification module is powered on for the first time, the temperature inside the device is not required to be greater than or equal to the set threshold. That is, even if the temperature inside the device is lower than the set threshold, the security identification module is still powered on for the first time.

[0071] In an embodiment of the present application, when the security identification module is in a powered-on state and the temperature inside the device is lower than a set threshold, since the set flag bit may be written with different flag values ​​multiple times, it is necessary to determine whether to power off the security identification module based on the flag value of the set flag bit most recently read, that is, based on the first flag value or the second flag value.

[0072] In the embodiment of the present application, the security identification module is powered off, that is, the CPU and peripheral modules in the security identification module are powered off. If only the CPU is powered off, and the peripheral modules are not powered off, the operating state of the peripheral modules will also be abnormal, so in the present application, the CPU and peripheral modules in the security identification module are powered off, not just the CPU.

[0073] In the above embodiment, when the security identification module is in the power-on state, the communication status of the CPU can be detected every second set period to obtain a detection result, and a flag value of the set flag bit can be written according to the detection result. In the present application, whether the communication status of the CPU is normal can be detected by detecting the number of received heartbeat packets.

[0074] In one embodiment, when the security identification module is in a powered-on state, the CPU periodically sends a heartbeat packet to the heating module;

[0075] The method further comprises:

[0076] Every second set period, the communication status of the CPU is detected to see whether it is normal, and a detection result is obtained, including:

[0077] Every second set period, detecting whether a heartbeat packet sent by the CPU is received within the corresponding second set period;

[0078] When it is detected that a number of heartbeat packets greater than or equal to the set number are received within the corresponding second set period, a detection result is obtained indicating that the communication status of the CPU is normal. When it is detected that a number of heartbeat packets less than the set number are received within the corresponding second set period, a detection result is obtained indicating that the communication status of the CPU is abnormal.

[0079] In an embodiment of the present application, when the security identification module is in a powered-on state, that is, the CPU in the security identification module is also in a powered-on state, the CPU periodically sends a heartbeat packet to the heating module. Exemplarily, the period for sending the heartbeat packet is 1s.

[0080] In the embodiment of the present application, the second set period is greater than or equal to the period of the CPU sending the heartbeat packet. Within the second set period, and when the CPU communication state is normal and there is no packet loss, the number of heartbeat packets sent by the CPU is A, then the number of heartbeat packets received by the heating module within the second set period should also be A. Here, A is referred to as the number of heartbeat packets that the heating module should receive within the second set period.

[0081] In the embodiment of the present application, the set number in the set number of heartbeat packets can be less than the number of heartbeat packets that the heating module should receive during the second set period. Exemplarily, the second set period is 1 min, and the period for the CPU to send heartbeat packets is 1s, so the number of heartbeat packets that the heating module should receive during the second set period is 60. Since a certain degree of packet loss may occur after the CPU is powered on, the set number can be set to 50. That is to say, when it is detected that 55 heartbeat packets (greater than or equal to the set number) are received within the second set period, a detection result characterizing the normal communication state of the CPU is obtained; when it is detected that 45 heartbeat packets (less than the set number) are received within the second set period, a detection result characterizing the abnormal communication state of the CPU is obtained.

[0082] In the embodiment of the present application, when the security identification module is in the power-on state, the CPU periodically sends a heartbeat packet to the heating module; wherein, every second set period, the communication state of the CPU is detected to be normal, and a detection result is obtained, including: every second set period, detecting whether a heartbeat packet sent by the CPU is received within the corresponding second set period; when it is detected that a heartbeat packet greater than or equal to the set number is received within the corresponding second set period, a detection result indicating that the communication state of the CPU is normal is obtained, and when it is detected that a heartbeat packet less than the set number is received within the corresponding second set period, a detection result indicating that the communication state of the CPU is abnormal is obtained. Through the above method, it is possible to more accurately and effectively determine whether the communication state of the CPU in the security identification module is normal or abnormal.

[0083] In the embodiment of the present application, when the security identification module is in the power-on state, the CPU can send data to the heating module non-periodically. As long as the heating module is receiving data from the CPU, or the heating module has received data from the CPU after the CPU is powered on, the communication status of the CPU is judged to be normal. If the heating module has not received data from the CPU when the security identification module is in the power-on state, the communication status of the CPU is judged to be abnormal.

[0084] In one embodiment, determining whether to power off the security identification module according to the flag value of the set flag bit read most recently includes:

[0085] When the setting flag bit is read as the first flag value the most recently, the security identification module is kept in a powered-on state; and / or,

[0086] When the setting flag bit read most recently is the second flag value, the security identification module is powered off.

[0087] In the embodiment of the present application, the prerequisite for determining whether to power off the security identification module is that the security identification module is in a powered-on state and the heating module is running in a heating mode. When the heating module detects that the temperature inside the device is less than a set threshold, it runs in a heating mode to generate heat energy inside the device. In other words, the prerequisite for determining whether to power off the security identification module is that the security identification module is in a powered-on state and the temperature inside the device is less than a set threshold.

[0088] In the embodiment of the present application, when the security identification module is in the power-on state and the heating module is running in the heating mode, if the heating module reads the setting flag as the first flag value the last time, two situations may occur: situation 1, the communication status of the CPU is normal at this time; situation 2, the security identification module has been powered off, but then powered on again. As described in the above embodiments, in both cases, the heating module will write the first flag value to the setting flag, so the setting flag is read as the first flag value the last time. Therefore, no matter which of the above situations is the case, the setting flag will be read as the first flag value, thereby keeping the security identification module in the power-on state.

[0089] In the embodiment of the present application, when the security identification module is in the power-on state and the heating module is running in the heating mode, there is only one situation, that is, when the detection result indicates that the communication state of the CPU is abnormal, the second flag value will be written to the set flag bit. At this time, if the set flag bit read by the heating module most recently is the second flag value, the security identification module is powered off.

[0090] In an embodiment of the present application, by keeping the security identification module in a powered-on state when the setting flag bit is most recently read as the first flag value; and / or, performing power-off processing on the security identification module when the setting flag bit is most recently read as the second flag value, the first flag value or the second flag value of the setting flag bit corresponds to the corresponding power-on or power-off processing, and the prerequisites for the power-off processing are more precisely specified, which is conducive to the normal operation of the device.

[0091] In one embodiment, the method further comprises:

[0092] Triggering temperature detection inside the device every third set period; and / or,

[0093] After the security identification module is powered on, when the set flag bit read is the second flag value, the temperature detection inside the device is triggered.

[0094] In an embodiment of the present application, the temperature sensor of the heating module is triggered to perform temperature detection every third set period, wherein the third set period may be a manually specified period. Exemplarily, the third set period is set to 2s. In addition, the third set period may also be a default period. For example, when there is no manual specification, the third set period defaults to 1s.

[0095] In the embodiment of the present application, after the security identification module is powered on, if the set flag is read as the second flag value, it indicates that the communication state of the CPU in the security identification module is abnormal, triggering the temperature detection inside the device, and when the detected temperature inside the device is less than the set threshold, the device operates in the heating mode. In this process, the temperature detection inside the device can also be triggered every third set period.

[0096] In an embodiment of the present application, by triggering the temperature detection inside the device every third set period; and / or, after the security identification module is powered on, when the set flag bit read is the second flag value, triggering the temperature detection inside the device, it is possible to avoid constantly triggering the temperature detection inside the device, thereby saving computing resources and power consumption.

[0097] In one embodiment, the method further comprises:

[0098] After the power-off process of the security identification module exceeds the set time, and the heating module is not running in the heating mode, the security identification module is powered on.

[0099] In the embodiment of the present application, when the CPU communication of the security identification module is abnormal, a second flag value will be written into the set flag bit, and when the heating module reads the second flag value, the security identification module will be powered off. When the internal temperature of the device gradually rises to a value greater than or equal to the set threshold, the security identification module is still powered off, and the heating module is not running in the heating mode. Therefore, in order to ensure the normal operation of the device, after the security identification module is powered off for more than a set period of time, the security identification module needs to be powered on. Among them, the fact that the heating module is not running in the heating mode indicates that the internal temperature of the device is greater than or equal to the set threshold. If the security identification module is powered on again, it can be ensured that the CPU is at a normal operating temperature.

[0100] In the embodiment of the present application, when the temperature is greater than or equal to the set threshold, if the heating module is still running in the heating mode, the heating mode is stopped; if the heating module is not running in the heating mode, it remains not running in the heating mode. When the heating module is not running in the heating mode, and after the power-off process of the security identification module exceeds the set time, the security identification module is powered on.

[0101] In the embodiment of the present application, the preset duration may be a time manually set in the device, or a default time. Exemplarily, the preset duration is a manually set 5s or a default 10s.

[0102] In an embodiment of the present application, by powering on the security identification module after the security identification module has been powered off for more than a set period of time and the heating module is not operating in the heating mode, it is possible to effectively prevent the security identification module from being powered off for too long and affecting the effective operation of the device.

[0103] Reference Figure 2 The present application scheme is further described below through application examples.

[0104] Step 201: Power on the equipment, that is, power on both the security identification module and the heating module.

[0105] The security identification module is powered on or off by controlling the first power supply, and the heating module is powered uninterruptedly by the second power supply.

[0106] Step 202: Detect the communication status of the CPU in the security identification module. If the communication status is normal, write a first flag value in the setting flag of the heating module. If the communication status is abnormal, set the flag to a second flag value.

[0107] The first flag value is set to "1" and the second flag value is set to "0". The communication status of the CPU in the security identification module is detected every 0.5 seconds to see if it is normal.

[0108] Step 203: The temperature sensor in the heating module detects the temperature of the CPU, and the period for triggering the temperature detection is set to 1 s. When the temperature is less than the set threshold, step 204 is executed; when the temperature is greater than or equal to the set threshold, step 205 is executed.

[0109] Step 203 may be performed continuously after the device is powered on, that is, performed synchronously with all other steps, or may be performed after step 202 .

[0110] Step 204: Run the heating mode of the heating module and read the flag value of the set flag. If the flag value is the first flag value, that is, the flag value is "1", return to step 202; if the flag value is the second flag value, that is, the flag value is "0", the security identification module is powered off, and the first flag value is written in the set flag in the heating module, that is, "1" is written to prevent the security identification module from being powered off again. Finally, return to step 202 to continue detecting the communication status.

[0111] Step 205: Determine whether the heating mode of the heating module is running. If it is running, stop the heating mode. If the heating mode is not running, execute step 206.

[0112] Step 206: Determine whether the power-off time of the security identification module exceeds the set duration of 10s. If there is no power-off or the power-off time does not exceed the set duration, return to step 202; if the power-off time of the security identification module exceeds the set duration, power on the security identification module, and also return to step 202 to continue to detect the communication status.

[0113] In the application embodiment of the present application, when the device is powered on and the temperature is greater than or equal to the set threshold, the device operates normally. However, as the ambient temperature gradually decreases, the heat generated by the CPU of the security identification module is lower than the heat taken away by the environment, which will cause the temperature of the CPU to gradually decrease. Therefore, when the temperature is less than the set threshold, the heating mode is operated, and by detecting the communication status of the CPU, it is possible to prevent the heating module from controlling the first power supply to repeatedly power off the security identification module.

[0114] In the application embodiment of the present application, when the device is powered on for the first time, if the temperature inside the device is lower than the set threshold and the communication status of the CPU is abnormal, the security identification module will be powered off once, and after the temperature is greater than or equal to the set threshold and the security identification module is powered off for more than the set duration of 10s, the security identification module will be powered on and the above steps will be repeated to prevent repeated power off of the security identification module.

[0115] In order to implement the device control method of the embodiment of the present application, the embodiment of the present application also provides a device control device, which includes a security identification module and a heating module; wherein the security identification module is powered on or off by controlling the first power supply, and the heating module is uninterruptedly powered by the second power supply; the heating module operates in a heating mode when it is detected that the temperature inside the device is less than a set threshold value, so as to generate heat energy inside the device, such as Figure 3 As shown, the device control device includes:

[0116] The reading unit 301 is used to read the flag value of the set flag bit from the heating module every first set period; wherein, when the set flag bit is a first flag value, it is used to mark that the communication state of the CPU of the security identification module is normal, and when the set flag bit is a second flag value, it is used to mark that the communication state of the CPU is abnormal;

[0117] The control unit 302 is used to determine whether to power off the security identification module according to the flag value of the set flag position read most recently when the security identification module is in a powered-on state and the heating module is running in a heating mode.

[0118] In one embodiment, the device further comprises:

[0119] A detection unit, used for detecting whether the communication state of the CPU is normal every second set period when the security identification module is in a powered-on state, and obtaining a detection result;

[0120] The first writing unit is used to write the first flag value to the set flag bit when the detection result indicates that the communication state of the CPU is normal, and to write the second flag value to the set flag bit when the detection result indicates that the communication state of the CPU is abnormal.

[0121] In one embodiment, the device further comprises:

[0122] A sending unit, configured to cause the CPU to periodically send a heartbeat packet to the heating module when the security identification module is in a powered-on state;

[0123] In one embodiment, the detection unit is used to:

[0124] Every second set period, detect whether the heartbeat packet sent by the CPU is received within the corresponding second set period; when it is detected that a number of heartbeat packets greater than or equal to the set number are received within the corresponding second set period, a detection result is obtained indicating that the communication status of the CPU is normal; and when it is detected that a number of heartbeat packets less than the set number are received within the corresponding second set period, a detection result is obtained indicating that the communication status of the CPU is abnormal.

[0125] In one embodiment, the device further comprises:

[0126] The second writing unit is used to write the first flag value into the setting flag bit when the security identification module is subjected to power-off processing during the period when the heating module is operating in the heating mode.

[0127] In one embodiment, the control unit 302 is configured to:

[0128] When the setting flag bit read last time is the first flag value, the security identification module is kept in a powered-on state; and / or, when the setting flag bit read last time is the second flag value, the security identification module is powered-off.

[0129] In one embodiment, the device further comprises:

[0130] The trigger unit is used to trigger the temperature detection inside the device every third set period; and / or, after the security identification module is powered on, when the set flag bit read is the second flag value, trigger the temperature detection inside the device.

[0131] In one embodiment, the device further comprises:

[0132] The power-on control unit is used to power on the security identification module after the power-off process of the security identification module exceeds a set time and the heating module is not running in the heating mode.

[0133] In actual application, the device control provided in the above embodiment is only illustrated by the division of the above program modules. In actual application, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the above-described processing. In addition, the device control device and the device control method embodiment provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0134] Based on the hardware implementation of the above program modules, the embodiment of the present application also provides a device, such as Figure 4 The device 400 includes:

[0135] Security identification module 401 and heating module 402.

[0136] The security identification module 401 is powered on or off by controlling the first power supply, and the heating module 402 is powered uninterruptedly by the second power supply.

[0137] The heating module 402 includes:

[0138] Communication interface 403, capable of exchanging information with other nodes;

[0139] A temperature sensor 404 capable of detecting the temperature inside the device;

[0140] A heating device 405 capable of generating heat energy inside the device;

[0141] The processor 406 is connected to the communication interface 403 to implement information exchange with other nodes and is used to execute the method provided by one or more technical solutions when running a computer program. The computer program is stored in the memory 407.

[0142] When the processor 406 runs the computer program to execute the above one or more device control methods, specifically:

[0143] The processor 406 is configured to:

[0144] When the temperature sensor 404 detects that the temperature inside the device is lower than a set threshold, the heating device 405 is started, so that the heating module 402 operates in a heating mode to generate heat energy inside the device;

[0145] At every first set period, a flag value of the set flag bit is read from the memory 407; wherein, when the set flag bit is a first flag value, it is used to mark that the communication state of the CPU of the security identification module 401 is normal, and when the set flag bit is a second flag value, it is used to mark that the communication state of the CPU is abnormal;

[0146] When the security identification module 401 is in a powered-on state and the heating module is operating in a heating mode, it is determined whether to perform a power-off process on the security identification module 401 according to the flag value of the setting flag position read most recently.

[0147] In one embodiment, the processor 406 is further configured to:

[0148] When the security identification module 401 is in a powered-on state, detecting whether the communication state of the CPU is normal every second set period to obtain a detection result;

[0149] When the detection result indicates that the communication state of the CPU is normal, the first flag value is written to the set flag bit, and when the detection result indicates that the communication state of the CPU is abnormal, the second flag value is written to the set flag bit.

[0150] In one embodiment, the processor 406 is further configured to:

[0151] When the security identification module 401 is in a powered-on state, the CPU periodically sends a heartbeat packet to the heating module 402;

[0152] In one embodiment, the step of detecting whether the communication status of the CPU is normal every second set period to obtain the detection result includes:

[0153] Every second set period, detect whether the heartbeat packet sent by the CPU is received within the corresponding second set period; when it is detected that a number of heartbeat packets greater than or equal to the set number are received within the corresponding second set period, a detection result is obtained indicating that the communication status of the CPU is normal; and when it is detected that a number of heartbeat packets less than the set number are received within the corresponding second set period, a detection result is obtained indicating that the communication status of the CPU is abnormal.

[0154] In one embodiment, the processor 406 is further configured to:

[0155] When the heating module 402 is running in the heating mode and the security identification module 401 is subjected to power-off processing, the first flag value is written into the setting flag bit.

[0156] In one embodiment, the processor 406 is further configured to:

[0157] When the setting flag bit read last time is the first flag value, the security identification module 401 is kept in a powered-on state; and / or, when the setting flag bit read last time is the second flag value, the security identification module 401 is powered-off.

[0158] In one embodiment, the processor 406 is further configured to:

[0159] Every third set period, the temperature sensor 404 is triggered to detect the temperature inside the device; and / or, after the security identification module 401 is powered on, if the set flag read is the second flag value, the temperature sensor 404 is triggered to detect the temperature inside the device.

[0160] In one embodiment, the processor 406 is further configured to:

[0161] After the power-off process of the security identification module 401 exceeds the set time period and the heating module 402 is not running in the heating mode, the security identification module 401 is powered on.

[0162] It should be noted that the specific processing process of the processor 406 and the communication interface 403 can be understood by referring to the above method.

[0163] Of course, in actual application, the various components in the device 400 are coupled together through the bus system 408. It is understandable that the bus system 408 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 408 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 4 Various buses are labeled as bus system 408 .

[0164] The memory 407 in the embodiment of the present application is used to store various types of data to support the operation of the device 400. Examples of such data include: any computer program used to operate on the device 400.

[0165] The method disclosed in the above embodiment of the present application can be applied to the processor 406, or implemented by the processor 406. The processor 406 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 406. The above processor 406 can be a general processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 406 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 407, and the processor 406 reads the information in the memory 407 and completes the steps of the above method in combination with its hardware.

[0166] In an exemplary embodiment, the device 400 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, MCUs, microprocessors, or other electronic components to execute the aforementioned method.

[0167] It can be understood that the memory 407 of the embodiment of the present application can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (S SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAMbus random access memory (DRRAM, Direct Rambus Random Access Memory).The memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.

[0168] In an exemplary embodiment, the present application also provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, a memory 407 storing a computer program, and the computer program can be executed by a processor 406 of a device 400 to complete the steps of the aforementioned device control method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.

[0169] Illustratively, an embodiment of the present application further provides a computer program product, including a computer program, which can be executed by the processor 406 of the device 400 to complete the steps of the aforementioned device control method.

[0170] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0171] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0172] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. A device control method, characterized in that: The device comprises a security identification module and a heating module; wherein the security identification module is powered on or off by controlling a first power supply, and the heating module is continuously powered by a second power supply; the heating module operates in a heating mode when it is detected that the temperature inside the device is less than a set threshold value, so as to generate heat energy inside the device; The method comprises: At every first set period, a flag value of a set flag bit is read from the heating module; wherein when the set flag bit is a first flag value, it is used to mark that the communication state of the central processing unit CPU of the security identification module is normal, and when the set flag bit is a second flag value, it is used to mark that the communication state of the CPU is abnormal; When the security identification module is in a powered-on state and the heating module is operating in a heating mode, it is determined whether to perform power-off processing on the security identification module according to the flag value of the setting flag position read most recently.

2. The method according to claim 1, characterized in that: The method further comprises: When the security identification module is in a powered-on state, detecting whether the communication state of the CPU is normal every second set period to obtain a detection result; When the detection result indicates that the communication state of the CPU is normal, the first flag value is written to the set flag bit, and when the detection result indicates that the communication state of the CPU is abnormal, the second flag value is written to the set flag bit.

3. The method according to claim 2, characterized in that When the security identification module is in a powered-on state, the CPU periodically sends a heartbeat packet to the heating module; The method further comprises: The step of detecting whether the communication state of the CPU is normal at every second set period to obtain a detection result includes: Every second set period, detecting whether a heartbeat packet sent by the CPU is received within the corresponding second set period; When it is detected that a number of heartbeat packets greater than or equal to the set number are received within the corresponding second set period, a detection result is obtained indicating that the communication status of the CPU is normal; and when it is detected that a number of heartbeat packets less than the set number are received within the corresponding second set period, a detection result is obtained indicating that the communication status of the CPU is abnormal.

4. The method according to claim 1, characterized in that: The method further comprises: When the heating module is running in the heating mode and the security identification module is subjected to power-off processing, the first flag value is written into the setting flag bit.

5. The method according to any one of claims 1 to 4, characterized in that: The determining whether to perform power-off processing on the security identification module according to the flag value of the set flag bit read most recently includes: When the setting flag bit is read as the first flag value the most recently, the security identification module is kept in a powered-on state; and / or, When the setting flag bit read most recently is the second flag value, the security identification module is powered off.

6. The method according to claim 1, characterized in that The method further comprises: Triggering temperature detection inside the device every third set period; and / or, After the security identification module is powered on, when the set flag bit read is the second flag value, a temperature detection inside the device is triggered.

7. The method according to claim 1, characterized in that The method further comprises: After the power-off process of the security identification module exceeds a set time period and the heating module is not running in a heating mode, the security identification module is powered on.

8. A device control device, characterized in that: Applied to a device, the device comprises a security identification module and a heating module; wherein the security identification module is powered on or off by controlling a first power supply, and the heating module is continuously powered by a second power supply; the heating module operates in a heating mode when it is detected that the temperature inside the device is less than a set threshold value, so as to generate heat energy inside the device; The equipment control device comprises: A reading unit, used for reading a flag value of a set flag bit from the heating module every first set period; wherein when the set flag bit is a first flag value, it is used to mark that the communication state of the CPU of the security identification module is normal, and when the set flag bit is a second flag value, it is used to mark that the communication state of the CPU is abnormal; The control unit is used to determine whether to power off the security identification module according to the flag value of the set flag position read most recently when the security identification module is in a powered-on state and the heating module is running in a heating mode.

9. A device, characterized in that: include: Security identification module and heating module; The heating module includes: a temperature sensor, a heating device, a memory, a processor and a communication interface, wherein: The security identification module is powered on or off by controlling the first power supply, and the heating module is powered on uninterruptedly by the second power supply; The processor is configured to: When the temperature sensor detects that the temperature inside the device is lower than a set threshold, the heating device is started so that the heating module operates in a heating mode to generate heat energy inside the device; The processor is further configured to: At every first set period, a flag value of a set flag bit is read from the memory; wherein when the set flag bit is a first flag value, it is used to mark that the communication state of the CPU of the security identification module is normal, and when the set flag bit is a second flag value, it is used to mark that the communication state of the CPU is abnormal; When the security identification module is in a powered-on state and the heating module is operating in a heating mode, it is determined whether to perform power-off processing on the security identification module according to the flag value of the setting flag position read most recently.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.