Power consumption processing method, device and storage medium for detecting device

By obtaining the current status of the detection device and interacting with the cloud server, it generates a QR code and enters low-power mode, which solves the problems of high power consumption and short usage time of the detection device, achieving lower power consumption and longer use. duration.

CN116015989BActive Publication Date: 2024-10-22HAINAN NEW OXYGEN MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211623729.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-16
Publication Date
2024-10-22
Estimated Expiration
2042-12-16

AI Technical Summary

Technical Problem

Existing testing equipment in the medical and aesthetic industry has problems such as high power consumption and short usage time.

Method used

By obtaining the current status of the detection device bound to the target device, it interacts with the cloud server to obtain the inspection information for detecting its own authenticity, and generates a QR code for the user to scan. According to the current status meeting the preset conditions, the detection device is controlled to enter a low-level state. Power consumption mode includes interrupting communication connections, regularly waking up the chip to access the cloud server, and refreshing the QR code according to a preset cycle.

Benefits of technology

It reduces the power consumption of the detection equipment and increases the use time. By obtaining multiple QR code URL information at one time and using low-power chips, ink screen displays and PMOS switch circuits, it achieves lower resource consumption and longer testing time. Equipment life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116015989B_ABST
    Figure CN116015989B_ABST
Patent Text Reader

Abstract

The present application relates to a method for processing power consumption of a detection device, a detection device and a storage medium. The method includes: obtaining the current state of the detection device bound to the target device, the detection device obtains verification information for detecting its own authenticity through interaction with a cloud server, and generates a QR code for the user to scan; according to the current state meeting the preset conditions, the detection device is controlled to enter a low power consumption mode from the operating mode, wherein the low power consumption mode includes performing preset low power consumption processing on the detection device. The solution provided by the present application can reduce the power consumption of the detection device and increase the usage time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet of Things technology, and in particular to a method, device and storage medium for detecting power consumption of a device. Background Art

[0002] At present, the medical beauty industry is developing rapidly, and a variety of medical beauty products have emerged to meet users' medical beauty needs.

[0003] In the related art, some detection devices have appeared, which can be used for detection in different scenarios or purposes. However, the detection devices in the related art have the problems of high power consumption and short service life. Summary of the invention

[0004] In order to solve or partially solve the problems existing in the related art, the present application provides a detection device power consumption processing method, device and storage medium, which can reduce the power consumption of the detection device and increase the usage time.

[0005] The first aspect of the present application provides a method for processing power consumption of a detection device, comprising:

[0006] Obtain the current status of the detection device bound to the target device. The detection device obtains verification information for detecting its own authenticity through interaction with the cloud server and generates a QR code for the user to scan;

[0007] According to the current state meeting a preset condition, the detection device is controlled to enter a low power consumption mode from a running mode, wherein the low power consumption mode includes performing a preset low power consumption processing on the detection device.

[0008] In one embodiment, the preset low power consumption processing of the detection device includes: performing at least one of the following preset low power consumption processing on the detection device: controlling the detection device to interrupt the communication connection with the cloud server, controlling the chip in the mainboard of the detection device to be awakened at a time to access the cloud server, and controlling the detection device to refresh and display the QR code according to a preset period.

[0009] In one embodiment, controlling the detection device to enter a low power consumption mode from a running mode according to the current state meeting a preset condition includes:

[0010] According to the current state that the detection device has completed initialization and has obtained inspection information from the cloud server and generated a QR code, the detection device is controlled to enter a low power consumption mode from the running mode.

[0011] In one embodiment, the detection device obtains verification information for detecting its own authenticity through interaction with a cloud server, including:

[0012] The detection device interacts with the cloud server and simultaneously obtains at least two QR code URL information for detecting its own authenticity so as to refresh and display the QR code according to a preset period.

[0013] In one embodiment, during the interaction between the detection device and the cloud server, preset information is selected for interactive transmission.

[0014] In one embodiment, the preset information sent by the detection device to the cloud server includes: a device ID of the detection device and installation information that the detection device has been installed on the target device;

[0015] The preset information received by the detection device from the cloud server includes: preset website information and detection device authenticity identification information, and the detection device authenticity identification information includes device IDs of the detection device and the target device, and a signature sign field for describing the authenticity of the detection device.

[0016] The second aspect of the present application provides a detection device:

[0017] The detection device comprises a box body, a box cover, a main board and a display; an installation space is formed between the box cover and the box body, the main board is located in the installation space, the main board is electrically connected to the display, and the display is located on the surface of the box cover;

[0018] The detection device is bound to the target device, and the detection device obtains verification information for detecting its own authenticity through interaction with the cloud server, and generates a QR code for the user to scan and display on the display;

[0019] The mainboard is used to obtain the current state of the detection device bound to the target device, and control the detection device to enter a low power consumption mode from an operating mode according to the current state of the detection device meeting a preset condition, wherein the low power consumption mode includes performing preset low power consumption processing on the detection device.

[0020] In one embodiment, the mainboard performs preset low power consumption processing on the detection device, including:

