Method for positioning operation tool used by electrician and tool bag
By using tags and quantum key encryption to generate tool encoding in the electrical tool bag, and combining environmental risk models, the inaccurate positioning and insufficient safety of electrical tools in complex environments are solved, and accurate and safe tool positioning and risk warnings are achieved.
Patent Information
- Application Number
- CN202510321339.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2025-07-29
AI Technical Summary
In the prior art, electrician tools are difficult to accurately locate in complex environments, and there is a lack of comprehensive consideration of the use scenarios and environmental risks of the operating tool, resulting in inaccurate positioning and insufficient safety.
The tag and quantum key are used to fusion through hash function encryption to generate tool encoding, and combined with environmental risk model, the three-dimensional position and risk warning of the tool bag are calculated to provide accurate and safe positioning information.
It improves the accuracy of tool positioning, can accurately locate tools in complex environments, and provides risk warnings, reduces the probability of accidents and ensures operational safety.
Smart Images

Figure CN120387470A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of live working, and in particular to a positioning method for operating tools used by electricians and a tool bag. Background Art
[0002] The statements in this section merely provide background technical information related to the present invention and do not necessarily constitute prior art.
[0003] In the daily work of electricians, various operating tools are often required for operations, such as electric screwdrivers, pliers, electric wrenches, electric cutters, voltage detectors, conductive wire strippers, insulating binding wires, parallel groove clamps, etc. In complex working environments, such as large factory workshops, construction sites, etc., operating tools are prone to being lost, misplaced, difficult to find the tool bag in the first place or difficult to quickly find the desired operating tool. These actual situations all cause electricians to spend a lot of time looking for operating tools, reducing work efficiency.
[0004] There are some tool bags with positioning functions in the prior art, but they are difficult to solve the actual existing difficulties. For example, the prior art usually pastes Bluetooth positioning tags on operating tools. However, it is found in the actual use process that the positioning method of Bluetooth tags has extremely limited accuracy, and is extremely vulnerable to interference in complex environments, with unstable signals, resulting in inaccurate positioning, inability to accurately identify each tool, and being easily tampered with, with low reliability. Moreover, Bluetooth tags need to replace batteries regularly, increasing the use cost and maintenance workload. In addition, for some tool bags based on GPS positioning, although the positioning accuracy is relatively high in outdoor open environments, in indoor or blocked environments, GPS signals will be severely affected, and even unable to position, unable to meet the tool positioning requirements of electricians in indoor and complex scenarios.
[0005] In addition to the positioning accuracy problem, the tool positioning methods in the prior art usually present the tool position and basic information after simple association, lacking comprehensive consideration of the usage scenarios of operating tools and potential risks in the surrounding environment. For example, it does not consider whether the operating tool is within the influence range of dangerous equipment or whether the operating tool is in a signal interference area, etc. The prior art cannot provide comprehensive and safe positioning information for electricians. Summary of the Invention
[0006] To solve the above problems, the present invention proposes a positioning method for operating tools used by electricians and a tool bag. By encrypting and fusing tags with quantum keys to generate tool codes, and identifying the tool codes to obtain tool information, and at the same time, by introducing an environmental risk model, risk warnings can be given. On the one hand, the present invention improves the positioning accuracy, and at the same time can give comprehensive and safe positioning information.
[0007] To achieve the above object, the present invention adopts the following technical solutions:
[0008] In a first aspect, the present invention provides a method for positioning an operating tool used by an electrician, including:
[0009] Assign a unique tag to each operating tool stored in the tool bag, and encrypt and fuse the tag with the quantum key through a hash function to generate a tool code;
[0010] Read the information of the tool code and store it, calculate the three-dimensional position coordinates of the tool bag, and generate operating tool positioning information including risk prompts in combination with a pre-constructed environmental risk model and the information of the read tool code; wherein, the environmental risk model includes a risk calculation module, and the risk calculation module determines the risk source according to the three-dimensional position coordinates of the tool bag, calculates the risk source weight, and calculates the risk value of the position where the tool bag is located according to the risk source weight.
[0011] In a further technical solution, the tag includes a type tag, a specification tag, and an electrician tag to which it belongs; the type tag, the specification tag, and the electrician tag to which it belongs are encrypted and fused with the quantum key through a hash function to generate a tool code.
[0012] In a further technical solution, the specific method for generating the tool code is: use a quantum random number generator to generate a quantum random number sequence with the same length as the tag; adopt a chaotic mapping function, use the eigenvalue of the tag as the initial value of the chaotic mapping, and generate a chaotic sequence through multiple iterations of the chaotic mapping; introduce the generated quantum random number sequence and chaotic sequence into the hash function.
[0013] In a further technical solution, the chaotic mapping function is Logistic, and the specific formula is: x k+1 = μx k (1 - x k ), where μ represents the chaotic control parameter, and the generated chaotic sequence X = [x1, x2,... x n .
[0014] In a further technical solution, after introducing the quantum random number sequence and the chaotic sequence, the calculation method of encrypting and fusing with the hash function is as follows:
[0015] Among them, represents the bitwise exclusive OR operation, b represents the number of binary digits of the tag, CT, C S , C E , Q respectively represent the type tag, the specification tag, the electrician tag to which it belongs, and the quantum key, r1, r2,... r n represent the quantum random number sequence, x1, x2,... xn Represents a chaotic sequence.
[0016] In a further technical solution, the information encoded in the tool includes the type of operating tool, the specification of the operating tool, and the electrician to whom the operating tool belongs; before the operating tool is warehoused, the tool code is fixed on the surface of the operating tool by laser etching.
[0017] In a further technical solution, the environmental risk model further includes a risk source database module and a risk assessment rule module; the risk source database module is used to store risk source information, and the risk sources include high-voltage electrical equipment, flammable and explosive points, and strong electromagnetic interference equipment; the risk source information stored in the risk source database module includes the type of risk source, the location coordinates of the risk source, the risk impact range, and the risk level.
[0018] In a further technical solution, the risk assessment rule module is used to formulate rules for judging whether there is a risk at the location where the tool bag is located and the degree of risk. When the tool bag enters the risk impact range, it is judged that there is a risk, and the risk level of the location where the tool bag is located is determined according to the risk level of the risk source.
[0019] In a further technical solution, the calculation formula for the risk value is:
[0020] where R represents the risk value of the location where the tool bag is located, w i represents the weight of the i-th risk source, and R i represents the risk level of the i-th risk source.
[0021] In a second aspect, the present invention provides a tool bag, including: a tool bag body; a plurality of placement areas are provided on the tool bag body for placing operating tools;
[0022] A radio frequency identification sensor is provided inside each placement area for identifying the tool code of the operating tool; and a microprocessor is further provided on the tool bag body for calculating the three-dimensional position coordinates of the tool bag and generating operating tool positioning information including risk prompts.
[0023] Compared with the prior art, the beneficial effects of the present invention are:
[0024] 1. In the present invention, the label and the quantum key are encrypted and fused through a hash function to generate a tool code, and the unpredictability of the quantum random number sequence and the initial sensitivity of the chaotic sequence are introduced into the hash function in the present application, enhancing the security and uniqueness in the encryption and fusion process. It can prevent the tool code from being tampered with, and can meet the strict requirements for the uniqueness of the tool code in various tool management scenarios with similar appearances but different functions, and can meet the tool positioning requirements of electricians in indoor and complex scenarios.
[0025] 2. The present invention introduces an environmental risk model, and combines the three-dimensional position coordinates of the tool bag and the tool code, capable of generating operation tool positioning information including risk prompts. The environmental risk model can determine whether there is a risk at the position where the tool is located according to the three-dimensional position coordinates of the tool bag. Combining the information of the tool code can provide the electrician with operation tool positioning information including risk prompts, providing safety protection while providing tool positioning information for the electrician, and can greatly reduce the probability of accidents and ensure operation safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The accompanying drawings forming a part of the present invention are used to provide a further understanding of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation to the present invention.
[0027] Figure 1 It is a schematic flow chart of an operation tool positioning method for an electrician according to the present invention; DETAILED DESCRIPTION OF THE EMBODIMENTS
[0028] The present invention will be further described below in conjunction with the drawings and embodiments.
[0029] It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which the present invention belongs.
[0030] In the case of no conflict, the embodiments in the present invention and the features in the embodiments can be combined with each other.
[0031] Embodiment 1
[0032] This embodiment provides an operation tool positioning method for an electrician, as shown in the schematic flow chart of Figure 1 , and the specific method is as follows:
[0033] S1: Assign a unique label to each operation tool stored in the tool bag.
[0034] In step S1, the label includes but is not limited to a type label, a specification label, and an affiliated electrician label. Specifically, it can be adjusted according to the actual situation to ensure that the label can comprehensively and accurately contain the key information of the operation tool.
[0035] Type label C T Digital codes are used to represent different types of electrician operation tools. For example, "01" represents a screwdriver, "02" represents pliers, "03" represents an electric pen, "04" represents a wrench, "05" represents a multimeter, etc. That is to say, for a screwdriver, C T= 01. It can be orderly extended according to the established coding logic according to the actual situation.
[0036] Specification label C S , for a screwdriver, the numbers respectively represent specific dimension information such as the shape of the tool bit, the length and diameter of the shank. For the shape of the tool bit, "001" represents a flat-blade type, and "002" represents a Phillips type; "001-100-5" represents a screwdriver with a flat-blade tool bit, a shank length of 100 millimeters, and a diameter of 5 millimeters. Then C S = 001-100-5. For pliers, the numbers respectively represent specifications such as the shape of the jaws, the maximum opening width, and the overall length. For the shape of the jaws, "011" represents flat-nose pliers, and "012" represents long-nose pliers; "012-80-150" represents long-nose pliers with a maximum jaw opening width of 80 millimeters and an overall length of 150 millimeters.
[0037] The affiliated electrician label C E , it can be set according to the employee number system within the enterprise. Taking the enterprise's 6-digit employee work number as an example, if the employee work number is "000123", then the affiliated electrician label C E = 000123.
[0038] S2: Encrypt and fuse the label in S1 with the quantum key through a hash function to generate a tool code.
[0039] In step S2, a hash function is used to encrypt and fuse the type label, the specification label, the affiliated electrician label with the quantum key to generate a tool code. Among them, the specific method for generating the tool code is:
[0040] It is necessary to construct a new hash function, including introducing a quantum random number sequence and a chaotic sequence. The method for introducing the quantum random number sequence is: use a quantum random number generator to generate a quantum random number sequence R = [r1, r2,..., r n , where r i represents the i-th random number in the quantum random number sequence, and its value range is [0, 1]. The method for introducing the chaotic sequence is: adopt a chaotic mapping function. In this embodiment, the chaotic mapping function is the Logistic chaotic mapping function, and the specific formula is: x k+1 = μx k (1 - x k ), where μ represents the chaotic control parameter (the value is in the chaotic interval, such as μ = 4), and its initial value is x0. Use a certain characteristic value of the label as the initial value of the chaotic mapping. For example, select the numerical sum of the type label C T . Through multiple iterations of the chaotic mapping, generate a chaotic sequence X = [x1, x2,... x n .
[0041] After constructing the hash function based on the quantum random number sequence and the chaos sequence, use this hash function to encrypt and fuse the tag with the quantum key. The specific calculation method of the encryption and fusion is as follows:
[0042]
[0043] Among them, represents the bitwise XOR operation. b represents the number of binary digits of the tag, which is used to convert the product result of the quantum random number and the chaos sequence into an integer matching the tag bits for the bitwise XOR operation. C T 、C S 、C E 、Q represent the type tag, the specification tag, the affiliated electrical worker tag, and the quantum key respectively. represents rounding down x.
[0044] After the tag and the quantum key are encrypted and fused, a tool code is generated. It can be seen that the information of the tool code includes the type of the operating tool, the specification of the operating tool, and the affiliated electrical worker of the operating tool. And before the operating tool is warehoused, the tool code is fixed on the surface of the operating tool by laser etching.
[0045] In this embodiment, the unpredictability of the quantum random number sequence and the initial sensitivity of the chaos sequence are introduced into the traditional hash function, enhancing the security and uniqueness in the encryption and fusion process. It can prevent the tool code from being tampered with, and can meet the strict requirements for the uniqueness of the tool code in various scenarios where tools with similar appearances but different functions are managed, and can meet the tool positioning requirements of electrical workers in indoor and complex scenarios.
[0046] S3: Read and store the information of the tool code in S2, and calculate the three-dimensional position coordinates of the tool bag.
[0047] Set at least four UWB base stations in the environment of electrical work, and set UWB tags on the tool bag. Use the TDOA algorithm to calculate the three-dimensional position coordinates of the tool bag. Specifically:
[0048] Let the three-dimensional coordinates of the four UWB base stations be A(x1, y1, z1), B(x2, y2, z2), C(x3, y3, z3), D(x4, y4, z4) respectively, and the coordinates of the tool bag be (x, y, z).
[0049] After the UWB tag receives the signals from the four UWB base stations, record the arrival time of each signal. By calculating the time difference of arrival (TDOA) of the signals, obtain the distance difference between the tool bag and different base stations. Let the distance difference between the tool bag and UWB base stations A and B be d 12, the distance difference from base stations A and C is d 13 , the distance difference from base stations A and D is d 14 .
[0050] The distance between the tool bag and base station A The distance from base station B The distance from base station C The distance from base station D According to the definition of the distance difference, we can get: d 12 = a2 - a1;
[0051] d 13 = a3 - a1; d 14 = a4 - a1; Substitute the distance formula into the above equations to obtain the following system of equations:
[0052]
[0053] In this embodiment, the Taylor series expansion method is used for solving. First, perform Taylor series expansion on the distance formula:
[0054] For the function Perform Taylor series expansion at a certain initial estimation point (x0, y0, z0), and retain the first-order term to get:
[0055]
[0056] Among them,
[0057] Then substitute the Taylor series expansion formula into the above system of equations to obtain a system of linear equations:
[0058] a 11 (x - x0) + a 12 (y - y0) + a 13 (z - z0) = b1
[0059] a 21 (x - x0) + a 22 (y - y0) + a 23 (z - z0) = b2
[0060] a 31 (x - x0) + a 32 (y - y0) + a 33 (z - z0) = b3
[0061] Among them, the coefficient a iu and the constant term b i are calculated from the base station coordinates, the initial estimation point coordinates, and the distance difference.
[0062] Solving this linear equation system, the correction amounts (△x, △y, △z) of the position coordinates can be obtained:
[0063]
[0064] Update the estimated point coordinates:
[0065] (x1, y1, z1) = (x0 + △x, y0 + △y, z0 + △z).
[0066] Repeat the above step 1 until the change amount of the estimated point coordinates is less than a preset threshold (e.g., 10 -6 meters), and at this time, the estimated point coordinates (x1, y1, z1) are the position coordinates of the tool bag in the three-dimensional space.
[0067] S4: The environmental risk model combines the three-dimensional position coordinates of the tool bag and the information read from the tool code to generate the operation tool positioning information containing risk prompts.
[0068] In step S4, the environmental risk model is constructed in advance. The constructed environmental risk model includes a risk source database module, a risk assessment rule module, and a risk calculation module. Among them, the risk source database module is used to store risk source information. For the indoor electrician work scenario, the risk sources include high-voltage electrical equipment, flammable and explosive points, strong electromagnetic interference equipment, etc.; the risk source information stored in the risk source database module includes risk source type, risk source position coordinates, risk influence range, and risk level. For example, a high-voltage power distribution cabinet with position coordinates (x', y', z'), the risk influence range is a spherical space with a radius of 5 meters centered on it, and the risk level is set to high. The risk source database module is stored using a structured database (such as an SQL database) for easy and quick query and update of risk source information. The table structure contains fields such as risk source ID, risk source type, x coordinate, y coordinate, z coordinate, influence radius, and risk level.
[0069] The risk assessment rule module is used to formulate rules for judging whether there is a risk at the position where the tool bag is located and the degree of risk. When the tool bag enters the risk influence range, it is judged that there is a risk, and the risk level of the position where the tool bag is located is determined according to the risk level of the risk source. For high-risk sources, when the tool bag enters within 50% of its influence radius, it is determined that the tool bag is in a high-risk area; when it enters the range of 50% - 100%, it is determined to be in a medium-risk area.
[0070] The risk calculation module determines the risk source according to the three-dimensional position coordinates of the tool bag, calculates the risk source weight, and calculates the risk value of the position where the tool bag is located according to the risk source weight. The calculation formula for the risk value is:
[0071] where R represents the risk value of the location where the tool bag is located, and w i represents the weight of the i-th risk source (determined according to the type of risk source and the distance from the tool bag, the closer the distance, the higher the weight, and the weight of high-risk sources is higher than that of low-risk sources), and R i represents the risk level of the i-th risk source (high risk is 3, medium risk is 2, and low risk is 1). For example, there is a high-risk source near the tool bag, with a relatively close distance, a weight of w1 = 0.8, and a risk level of 3; there is also a low-risk source, with a relatively far distance, a weight of w2 = 0.1, and a risk level of 1. Then the risk value R = 0.8×3 + 0.1×1 = 2.5.
[0072] In summary, the specific operation tool positioning information including risk warnings is as follows: When a screwdriver in the tool bag is in an area with a risk value of 2.5, the positioning information is: "The current position coordinates of the screwdriver (tool code: [specific code]) are (x, y, z), in a medium-risk area. There is a high-voltage power distribution cabinet nearby (risk source position coordinates: (x', y', x')). Please pay attention to safety during operation."
[0073] Embodiment 2
[0074] In this embodiment, a tool bag is provided, including: a tool bag body; several placement areas are provided on the tool bag body for placing operation tools; the operation tools are pre-etched with tool codes by laser, and a radio frequency identification sensor is provided inside each placement area for identifying the tool codes of the operation tools; and a microprocessor is further provided on the tool bag body for calculating the three-dimensional position coordinates of the tool bag and generating operation tool positioning information including risk warnings. And the environmental risk model is set in the microprocessor. It should be noted that in actual applications, the above algorithms and calculation processes. Usually, calculator programming is used to implement fast processing and calculation tasks through the microprocessor, and the accurate position of the tool bag can be obtained in real time.
[0075] The above are only the preferred embodiments of the present invention and are not used to limit the present invention. For those skilled in the art, the present invention can have various changes and modifications. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
[0076] Although the specific implementation manners of the present invention are described above in conjunction with the accompanying drawings, it is not a limitation to the protection scope of the present invention. Those skilled in the art should understand that based on the technical solutions of the present invention, various modifications or deformations that can be made by those skilled in the art without creative efforts are still within the protection scope of the present invention.
Claims
1. A positioning method for operating tools used by electricians, characterized in that, Comprising: Assign a unique tag to each operating tool stored in the tool bag, and encrypt and fuse the tag with the quantum key through a hash function to generate a tool code; Read the information of the tool code and store it, calculate the three-dimensional position coordinates of the tool bag, and combine the pre-constructed environmental risk model and the information of the read tool code to generate the positioning information of the operating tool containing risk prompts; wherein, the environmental risk model includes a risk calculation module, and the risk calculation module determines the risk source according to the three-dimensional position coordinates of the tool bag, calculates the risk source weight, and calculates the risk value of the position where the tool bag is located according to the risk source weight.
2. The positioning method of an operating tool used by an electrician according to claim 1, characterized in that, The tag includes a type tag, a specification tag, and an affiliated electrician tag; the type tag, the specification tag, and the affiliated electrician tag are encrypted and fused with the quantum key by using a hash function to generate a tool code.
3. The positioning method of an operating tool used by an electrician according to claim 2, characterized in that, The specific method for generating the tool code is as follows: use a quantum random number generator to generate a quantum random number sequence with the same length as the tag; use a chaotic mapping function, use the eigenvalue of the tag as the initial value of the chaotic mapping, and generate a chaotic sequence through multiple iterations of the chaotic mapping; introduce the generated quantum random number sequence and chaotic sequence into the hash function.
4. The positioning method of an operating tool used by an electrician according to claim 3, characterized in that, The chaotic mapping function is Logistic, and the specific formula is: x k+1 = μx k (1 - x k ), where μ represents the chaotic control parameter, and the generated chaotic sequence X = [x1, x2,... x n .
5. The positioning method of an operating tool used by an electrician according to claim 3, characterized in that, After introducing the quantum random number sequence and the chaotic sequence, the calculation method of encryption and fusion using the hash function is as follows: Among them, represents the bitwise exclusive OR operation, b represents the number of binary digits of the label, CT, C S , C E , Q respectively represent the type label, the specification label, the affiliated electrical worker label, the quantum key, r1, r2,... r n represents the quantum random number sequence, x1, x2,... x n represents the chaotic sequence.
6. The positioning method of an operating tool used by an electrician according to claim 1, characterized in that, The information of the tool code includes the type of the operating tool, the specification of the operating tool, and the electrician to whom the operating tool belongs; before the operating tool is warehoused, the tool code is fixed on the surface of the operating tool by laser etching.
7. The positioning method of an operating tool used by an electrician according to claim 1, characterized in that, The environmental risk model further includes a risk source database module and a risk assessment rule module; the risk source database module is used to store risk source information, and the risk sources include high-voltage electrical equipment, flammable and explosive points, and strong electromagnetic interference equipment; the risk source information stored in the risk source database module includes the risk source type, the risk source position coordinates, the risk influence range, and the risk level.
8. The positioning method of an operating tool used by an electrician according to claim 7, characterized in that, The risk assessment rule module is used to formulate rules for judging whether there is a risk and the degree of risk at the position where the tool bag is located. When the tool bag enters the risk influence range, it is judged that there is a risk, and the risk level of the position where the tool bag is located is determined according to the risk level of the risk source.
9. The positioning method of an operating tool used by an electrician according to claim 1, characterized in that, The calculation formula of the risk value is: where R represents the risk value of the location where the tool bag is located, w i represents the weight of the i-th risk source, and R i represents the risk level of the i-th risk source.
10. A tool bag, characterized in that, Comprising: A tool bag body; a plurality of placement areas are arranged on the tool bag body for placing operating tools; An RFID sensor is arranged inside each placement area for identifying the tool code of the operating tool; and a microprocessor is further arranged on the tool bag body for calculating the three-dimensional position coordinates of the tool bag and generating the positioning information of the operating tool containing risk prompts.