A temporary power box control method based on Bluetooth lock

Through the Bluetooth lock-based power box management and control method, using handheld terminals and cloud authentication and authorization, effective and timely control of temporary power boxes at the construction site is achieved, which solves the problem in the existing technology that management is difficult to detect operating errors and safety hazards in a timely manner. problem and improve the safety of electricity use at the construction site.

CN117133069BActive Publication Date: 2024-09-24航粤智能电气股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310914275.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-25
Publication Date
2024-09-24
Estimated Expiration
2043-07-25

AI Technical Summary

Technical Problem

In the existing technology, it is difficult to achieve effective and timely management and control of temporary power distribution boxes at construction sites, which makes it difficult to detect potential safety hazards and operational errors in a timely manner, affecting the safety of electricity use at construction sites.

Method used

Adopt a Bluetooth lock-based power box management and control method. Use a handheld terminal to scan the QR code to obtain the device serial number, bind the Bluetooth lock, and record unlocking and closing information through cloud authentication and authorization to ensure operational compliance and safety. .

Benefits of technology

It achieves effective and timely control of temporary power connection boxes, avoids safety hazards caused by operational errors and equipment mismatch, extends the battery life of Bluetooth locks, and ensures consistency between operations and task orders through image comparison. , improving the electricity safety at the construction site.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117133069B
    Figure CN117133069B
Patent Text Reader

Abstract

The present invention discloses a temporary power box control method based on a Bluetooth lock, comprising the following steps: obtaining a device serial number, and grabbing various information of the temporary power box from a cloud database according to the device serial number; after binding the temporary power box with a Bluetooth lock according to the grabbed information, obtaining parameter information of the Bluetooth lock, and uploading it to the cloud for storage; binding with the temporary power box, and providing corresponding operation permissions after authorization; selecting the authorized power distribution task, and powering on the Bluetooth lock and issuing an unlocking command to open the Bluetooth lock; after completing the unlocking, operating the temporary power box according to the selected power distribution task, and closing the temporary power box after the operation is completed; wherein, when issuing an unlocking command to open the Bluetooth lock: judging whether the cloud receives a photo of the temporary power box before unpacking, if so, the Bluetooth lock automatically unlocks according to the received unlocking command, and if not, does not automatically unlock. The present invention achieves the purpose of being able to effectively and timely control the temporary power connection box.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of temporary power box management and control, and in particular to a temporary power box management and control method based on a Bluetooth lock. Background Art

[0002] Electricity is the most widely used energy source by human beings. The emergence of electricity has changed the traditional way of life, work and production of human beings. Especially in modern civilization, the application of electricity in construction is more extensive. With the progress of the times and the continuous development of modern power technology, how to standardize and rationalize the safe use of electricity in construction to improve the quality of the project and the efficiency of construction is a problem that people are generally concerned about. At the same time, people have higher and higher requirements for the use of power technology.

[0003] The characteristics of temporary power supply at the construction site of the project can be summarized into six aspects: exposure, temporary, mobility, variability, vulnerability and environmental complexity. These characteristics of temporary power supply at the construction site make many electrical equipment and lines at the construction site have many unsafe factors, which can easily cause damage to electrical equipment and lines and cause electrical accidents, such as electric shock and electrical fire accidents. If the construction personnel only pay attention to the functional side of temporary power supply for construction, but ignore the safety protection of power supply, they will inevitably be harmed. Therefore, the construction site must treat temporary power supply for construction as a major source of danger related to the personal safety of construction personnel. The power supply and distribution design of temporary power supply at the construction site must not only meet the normal power demand of construction, but also ensure the safety and reliability of power supply for construction.

[0004] The temporary power connection box is the central link for power transmission and distribution between the power supply and power equipment in the construction site power distribution system. Therefore, the correct use and control of the temporary power connection box has a critical impact on the safety of power use at the construction site. However, manual management is generally used to control the temporary power connection box, which has the following defects:

[0005] (1) Operators often forget to close the temporary power connection box after using it, and the above situation usually takes a long time to be discovered. During this period, there is a great safety hazard because the distribution line in the temporary power connection box lacks the protection of the box body;

[0006] (2) Generally, each construction site will have multiple operators responsible for the maintenance of the temporary power connection box. Due to the differences in professional capabilities of different operators, when operating the temporary power connection box, there will be inconsistencies between the operations performed on the temporary power connection box and the operations required by the power distribution task order, thereby affecting the safety of electricity use at the construction site. The manual management method is difficult to promptly discover the above-mentioned operating errors in the temporary power connection box;