[0021] The mainboard performs at least one of the following preset low-power processing on the detection device: controlling the detection device to interrupt the communication connection with the cloud server, controlling the chip in the mainboard of the detection device to be awakened at a time to access the cloud server, and controlling the detection device to refresh and display the QR code according to a preset period.

[0022] In one embodiment, the display is an ink screen display, and / or,

[0023] The chip in the mainboard is a low-power chip.

[0024] In one embodiment, the chip in the mainboard is powered by a battery cell, and / or,

[0025] A PMOS switch circuit is provided in the circuit of the main board.

[0026] In one embodiment, the display uses a partial refresh method when refreshing the display of the two-dimensional code.

[0027] A third aspect of the present application provides an electronic device, including:

[0028] Processor; and

[0029] The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method as described above.

[0030] A fourth aspect of the present application provides a computer-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described above.

[0031] The technical solution provided by this application may have the following beneficial effects:

[0032] The technical solution of the present application is that the detection device can obtain the current state of the detection device bound to the target device, obtain the verification information of its own authenticity through interaction with the cloud server, and generate a QR code for the user to scan, so that the authenticity of the detection device itself can be easily detected, and the authenticity of the bound target device can also be known based on the authenticity detection of the detection device itself; in addition, based on the current state of the detection device meeting the preset conditions, the detection device is controlled to enter the low power consumption mode from the running mode, wherein the low power consumption mode includes performing preset low power consumption processing on the detection device. By controlling the detection device to enter the low power consumption mode from the running mode after the preset conditions are met and performing preset low power consumption processing on the detection device, resource consumption can be reduced, thereby reducing the power consumption of the detection device and increasing the use time of the detection device.

[0033] Furthermore, when the detection device interacts with the cloud server, it can simultaneously obtain at least two QR code URL information for detecting its own authenticity so as to refresh and display the QR code according to a preset period. By obtaining multiple QR code URL information at one time and storing them locally, it is not necessary to maintain interaction with the cloud server, and the QR code can be refreshed and displayed directly from the local according to the multiple QR code URL information, and it can be refreshed according to a preset period without continuous refreshing, which further reduces the power consumption of the detection device.

[0034] Furthermore, a partial refresh mode can be adopted when refreshing the display of the two-dimensional code, the display can be an ink screen display, the chip in the mainboard can be a low-power chip, the chip in the mainboard can be powered by a battery, and a PMOS switch circuit can be set in the circuit of the mainboard. By using a variety of methods in combination, the power consumption of the detection equipment can be further reduced and the use time of the detection equipment can be increased.

[0035] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The above and other objects, features and advantages of the present application will become more apparent by describing in more detail exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.

[0037] Figure 1 It is a flow chart of a method for processing power consumption of a detection device shown in an embodiment of the present application;

[0038] Figure 2 is a flow chart of a method for processing power consumption of a detection device shown in another embodiment of the present application;

[0039] Figure 3 is a schematic diagram of the appearance of a detection device shown in an embodiment of the present application;

[0040] Figure 4 is a schematic diagram of the back side of the detection device shown in the embodiment of the present application;

[0041] Figure 5 is an application schematic diagram of a detection device shown in an embodiment of the present application;

[0042] Figure 6 is a schematic diagram of the structure of a detection device shown in an embodiment of the present application;

[0043] Figure 7 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION

[0044] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.

[0045] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0046] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0047] In the related art, there are some detection devices that can be used for detection in different scenarios or purposes. However, the detection devices in the related art have the problems of high power consumption and short service life. In order to solve the above problems, the present application provides a detection device power consumption processing method, which can reduce the power consumption of the detection device and increase the service life.

[0048] The technical solution of the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0049] Figure 1 It is a flow chart of a method for processing power consumption of a detection device shown in an embodiment of the present application.

[0050] See also Figure 1 , the application method may include:

[0051] S101. Obtain the current status of the detection device bound to the target device. The detection device obtains verification information for detecting its own authenticity through interaction with the cloud server, and generates a QR code for the user to scan.

[0052] Among them, the detection device obtains verification information for detecting its own authenticity through interaction with the cloud server, which may include: the detection device obtains at least two QR code URL information for detecting its own authenticity through interaction with the cloud server, so as to refresh and display the QR code according to a preset period.

[0053] The display is an ink screen display, and / or the chip in the mainboard is a low-power chip. The ink screen display uses static ink, which does not consume power when displaying, but consumes power when refreshing.

[0054] Among them, the chip in the mainboard is powered by a battery cell, and / or a PMOS switch circuit is set in the circuit of the mainboard. The chip is directly powered by the battery cell, which can save the intermediate voltage regulation or other voltage processing operations compared to ordinary power consumption products, thereby reducing the power consumption of this part. After setting the PMOS switch circuit, there is no leakage current consumption in the components of the detection equipment and its peripheral circuits, which can solve the static power consumption of each component in the standby mode from the root, and only the power consumption of the PMOS switch circuit is increased accordingly, but the static power consumption of the PMOS switch circuit itself is much lower than the static power consumption when the components and the periphery of the components are not turned off.

