Intelligent hardware secure startup method, system, storage medium and intelligent hardware

By detecting the switch triggering time and battery voltage of the smart hardware, the legality and consistency verification is performed, which solves the security issues of smart hardware in switch operation and battery management, prevents accidental triggering and tampering, and achieves safe startup and normal operation.

CN112882755BActive Publication Date: 2024-08-30SHENZHEN GJS TECHNOLOGY CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202110038974.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-12
Publication Date
2024-08-30
Estimated Expiration
2041-01-12

AI Technical Summary

Technical Problem

Intelligent hardware has problems such as accidental triggering, battery over-discharge, temperature effects and malicious tampering in switch operation and battery management, leading to device insecurity and theft.

Method used

By detecting the switch triggering time and battery voltage, legality and consistency verification is performed to ensure that the smart hardware enters the working mode only when the conditions are met, preventing accidental triggering and tampering.

Benefits of technology

Effectively prevent battery consumption and system theft caused by accidental touch or tampering of smart hardware, ensuring safe startup and normal operation of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112882755B
    Figure CN112882755B
Patent Text Reader

Abstract

The present invention discloses a smart hardware security startup method, system, storage medium and smart hardware, and relates to the technical field of smart hardware. The method detects whether the triggering duration of the smart hardware is greater than or equal to the preset triggering duration when the switch of the smart hardware is triggered, and detects whether the voltage of the battery is above the preset startup threshold. When the above two conditions are met, the legality and consistency of the smart hardware are verified. Only when the legality and consistency are guaranteed, the smart hardware is driven to enter the working mode and work normally, which not only prevents the smart hardware from being accidentally triggered and then consuming battery power after starting up, but also prevents the whole smart hardware software and hardware system from being stolen when the components of the smart hardware are tampered with and still start up normally, thereby realizing the safe startup of the smart hardware.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent hardware, and in particular to an intelligent hardware secure startup method, system, storage medium and intelligent hardware. Background Art

[0002] In the systems of intelligent hardware such as mobile robots, the power switches are mostly mechanical switches such as buttons and toggle keys or capacitive touch switches. The former will experience wear and tear, accidental touches, etc. as the frequency of use increases. What's worse, when you forget to shut down the machine, the battery will be over-discharged, causing permanent damage to the battery. The latter is prone to accumulating time errors, resulting in inconsistent time for each power on and off. What's worse, when the ambient temperature is too high or too low, it will be unable to start up due to the physical properties of the capacitor. More importantly, when the system of the device is maliciously tampered with, such as illegal replacement of several electronic components in the hardware system, illegal theft of the main control board, etc., or tampering with the software program, the traditional power switch method cannot detect or verify these situations, and will still turn on and off the machine as usual, resulting in the entire hardware and software system being tampered with or the device being pirated or misused. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides a smart hardware secure startup method, system, storage medium and smart hardware to solve the problems in the prior art such as smart devices being mistakenly triggered to start up and components of smart hardware being maliciously tampered with, resulting in the theft of the entire smart hardware's hardware and software systems.

[0004] In a first aspect, an embodiment of the present invention provides a method for securely starting intelligent hardware, wherein the intelligent hardware includes a battery and a switch, and the method includes:

[0005] S1: Detect whether the switch is triggered, if so, switch the intelligent hardware from sleep mode to wake-up mode; S2: In the wake-up mode, monitor whether the triggering duration of the switch is greater than or equal to the first preset triggering duration, if so, execute step S3, otherwise switch the wake-up mode to sleep mode;

[0006] S3: Detect whether the battery voltage is greater than or equal to a preset start-up threshold; if so, execute step S4; otherwise, switch the wake-up mode to the sleep mode;

[0007] S4: Verify the legitimacy and consistency of the intelligent hardware. If the verification is successful, drive the intelligent hardware to enter the working mode; otherwise, switch the intelligent hardware from the awakening mode to the sleeping mode.

[0008] Preferably, the legitimacy and consistency verification of the intelligent hardware includes:

[0009] S41: Acquire the MAC address and device identification of the intelligent hardware, where the device identification includes device information of at least one component in the intelligent hardware;

[0010] S42: Verify the legitimacy of the MAC address. If it is legal, execute step S43; otherwise, the verification fails.

[0011] S43: Verify the consistency between the device identification and the pre-stored preset device identification. If they are consistent, the verification is successful; otherwise, the verification fails.

[0012] Preferably, the method further comprises: if the total time duration for obtaining the MAC address and the device identification exceeds a preset communication time duration, verification fails.

[0013] Preferably, the method further comprises, in the working mode, if the triggering duration of the switch is less than a second preset triggering duration, ignoring the current triggering operation.

[0014] Preferably, the method further comprises, in the working mode, if it is detected that the voltage of the battery is less than a preset start threshold and / or it is detected that the power of the battery is less than a preset power, switching the intelligent hardware to the sleep mode.

