Pumped storage infrastructure project positioning tag testing method, device and computer equipment
By using the positioning tag test method in pumped storage infrastructure projects, by waking up and testing the positioning tag, the problem of insufficient reliability of positioning tag testing in traditional technology is solved, the security control of the positioning tag is realized, and the test reliability is improved. , ensuring the safety of workers.
Patent Information
- Application Number
- CN202410481414.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-22
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-04-22
AI Technical Summary
Traditional technology lacks complete safety control in the process of testing positioning tags, resulting in low reliability of positioning tag testing and inability to effectively protect the life safety of workers working in pumped hydro energy storage infrastructure.
Provides a positioning tag testing method for pumped storage infrastructure projects. By waking up the positioning tag, detecting its status, establishing a communication connection between the configuration tool and the positioning tag, testing the broadcast packet data according to the preset rules, recording the test results, and when the test is normal Set it to factory status to ensure the safety and reliability of the test.
The testing safety of positioning tags is controlled through a dedicated configuration tool, which significantly improves the testing reliability of positioning tags and ensures the safety of workers working in pumped hydro energy storage infrastructure.
Smart Images

Figure CN118068263B
Abstract
Description
Technical Field
[0001] The present application relates to the field of testing technology, and in particular to a method, device, computer equipment, storage medium and computer program product for testing positioning tags for pumped storage infrastructure projects. Background Art
[0002] Pumped-storage infrastructure workers need to wear different safety equipment to ensure their personal safety when they are in different working environments. Due to the complex and harsh geographical environment of pumped-storage, in order to further ensure the life safety of pumped-storage infrastructure workers, traditional technology often requires pumped-storage infrastructure workers to carry positioning tags to locate and sense the workers at the pumped-storage infrastructure site.
[0003] In order to ensure that the positioning tags are stable and reliable, traditional technologies often test the positioning tags; however, in the process of testing the positioning tags, traditional technologies lack complete test safety control over the positioning tags, resulting in low reliability of the positioning tag testing. Summary of the invention
[0004] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for testing positioning tags for pumped-storage infrastructure projects, which can improve the efficiency and reliability of positioning tag testing in response to the above-mentioned technical problems.
[0005] In a first aspect, the present application provides a method for testing a positioning tag of a pumped-storage infrastructure project, which is applied to a configuration tool for a positioning tag, wherein the positioning tag is used to locate a target at a pumped-storage infrastructure project site, and the method comprises:
[0006] Implementing a wake-up operation on the positioning tag to control the positioning tag to switch from a sleep mode to a wake-up mode;
[0007] When the positioning tag is in the wake-up mode and it is detected that the positioning tag is in a non-factory state, determining that the positioning tag is in a connectable working mode, and establishing a communication connection between the configuration tool and the positioning tag within a preset connection time;
[0008] When a communication connection is successfully established with the positioning tag, a broadcast packet sent by the positioning tag is received, and data of each position of the broadcast packet is tested according to a preset test rule, and the test result of the positioning tag is recorded;
[0009] When the test result indicates that the positioning tag is tested normally, the positioning tag is set to a factory state and the test is ended, so that the positioning tag is in a non-connectable working mode.
[0010] In one embodiment, the step of testing the data at each position of the broadcast packet according to a preset test rule and recording the test result of the positioning tag includes:
[0011] Parsing the data of each position of the broadcast packet to obtain the battery power information, tag identification information, signal strength information, and data format information of the positioning tag;
[0012] Performing a random number read and write test on the storage unit of the positioning tag to obtain a storage unit test result;
[0013] When the battery power information, the tag identification information, the signal strength information, the data format information, and the storage unit test result all meet corresponding test pass conditions, the test result of the positioning tag is recorded as normal.
[0014] In one embodiment, the method further comprises:
[0015] When the positioning tag is in a factory state and in a non-connectable working mode, performing a working mode switching operation on the positioning tag to control the positioning tag to switch from the non-connectable working mode to the connectable working mode;
[0016] When the positioning tag is in the connectable working mode, establishing a communication connection between the configuration tool and the positioning tag within a preset connection time;
[0017] When the communication connection with the positioning tag is successfully established, user data matching the positioning tag is written, and the communication connection with the positioning tag is disconnected, so that the positioning tag is in a non-connectable working mode.
[0018] In one embodiment, the method further comprises:
[0019] Reading the factory status data bit in the storage unit of the positioning tag;
[0020] When it is detected that the factory state data bit in the storage unit has no data written therein, it is determined that the positioning tag is in a non-factory state.
[0021] In one embodiment, setting the positioning tag to a factory state includes:
[0022] A factory state setting instruction is sent to the positioning tag; the factory state setting instruction is used to instruct the positioning tag to write target data in the factory state data bit; the target data is used to indicate that the positioning tag is in the factory state.
[0023] In one embodiment, the step of testing the data at each position of the broadcast packet according to a preset test rule and recording the test result of the positioning tag includes:
[0024] The communication connection with the positioning tag is disconnected to put the positioning tag into the sleep mode.
[0025] In a second aspect, the present application further provides a pumped storage infrastructure project positioning tag testing device, which is applied to a configuration tool for a positioning tag, wherein the positioning tag is used to locate a target at a pumped storage infrastructure project site, including:
[0026] An activation module, used to implement a wake-up operation on the positioning tag, and control the positioning tag to switch from a sleep mode to a wake-up mode;
[0027] A connection module, used for determining that the positioning tag is in a connectable broadcast state and establishing a communication connection between the configuration tool and the positioning tag when the positioning tag is in the wake-up mode and the positioning tag is detected to be in a non-factory state;
[0028] A test module, used for receiving the broadcast signal packet sent by the positioning tag when the configuration tool successfully establishes a communication connection with the positioning tag, testing the data of each position of the broadcast signal packet according to a preset data test rule, and recording the test result of the positioning tag;
[0029] The setting module is used to set the positioning tag to a factory state and end the test when the test result indicates that the positioning tag is tested normally, so that the positioning tag is in a state of not connecting to broadcast.
[0030] In a third aspect, the present application further provides a computer device, which is applied to a configuration tool for a positioning tag, wherein the positioning tag is used to locate a target at a pumped storage infrastructure construction site, and includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0031] Implementing a wake-up operation on the positioning tag to control the positioning tag to switch from a sleep mode to a wake-up mode;
[0032] When the positioning tag is in the wake-up mode and it is detected that the positioning tag is in a non-factory state, determining that the positioning tag is in a connectable working mode, and establishing a communication connection between the configuration tool and the positioning tag within a preset connection time;
[0033] When a communication connection is successfully established with the positioning tag, a broadcast packet sent by the positioning tag is received, and data of each position of the broadcast packet is tested according to a preset test rule, and the test result of the positioning tag is recorded;
[0034] When the test result indicates that the positioning tag is tested normally, the positioning tag is set to a factory state and the test is ended, so that the positioning tag is in a non-connectable working mode.
[0035] In a fourth aspect, the present application further provides a computer-readable storage medium, which is applied to a configuration tool for a positioning tag, wherein the positioning tag is used to locate a target at a pumped storage infrastructure project site, and a computer program is stored thereon, and when the computer program is executed by a processor, the following steps are implemented:
[0036] Implementing a wake-up operation on the positioning tag to control the positioning tag to switch from a sleep mode to a wake-up mode;
[0037] When the positioning tag is in the wake-up mode and it is detected that the positioning tag is in a non-factory state, determining that the positioning tag is in a connectable working mode, and establishing a communication connection between the configuration tool and the positioning tag within a preset connection time;
[0038] When a communication connection is successfully established with the positioning tag, a broadcast packet sent by the positioning tag is received, and data of each position of the broadcast packet is tested according to a preset test rule, and the test result of the positioning tag is recorded;
[0039] When the test result indicates that the positioning tag is tested normally, the positioning tag is set to a factory state and the test is ended, so that the positioning tag is in a non-connectable working mode.
[0040] In a fifth aspect, the present application further provides a computer program product, which is applied to a configuration tool for a positioning tag, wherein the positioning tag is used to locate a target at a pumped storage infrastructure project site, including a computer program, which, when executed by a processor, implements the following steps:
[0041] Implementing a wake-up operation on the positioning tag to control the positioning tag to switch from a sleep mode to a wake-up mode;
[0042] When the positioning tag is in the wake-up mode and it is detected that the positioning tag is in a non-factory state, determining that the positioning tag is in a connectable working mode, and establishing a communication connection between the configuration tool and the positioning tag within a preset connection time;
[0043] When a communication connection is successfully established with the positioning tag, a broadcast packet sent by the positioning tag is received, and data of each position of the broadcast packet is tested according to a preset test rule, and the test result of the positioning tag is recorded;
[0044] When the test result indicates that the positioning tag is tested normally, the positioning tag is set to a factory state and the test is ended, so that the positioning tag is in a non-connectable working mode.
[0045] The above-mentioned pumped-storage infrastructure project positioning tag testing method, device, computer equipment, storage medium and computer program product are applied to a configuration tool for a positioning tag, wherein the positioning tag is used to locate a target at a pumped-storage infrastructure project site, and the positioning tag is controlled to switch from a sleep mode to a wake-up mode by performing a wake-up operation on the positioning tag; when the positioning tag is in the wake-up mode and it is detected that the positioning tag is in a non-factory state, the positioning tag is determined to be in a connectable working mode, and a communication connection is established between the configuration tool and the positioning tag within a preset connection time; when a communication connection is successfully established with the positioning tag, a broadcast packet sent by the positioning tag is received, and according to a preset test rule, the data of each position of the broadcast packet is tested, and the test result of the positioning tag is recorded; when the test result indicates that the positioning tag test is normal, the positioning tag is set to the factory state and the test is ended, so that the positioning tag is in a non-connectable working mode; in this way, the positioning tag is tested for safety management through a dedicated configuration tool, thereby effectively improving the test reliability of the positioning tag. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 An application environment diagram of a method for testing a location tag for an infrastructure project in an embodiment;
[0048] Figure 2 A schematic diagram of a flow chart of a method for testing a construction project positioning tag in one embodiment;
[0049] Figure 3 A schematic diagram of a flow chart of a method for testing a construction project positioning tag in another embodiment;
[0050] Figure 4 It is a structural block diagram of a construction project positioning tag testing device in one embodiment;
[0051] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0053] The present application provides a method for testing a pumped storage infrastructure project positioning tag, which can be applied to Figure 1 In the application environment shown. Among them, the positioning tag uses a dedicated chip as the main control, is powered by a button battery, supports debugging serial port and RTC, supports Bluetooth communication, beacon broadcast (beacon is a broadcast protocol based on low-power Bluetooth protocol), built-in ultra-high frequency RFID (Radio Frequency Identification) tag, built-in reed switch, i.e. magnetic reed switch. The configuration tool implements a wake-up operation on the positioning tag, and controls the positioning tag to switch from sleep mode to wake-up mode; when the positioning tag is in wake-up mode and detects that the positioning tag is in a non-factory state, the configuration tool determines that the positioning tag is in a connectable working mode, and establishes a communication connection between the configuration tool and the positioning tag within a preset connection time; when the configuration tool successfully establishes a communication connection with the positioning tag, it receives the broadcast packet sent by the positioning tag, and tests the data of each position of the broadcast packet according to the preset test rules, and records the test results of the positioning tag; when the test results indicate that the positioning tag test is normal, the configuration tool sets the positioning tag to the factory state and ends the test, so that the positioning tag is in a non-connectable working mode. In practical applications, the configuration tool may refer to a device used to test and configure the positioning tag.
[0054] In an exemplary embodiment, Figure 2 As shown, a method for testing positioning tags for pumped storage infrastructure projects is provided. Figure 1 The configuration tool in is taken as an example to illustrate, including the following steps 202 to 206. Among them:
[0055] Step 202: Perform a wake-up operation on the positioning tag to control the positioning tag to switch from a sleep mode to a wake-up mode.
[0056] Among them, the positioning tag can support ultra-high frequency RFID tags and can send broadcast messages at regular intervals. The broadcast messages can carry their own ID and battery power information, etc. The positioning tag has a built-in reed switch, which can be operated to enter the configuration mode and support parameter configuration via Bluetooth. The ID, personnel name, team and other information can be configured.
[0057] In a specific implementation, the configuration tool can implement a wake-up operation on the positioning tag, and control the positioning tag to switch from sleep mode to wake-up mode. In actual applications, the configuration tool is provided with an electromagnet. The configuration tool can apply a magnetic field with a certain regular change to the reed switch built into the positioning tag by controlling the opening or closing of the electromagnet, as well as the magnetic field direction and magnetic field strength of the electromagnet, so as to trigger the connection or disconnection of the reed switch built into the positioning tag. The positioning tag can record the connection or disconnection of the reed switch switch within a preset time, and obtain the reed switch trigger sequence within the preset time. When the positioning tag detects that the reed switch trigger sequence satisfies the activation of the wake-up mode, such as, the coding information corresponding to the reed switch trigger sequence is consistent with the preset first coding information, the positioning tag can switch from sleep mode to wake-up mode.
[0058] Step 204, when the positioning tag is in the wake-up mode and it is detected that the positioning tag is not in the factory state, it is determined that the positioning tag is in the connectable working mode, and a communication connection is established between the configuration tool and the positioning tag within a preset connection time.
[0059] In a specific implementation, when the positioning tag is in wake-up mode and detects that the positioning tag is in a non-factory state, the configuration tool can determine that the positioning tag is in a connectable working mode and establish a communication connection between the configuration tool and the positioning tag within a preset connection time.
[0060] Step 206, when a communication connection is successfully established with the positioning tag, a broadcast packet sent by the positioning tag is received, and data of each position of the broadcast packet is tested according to a preset test rule, and the test result of the positioning tag is recorded.
[0061] In a specific implementation, when a communication connection is successfully established with the positioning tag, the configuration tool receives the broadcast packet sent by the positioning tag, and tests the data of each position of the broadcast packet according to preset test rules, and the configuration tool records the test results of the positioning tag.
[0062] Step 208: When the test result indicates that the positioning tag is tested normally, the positioning tag is set to a factory state and the test is terminated, so that the positioning tag is in a non-connectable working mode.
[0063] In a specific implementation, when the test result indicates that the positioning tag test is normal, the configuration tool sets the positioning tag to the factory state and ends the test, so that the positioning tag is in a non-connectable working mode.
[0064] The above-mentioned method for testing the positioning tag of the pumped-storage infrastructure project controls the positioning tag to switch from the sleep mode to the wake-up mode by performing a wake-up operation on the positioning tag; when the positioning tag is in the wake-up mode and it is detected that the positioning tag is in a non-factory state, it is determined that the positioning tag is in a connectable working mode, and a communication connection is established between the configuration tool and the positioning tag within a preset connection time; when a communication connection is successfully established with the positioning tag, a broadcast packet sent by the positioning tag is received, and according to preset test rules, the data of each position of the broadcast packet is tested, and the test result of the positioning tag is recorded; when the test result indicates that the positioning tag test is normal, the positioning tag is set to the factory state and the test is ended, so that the positioning tag is in a non-connectable working mode; in this way, the positioning tag is tested for safety management through a dedicated configuration tool, thereby effectively improving the test reliability of the positioning tag.
[0065] In one of the embodiments, the data at each position of the broadcast packet is tested according to preset test rules, and the test result of the positioning tag is recorded, including: parsing the data at each position of the broadcast packet to obtain the battery power information, tag identification information, signal strength information, and data format information of the positioning tag; performing random number read and write tests on the storage unit of the positioning tag to obtain the storage unit test result; when the battery power information, tag identification information, signal strength information, data format information, and storage unit test result all meet the corresponding test pass conditions, the test result of the positioning tag is recorded as the test is normal.
[0066] In a specific implementation, the configuration tool tests the data at each location of the broadcast packet according to the preset test rules. In the process of recording the test results of the positioning tag, the configuration tool can parse the data at each location of the broadcast packet to obtain the battery power information, tag identification information, signal strength information, and data format information of the positioning tag; perform random number read and write tests on the storage unit of the positioning tag to obtain the storage unit test results; if the battery power information, tag identification information, signal strength information, data format information, and storage unit test results all meet the corresponding test pass conditions, the test results of the positioning tag are recorded as normal. For example, the configuration tool can determine whether the battery power information of the positioning tag is greater than the preset power, whether the tag identification information matches, whether the data format information is normal, and whether the signal strength information is normal; if the battery power information, tag identification information, signal strength information, data format information, and storage unit test results of the positioning tag are all normal, the configuration tool can record the test results of the positioning tag as normal.
[0067] In one of the embodiments, the data of each position of the broadcast packet is tested according to a preset test rule, and the test result of the positioning tag is recorded, including: disconnecting the communication connection with the positioning tag to put the positioning tag into a sleep mode.
[0068] The technical solution of this embodiment controls the positioning tag to switch from the sleep mode to the wake-up mode by performing a wake-up operation on the positioning tag; when the positioning tag is in the wake-up mode and it is detected that the positioning tag is in a non-factory state, it is determined that the positioning tag is in a connectable working mode, and a communication connection is established between the configuration tool and the positioning tag within a preset connection time; when a communication connection is successfully established with the positioning tag, a broadcast packet sent by the positioning tag is received, and according to preset test rules, the data of each position of the broadcast packet is tested, and the test result of the positioning tag is recorded; when the test result indicates that the positioning tag test is normal, the positioning tag is set to the factory state and the test is ended, so that the positioning tag is in a non-connectable working mode; in this way, the positioning tag is tested for test security through a dedicated configuration tool, thereby effectively improving the test reliability of the positioning tag.
[0069] In one of the embodiments, the method also includes: when the positioning tag is in a factory state and the positioning tag is in a non-connectable working mode, performing a working mode switching operation on the positioning tag to control the positioning tag to switch from the non-connectable working mode to the connectable working mode; when the positioning tag is in the connectable working mode, establishing a communication connection between the configuration tool and the positioning tag within a preset connection time; when the communication connection with the positioning tag is successfully established, writing user data matching the positioning tag, and disconnecting the communication connection with the positioning tag to put the positioning tag in a non-connectable working mode.
[0070] In a specific implementation, when the positioning tag is in a factory state and in a non-connectable working mode, the configuration tool can implement a working mode switching operation on the positioning tag to control the positioning tag to switch from the non-connectable working mode to the connectable working mode.
[0071] In actual applications, the configuration tool is provided with an electromagnet. The configuration tool can apply a magnetic field with a certain regular change to the reed switch built into the positioning tag by controlling the opening or closing of the electromagnet, as well as the magnetic field direction and magnetic field strength of the electromagnet, so as to trigger the connection or disconnection of the reed switch built into the positioning tag. The positioning tag can record the connection or disconnection of the reed switch switch within a preset time, and obtain the reed switch trigger sequence within the preset time. When the positioning tag detects that the reed switch trigger sequence satisfies the positioning tag switching to the connectable working mode, for example, the coding information corresponding to the reed switch trigger sequence is consistent with the preset second coding information, the positioning tag can switch from the non-connectable working mode to the connectable working mode.
[0072] When the positioning tag is in a connectable working mode, the configuration tool can establish a communication connection between the configuration tool and the positioning tag within a preset connection time; when a communication connection is successfully established with the positioning tag, the configuration tool can write user data that matches the positioning tag and disconnect the communication connection with the positioning tag to put the positioning tag in a non-connectable working mode.
[0073] Specifically, the configuration tool can set the positioning tag to the factory state, including: sending a factory state setting instruction to the positioning tag; the factory state setting instruction is used to instruct the positioning tag to write target data in the factory state data bit; the target data is used to represent that the positioning tag is in the factory state.
[0074] In one embodiment, the method further includes: reading a factory status data bit in a storage unit of the positioning tag; and determining that the positioning tag is in a non-factory state when detecting that the factory status data bit in the storage unit has no data written therein.
[0075] The technical solution of this embodiment can realize the test security management and control of the positioning tag through a dedicated configuration tool, thereby effectively improving the test reliability of the positioning tag.
[0076] Figure 3 is a flow chart of another method for testing a positioning tag for a pumped storage infrastructure project according to an exemplary embodiment. Figure 3 As shown, the method includes the following steps.
[0077] First, when the positioning tag is in a sleep mode, a wake-up operation is performed on the positioning tag to control the positioning tag to switch from the sleep mode to the wake-up mode.
[0078] Then, it is detected whether the factory status data bit in the storage unit (EEPROM, Electrically Erasable Programmable read only memory) of the positioning tag has been written with data.
[0079] Then, the factory state data bit in the storage unit of the positioning tag has not been written with data, and the positioning tag enters the connectable working mode.
[0080] Then, the configuration tool can establish a communication connection with the positioning tag within a preset time (eg, 20 seconds).
[0081] Then, when a communication connection is successfully established with the positioning tag, the configuration tool can test the data of each position of the broadcast packet and record the test result of the positioning tag.
[0082] Then, when the test result indicates that the positioning tag is tested normally, a factory state setting instruction is sent to the positioning tag; the factory state setting instruction is used to instruct the positioning tag to write data in the factory state data bit to set the positioning tag to the factory state.
[0083] Then, when the positioning tag is in the factory state and in the non-connectable working mode, the working mode switching operation is performed on the positioning tag to control the positioning tag to switch from the non-connectable working mode to the connectable working mode.
[0084] Then, when the positioning tag is in a connectable working mode, a communication connection between the configuration tool and the positioning tag is established within a preset connection time.
[0085] Finally, when a communication connection is successfully established with the positioning tag, user data matching the positioning tag is written, and the communication connection with the positioning tag is disconnected, so that the positioning tag is in a non-connectable working mode.
[0086] It should be noted that the specific limitations of the above steps can be found in the specific limitations of a pumped-storage infrastructure project positioning tag testing method mentioned above, which will not be repeated here.
[0087] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0088] Based on the same inventive concept, the embodiment of the present application also provides a pumped-storage infrastructure project positioning tag testing device for implementing the above-mentioned pumped-storage infrastructure project positioning tag testing method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in one or more embodiments of the pumped-storage infrastructure project positioning tag testing device provided below can be referred to the above limitations on the pumped-storage infrastructure project positioning tag testing method, and will not be repeated here.
[0089] In an exemplary embodiment, Figure 4 As shown, a pumped storage infrastructure project positioning tag testing device is provided, which is applied to a configuration tool for a positioning tag, wherein the positioning tag is used to locate a target at a pumped storage infrastructure project site, including:
[0090] An activation module 410 is used to implement a wake-up operation on the positioning tag, and control the positioning tag to switch from a sleep mode to a wake-up mode;
[0091] The connection module 420 is used to determine that the positioning tag is in a connectable broadcast state and establish a communication connection between the configuration tool and the positioning tag when the positioning tag is in the wake-up mode and detects that the positioning tag is in a non-factory state;
[0092] The testing module 430 is used to receive the broadcast signal packet sent by the positioning tag when the configuration tool successfully establishes a communication connection with the positioning tag, and test the data of each position of the broadcast signal packet according to a preset data testing rule, and record the test result of the positioning tag;
[0093] The setting module 440 is used to set the positioning tag to a factory state and end the test when the test result indicates that the positioning tag is tested normally, so that the positioning tag is in a state of not connecting to broadcast.
[0094] In one of the embodiments, the test module 430 is specifically used to parse the data at each position of the broadcast packet to obtain the battery power information, tag identification information, signal strength information, and data format information of the positioning tag; perform a random number read and write test on the storage unit of the positioning tag to obtain a storage unit test result; and when the battery power information, the tag identification information, the signal strength information, the data format information, and the storage unit test result all meet corresponding test pass conditions, record the test result of the positioning tag as a normal test.
[0095] In one of the embodiments, the device is also used to perform a working mode switching operation on the positioning tag when the positioning tag is in a factory state and the positioning tag is in a non-connectable working mode, controlling the positioning tag to switch from a non-connectable working mode to a connectable working mode; when the positioning tag is in the connectable working mode, establishing a communication connection between the configuration tool and the positioning tag within a preset connection time; when a communication connection is successfully established with the positioning tag, writing user data matching the positioning tag, and disconnecting the communication connection with the positioning tag, so that the positioning tag is in a non-connectable working mode.
[0096] In one of the embodiments, the device is further used to read the factory status data bit in the storage unit of the positioning tag; when it is detected that the factory status data bit in the storage unit has no data written, it is determined that the positioning tag is in a non-factory state.
[0097] In one of the embodiments, the device is further used to send a factory state setting instruction to the positioning tag; the factory state setting instruction is used to instruct the positioning tag to write target data in the factory state data bit; the target data is used to indicate that the positioning tag is in the factory state.
[0098] In one of the embodiments, the device is further used to disconnect the communication connection with the positioning tag so that the positioning tag is in the sleep mode.
[0099] Each module in the above-mentioned pumped storage infrastructure project positioning tag testing device can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0100] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 5 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for testing a positioning tag for a pumped storage infrastructure project is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0101] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0102] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above-mentioned method for testing a positioning tag of a pumped-storage infrastructure project. The steps of the method for testing a positioning tag of a pumped-storage infrastructure project here may be the steps of the method for testing a positioning tag of a pumped-storage infrastructure project in each of the above-mentioned embodiments.
[0103] In one embodiment, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the processor executes the steps of the above-mentioned method for testing a positioning tag of a pumped-storage infrastructure project. The steps of the method for testing a positioning tag of a pumped-storage infrastructure project here can be the steps of the method for testing a positioning tag of a pumped-storage infrastructure project in each of the above-mentioned embodiments.
[0104] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the processor executes the steps of the above-mentioned method for testing a location tag of a pumped-storage infrastructure project. The steps of the method for testing a location tag of a pumped-storage infrastructure project here can be the steps of the method for testing a location tag of a pumped-storage infrastructure project in each of the above-mentioned embodiments.
[0105] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0106] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0107] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0108] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for testing positioning tags for pumped storage infrastructure projects. It is characterized in that A configuration tool for a positioning tag, the positioning tag is used to locate a target at a pumped storage infrastructure project site, the positioning tag includes a storage unit and a reed switch, the storage unit is a powered erasable programmable read-only memory, and the method includes: Implementing a wake-up operation on the positioning tag to control the positioning tag to switch from a sleep mode to a wake-up mode, specifically comprising: switching from the sleep mode to the wake-up mode when the positioning tag detects that a reed switch trigger sequence satisfies the wake-up mode activation; the reed switch trigger sequence represents the on or off status of the reed switch recorded by the positioning tag within a preset time; When the positioning tag is in the wake-up mode and it is detected that the positioning tag is in a non-factory state, determining that the positioning tag is in a connectable working mode, and establishing a communication connection between the configuration tool and the positioning tag within a preset connection time; When a communication connection is successfully established with the positioning tag, a broadcast packet sent by the positioning tag is received, and data of each position of the broadcast packet is tested according to a preset test rule, and the test result of the positioning tag is recorded; When the test result indicates that the positioning tag test is normal, the positioning tag is set to the factory state and the test is ended to put the positioning tag in a non-connectable working mode, specifically including: sending a factory state setting instruction to the positioning tag, the factory state setting instruction is used to instruct the positioning tag to write data in the factory state data bit in the storage unit to set the positioning tag to the factory state.
2. The method according to claim 1, It is characterized in that The step of testing the data of each position of the broadcast packet according to a preset test rule and recording the test result of the positioning tag includes: Parsing the data of each position of the broadcast packet to obtain the battery power information, tag identification information, signal strength information, and data format information of the positioning tag; Performing a random number read and write test on the storage unit of the positioning tag to obtain a storage unit test result; When the battery power information, the tag identification information, the signal strength information, the data format information, and the storage unit test result all meet corresponding test pass conditions, the test result of the positioning tag is recorded as normal.
3. The method according to claim 1, It is characterized in that The method further comprises: When the positioning tag is in a factory state and in a non-connectable working mode, performing a working mode switching operation on the positioning tag to control the positioning tag to switch from the non-connectable working mode to the connectable working mode; When the positioning tag is in the connectable working mode, establishing a communication connection between the configuration tool and the positioning tag within a preset connection time; When the communication connection with the positioning tag is successfully established, user data matching the positioning tag is written, and the communication connection with the positioning tag is disconnected, so that the positioning tag is in a non-connectable working mode.
4. The method according to claim 1, It is characterized in that The method further comprises: Reading the factory status data bit in the storage unit of the positioning tag; When it is detected that the factory state data bit in the storage unit has no data written therein, it is determined that the positioning tag is in a non-factory state.
5. The method according to claim 1, It is characterized in that The step of testing the data of each position of the broadcast packet according to a preset test rule and recording the test result of the positioning tag includes: The communication connection with the positioning tag is disconnected to put the positioning tag into the sleep mode.
6. A pumped storage infrastructure project positioning tag testing device, It is characterized in that A configuration tool for a positioning tag, the positioning tag is used to locate a target at a pumped storage infrastructure project site, the positioning tag includes a storage unit and a reed switch, the storage unit is a powered erasable programmable read-only memory, and the device includes: An activation module is used to implement a wake-up operation on the positioning tag and control the positioning tag to switch from a sleep mode to a wake-up mode, specifically comprising: when the positioning tag detects that a reed switch trigger sequence satisfies the wake-up mode, switching from the sleep mode to the wake-up mode; the reed switch trigger sequence represents the on or off status of the reed switch recorded by the positioning tag within a preset time; A connection module, used for determining that the positioning tag is in a connectable broadcast state and establishing a communication connection between the configuration tool and the positioning tag when the positioning tag is in the wake-up mode and the positioning tag is detected to be in a non-factory state; A test module, used for receiving the broadcast signal packet sent by the positioning tag when the configuration tool successfully establishes a communication connection with the positioning tag, testing the data of each position of the broadcast signal packet according to a preset data test rule, and recording the test result of the positioning tag; The setting module is used to set the positioning tag to the factory state and end the test when the test result indicates that the positioning tag test is normal, so that the positioning tag is in a non-broadcast state, specifically including: sending a factory state setting instruction to the positioning tag, the factory state setting instruction is used to instruct the positioning tag to write data in the factory state data bit in the storage unit, so as to set the positioning tag to the factory state.
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
9. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