[0007] (3) In addition, each construction site will be equipped with multiple temporary power connection boxes. Therefore, although the operations performed on the temporary power connection boxes are consistent with the operations required by the power distribution task order, the temporary power connection boxes used for the operations are incorrect, which also affects the safety of electricity use on the construction site. Similarly, manual management methods make it difficult to promptly discover situations where the temporary power connection boxes have incorrectly been operated on.

[0008] From the above, it can be seen that it is difficult to obtain effective and timely control results by using manual management to control temporary power connection boxes. Summary of the invention

[0009] In order to overcome the shortcomings of the prior art, the present invention provides a temporary power box control method based on a Bluetooth lock, which is used to solve the problem that the prior art uses manual methods to control temporary power connection boxes, and it is difficult to achieve effective and timely control effects, thereby achieving the purpose of effective and timely control of temporary power connection boxes.

[0010] To solve the above problems, the technical solution adopted by the present invention is as follows:

[0011] A method for controlling a temporary power box based on a Bluetooth lock comprises the following steps:

[0012] The device serial number is obtained by scanning the QR code on the temporary power box through a handheld terminal, and various information of the temporary power box is captured from the cloud database according to the device serial number;

[0013] After binding the temporary power box to the Bluetooth lock through the handheld terminal according to the captured information, the parameter information of the Bluetooth lock is obtained and uploaded to the cloud for storage;

[0014] After the handheld terminal scans the QR code to bind with the temporary power box, authentication and authorization are performed through the cloud, and after the authorization is passed, corresponding operation permissions are provided;

[0015] The authorized power distribution task is selected through the handheld terminal, and after the Bluetooth lock is powered on, the handheld terminal communicates with the Bluetooth lock, issues an unlocking command to open the Bluetooth lock, and records the unlocking information;

[0016] After unlocking is completed, the temporary power box is operated according to the selected power distribution task, and after the operation is completed, the temporary power box is closed;

[0017] Wherein, when issuing an unlocking instruction to open the Bluetooth lock, it includes:

[0018] Determine whether the cloud receives the photo of the temporary power box before unpacking. If so, the Bluetooth lock automatically unlocks according to the unlocking instruction received. If not, the Bluetooth lock does not automatically unlock.

[0019] After closing the temporary power box, including:

[0020] Determine whether the cloud receives the photo of the temporary power box after closing the box. If not, it is determined that the switch box is not compliant this time; if so, it is determined that the switch box is compliant this time.

[0021] As a preferred embodiment of the present invention, when the temporary power box is operated according to the selected power distribution task, it includes:

[0022] Determine whether the cloud receives photos of the temporary power box before and after the operation;

[0023] If not, the operation is deemed to be non-compliant;

[0024] If so, then based on the photos of the temporary power box before and after the operation, determine whether there is any discrepancy between this operation and the selected power distribution task. If so, then determine that this operation is not compliant; if not, then determine that this operation is compliant.

[0025] As a preferred implementation mode of the present invention, when determining whether there is a discrepancy between the current operation and the selected power distribution task, it includes:

[0026] Establish a temporary power box image database and classify and store temporary power box images according to different power distribution tasks;

[0027] Obtaining photos of the temporary power box before operation, and performing preprocessing to obtain preprocessed photos before operation;

[0028] Extracting features from the pre-processed photos before the operation to obtain feature data before the operation;

[0029] According to the selected power distribution task, a standard image before operation of the same power distribution task is retrieved from the temporary power box image database, and the feature data before the operation is compared with the feature data of the standard image before the operation to obtain the similarity between the photo before the temporary power box operation and the standard image before the operation;

[0030] If the similarity is greater than or equal to the similarity threshold, obtaining a photo after the temporary power box is operated for similarity comparison;

[0031] If the similarity is less than the similarity threshold, it is considered that the operation is inconsistent with the selected power distribution task.

[0032] As a preferred embodiment of the present invention, when obtaining photos after the temporary power box is operated for similarity comparison, it includes:

[0033] Preprocessing the photos after the temporary power box is operated to obtain preprocessed photos after operation;

[0034] Extracting features from the pre-processed photos to obtain feature data;

[0035] According to the selected power distribution task, a standard image after operation of the same power distribution task is retrieved from the temporary power box image database, and the feature data after the operation is compared with the feature data of the standard image after the operation to obtain the similarity between the photo after the temporary power box operation and the standard image after the operation;

[0036] If the similarity is greater than or equal to the similarity threshold, it is considered that there is no discrepancy between the current operation and the selected power distribution task;

[0037] If the similarity is less than the similarity threshold, it is considered that the operation is inconsistent with the selected power distribution task.