[0015] Preferably, the intelligent hardware is a mobile robot, and the method further comprises, before switching the intelligent hardware to the sleep mode:

[0016] S31: locating first position information of the mobile robot to be charged, and obtaining position information of a rechargeable mobile robot in the surrounding environment of the mobile robot to be charged that can charge the mobile robot to be charged;

[0017] S32: Obtaining the surplus power of each rechargeable mobile robot that can charge the mobile robot to be charged, wherein the surplus power refers to balancing the time before the end of the fighting game for each rechargeable mobile robot, estimating its power consumption according to the time before the end of the fighting game, and then subtracting its power consumption from its current power to obtain the surplus power;

[0018] S33: comparing the remaining power of each rechargeable mobile robot, and obtaining the movement distance of each rechargeable mobile robot from the mobile robot to be charged, and determining the candidate charging mobile robot according to the remaining power and the movement distance;

[0019] S34: Obtaining the competitive relationship between the candidate charging mobile robots and the mobile robots to be charged in the game, and selecting the mobile robot to be charged according to the competitive relationship;

[0020] S35: After the charging of the mobile robot is completed, it switches from the sleep mode to the wake-up mode and continues to work.

[0021] In a second aspect, an embodiment of the present invention further provides an intelligent hardware safety startup system, the system comprising a switch and a battery, characterized in that the system further comprises: a control module, a switch detection module, a trigger duration monitoring module and a voltage detection module; wherein the control module is respectively connected to the switch detection module, the trigger duration monitoring module and the voltage detection module;

[0022] The switch detection module is used to detect whether the switch is triggered, and when it is detected that the switch is triggered, the control module is driven to switch the intelligent hardware from the sleep mode to the wake-up mode;

[0023] The trigger duration monitoring module is used to monitor whether the trigger duration is greater than or equal to the preset trigger duration in the wake-up mode, and if so, drive the voltage detection module to work, otherwise drive the control module to switch the intelligent hardware from the wake-up mode to the sleep mode;

[0024] The voltage detection module is used to detect whether the voltage of the battery is greater than or equal to the preset startup threshold in the wake-up mode, and if so, drive the control module to verify the legitimacy and consistency of the intelligent hardware; otherwise, drive the control module to switch the intelligent hardware from the wake-up mode to the sleep mode;

[0025] The control module is also used to drive the intelligent hardware to enter the working mode when the legitimacy and consistency verification is successful;

[0026] A power detection and over-discharge protection module, wherein the power detection and over-discharge protection module is connected to the control module;

[0027] The power detection and over-discharge protection module is used to detect the battery voltage and the battery power in the working mode. When it is detected that the battery voltage is less than the preset start threshold and / or the battery power is less than the preset power, the control module is driven to switch the intelligent hardware to the sleep mode.

[0028] Preferably, the system further comprises:

[0029] A charging management module, the charging management module is connected to the control module;

[0030] The charging management module is used to perform charging management when charging the battery.

[0031] In a third aspect, an embodiment of the present invention further provides an intelligent hardware, characterized in that it comprises: at least one processor, at least one memory, and computer program instructions stored in the memory, and when the computer program instructions are executed by the processor, the method described in the first aspect is implemented.

[0032] In a fourth aspect, an embodiment of the present invention further provides a storage medium having computer program instructions stored thereon, wherein when the computer program instructions are executed by a processor, the method described in the first aspect is implemented.

[0033] In summary, the beneficial effects of the present invention are as follows:

[0034] The embodiments of the present invention provide a method, system, storage medium and intelligent hardware for secure startup of intelligent hardware. When the switch of the intelligent hardware is triggered, the triggering duration is detected to be greater than or equal to the preset triggering duration, and the voltage of the battery is detected to be above the preset startup threshold. When the above two conditions are met, the legitimacy and consistency of the intelligent hardware are verified. Only when the legitimacy and consistency are guaranteed, the intelligent hardware is driven to enter the working mode and work normally. This not only prevents the intelligent hardware from being mistakenly triggered to consume battery power after startup, but also prevents the entire intelligent hardware's hardware and software system from being stolen by booting normally when the components of the intelligent hardware are tampered with, thereby realizing secure startup of the intelligent hardware. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings required for use in the embodiment of the present invention will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work, and these are all within the protection scope of the present invention.

[0036] Figure 1 The figure is a flow chart of a method for securely starting intelligent hardware according to a first embodiment of the present invention.

[0037] Figure 2 This is a schematic diagram of the structure of the intelligent hardware security startup system according to the second embodiment of the present invention.

[0038] Figure 3 This is a schematic diagram of the structure of the intelligent hardware of Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0039] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.

[0040] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0041] Embodiment 1