[0055] S102 . According to whether the current state meets a preset condition, control the detection device to enter a low power consumption mode from the running mode, wherein the low power consumption mode includes performing a preset low power consumption processing on the detection device.

[0056] Among them, the detection equipment is subjected to preset low power consumption processing, including: performing at least one of the following preset low power consumption processing on the detection equipment: controlling the detection equipment to interrupt the communication connection with the cloud server, controlling the chip in the mainboard of the detection equipment to be woken up at a time to access the cloud server, and controlling the detection equipment to refresh the displayed QR code according to a preset period.

[0057] The working mode of the detection device may include an operation mode and a low power consumption mode. In the operation mode, low frequency use is controlled. In this operation mode, all components of the detection device operate normally. When the detection device is connected to the cloud server, it is in the operation mode; when the detection device is not in contact with the cloud server and only needs to be refreshed, it is in the low power consumption mode.

[0058] Among them, according to the current state that the detection device has completed initialization and has obtained inspection information from the cloud server and generated a QR code, the detection device can be controlled to enter the low power consumption mode from the running mode.

[0059] Since the cloud server can transmit multiple QR code URL information to the detection device for storage at one time, the detection device can reduce the number of times it obtains QR code URL information from the cloud server, and directly use the locally stored QR code URL information to refresh the displayed QR code, and can refresh according to a preset period, which can also reduce power consumption.

[0060] Among them, a local refresh method can be used when refreshing the displayed QR code. Compared with the global refresh method of the related art, the smaller the proportion of the screen image occupied by the local refresh, the shorter the power-on time, and the correspondingly lower the power consumption.

[0061] It can be seen from this embodiment that the detection device can obtain the current state of the detection device bound to the target device, obtain the verification information of its own authenticity through interaction with the cloud server, and generate a QR code for the user to scan, so that the authenticity of the detection device itself can be easily detected. According to the authenticity detection of the detection device itself, the authenticity of the bound target device can also be known at the same time; in addition, according to the current state of the detection device meeting the preset conditions, the detection device is controlled to enter the low power consumption mode from the running mode, wherein the low power consumption mode includes the preset low power consumption processing of the detection device. By controlling the detection device to enter the low power consumption mode from the running mode after the preset conditions are met and performing the preset low power consumption processing on the detection device, resource consumption can be reduced, thereby reducing the power consumption of the detection device and increasing the use time of the detection device.

[0062] Figure 2 It is a flow chart of a method for processing power consumption of a detection device shown in another embodiment of the present application.

[0063] Before introducing the power consumption processing method of the detection device of the present application, the detection device provided by the embodiment of the present application is first introduced. The power consumption processing method of the present application can be applied to the detection device.

[0064] The detection device of the present application includes a box body, a box cover, a main board and a display; an installation space is formed between the box cover and the box body, the main board is located in the installation space, the main board is electrically connected to the display, and the display is located on the surface of the box cover; the detection device is bound to the target device, and the detection device obtains the inspection information of its own authenticity through interaction with the cloud server, and generates a QR code for the user to scan and display on the display; the main board is used to obtain the current state of the detection device bound to the target device, and control the detection device to enter the low power consumption mode from the running mode according to the current state of the detection device meeting the preset conditions, wherein the low power consumption mode includes preset low power consumption processing of the detection device.

[0065] The testing equipment for this application can be found in Figure 3 , Figure 4 and Figure 6 The detection device in this application may be referred to as a verification box. The verification box may be connected to a target device, which may be an IoT device. Figure 6 The detection device 60 may include a box body 61, a box cover 62, an anti-disassembly detection component 63, a main board 64, a communication module 65 and a display 66, wherein the display 66 may be a low-power display, and the main board 64 may be an Internet of Things main board.

[0066] The box cover 62 may be connected to the box body 61, for example, may be detachably connected to the box body 61, and form an installation space between the box body 61 and the box body 61. The mainboard 64 and the communication module 65 are located in the installation space. The display 66 is located on the surface of the box cover 62. The box body 61 is connected to the target device in a preset manner.

[0067] The mainboard 64 can be arranged in the installation space formed between the box cover 62 and the box body 61, and connected to the anti-disassembly component 63, for example, it can be electrically connected. The mainboard 64 can establish a communication connection with the cloud server through the communication module 65, obtain the inspection information and configuration information returned by the cloud server, generate a QR code for the user to scan based on the inspection information, and display the QR code on the display 66. In addition, the mainboard 64 can periodically wake up related components such as the chip of the mainboard 64 according to the configuration information returned by the cloud server, and can periodically refresh the QR code on the display 66 according to the returned inspection information.