[0038] As a preferred embodiment of the present invention, when performing pretreatment, it includes:

[0039] Analyze the uploaded photos before and after the temporary power box operation to remove the influence of light and shadow during the acquisition process, and crop the photos before and after the temporary power box operation to remove invalid edge areas to obtain pre-processed photos before and after the operation;

[0040] When performing feature extraction, it includes:

[0041] Detecting and tracking the pre-processed photos before and after the operation to obtain accurate image feature point locations;

[0042] Interpolating according to the precise image feature point positions to obtain positions of other selected image feature points, and performing normalization processing;

[0043] Get the Gabor feature of image feature point u The Gabor features of all image feature points are combined into an image feature point dataset, as shown in Formula 1:

[0044]

[0045] Where M is the number of selected image feature points.

[0046] As a preferred embodiment of the present invention, when obtaining the similarity, it includes:

[0047] According to the selected power distribution task, a feature template library of standard images before and after the corresponding operation is selected in the temporary power box image database.

[0048] Select a feature template from the feature template library The details are shown in Formula 2:

[0049]

[0050] In the formula, Z is the number of selected feature templates, and u is the number of image feature points;

[0051] The similarity between the photos before and after the temporary power box operation and the feature template is obtained, as shown in Formula 3:

[0052]

[0053] Wherein, M is the number of image feature points selected from the photos before and after the temporary power box is operated;

[0054] The largest one is taken as the similarity between the photos before and after the temporary power box operation and the standard images before and after the operation, as shown in Formula 4:

[0055]

[0056] As a preferred embodiment of the present invention, when the Bluetooth lock is powered on, it includes:

[0057] The power-on time of the Bluetooth lock is recorded, and it is determined whether any operation instruction is received before the power-on time is greater than a preset time. If not, the Bluetooth lock automatically enters a standby state.

[0058] As a preferred embodiment of the present invention, when recording the power-on time of the Bluetooth lock, it includes:

[0059] The power-on detector is triggered to send a high-level signal. After the Bluetooth lock receives the high-level signal, it is determined whether the duration of the high-level signal is greater than the threshold time of receiving the electrical signal. If so, the power-on time of the Bluetooth lock is accumulated;

[0060] When the Bluetooth lock automatically enters the standby state, including

[0061] The power-on detector is triggered to send a low-level signal. After the Bluetooth lock receives the low-level signal, it is determined whether the duration of the low-level signal is greater than the threshold time for receiving the electrical signal. If so, the power-off time is recorded and the accumulation of the power-on time is stopped.

[0062] As a preferred implementation mode of the present invention, when authentication and authorization are performed through the cloud, it includes:

[0063] Submitting a power distribution task application to the cloud through the handheld terminal, and providing corresponding operation permissions after the cloud passes the review;

[0064] Alternatively, the power distribution task is sent to the handheld terminal through the cloud, and corresponding operation permissions are provided.

[0065] As a preferred embodiment of the present invention, when a power distribution task application is issued through the handheld terminal and reviewed in the cloud, it includes:

[0066] Acquire the operator information contained in the power distribution task application, obtain the tenant to which the operator belongs according to the operator information, further obtain information of multiple construction sites owned by the tenant, and determine the construction site to which the operator belongs according to the information of multiple construction sites;

[0067] Obtain the construction site where the temporary power box is located in the power distribution task application, and determine whether it is the construction site to which the operator belongs. If so, the application is approved.

[0068] Compared with the prior art, the present invention has the following beneficial effects:

[0069] (1) The temporary power box control method provided by the present invention obtains the unique device serial number of the temporary power box by scanning the QR code on the temporary power box body, thereby obtaining the control device information of the temporary power box according to the unique device serial number, and further binding the temporary power box to the Bluetooth lock according to the control device information, thereby ensuring the compatibility between the Bluetooth lock and the temporary power box, and effectively avoiding the situation where the unlocking fails due to the incompatibility of the control device;

[0070] (2) After binding the Bluetooth device, the present invention will upload the parameter information of the Bluetooth device to the cloud for storage, so as to facilitate the subsequent tracing of the Bluetooth device;

[0071] (3) When the present invention issues an unlocking command to open the Bluetooth lock, the unlocking information will be recorded, and the unlocking information includes the WeChat account used to unlock the lock. Therefore, when the platform account is not bound to the current WeChat account, the operation can be traced by recording the WeChat account under the current authentication and authorization relationship;