[0042] The embodiment of the present invention provides a method for securely starting intelligent hardware, which can be applied to intelligent hardware devices such as mobile robots, intelligent somatosensory devices, intelligent speakers, intelligent air purifiers, and intelligent air conditioners.

[0043] See also Figure 1 , the method comprises the following steps:

[0044] S1: Detect whether the switch of the intelligent hardware is triggered. If so, switch the intelligent hardware from the sleep mode to the wake-up mode;

[0045] Specifically, the intelligent hardware includes a battery and a switch. The switch can be a button or a touch switch. When the switch is detected to be triggered, the intelligent hardware is switched from sleep mode to wake-up mode. In sleep mode, its operating current is below 10μA, and the power consumption is very low, which is conducive to battery power saving and long standby time.

[0046] S2: In the wake-up mode, monitor whether the triggering duration of the switch is greater than or equal to the first preset triggering duration, if so, execute step S3, otherwise, switch the wake-up mode to the sleep mode;

[0047] Specifically, in the wake-up mode, the triggering time of the monitoring switch is monitored periodically to see whether it reaches the preset triggering time. In one embodiment, the switch is a push button switch, and the preset triggering time is 2 seconds. If the push button switch is pressed for more than 2 seconds, step S3 is executed to determine whether the battery voltage meets the power-on requirement. If the triggering time is less than 2 seconds, it is considered to be an accidental touch operation, and the triggering operation is ignored to switch the wake-up mode to the sleep mode.

[0048] S3: Detect whether the battery voltage is greater than or equal to a preset start-up threshold; if so, execute step S4; otherwise, switch the wake-up mode to the sleep mode;

[0049] Specifically, detect whether the battery voltage meets the power-on requirements. The smart hardware is started only when the battery voltage is above the preset startup threshold. In one embodiment, the smart hardware includes at least one of the following modules: a main control module, an audio and video codec module, a motor drive module, a lighting control module, a sensor, etc. If the battery voltage is too low, it will not only affect the normal operation of each module in the smart hardware but also cause damage to the battery. Exemplarily, the preset startup threshold is 3.3V. When it is detected that the battery voltage is above 3.3V, step S4 is executed, otherwise, the trigger operation is ignored and the wake-up mode is switched to the sleep mode.

[0050] S4: Verify the legitimacy and consistency of the intelligent hardware. If the verification is successful, drive the intelligent hardware to enter the working mode; otherwise, switch the intelligent hardware from the awakening mode to the sleeping mode.

[0051] Specifically, the legitimacy and consistency of smart hardware refers to verifying whether the MAC address of the smart hardware is legal, and verifying whether the device information of each component in the smart hardware is consistent with the preset device identification pre-set in the storage module. Preferably, the preset device identification is the information set in the storage module when the smart hardware is turned on for the first time. If the legitimacy and consistency verification is successful, it is considered that the components of the smart hardware have not been tampered with, and the smart hardware can be started normally. If the legitimacy and / or consistency verification fails, it is considered that the components of the smart hardware have been illegally tampered with, and the smart hardware will not be started.

[0052] In one embodiment, step S4 comprises the following steps:

[0053] S41: Acquire the MAC address and device identification of the intelligent hardware, where the device identification includes device information of at least one component in the intelligent hardware;

[0054] Specifically, the preset device identifier is generated by intelligent hardware reading device information (such as manufacturer, model, serial number, program version, etc.) of at least one component and encrypting it using the MD5 (Message-Digest algorithm 5) digest algorithm. The MD5 digest algorithm itself belongs to the prior art and will not be elaborated here. Obviously, other algorithms can also be used for encryption to ensure the security of information.

[0055] In another embodiment, device information of multiple components in the intelligent hardware is read and encrypted using an MD5 digest algorithm to generate a preset device identifier.

[0056] In another embodiment, the device information of all components in the intelligent hardware is read and encrypted using the MD5 digest algorithm to generate a preset device identification.

[0057] S42: Verify the legitimacy of the MAC address. If it is legal, execute step S43; otherwise, the verification fails.

[0058] In one embodiment, the obtained MAC address is compared with the MAC address stored in the storage module. If the two are the same, it indicates that the obtained MAC address is legal, and then step S43 is executed.

[0059] S43: Verify the consistency between the device identification and the pre-stored preset device identification. If they are consistent, the verification is successful; otherwise, the verification fails.

[0060] Specifically, the obtained device identification is verified for consistency with the preset device identification stored in the storage module of the intelligent hardware. Preferably, the preset device identification is the device information of all components read by the intelligent hardware when it is powered on for the first time, which is encrypted by the MD5 digest algorithm and stored in the storage module. If the two are consistent, it is considered that the components in the intelligent hardware have not been tampered with and the verification is successful; otherwise, the verification fails.

[0061] In another embodiment, if the total time for obtaining the MAC address and the device identification exceeds the preset communication time, it is determined as a communication timeout, the verification fails, and the intelligent hardware is switched to sleep mode.