[0068] The mainboard 64 is also used for initialization configuration of the detection device 60. The mainboard 64 can upload various data information of the detection device 60 to the cloud server, for example, the initialization information can be uploaded to the cloud server, and the verification information of the authenticity of the detection device 60 returned by the cloud server is received. Among them, the initialization information at least includes the device ID of the detection device 60 and the installation information that the detection device 60 has been installed on the target device. Further, the initialization information may include parameters such as the device ID of the detection device 60, GPS (Global Positioning System) location information, the installation information that the detection device 60 has been installed on the target device, and time information. Among them, the cloud server assigns a device code to the detection device 60 based on the initialization information received from the detection device 60, and the device code may be a unique identification code of the detection device 60. The cloud server can further bind the device code of the detection device 60 with the target device external to the detection device 60 according to the target device information of the target device external to the detection device, generate the verification information of the authenticity of the detection device 60 itself and send it to the mainboard 64, which is used to verify the authenticity of the detection device 60 itself. According to the authenticity of the detection device 60 itself, it can be known whether the external target device has been authenticated. Among them, the target device information of the target device at least includes the device ID of the target device. Among them, the verification information can be, for example, QR code URL (uniform resource locator, uniform resource locator system) information. Among them, the QR code URL includes preset website information and detection device authenticity identification information, and the detection device authenticity identification information includes the device ID of the detection device and the target device, the timestamp describing the validity period of the QR code, and the signature sign field used to describe the authenticity of the detection device. Among them, the preset website information can be pre-stored in the preset path, and the preset website information and the detection device authenticity identification information are combined to generate the QR code URL.

[0069] The signature field includes the binding relationship between the detection device and the target device, the authenticity information of the target device, and one or a combination of the following: GPS information of the detection device, and information of the associated organization associated with the detection device or the target device. This allows subsequent users to scan the QR code and display this information in the signature field for users to identify the authenticity and understand relevant information. The signature field can be set by relevant personnel in the cloud server as needed.

[0070] The detection device 60 stores the QR code URL information locally, and can generate a QR code based on the QR code URL information and display it on the display 66 for the user to scan and verify, thereby completing the initialization configuration of the detection device 60 .

[0071] The cloud server can also send configuration information (operation configuration parameter information) of the detection device 60 to the mainboard 64 for periodically waking up related components.

[0072] The anti-disassembly detection component 63 can be installed on the box cover 62, for example, it can be embedded in the back of the box cover 62. The anti-disassembly detection component 63 is used to check whether the detection device 60 is still installed on an external target device such as an Internet of Things device, that is, to check whether the verification box is disassembled. The detection device 60 can be externally connected to the target device through the anti-disassembly detection component 63, and the anti-disassembly detection component 63 is electrically connected to the mainboard 64.

[0073] The communication module 65 may be a 4G module component or a 5G module component, etc., which is not limited in this application. In the embodiment of this application, the communication module 65 may adopt a 4G communication module, such as a 4G CAT1 module, and may adopt mobile networks of different operators.

[0074] See also Figure 4 , wherein the anti-disassembly detection component 63 may include a button component 631 disposed on the back of the box cover 62 of the detection device 60. Before being installed on the target device, the button component 631 is in a pop-up state. When the detection device 60 is installed on the surface of the target device, the button component 631 on the back of the detection device 60 is in a pressed state, indicating that the detection device 60 has been installed on the target device. If the detection device 60 is disassembled from the target device, the button component 631 will return to the pop-up state. When the main board 64 detects the state change, a disassembly alarm message is sent to the back-end cloud server to prompt that the detection device 60 is disassembled. The disassembly alarm message may include disassembly information of the detection device 60, such as GPS information of the detection device 60, disassembly status information, disassembly time information, etc.

[0075] Furthermore, in order to more stably install the detection device 60 on the target device, the anti-disassembly detection component 63 may also include an adhesive component 632 of a set size simultaneously arranged on the back of the box cover 62 of the detection device. When the detection device 60 is installed on the surface of the target device, it is further bonded to the target device through the adhesive component 632. The adhesive component 632 may be set to 1 or 2 or more, and when set to 2, they may be located on both sides of the button component 631 respectively. The position and size of the adhesive component 632 may be set as required.

[0076] For further information, see Figure 3 In order to more stably install the detection device 60 on the target device (see Figure 5 ), the anti-disassembly detection component 63 may also include a strap 633, on which a buckle structure 634 may be provided. When the detection device 60 is mounted on the surface of the target device, the detection device 60 is tied to the target device through the strap 633, and the strap 633 can be adjusted in length, and then the detection device 60 and the target device are tightly tied through the buckle structure 634. It should be noted that the buckle structure 634 may not be provided, but Velcro may be provided to connect the two ends of the strap, or the buckle structure 634 and Velcro may be provided at the same time. Velcro, also known as hook and loop fastener, is a commonly used connecting auxiliary material, with two sides of the molecule.

[0077] It can be found that the detection device of the present application, i.e., the verification box, will not affect the original structure of the external device. The verification box is provided with functions such as anti-disassembly, verification, and display. When the cloud server sets the inspection information, it can also set the associated attributes, associated mechanisms, associated devices and other information of the verification box, so that subsequent users can display this information for users to identify the authenticity and understand the relevant information after scanning the QR code. The present application controls the verification box to enter the low-power mode from the operating mode after the preset conditions are met, and performs preset low-power processing on the detection equipment, thereby reducing resource consumption, thereby reducing the power consumption of the verification box and increasing the use time of the verification box. The verification box of the present application can also solve the problem of identification and detection of counterfeit medical beauty equipment products in the medical beauty industry, reduce potential harm to consumers, and shape users' perception of authentic products.