[0072] (4) Before issuing an unlock command to open the Bluetooth lock, the present invention needs to determine whether the cloud receives a photo of the temporary power box before opening the box to implement supervision before opening the box, and after the operation is completed, it needs to determine whether the cloud receives a photo of the temporary power box after closing the box to implement supervision after closing the box, thereby realizing closed-loop management of the opening and closing box action;

[0073] (5) The present invention monitors whether the Bluetooth lock receives an operation instruction after being powered on. If no operation instruction is received within a preset time, the Bluetooth lock enters a standby state, thereby effectively extending the service life of the Bluetooth lock battery through this intermittent power-on mode;

[0074] (6) The present invention combines tenant independence with construction site independence, thereby effectively avoiding the problem of affecting the safety of electricity use at the construction site due to operating errors in the temporary power box;

[0075] (7) Before operating the temporary power box, the present invention must upload a photo of the temporary power box before operation, and retrieve the standard image of the same power distribution task before operation from the temporary power box image database for comparison according to the selected power distribution task, so as to ensure that the state of the temporary power box before operation is consistent with the state described in the power distribution task list, thereby preventing operation errors; in addition, after the operation of the temporary power box is completed, it is necessary to upload a photo of the temporary power box after operation, and retrieve the standard image of the same power distribution task after operation from the temporary power box image database according to the selected power distribution task for comparison, so as to ensure that the state of the temporary power box after operation is consistent with the state described in the power distribution task list, thereby further preventing operation errors.

[0076] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] Figure 1 - is a schematic diagram of information of a control device supporting a temporary power box according to an embodiment of the present invention;

[0078] Figure 2 - is a physical picture of a Bluetooth lock supporting a temporary power box according to an embodiment of the present invention;

[0079] Figure 3 - is a schematic diagram of binding a control device supporting a temporary power box according to an embodiment of the present invention;

[0080] Figure 4 - is a schematic diagram of a power distribution task applied from bottom to top in an embodiment of the present invention;

[0081] Figure 5 - is a schematic diagram of power distribution tasks allocated from top to bottom in an embodiment of the present invention;

[0082] Figure 6 - is a schematic diagram of unlocking a temporary power box according to an embodiment of the present invention;

[0083] Figure 7 - is a step diagram of the temporary power box control method based on Bluetooth lock in an embodiment of the present invention. DETAILED DESCRIPTION

[0084] The present invention provides a method for controlling a temporary power box based on a Bluetooth lock, such as Figure 7 As shown, the following steps are included:

[0085] Step S1: Scan the QR code on the temporary power box through the handheld terminal to obtain the device serial number, and capture various information of the temporary power box from the cloud database according to the device serial number;

[0086] Step S2: After binding the temporary power box to the Bluetooth lock through the handheld terminal according to the captured information, obtain the parameter information of the Bluetooth lock and upload it to the cloud for storage;

[0087] Step S3: After the handheld terminal scans the QR code to bind with the temporary power box, authentication and authorization are performed through the cloud, and after the authorization is passed, the corresponding operation permissions are provided;

[0088] Step S4: Select the authorized power distribution task through the handheld terminal, and after the Bluetooth lock is powered on, communicate with the Bluetooth lock through the handheld terminal, issue an unlocking command to open the Bluetooth lock and record the unlocking information;

[0089] Step S5: After unlocking is completed, the temporary power box is operated according to the selected power distribution task, and after the operation is completed, the temporary power box is closed;

[0090] Wherein, when issuing an unlocking instruction to open the Bluetooth lock, it includes:

[0091] Determine whether the cloud receives the photo of the power box before unpacking. If yes, the Bluetooth lock automatically unlocks according to the unlocking command received. If no, it does not automatically unlock.

[0092] After turning off the temporary power box, including:

[0093] Determine whether the cloud has received the photo of the power box after the box is closed. If not, it is determined that the switch box is not compliant; if so, it is determined that the switch box is compliant.

[0094] Specifically, in the above step S1, the temporary power box control method provided by the present invention provides each temporary power box with a unique QR code, and the QR code will be written with a unique device serial number. By scanning the QR code with a handheld terminal, the unique device serial number can be obtained, and then various information of the temporary power box can be captured from the cloud database based on the unique device serial number. The various information of the temporary power box includes: various equipment parameters of the temporary power box, various information of the temporary power box, static properties of the temporary power box, dynamic properties of the temporary power box and control device information of the temporary power box. Figure 1 As shown, the control device information of the temporary power box includes: the Bluetooth address of the Bluetooth lock and the manufacturer, model and specifications of the Bluetooth lock, the Bluetooth address and manufacturer, model and specifications of the Bluetooth micro-break. The Bluetooth lock used in this embodiment includes Figure 2 Bluetooth lock shown.