[0062] In another embodiment, when the intelligent hardware is in working mode, if it is detected that the switch is triggered, but the triggering duration is less than the preset triggering duration, the triggering is considered to be a false triggering, and the intelligent hardware works as usual. If the triggering duration is longer than the preset triggering duration, the triggering is determined to be a shutdown operation, and the intelligent hardware is switched to sleep mode.

[0063] In another embodiment, when the smart hardware is in working mode, if it is detected that the battery voltage is less than a preset startup threshold and / or the battery power is less than a preset power, the smart hardware is switched to sleep mode to avoid continued power consumption and battery damage when the battery voltage is very low or the battery power is very low. In addition, in order to prevent the smart hardware from being directly switched to sleep mode due to the battery voltage being too low, causing important components of the smart hardware to be damaged or affecting the user's experience of controlling the smart hardware, the present invention adopts the following method to prevent the smart hardware from directly switching to sleep mode when the battery voltage is too low, and appropriately extend the battery life. The specific method is as follows:

[0064] When it is detected that the battery voltage is equal to the preset voltage threshold or the power is equal to the preset power threshold, the current working type of the intelligent hardware is determined, and the intelligent hardware is controlled to power off and / or close the application program for the components that are not related to the working type (such as the fighting robot is in motion) and are in a power-consuming state (such as the fighting robot does not need to use weapons at this time, so the weapons are powered off); the user is informed of the components that are about to be powered off and / or the applications that are about to be closed; if the user defaults to no opinion within a predetermined time (such as within 5s), the components that are not related to the working type are powered off and / or the applications are closed; then the working time of the intelligent hardware under the above working type is calculated, and the user is reminded of the remaining working time of the intelligent hardware, and the intelligent hardware saves the data generated under the working type. Wherein, when it is less than the preset voltage threshold or the preset power threshold, the intelligent hardware will be in a low power prompt state. When the intelligent hardware saves the data of the current working type and the remaining working time is reached, the user is prompted to stop the operation, and the intelligent hardware is controlled to switch to sleep mode. In addition, to ensure that intelligent hardware such as mobile robots with motors (such as fighting robots) are not too urgent when the power is cut off, the emergency shutdown of the motor may affect the movement of the mobile robot and even affect the life of the mobile robot. In order to prevent the situation where the control signal cannot directly shut down the DC motor due to low power, an isolation discharge circuit such as a diode is set between the battery power supply and the control motor switch. This prevents the DC motor from generating reverse electromotive force high voltage when starting, stopping and reversing, which affects the operation of the intelligent hardware, resulting in the motor being unable to ensure the user's work under the current work type under low power, resulting in a poor user experience.

[0065] In another embodiment, when the intelligent hardware is in working mode, if it is detected that the battery voltage is less than the preset startup threshold and / or the battery power is less than the preset power, before switching to the sleep mode, the intelligent hardware (the embodiment of the present invention takes multiple mobile robots (such as the fighting robot product of the applicant) in fighting competition as an example) can take the following method to restore the battery power, and the specific method is as follows:

[0066] S31: locating the first position information of the fighting robot to be charged, and obtaining the position information of the rechargeable fighting robot in the surrounding environment of the fighting robot to be charged that can charge the fighting robot to be charged;

[0067] S32: Obtain the surplus power of each rechargeable fighting robot that can charge the fighting robot to be charged. The surplus power refers to balancing the distance between each rechargeable fighting robot and the end time of the fighting game, estimating its power consumption according to the distance to the end time of the fighting game, and then subtracting its power consumption from the current power to obtain the surplus power. Of course, in order to ensure that the obtained surplus power is accurate, the present invention also corrects the estimated power consumption. At this time, considering the need to detect the ambient temperature of the environment where the rechargeable fighting robot is located and the battery heating temperature, when the ambient temperature is lower than the predetermined temperature and the battery heating temperature is greater than the preset heating value, then multiply the estimated power consumption by a coefficient а greater than 1. Here, based on experience, the value range of а is: 1.1≤а≤1.5, generally when the temperature is below 2°C, the value is 1.5. When the ambient temperature is greater than the predetermined temperature and the battery heating temperature is lower than the preset heating value, the estimated power consumption is multiplied by a coefficient β, and the value range of β is 1.0<β≤1.1. The revised estimated power consumption can ensure that the rechargeable fighting robot has enough time to participate in the fighting game. The revised power surplus can be obtained by subtracting the revised estimated power consumption from the current power.