[0078] See also Figure 2 , the application method may include:

[0079] S201, the detection device is externally connected to the target device, establishes a communication connection with the cloud server, and sends initialization information to the cloud server, wherein the detection device is made of low-power components.

[0080] The detection device in this example can be a verification box, and the target device can be a medical beauty product device.

[0081] The detection device may include a box body, a box cover, an anti-disassembly detection component, a mainboard, a communication module and a display. In order to reduce the power consumption of the detection device, some components of the present application may be made of low-power components.

[0082] The display is a low-power display, such as an ink screen display.

[0083] The ink screen display uses static ink and does not consume power when displaying, but only consumes power when refreshing. The screen can generally display a QR code and the number of the box. In the embodiment of the present application, an ink screen display is selected. The ink screen display generally only supports two-color or three-color display, and its power consumption is relatively low among various displays. Electronic ink is a liquid material in which many microcapsules with a diameter similar to that of a human hair are suspended. Each microcapsule is composed of positively charged particles and negatively charged particles. By adopting a certain process, this electronic ink can be printed onto the surface of glass, fiber or even paper media. These carriers that carry the electronic ink are also specially processed, and a simple pixel control circuit is constructed for each pixel therein, so that the electronic ink can display the required images and text.

[0084] In addition, the ink screen can still maintain the last refreshed content when the power is off. The power of the ink screen is only turned on when there is a display refresh task, the display is refreshed, and then it is turned off immediately after the refresh is completed. The power consumption time depends on the length of the refresh task.

[0085] Among them, the chips in the motherboard can use low-power chips. For example, some chips can achieve extremely low power consumption under optimal configuration, as low as single-digit uA level.

[0086] The power management of the authentication box may be configured to reduce power consumption. For example, the chip in the mainboard is powered by a battery, and / or a PMOS switch circuit is configured in the circuit of the mainboard.

[0087] The present application may configure the power management of the authentication box to reduce power consumption by:

[0088] 1) The chip is powered directly by the battery cell. Compared with ordinary power consumption products, it can save the intermediate voltage regulation or other voltage processing operations, thus reducing the power consumption of this part.

[0089] 2) For the display, communication module, etc. of the verification box, a PMOS (positive channel Metal Oxide Semiconductor, n-type substrate, p-channel Metal Oxide Semiconductor Field Effect Transistor) switching circuit is added from the input side of the battery cell. In this way, in standby mode, there is no leakage current consumption in the components of the verification box and its peripheral circuits, which can solve the static power consumption of each component in standby mode from the root, and only the power consumption of the PMOS switching circuit is increased accordingly. However, the static power consumption of the PMOS switching circuit itself is much lower than the static power consumption when the components and the peripheral circuits of the components are not turned off.

[0090] Among them, the circuits in the motherboard can try to use CMOS (Complementary Metal Oxide Semiconductor) circuits. Their biggest advantage is micro power consumption (static power consumption is almost zero), and the second advantage is that the output logic level swing is large, so the anti-interference ability is strong.

[0091] In step S201, the detection device establishes a communication connection with the cloud server through the communication module, and sends initialization information to the cloud server, the initialization information at least including the device ID of the detection device and the installation information that the detection device has been installed on the target device. Further, the initialization information may include parameters such as the device ID of the detection device, GPS location information, the installation information that the detection device 60 has been installed on the target device, and time information.

[0092] S202. The cloud server binds the detection device to the target device according to the received initialization information and the target device information of the target device to which the detection device is connected, generates verification information for verifying the authenticity of the detection device, and sends at least two verification information to the detection device.

[0093] The cloud server receives the initialization information sent by the detection device, and assigns a device code to the detection device, which can be a unique identification code of the detection device. The cloud server can further bind the device code of the detection device with the target device connected to the detection device according to the target device information of the target device to which the detection device is externally connected, generate verification information for detecting the authenticity of the detection device and send it to the detection device, which can be used to verify whether the external target device has been authenticated according to the authenticity of the detection device itself. The verification information can be, for example, QR code URL (uniform resource locator, uniform resource locator system) information. The QR code URL includes preset website information and detection device authenticity identification information, and the detection device authenticity identification information includes the device ID of the detection device and the target device, a timestamp describing the validity period of the QR code, and a signature sign field used to describe the authenticity of the detection device. The preset website information can be pre-stored in a preset path, and the preset website information and the detection device authenticity identification information are combined to generate a QR code URL. The signature field includes the binding relationship between the detection device and the target device, the authenticity information of the target device, and one or a combination of the following: GPS information of the detection device, and information of the associated organization associated with the detection device or the target device. This allows subsequent users to scan the QR code and display this information in the signature field for users to identify the authenticity and understand relevant information. The signature field can be set by relevant personnel in the cloud server as needed.