[0095] Specifically, in the above step S2, the Bluetooth device is bound to the temporary power box through the WeChat applet of the handheld terminal. After the Bluetooth address is bound, the temporary power box can be unlocked. Figure 3 After obtaining the parameter information of the Bluetooth lock, the parameter information of the Bluetooth lock is uploaded to the cloud, and the cloud saves the parameter information of the Bluetooth lock. The saved parameter information facilitates the subsequent tracing of the Bluetooth device.

[0096] Specifically, in the above step S3, the QR code on the temporary power box is scanned through the handheld terminal to enter the control program platform, and the current WeChat account is bound to the control program platform account. After the binding is completed, the QR code on the temporary power box is scanned through WeChat to directly enter the control interface of the control program platform.

[0097] In the above step S5, when the temporary power box is operated according to the selected power distribution task, it includes:

[0098] Determine whether the cloud receives photos before and after the temporary power box operation;

[0099] If not, the operation is deemed to be non-compliant;

[0100] If so, then based on the photos before and after the temporary power box operation, determine whether there is any discrepancy between this operation and the selected power distribution task. If so, then the operation is judged to be non-compliant; if not, then the operation is judged to be compliant.

[0101] Furthermore, when judging whether there is a discrepancy between the current operation and the selected power distribution task, it includes:

[0102] Establish a temporary power box image database and classify and store temporary power box images according to different power distribution tasks;

[0103] Obtaining photos of the temporary power box before operation, and performing preprocessing to obtain preprocessed photos before operation;

[0104] Perform feature extraction on the pre-processed photos before operation to obtain feature data before operation;

[0105] According to the selected power distribution task, a standard image before operation of the same power distribution task is retrieved from the temporary power box image database, and the feature data before operation is compared with the feature data of the standard image before operation to obtain the similarity between the photo before operation of the temporary power box and the standard image before operation;

[0106] If the similarity is greater than or equal to the similarity threshold, obtain the photo after the temporary power box operation for similarity comparison;

[0107] If the similarity is less than the similarity threshold, it is considered that there is a discrepancy between this operation and the selected power distribution task.

[0108] Furthermore, when obtaining photos after the temporary power box is operated for similarity comparison, it includes:

[0109] Preprocessing the photos after the temporary power box is operated to obtain preprocessed photos after the operation;

[0110] Perform feature extraction on the pre-processed operated photos to obtain the operated feature data;

[0111] According to the selected power distribution task, a standard image after operation of the same power distribution task is retrieved from the temporary power box image database, and the feature data after the operation is compared with the feature data of the standard image after the operation to obtain the similarity between the photo after the temporary power box operation and the standard image after the operation;

[0112] If the similarity is greater than or equal to the similarity threshold, it is considered that there is no discrepancy between this operation and the selected power distribution task;

[0113] If the similarity is less than the similarity threshold, it is considered that there is a discrepancy between this operation and the selected power distribution task.

[0114] Furthermore, during the preprocessing, it includes:

[0115] Analyze the uploaded photos before and after the temporary power box operation to remove the influence of light and shadow during the acquisition process, and crop the photos before and after the temporary power box operation to remove the invalid edge area to obtain the pre-processed photos before and after the operation;

[0116] When performing feature extraction, it includes:

[0117] Detect and track the pre-processed photos before and after the operation to obtain the precise location of the image feature points;

[0118] Interpolate the precise image feature point positions to obtain the positions of other selected image feature points, and perform normalization processing;

[0119] Get the Gabor feature of image feature point u The Gabor features of all image feature points are combined into an image feature point dataset, as shown in Formula 1:

[0120]

[0121] Where M is the number of selected image feature points.

[0122] Furthermore, when obtaining the similarity, it includes:

[0123] According to the selected power distribution task, a feature template library of standard images before and after the corresponding operation is selected in the temporary power box image database.

[0124] Select a feature template from the feature template library The details are shown in Formula 2:

[0125]

[0126] In the formula, Z is the number of selected feature templates, and u is the number of image feature points;

[0127] The similarity between the photos before and after the temporary power box operation and the feature template is obtained, as shown in Formula 3:

[0128]

[0129] Where M is the number of image feature points selected from the photos before and after the temporary power box operation;

[0130] The largest one is taken as the similarity between the photos before and after the temporary power box operation and the standard images before and after the operation, as shown in Formula 4:

[0131]

[0132] In the above step S4, when the Bluetooth lock is powered on, it includes:

[0133] The power-on time of the Bluetooth lock is recorded, and it is determined whether any operation instruction is received before the power-on time is greater than the preset time. If not, the Bluetooth lock automatically enters the standby state.