[0068] S33: Compare the surplus power of each rechargeable fighting robot, and simultaneously obtain the movement distance of each rechargeable fighting robot from the fighting robot to be charged, and determine the alternative charging fighting robot based on the surplus power and the movement distance. Specifically, sort the rechargeable fighting robots by the surplus power, and then sort the rechargeable fighting robots by the movement distance, and calculate the power consumption that can be generated by each rechargeable fighting robot in the movement distance. Obviously, the farther the rechargeable fighting robot is from the fighting robot to be charged, the greater the power consumption generated. Therefore, in order to reduce unnecessary power consumption, the real rechargeable power is obtained by subtracting the power consumption generated by the movement distance from the surplus power, and after sorting according to the real rechargeable power, select the rechargeable fighting robot whose real rechargeable power is greater than or equal to the required charging power of the fighting robot to be charged as the alternative charging fighting robot;

[0069] S34: Obtain the competitive relationship between the alternative charging fighting robot and the fighting robot to be charged in the game, and select the fighting robot to be charged according to the competitive relationship. In the embodiment of the present invention, the alternative charging fighting robot of the same team as the fighting robot to be charged is preferentially selected; when there is an alternative charging fighting robot of the same team, the alternative charging fighting robot of the same team is controlled to move to the position of the fighting robot to be charged to charge the fighting robot to be charged; when there is no alternative charging fighting robot in the rechargeable fighting robot of the same team, an alternative charging fighting robot is selected from the opposing team to charge the fighting robot to be charged, so as to ensure the smooth progress of the fighting game. Of course, when an alternative charging fighting robot is selected from the opposing team to charge the fighting robot to be charged, the user of the opposing team will decide from the alternative charging fighting robot according to the combat effectiveness of the alternative charging fighting robot, and the alternative charging robot with weaker combat effectiveness is preferably used to charge the fighting robot to be charged. The above design can ensure the automatic and smooth progress of the fighting game without affecting the user experience, such as the termination of the game due to power problems.

[0070] S35: After the charging of the fighting robot is completed, it switches from the sleep mode to the wake-up mode and continues to work. However, in order to enhance the education of the fighting robot for users, especially children, if the alternative charging fighting robot of the other team charges it, the fighting robot to be charged cannot attack the alternative charging fighting robot of the other team within a predetermined time after the charging is completed and restored. This predetermined time can be the remaining time of the entire fighting game, or it can be a reasonable and fair time. Therefore, the fighting robot in the embodiment of the present invention can play the role of educating users while having fun in the fighting game, and ensure the smooth progress of the game.

[0071] The embodiment of the present invention provides a method for safe startup of intelligent hardware. The method detects whether the triggering duration of the switch of the intelligent hardware is greater than or equal to the preset triggering duration when it is triggered, and detects whether the voltage of the battery is above the preset startup threshold. When the above two conditions are met, the legitimacy and consistency of the intelligent hardware are verified. Only when the legitimacy and consistency are guaranteed, the intelligent hardware is driven to enter the working mode and work normally. This not only prevents the intelligent hardware from being accidentally triggered and consuming battery power after starting up, but also prevents the entire intelligent hardware software and hardware system from being stolen when the components of the intelligent hardware are tampered with and still start up normally, thereby realizing safe startup of the intelligent hardware.

[0072] Embodiment 2

[0073] The embodiment of the present invention provides a smart hardware security startup system, which is applicable to smart hardware devices such as mobile robots, smart body sensing devices, smart speakers, smart air purifiers, and smart air conditioners.

[0074] like Figure 2 As shown, the intelligent hardware safety boot system 10 includes: a control module 11, a switch detection module 12, a trigger duration monitoring module 13 and a voltage detection module 14; wherein the control module 11 is connected to the switch detection module 12, the trigger duration monitoring module 13 and the battery voltage detection module 14 respectively; the connection can be connected by bus methods such as USART, IIC or SPI, or by other wired or wireless methods, etc., which are not limited here. The connection method can be either direct connection or indirect connection.

[0075] Specifically, the control module 11 is used to drive the switch detection module 12, the trigger duration monitoring module 13 and the voltage detection module 14 to work, and is also used to drive the intelligent hardware to switch between the sleep mode, the wake-up mode and the working mode.

[0076] The switch detection module 12 is used to detect whether the switch is triggered. When it is detected that the switch is triggered, the control module 11 is driven to switch the intelligent hardware from the sleep mode to the wake-up mode;

[0077] The trigger duration monitoring module 13 is used to monitor whether the trigger duration is greater than or equal to the preset trigger duration in the wake-up mode, and if so, drive the voltage detection module 14 to work, otherwise drive the control module 11 to switch the intelligent hardware from the wake-up mode to the sleep mode;

[0078] The voltage detection module 14 is used to detect whether the battery voltage is greater than or equal to the preset startup threshold in the wake-up mode. If so, it drives the control module 11 to verify the legitimacy and consistency of the smart hardware; otherwise, it drives the control module 11 to switch the smart hardware from the wake-up mode to the sleep mode.