[0094] In addition, the inspection information may also include information such as associated attributes, associated organizations, and associated devices of the inspection device. This allows subsequent users to scan the QR code and display this information for users to identify authenticity and understand related information.

[0095] The cloud server can also send configuration information (operation configuration parameter information) of the detection device to the detection device for periodic awakening of related components.

[0096] S203, the detection device receives the inspection information sent by the cloud server and stores it locally, generates a QR code for the user to scan based on the inspection information, and displays it on the display of the detection device.

[0097] The detection device receives the inspection information and related configuration information for verifying the authenticity of the detection device sent by the cloud server, generates a QR code for the user to scan based on the inspection information, displays the QR code on the display, and completes the initialization configuration of the authentication box.

[0098] It should be noted that, in addition to the initialization phase, the detection device can also obtain cloud server inspection information from the cloud server at regular intervals.

[0099] During the interaction between the detection device and the cloud server, the present application can control the size of data transmitted between the detection device and the cloud server and the frequency of transmission interaction, set a low-frequency usage mode, and thus reduce power consumption.

[0100] For example, the number of verification information returned by the cloud server and the interval for obtaining the verification information can be set. For example, the cloud server can transmit multiple QR code URL information to the detection device for storage at one time, so that the detection device can reduce the number of times it obtains the QR code URL information from the cloud server. In other words, the cloud server can transmit multiple QR code information to the detection device for storage at one time, so that the detection device can reduce the number of times it obtains the QR code information from the cloud server. For example, 10 QR codes are sent to the detection device for storage at one time, and the detection device can use them separately within ten days.

[0101] In the embodiment of the present application, during the interaction between the detection device and the cloud server, preset information can be selected for interactive transmission. For example, the detection device and the cloud server only transmit core information. For example, the preset information sent by the detection device to the cloud server includes: the device ID of the detection device and the installation information that the detection device has been installed on the target device; the preset information returned by the detection device to the cloud server includes: preset website information and detection device authenticity identification information, and the detection device authenticity identification information includes the device ID of the detection device and the target device, and the signature sign field used to describe the authenticity of the detection device.

[0102] The present application can also adopt compression mode for transmission to reduce the content and size of data information to be transmitted. After data compression processing, the transmission is faster, the transmission time is reduced, and the power consumption is also reduced.

[0103] In the embodiment of the present application, the communication between the detection device and the cloud server includes multiple types of communication, for example, including but not limited to the following four types:

[0104] 1) During initialization, the initialization information of the detection device is transmitted, including the unique ID code and device code of the detection device.

[0105] 2) Transmit the configuration information of the cloud server to the detection device.

[0106] 3) Transmit the relevant information of the scheduled wake-up and removal interface, and report the GPS information.

[0107] 4) Transmit the detection information sent by the cloud server, such as QR code URL information.

[0108] During the information transmission process, only the characteristic fields can be transmitted, and the same fields can be spliced ​​to reduce the network transmission time. In addition, from a security perspective, the network interface of the detection equipment and the cloud server can also define the authentication mechanism by itself. Only after passing the authentication can the relevant network interface be accessed.

[0109] S204: The detection device obtains the current state of the detection device bound to the target device.

[0110] The working mode of the detection device can include operation mode and low power consumption mode. Among them, the operation mode controls low frequency use. In this mode, all components of the detection device operate normally. When the detection device is connected to the cloud server, it belongs to the operation mode; when the detection device is not in contact with the cloud server and only needs to be refreshed, it belongs to the low power consumption mode.

[0111] The mainboard of the detection device can monitor and obtain the current status of the detection device.

[0112] S205 . The detection device controls the detection device to enter a low power consumption mode from the running mode according to the current state meeting the preset condition, wherein the low power consumption mode includes performing a preset low power consumption processing on the detection device.

[0113] Among them, the detection equipment is subjected to preset low power consumption processing, including: performing at least one of the following preset low power consumption processing on the detection equipment: controlling the detection equipment to interrupt the communication connection with the cloud server, controlling the chip in the mainboard of the detection equipment to be woken up at a time to access the cloud server, and controlling the detection equipment to refresh the displayed QR code according to a preset period.

[0114] Among them, the detection device can control the detection device to enter the low power consumption mode from the running mode according to the current state of the detection device, that is, the detection device has completed initialization and has obtained the inspection information from the cloud server and generated a QR code.

[0115] Among them, the detection device is in low power consumption mode when it does not contact the background server and only needs to refresh. In this low power consumption mode, except for the core components of the detection device that remain in normal operation, other components can be in shutdown mode to increase the battery life of the detection device. In other words, software power consumption optimization for the detection device means that the less work can be done, and the sleep can be done.

[0116] Among them, controlling the detection device to interrupt the communication connection with the cloud server can reduce the power consumption of the detection device. Because the detection device no longer needs to send data to the cloud server or obtain data from the cloud server, nor does it need to maintain a connection with the cloud server, the power consumption of the detection device can be reduced, realizing one of the low-power processing methods of this application.