[0134] Furthermore, when recording the power-on time of the Bluetooth lock, it includes:

[0135] The power-on detector is triggered to send a high-level signal. After the Bluetooth lock receives the high-level signal, it is determined whether the duration of the high-level signal is greater than the threshold time of receiving the electrical signal. If so, the power-on time of the Bluetooth lock is accumulated;

[0136] When the Bluetooth lock automatically enters standby mode, including

[0137] The power-on detector is triggered to send a low-level signal. After receiving the low-level signal, the Bluetooth lock determines whether the duration of the low-level signal is greater than the threshold time for receiving the electrical signal. If so, the power-off time is recorded and the accumulation of the power-on time is stopped.

[0138] Specifically, after completing the cloud authorization, what remains is the on-site operation, which is: first power on the Bluetooth lock to change the Bluetooth lock from standby mode to working mode; select the corresponding task in the mini-program task interface of the handheld terminal, jump to the unlocking interface, press the unlocking button, the handheld terminal turns on Bluetooth, and communicates with the Bluetooth module of the Bluetooth lock. After the link is successful, the handheld terminal sends an unlocking command, and the Bluetooth lock automatically unlocks after receiving the unlocking command.

[0139] Involving multi-level temporary power box equipment, the outgoing temporary power box does not need to be unlocked, only the incoming temporary power box needs to be unlocked.

[0140] Specifically, in the above step S4, the unlocking information includes: unlocking time, unlocking WeChat account (actual operator), platform account and other unlocking information, etc. The reason for recording the unlocking WeChat account is that when the platform account is not bound to the current WeChat account, a platform account can be shared by multiple operators. In order to record the specific operator, the operation traceability is achieved by recording the WeChat account under the current authentication and authorization relationship.

[0141] Furthermore, before pressing the unlock button, take a photo before unlocking. Only after uploading the photo before unlocking, the unlock button can be used, and the handheld terminal can open the Bluetooth lock. Figure 6 Similarly, after unpacking, take photos before operating according to the power distribution task list, and take photos again after the operation. Both photos before and after the operation must be uploaded to the cloud. Finally, take photos again after closing the box to ensure closed-loop management of the switch box action.

[0142] In the present invention, photos are taken before and after the unpacking operation, and it can be determined in the cloud whether the actual operation is compliant and whether there is any discrepancy with the power distribution task order, thereby improving the accuracy of the supervision of the unpacking operation.

[0143] Furthermore, the power-on time of the Bluetooth lock is limited, for example, 5 to 10 seconds. If this power-on time has passed and no operation instruction is received, it will automatically enter the standby state. The present invention effectively prolongs the battery life through this intermittent power-on mode. The battery life is longer than that of the mechanical lock, and it can be ensured that the power supply does not need to be replaced in the middle.

[0144] Furthermore, the Bluetooth lock is embedded and cannot be damaged by outsiders in the construction site scenario.

[0145] In the above step S3, when authentication and authorization are performed through the cloud, it includes:

[0146] Submit power distribution task applications to the cloud through a handheld terminal, and provide corresponding operation permissions after passing the review in the cloud;

[0147] Alternatively, the power distribution task can be sent to the handheld terminal through the cloud, and the corresponding operation permissions can be provided.

[0148] Specifically, the present invention includes two authorization modes, namely, an active application authorization mode and an administrator authorization mode.

[0149] Active application authorization mode: The operator of the temporary power box applies to the administrator, which is a bottom-up authorization application. The specific process is as follows:

[0150] For example, if the operator needs to connect or disconnect the box, he can submit a power distribution task application to the cloud through a handheld terminal. After the application, the power distribution task will be sent to the administrator for review. The power distribution tasks applied from bottom to top are as follows: Figure 4 shown.

[0151] After the administrator has reviewed and approved it, the corresponding operating authority will be granted to the operator through the cloud, and the operator will have the authority to perform the Bluetooth unlocking operation of the temporary power box.

[0152] Administrator authorization mode: The administrator authorizes the operator, which is a top-down authorization. The specific process is as follows:

[0153] The administrator assigns power distribution tasks to operators through the cloud. When the administrator completes the power distribution task, it is sent to the handheld terminal, and the operator automatically has the right to unlock the box. Figure 5 shown.

[0154] Furthermore, when a power distribution task application is issued through a handheld terminal and reviewed in the cloud, it includes:

[0155] The operator information included in the power distribution task application is obtained, and the tenant to which the operator belongs is obtained according to the operator information, and the information of multiple construction sites owned by the tenant is further obtained, and the construction site to which the operator belongs is determined according to the information of multiple construction sites;