[0079] In one embodiment, when the switch detection module 12 detects that the switch is triggered, it drives the control module 11 to switch the intelligent hardware from the sleep mode to the wake-up mode; in the wake-up mode, the trigger duration monitoring module 13 monitors the trigger duration of the switch. If the preset trigger duration is not reached (exemplarily, the preset trigger duration is 2 seconds), the switch trigger operation is determined to be a false touch operation; if the preset trigger duration is reached or longer, the voltage detection module 14 detects whether the battery voltage is above a preset start threshold (exemplarily, the preset start threshold is 3.3V). If the battery voltage is less than the preset start threshold, it is determined that the battery is in a low voltage state and the control module 11 is driven to switch the wake-up mode to the sleep mode; if the battery voltage is above the preset start threshold, the control module 11 is driven to verify the legitimacy and consistency of the intelligent device.

[0080] In addition, when the switch is triggered when the smart hardware is in normal operation, the trigger duration monitoring module 13 monitors whether the trigger duration reaches a preset trigger duration (for example, the trigger duration is set to 2 seconds) or longer. If it is less than the preset trigger duration, the switch trigger operation is determined to be an accidental touch operation; if it reaches longer than the preset trigger duration, it is determined to be a shutdown operation, and the drive control module 11 switches the smart hardware to sleep mode.

[0081] In one embodiment, the smart device safety startup system also includes a power detection and over-discharge protection module 15, which is used to detect the battery voltage and power in real time. When it is detected that the battery voltage is less than the preset startup threshold or the battery power is less than the preset power, over-discharge protection is performed. In one embodiment, the power detection and over-discharge protection module 14 collects the battery voltage in real time, and obtains the remaining battery power corresponding to the current voltage according to the lithium battery discharge curve. When it is detected that the battery voltage is less than the preset startup threshold (exemplarily, the preset startup threshold is 3.3V) for 3 consecutive seconds, or the remaining battery power is less than the preset power (exemplarily, the preset power is 3% of the total power), over-discharge protection is performed, that is, the drive control module 11 switches the smart hardware to sleep mode to avoid the problem of battery damage caused by discharge when the battery voltage or power is too low.

[0082] In another embodiment, the smart hardware safety startup system also includes a charging management module 16, which is used to manage charging when the battery is charged. In this embodiment, the battery is charged using a micro USB interface. In another embodiment, a mini USB can also be used for charging. When the signal of the micro USB interface connecting to the power line is triggered, if the smart hardware is in sleep mode, it switches to wake-up mode, and then charges the battery of the smart hardware, and controls the charging current to avoid damage to the battery due to excessive current; when the battery is fully charged, the battery is stopped from being charged. The charging management module 16 implements charging management for the battery, and stops charging after the battery is fully charged, to avoid damage to the battery during the charging process and overcharging of the battery.

[0083] An embodiment of the present invention provides a smart hardware security startup system provided by the embodiment of the present invention. When the switch of the smart hardware is triggered, it detects whether the triggering duration is greater than or equal to the preset triggering duration, and detects whether the voltage of the battery is above the preset startup threshold. When the above two conditions are met, the legitimacy and consistency of the smart hardware are verified. Only when the legitimacy and consistency are guaranteed, the smart hardware is driven to enter the working mode and work normally. This not only prevents the smart hardware from being mistakenly triggered to consume battery power after startup, but also prevents the smart hardware from being tampered with and still starting up normally, which may cause the software and hardware systems of the entire smart hardware to be stolen, thereby achieving secure startup of the smart hardware.

[0084] Embodiment 3

[0085] See also Figure 3 An embodiment of the present invention provides an intelligent hardware, which includes: at least one processor 301, at least one memory 302, and computer program instructions stored in the storage area 302. When the computer program instructions are executed by the processor 301, the method described in this embodiment is implemented.

[0086] Specifically, the processor 301 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.

[0087] The memory 302 may include a large capacity memory for data or instructions. For example, but not limitation, the memory 302 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 302 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 302 may be inside or outside the data processing device. In a specific embodiment, the memory 302 is a non-volatile solid-state memory. In a specific embodiment, the memory 302 includes a read-only memory (ROM). In appropriate cases, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.

[0088] The processor 301 implements the method in the above embodiment by reading and executing the computer program instructions stored in the memory 302 .

[0089] In one embodiment, the intelligent hardware may further include a communication interface 303 and a bus 310. The processor 301, the memory 302, and the communication interface 303 are connected via the bus 310 and communicate with each other.

[0090] The communication interface 303 is mainly used to implement the communication between the modules, devices, units and / or equipment in the embodiment of the present invention.

[0091] Bus 310 includes hardware, software or both, and the components of intelligent hardware are coupled to each other. For example, but not limitation, bus 310 may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 310 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.

[0092] Embodiment 4

[0093] In addition, in combination with the intelligent hardware security boot method in the above embodiment, the embodiment of the present invention can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor 301, any one of the intelligent hardware security boot methods in the above embodiment is implemented.