[0117] Among them, the chip in the mainboard of the control timed wake-up detection device accesses the cloud server, which can reduce the power consumption of the detection device. The present application can wake up the relevant components in the detection device according to the configuration information, such as the chip in the mainboard of the timed wake-up detection device to access the cloud server. For example, the chip in the mainboard of the control detection device enters the sleep mode, and the chip in the mainboard of the detection device is woken up again after a preset time or at a fixed time to access the cloud server. Since the chip in the mainboard enters the sleep mode, the chip in the mainboard of the detection device accesses the cloud server after the timed wake-up, so that the resource consumption of the chip in the mainboard can be reduced, thereby realizing the low power consumption processing of one of the methods of the present application. For example, in the standby mode, the control chip enters the sleep mode, only the CPU clock and the anti-disassembly button clock are guaranteed to run, and the RTC (Real_Time Clock, real-time clock) is always running in deep sleep mode, so that the chip in the mainboard does not need to maintain the running mode after entering the sleep mode, and the power consumption in the sleep mode is greatly reduced, and the cloud service is accessed after the timed wake-up, and then the normal use power consumption is generated. Among them, RTC is an integrated circuit, usually called a clock chip. Real-time clock chip is one of the most widely used consumer electronic products in daily life. It provides accurate real-time time for people or provides accurate time reference for electronic systems. Most real-time clock chips use high-precision crystal oscillators as clock sources. Some clock chips can be powered by external batteries in order to work when the main power is off.

[0118] Among them, controlling the detection device to refresh the display QR code according to a preset period can reduce the power consumption of the detection device. The detection device can refresh the display regularly according to the configuration information, that is, refresh the display QR code according to the preset period. In low-power mode, the present application controls the detection device to refresh the display QR code regularly, that is, use dynamic QR code. Because the detection device stores a large number of QR codes locally, the detection device can refresh the QR code locally regularly. For example, the present application can set a set period, such as refreshing the QR code every two days. Because the detection device does not need the display to refresh continuously, such as refreshing the QR code in real time, it only needs to refresh the display QR code after a period of time, so that the power consumption of the detection device can be reduced, and one of the low-power processing methods of the present application can be achieved. In addition, by regularly refreshing the display QR code, the static code can also be converted into a dynamic code. Since static codes are defective and easy to forge, forgery can be avoided by regularly refreshing the QR code, that is, using a dynamic QR code, thereby improving the security of the QR code.

[0119] In addition, for the refresh strategy on the display of the detection device, the present application can adopt a partial refresh method. Compared with the global refresh method of the related art, the partial refresh only displays the content position. The smaller the proportion of the screen image occupied by the partial refresh, the shorter the power-on time, and the corresponding reduction in power consumption. The screen of the entire display is relatively large, and the partial refresh only displays the content position. In this way, the content of the screen interface of the entire display does not need to be displayed, so the power consumption of the detection device can be reduced, and one of the low-power processing methods of this application can be achieved.

[0120] It should be noted that in addition to obtaining the inspection information returned by the cloud server from the cloud server during initialization, the detection device can also obtain the inspection information from the cloud server at regular intervals. It should also be noted that in the embodiment of the present application, the battery used in the detection device can be a combination of a lithium-substrate battery and a supercapacitor or a lithium-manganese battery, so that the self-discharge rate is lower and a more stable voltage can be provided for the module. For example, a disposable lithium-manganese battery is selected. Compared with a ternary lithium battery, the advantage of a lithium-manganese battery is a low self-discharge rate, and the annual discharge rate is 1-2%. The main reason for selecting this battery is that users want to reduce maintenance operations, and generally only need to meet the use time of one year. However, this application does not limit the choice of battery. For example, a rechargeable lithium battery can also be used. In addition, a solar conversion panel can be added to the outer shell so that the internal battery can be charged when the conditions are met, which greatly extends the battery life. In the embodiment of the present application, the battery can be arranged inside the box of the detection device, such as a verification box, and is tightly connected to the box body in a tight fixing manner, and is generally not removable.

[0121] In the embodiment of the present application, for network connection, if the network status is not good or the network is disconnected, for example, the signal in the area is not good and the network interface cannot be accessed, the network access demand can be maintained, and automatic connection is initiated until reconnection is achieved to achieve the purpose of network access. In terms of network time intervals, reconnection can be performed at preset intervals, for example, reconnection can be continued at four intervals of 5 minutes, 10 minutes, 30 minutes, and 1 hour, and reconnection can be continued at this frequency until the network is accessed normally.