[0156] Get the construction site where the temporary power box is located in the power distribution task application, and determine whether it is the construction site to which the operator belongs. If so, the application is approved.

[0157] Specifically, in the active authorization mode, there are two levels of isolation: tenant isolation and construction site isolation. The current operator belongs to a specific tenant (a large group unit, such as Vanke Real Estate). There are multiple construction sites under Vanke Real Estate. Each construction site is equipped with multiple designated temporary power boxes and designated operators. The operator can only operate the temporary power box of the construction site to which he belongs. Different tenants are managed separately, and different construction sites are also managed separately. Therefore, the problem of operators operating the wrong temporary power box in the prior art is effectively solved through the combination of tenant independence and construction site independence.

[0158] The above-mentioned embodiments are only preferred embodiments of the present invention and cannot be used to limit the scope of protection of the present invention. Any non-substantial changes and substitutions made by technicians in this field on the basis of the present invention shall fall within the scope of protection required by the present invention.

Claims

1. A method for controlling a temporary power box based on a Bluetooth lock, characterized in that: The following steps are involved: The device serial number is obtained by scanning the QR code on the temporary power box through a handheld terminal, and various information of the temporary power box is captured from the cloud database according to the device serial number; After binding the temporary power box to the Bluetooth lock according to the captured information through the WeChat applet of the handheld terminal, the parameter information of the Bluetooth lock is obtained and uploaded to the cloud for storage; After the handheld terminal scans the QR code to bind with the temporary power box, authentication and authorization are performed through the cloud, and after the authorization is passed, corresponding operation permissions are provided; The authorized power distribution task is selected through the handheld terminal, and after the Bluetooth lock is powered on, the handheld terminal communicates with the Bluetooth lock, issues an unlocking command to open the Bluetooth lock, and records the unlocking information; After unlocking is completed, the temporary power box is operated according to the selected power distribution task, and after the operation is completed, the temporary power box is closed; Wherein, when issuing an unlocking instruction to open the Bluetooth lock, it includes: Determine whether the cloud receives the photo of the temporary power box before unpacking. If so, the Bluetooth lock automatically unlocks according to the unlocking instruction received. If not, the Bluetooth lock does not automatically unlock. After closing the temporary power box, including: Determine whether the cloud receives the photo of the temporary power box after the box is closed. If not, it is determined that the box is not compliant this time; if so, it is determined that the box is compliant this time; Among them, the various information of the temporary power box includes: various equipment parameters of the temporary power box, various information of the temporary power box, static properties of the temporary power box, dynamic properties of the temporary power box and information of the control device supporting the temporary power box; the information of the control device supporting the temporary power box includes: the Bluetooth address of the Bluetooth lock and the manufacturer, model and specifications of the Bluetooth lock, the Bluetooth address of the Bluetooth micro-break and the manufacturer, model and specifications; When providing corresponding operation permissions, it includes: Scan the QR code on the temporary power box body through the handheld terminal to enter the control program platform, and bind the current WeChat account with the control program platform account. After the binding is completed, scan the QR code on the temporary power box body through WeChat to directly enter the control interface of the control program platform; When authentication and authorization is performed through the cloud, it includes: Submitting a power distribution task application to the cloud through the handheld terminal, and providing corresponding operation permissions after the cloud passes the review; Alternatively, the power distribution task is sent to the handheld terminal through the cloud, and corresponding operation permissions are provided; When providing corresponding operation permissions, there are two authorization modes: active application authorization mode and administrator authorization mode; When the authorization mode is the active application authorization mode, the operator submits a power distribution task application to the cloud through the handheld terminal, and after the application, the power distribution task will be sent to the administrator for review; When the authorization mode is the administrator authorization mode, the administrator assigns the power distribution task to the operator through the cloud, and the operator automatically has the right to unlock the box; In the active application authorization mode, there are two levels of isolation: tenant isolation and construction site isolation. The current operator belongs to a specific tenant. Each construction site is equipped with multiple designated temporary power boxes and designated operators. The operators can only operate the temporary power boxes of their construction sites. Different tenants are managed separately, and different construction sites are also managed separately. When operating the temporary power box according to the selected power distribution task, it includes: Determine whether the cloud receives photos of the temporary power box before and after the operation; If not, the operation is deemed to be non-compliant; If yes, then judging whether there is any discrepancy between the operation and the selected power distribution task based on the photos before and after the temporary power box operation, if yes, then judging that the operation is not compliant, if no, then judging that the operation is compliant; When judging whether there is a discrepancy between the current operation and the selected power distribution task, it includes: Establish a temporary power box image database and classify and store temporary power box images according to different power distribution tasks; Obtaining photos of the temporary power box before operation, and performing preprocessing to obtain preprocessed photos before operation; Extracting features from the pre-processed photos before the operation to obtain feature data before the operation; According to the selected power distribution task, a standard image before operation of the same power distribution task is retrieved from the temporary power box image database, and the feature data before the operation is compared with the feature data of the standard image before the operation to obtain the similarity between the photo before the temporary power box operation and the standard image before the operation; If the similarity is greater than or equal to the similarity threshold, obtaining a photo after the temporary power box is operated for similarity comparison; If the similarity is less than the similarity threshold, it is considered that the operation is inconsistent with the selected power distribution task.