[0094] To sum up, the embodiments of the present invention provide a method, system, storage medium and intelligent hardware for safe startup of intelligent hardware. When the switch of the intelligent hardware is triggered, the triggering duration is detected to be greater than or equal to the preset triggering duration, and the voltage of the battery is detected to be above the preset startup threshold. When the above two conditions are met, the legitimacy and consistency of the intelligent hardware are verified. Only when the legitimacy and consistency are guaranteed, the intelligent hardware is driven to enter the working mode and work normally. This not only prevents the intelligent hardware from being accidentally triggered and consuming battery power after startup, but also prevents the entire intelligent hardware's hardware and software systems from being stolen by still starting up normally when the components of the intelligent hardware are tampered with, thereby achieving safe startup of the intelligent hardware.

[0095] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0096] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0097] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.

[0098] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.

Claims

1. A method for securely starting intelligent hardware, the intelligent hardware comprising a battery and a switch, characterized in that: The method comprises: S1: Detect whether the switch is triggered, if so, switch the smart hardware from sleep mode to wake-up mode; S2: In the wake-up mode, monitor whether the triggering duration of the switch is greater than or equal to the first preset triggering duration, if so, execute step S3, otherwise, switch the wake-up mode to the sleep mode; S3: Detect whether the battery voltage is greater than or equal to a preset start-up threshold; if so, execute step S4; otherwise, switch the wake-up mode to the sleep mode; S4: Verify the legitimacy and consistency of the intelligent hardware. If the verification is successful, drive the intelligent hardware to enter the working mode; otherwise, switch the intelligent hardware from the awakening mode to the sleeping mode; Wherein the intelligent hardware is a mobile robot, when the mobile robot detects that the battery voltage is less than a preset startup power threshold and / or the battery power is less than a preset power in the fighting competition working mode, it also includes: S31: locating first position information of the mobile robot to be charged, and obtaining position information of a rechargeable mobile robot in the surrounding environment of the mobile robot to be charged that can charge the mobile robot to be charged; S32: obtaining the surplus power of each rechargeable mobile robot that can charge the mobile robot to be charged, the surplus power refers to estimating the power consumption of each rechargeable mobile robot according to the time before the end of the fighting game on the basis of balancing the time before the end of the fighting game, and correcting the estimated power consumption, including: detecting the ambient temperature and battery heating temperature of the environment where the rechargeable fighting robot is located, when the ambient temperature is lower than a predetermined temperature and the battery heating temperature is greater than a preset heating value, multiplying the estimated power consumption by a coefficient greater than 1, and then subtracting the corrected power consumption from the current power to obtain the surplus power; S33: comparing the surplus power of each rechargeable mobile robot, and obtaining the movement distance of each rechargeable mobile robot from the mobile robot to be charged, and determining the candidate rechargeable mobile robot according to the surplus power and the movement distance, including: sorting the rechargeable fighting robots according to the surplus power, and then sorting the rechargeable fighting robots according to the movement distance, calculating the power consumption generated by each rechargeable fighting robot in the movement distance, and subtracting the power consumption generated by the movement distance from the surplus power to obtain the real rechargeable power, and after sorting according to the real rechargeable power, selecting the rechargeable fighting robot whose real rechargeable power is greater than or equal to the required charging power of the fighting robot to be charged as the candidate rechargeable fighting robot; S34: obtaining the competitive relationship between the candidate charging mobile robot and the mobile robot to be charged in the game, and selecting the mobile robot to be charged according to the competitive relationship, including: when there is a candidate charging fighting robot of the same team, controlling the candidate charging fighting robot of the same team to move to the position of the fighting robot to be charged to charge the fighting robot to be charged; when there is no candidate charging fighting robot among the rechargeable fighting robots of the same team, selecting a candidate charging fighting robot from the opposing team to charge the fighting robot to be charged; S35: After the charging of the mobile robot is completed, the mobile robot switches from the sleep mode to the wake-up mode and continues to work.

2. The intelligent hardware secure startup method according to claim 1, characterized in that: The legality and consistency verification of intelligent hardware includes: S41: Acquire the MAC address and device identification of the intelligent hardware, where the device identification includes device information of at least one component in the intelligent hardware; S42: Verify the legitimacy of the MAC address, if it is legal, execute step S43, otherwise the verification fails; S43: Verify the consistency between the device identification and the pre-stored preset device identification. If they are consistent, the verification is successful; otherwise, the verification fails.

3. The intelligent hardware secure startup method according to claim 2, characterized in that: The method also includes: if the total time duration for obtaining the MAC address and the device identification exceeds a preset communication time duration, verification fails.

4. The intelligent hardware secure startup method according to claim 2, characterized in that: The method further includes, in the working mode, if the triggering duration of the switch is less than a second preset triggering duration, ignoring the current triggering operation.