[0122] In summary, the embodiment of the present application controls the detection device to enter the low-power mode from the operating mode after meeting the preset conditions, and performs preset low-power processing on the detection device, so as to reduce resource consumption, thereby reducing the power consumption of the detection device and increasing the use time of the detection device. Furthermore, by acquiring multiple QR code URL information at one time and storing them locally, there is no need to maintain interaction with the cloud server, and the QR code can be refreshed and displayed directly from the local according to the multiple QR code URL information, and it can be refreshed according to the preset cycle, without continuously refreshing the display, which further reduces the power consumption of the detection device. In addition, a local refresh method can be used when refreshing the display of the QR code, the display adopts an ink screen display, the chip in the mainboard adopts a low-power chip, the chip in the mainboard adopts a battery power supply, and a PMOS switch circuit is set in the circuit of the mainboard. Through the comprehensive use of multiple methods, the power consumption of the detection device is further reduced, and the use time of the detection device is increased.

[0123] Figure 7 1 is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application. The electronic device may be, for example, a detection device but is not limited thereto.

[0124] See also Figure 7 , the electronic device 1000 includes a memory 1010 and a processor 1020 .

[0125] The processor 1020 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0126] The memory 1010 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 1020 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 1010 may include any combination of computer-readable storage media, including various types of semiconductor storage chips (such as DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 1010 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.

[0127] The memory 1010 stores executable codes, and when the executable codes are processed by the processor 1020 , the processor 1020 can execute part or all of the methods described above.

[0128] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.

[0129] Alternatively, the present application can also be implemented as a computer-readable storage medium (or non-temporary machine-readable storage medium or machine-readable storage medium) on which executable code (or computer program or computer instruction code) is stored. When the executable code (or computer program or computer instruction code) is executed by a processor of an electronic device (or a cloud server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.

[0130] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for processing power consumption of a detection device, It is characterized in that include: Obtain the current status of the detection device bound to the target device, wherein the detection device obtains verification information for detecting its own authenticity through interaction with the cloud server and generates a QR code for the user to scan; During the interaction between the detection device and the cloud server, the preset information sent by the detection device to the cloud server includes: the device ID of the detection device and the installation information that the detection device has been installed on the target device; the preset information returned by the cloud server received by the detection device includes: preset website information and authenticity identification information of the detection device, and the authenticity identification information of the detection device includes the device IDs of the detection device and the target device, and a signature field for describing the authenticity of the detection device; According to the current state meeting the preset conditions, the detection device is controlled to enter the low power consumption mode from the running mode, including: according to the current state that the detection device has completed initialization and has obtained the inspection information from the cloud server and generated a QR code, the detection device is controlled to enter the low power consumption mode from the running mode; wherein the low power consumption mode includes performing preset low power consumption processing on the detection device.

2. The method according to claim 1, It is characterized in that The presetting low power consumption processing for the detection device includes: The detection device is subjected to at least one of the following preset low-power processing: controlling the detection device to interrupt the communication connection with the cloud server, controlling the chip in the mainboard of the detection device to be awakened at a time to access the cloud server, and controlling the detection device to refresh and display the QR code according to a preset period.

3. The method according to claim 1, It is characterized in that The detection device obtains verification information for detecting its own authenticity through interaction with the cloud server, including: The detection device interacts with the cloud server to simultaneously obtain at least two QR code URL information for detecting its own authenticity, so as to refresh and display the QR code according to a preset period.

4. A detection device, Features: The detection device comprises a box body, a box cover, a main board and a display; an installation space is formed between the box cover and the box body, the main board is located in the installation space, the main board is electrically connected to the display, and the display is located on the surface of the box cover; The detection device is bound to the target device, wherein the detection device obtains verification information for detecting its own authenticity through interaction with the cloud server, and generates a QR code for the user to scan and display on the display; During the interaction between the detection device and the cloud server, the preset information sent by the detection device to the cloud server includes: the device ID of the detection device and the installation information that the detection device has been installed on the target device; the preset information returned by the cloud server received by the detection device includes: preset website information and authenticity identification information of the detection device, and the authenticity identification information of the detection device includes the device IDs of the detection device and the target device, and a signature field for describing the authenticity of the detection device; The mainboard is used to obtain the current state of the detection device bound to the target device, and control the detection device to enter the low power consumption mode from the running mode according to the current state of the detection device meeting the preset conditions, including: according to the current state that the detection device has completed initialization and has obtained the inspection information from the cloud server and generated a QR code, the detection device is controlled to enter the low power consumption mode from the running mode; wherein the low power consumption mode includes performing preset low power consumption processing on the detection device.

5. The detection device according to claim 4, It is characterized in that The mainboard performs preset low power consumption processing on the detection device, including: The mainboard performs at least one of the following preset low-power processing on the detection device: controlling the detection device to interrupt the communication connection with the cloud server, controlling the chip in the mainboard of the detection device to be awakened at a time to access the cloud server, and controlling the detection device to refresh and display the QR code according to a preset period.

6. The detection device according to claim 5, Features: The display is an ink screen display, and / or, The chip in the mainboard is a low-power chip.

7. The detection device according to claim 5 or 6, Features: The chip in the mainboard is powered by a battery, and / or, A PMOS switch circuit is provided in the circuit of the main board.

8. The detection device according to claim 5, Features: The display uses a local refresh mode when refreshing and displaying the two-dimensional code.

9. An electronic device, It is characterized in that include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 3.

10. A computer-readable storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 3.