2. The method for controlling a temporary power box based on a Bluetooth lock according to claim 1 is characterized in that: When obtaining photos after the temporary power box is operated for similarity comparison, it includes: Preprocessing the photos after the temporary power box is operated to obtain preprocessed photos after operation; Extracting features from the pre-processed photos to obtain feature data; According to the selected power distribution task, a standard image after operation of the same power distribution task is retrieved from the temporary power box image database, and the feature data after the operation is compared with the feature data of the standard image after the operation to obtain the similarity between the photo after the temporary power box operation and the standard image after the operation; If the similarity is greater than or equal to the similarity threshold, it is considered that there is no discrepancy between the current operation and the selected power distribution task; If the similarity is less than the similarity threshold, it is considered that the operation is inconsistent with the selected power distribution task.

3. The method for controlling a temporary power box based on a Bluetooth lock according to claim 1 or 2, characterized in that: During preprocessing, include: Analyze the uploaded photos before and after the temporary power box operation to remove the influence of light and shadow during the acquisition process, and crop the photos before and after the temporary power box operation to remove invalid edge areas to obtain pre-processed photos before and after the operation; When performing feature extraction, it includes: Detecting and tracking the pre-processed photos before and after the operation to obtain accurate image feature point locations; Interpolating according to the precise image feature point positions to obtain positions of other selected image feature points, and performing normalization processing; Get the Gabor feature of image feature point u The Gabor features of all image feature points are combined into an image feature point dataset, as shown in Formula 1: Where M is the number of selected image feature points.

4. The method for controlling a temporary power box based on a Bluetooth lock according to claim 3 is characterized in that: When obtaining similarity, include: According to the selected power distribution task, a feature template library of standard images before and after the corresponding operation is selected in the temporary power box image database. Select a feature template from the feature template library The details are shown in Formula 2: In the formula, Z is the number of selected feature templates, and u is the number of image feature points; The similarity between the photos before and after the temporary power box operation and the feature template is obtained, as shown in Formula 3: Wherein, M is the number of image feature points selected from the photos before and after the temporary power box is operated; The largest one is taken as the similarity between the photos before and after the temporary power box operation and the standard images before and after the operation, as shown in Formula 4:

5. The method for controlling a temporary power box based on a Bluetooth lock according to claim 1 is characterized in that: When the Bluetooth lock is powered on, the following steps are performed: The power-on time of the Bluetooth lock is recorded, and it is determined whether any operation instruction is received before the power-on time is greater than a preset time. If not, the Bluetooth lock automatically enters a standby state.

6. The method for controlling a temporary power box based on a Bluetooth lock according to claim 5 is characterized in that: When recording the power-on time of the Bluetooth lock, it includes: The power-on detector is triggered to send a high-level signal. After the Bluetooth lock receives the high-level signal, it is determined whether the duration of the high-level signal is greater than the threshold time of receiving the electrical signal. If so, the power-on time of the Bluetooth lock is accumulated; When the Bluetooth lock automatically enters the standby state, including The power-on detector is triggered to send a low-level signal. After the Bluetooth lock receives the low-level signal, it is determined whether the duration of the low-level signal is greater than the threshold time for receiving the electrical signal. If so, the power-off time is recorded and the accumulation of the power-on time is stopped.

7. The method for controlling a temporary power box based on a Bluetooth lock according to claim 1 is characterized in that: When a power distribution task application is issued through the handheld terminal and reviewed in the cloud, it includes: Acquire the operator information contained in the power distribution task application, obtain the tenant to which the operator belongs according to the operator information, further obtain information of multiple construction sites owned by the tenant, and determine the construction site to which the operator belongs according to the information of multiple construction sites; Obtain the construction site where the temporary power box is located in the power distribution task application, and determine whether it is the construction site to which the operator belongs. If so, the application is approved.