5. The intelligent hardware secure startup method according to claim 3, characterized in that: The method further includes, in the working mode, if it is detected that the voltage of the battery is less than a preset start threshold and / or it is detected that the power of the battery is less than a preset power, switching the intelligent hardware to the sleep mode.

6. An intelligent hardware safety startup system, the system comprising a switch and a battery, characterized in that: The system further comprises: a control module, a switch detection module, a trigger duration monitoring module and a voltage detection module; wherein the control module is connected to the switch detection module, the trigger duration monitoring module and the voltage detection module respectively; The switch detection module is used to detect whether the switch is triggered, and when it is detected that the switch is triggered, the control module is driven to switch the intelligent hardware from the sleep mode to the wake-up mode; The trigger duration monitoring module is used to monitor whether the trigger duration is greater than or equal to the preset trigger duration in the wake-up mode, and if so, drive the voltage detection module to work, otherwise drive the control module to switch the intelligent hardware from the wake-up mode to the sleep mode; The voltage detection module is used to detect whether the voltage of the battery is greater than or equal to the preset startup threshold in the wake-up mode, and if so, drive the control module to verify the legitimacy and consistency of the intelligent hardware; otherwise, drive the control module to switch the intelligent hardware from the wake-up mode to the sleep mode; The control module is also used to drive the intelligent hardware to enter the working mode when the legitimacy and consistency verification is successful; wherein the intelligent hardware is a mobile robot, and when the mobile robot detects that the battery voltage is less than the preset starting power threshold and / or the battery power is less than the preset power in the fighting competition working mode, it also includes: locating the first position information of the mobile robot to be charged, and obtaining the position information of the rechargeable mobile robot in the surrounding environment of the mobile robot to be charged that can charge the mobile robot to be charged; obtaining the surplus power of each rechargeable mobile robot that can charge the mobile robot to be charged, the surplus power refers to balancing the distance from each rechargeable mobile robot to the end of the fighting game, estimating its power consumption according to the distance from the end of the fighting game and correcting the estimated power consumption, including: detecting the ambient temperature and battery heating temperature of the environment where the rechargeable fighting robot is located, when the ambient temperature is lower than the predetermined temperature and the battery heating temperature is greater than the preset heating value, multiplying the estimated power consumption by a coefficient greater than 1, and then subtracting the corrected power consumption from the current power to obtain the surplus power; comparing the The method comprises the following steps: obtaining a surplus amount of electricity of each rechargeable mobile robot, obtaining a movement distance between each rechargeable mobile robot and the mobile robot to be charged, and determining a candidate rechargeable mobile robot according to the surplus amount of electricity and the movement distance, including: sorting the rechargeable fighting robots according to the surplus amount of electricity, and then sorting the rechargeable fighting robots according to the movement distance, calculating the power consumption generated by each rechargeable fighting robot in the movement distance, and obtaining a real rechargeable amount according to the surplus amount of electricity minus the power consumption generated by the movement distance, and after sorting according to the real rechargeable amount, selecting the rechargeable fighting robot whose real rechargeable amount is greater than or equal to the rechargeable fighting robot to be charged. A rechargeable fighting robot that requires a certain amount of charging is used as an alternative charging fighting robot; the competitive relationship between the alternative charging mobile robot and the mobile robot to be charged in the game is obtained, and the mobile robot to be charged is selected according to the competitive relationship, including: when there is an alternative charging fighting robot of the same team, the alternative charging fighting robot of the same team is controlled to move to the position of the fighting robot to be charged to charge the fighting robot to be charged; when there is no alternative charging fighting robot among the rechargeable fighting robots of the same team, an alternative charging fighting robot is selected from the opposing team to charge the fighting robot to be charged; after the mobile robot to be charged is charged, it switches from sleep mode to wake-up mode and continues to work.

7. The intelligent hardware secure boot system according to claim 6, characterized in that: The system further comprises: A power detection and over-discharge protection module, wherein the power detection and over-discharge protection module is connected to the control module; The power detection and over-discharge protection module is used to detect the battery voltage and the battery power in the working mode. When it is detected that the battery voltage is less than the preset start threshold and / or the battery power is less than the preset power, the control module is driven to switch the intelligent hardware to the sleep mode; A charging management module, the charging management module is connected to the control module; The charging management module is used to manage charging of the battery.

8. An intelligent hardware, characterized in that: include: At least one processor, at least one memory and computer program instructions stored in the memory, when the computer program instructions are executed by the processor, implement the method according to any one of claims 1 to 5.

9. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Method and device for preventing starting abnormity and mobile terminal

    CN104270530A

  • Safe starting method of unmanned aerial vehicle

    CN108803654A

  • Patrol inspection method and patrol inspection device of power transmission line patrol inspection robot

    CN109142971A

  • A method and a device for controlling computer startup and an electronic device

    CN109214187A

  • Charging control method and system of conveying robots

    CN109361251A