Ground wire state detection method and device, equipment, storage medium and program product
By using positioning monitors and hooking status monitors in the ground wire monitoring device, combined with Bluetooth technology, the ground wire status is solved in real time, and the problems of inefficient efficiency and insufficient real-time performance caused by relying on manual operations in the existing technology are solved, and timely confirmation of ground wire status and safe and reliable improvement of operating efficiency are achieved.
Patent Information
- Application Number
- CN202510236736.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-05-06
AI Technical Summary
In the prior art, the attachment and removal of ground wires mainly relies on manual operations, resulting in low efficiency, easy omissions, and lack of real-time performance, and the ground wire status cannot be obtained in a timely manner.
The ground wire monitoring device is adopted, including a positioning monitor and a hook state monitor, and the hook state of the ground wire is monitored and obtained in real time through Bluetooth technology, and the status information is transmitted to the power control system.
Real-time monitoring and reporting of grounding wire status is realized, line safety risks are reduced, operating efficiency is improved, and omissions and delays in manual inspections are avoided.
Smart Images

Figure CN119936733A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power line technology, and in particular to a grounding wire status detection method, device, equipment, storage medium and program product. Background Art
[0002] The grounding wire is an important component of the power line. If a fault occurs in the power equipment or line, the grounding wire can effectively conduct the fault current into the earth, which can not only reduce equipment damage but also protect the personal safety of relevant personnel.
[0003] At present, the hooking and removal of grounding wires mainly rely on manual operations, and the hooking status of grounding wires also needs to be recorded manually. Before some power tasks are carried out, the status of grounding wires needs to be confirmed in time, but the existing method relies too much on manual inspection, which is not only inefficient and prone to omissions, but also lacks real-time performance and cannot obtain the status of grounding wires in time. Summary of the invention
[0004] The embodiments of the present application provide a ground wire status detection method, device, equipment, storage medium and program product, which are used to achieve the effect of timely confirming the ground wire status.
[0005] In a first aspect, an embodiment of the present application provides a ground wire status detection method, using a ground wire monitoring device, the ground wire monitoring device including a positioning monitor and a hooking status monitor, the method comprising:
[0006] Obtaining a device identification of the positioning monitor, and associating the positioning monitor with the ground wire to be tested according to the device identification;
[0007] The hooking state monitor is set to monitor the hooking state of the grounding wire to be tested, and perform hooking and removing operations on the grounding wire to be tested;
[0008] Controlling the positioning monitor to obtain the status detection information of the ground wire to be tested from the hooking status monitor via Bluetooth;
[0009] The status detection information is transmitted to the power control system.
[0010] In a possible implementation, the ground wire to be tested includes a plurality of ground wires corresponding to different phases, the positioning monitor has a built-in Bluetooth master controller, and the hooking status monitor has a built-in Bluetooth slave controller;
[0011] The positioning monitor is configured to simultaneously establish independent Bluetooth connections with multiple hooking status monitors that monitor grounding lines of different phases through the Bluetooth main controller, and obtain the hooking status of the corresponding phase grounding line from the hooking status monitor through the Bluetooth connection.
[0012] In a possible implementation, the attachment status monitor is configured to: in response to detecting that the attachment and removal operation is completed, sense the attachment status of the ground wire to be tested; and send the attachment status to a preset Bluetooth broadcast channel;
[0013] The positioning monitor is configured to: periodically scan the Bluetooth broadcast channel, parse the scanned broadcast packets, and generate status detection information according to the parsing results.
[0014] In a possible implementation manner, transmitting the state detection information to a power control system includes:
[0015] Get the interaction topic set based on the message queue telemetry transmission protocol MQTT;
[0016] A data packet is generated according to the device identification and the status detection information and is published to the interactive topic, so that a power control system subscribing to the interactive topic can obtain the status detection information by parsing the data packet.
[0017] In a possible implementation, it further includes:
[0018] A will message is set through the MQTT proxy. When the positioning monitor has a network anomaly or a client anomaly, the will message is automatically published to the interactive topic. The will message is used to notify the power control system that the positioning monitor is in a communication interruption state.
[0019] In a possible implementation, generating a data packet according to the device identifier and the status detection information and publishing the data packet to the interaction topic includes:
[0020] Using an encryption chip to perform link encryption on the network transport layer of the data packet to generate a session key;
[0021] Performing block encryption on the plaintext data in the data packet using a preset encryption algorithm to generate ciphertext data;
[0022] The session key, the ciphertext data and the algorithm parameters are packaged in the format of the interactive topic and then published.
[0023] In a second aspect, an embodiment of the present application provides a ground wire state detection device, using a ground wire monitoring device, the ground wire monitoring device includes a positioning monitor and a hooking state monitor, and the ground wire state detection device includes:
[0024] An acquisition module, used for acquiring a device identification of the positioning monitor, and associating the positioning monitor with a ground wire to be tested according to the device identification;
[0025] An execution module, used for setting the hooking state monitor to monitor the hooking state of the ground wire to be tested, and performing a hooking and removing operation on the ground wire to be tested;
[0026] A positioning control module, used for controlling the positioning monitor to obtain the status detection information of the ground wire to be tested from the hooking status monitor via Bluetooth;
[0027] The transmission module is used to transmit the status detection information to the power control system.
[0028] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;
[0029] The memory stores computer-executable instructions;
[0030] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.
[0031] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.
[0032] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.
[0033] The grounding wire status detection method, device, equipment, storage medium and program product provided in the embodiments of the present application can identify the identity of the grounding wire by obtaining the device identification of the positioning monitor and associating it with the grounding wire, setting a hanging status monitor to monitor the hanging status of the grounding wire to be tested and performing hanging and removing operations on the grounding wire to be tested, and then controlling the positioning monitor to obtain the grounding wire status information from the hanging status monitor via Bluetooth and transmit it to the power control system. The hanging status monitor can sense the state change of the grounding wire in real time, and the hanging status monitor and the positioning monitor can communicate via pre-configured Bluetooth without adding additional wires, which can reduce the line safety risk, confirm the hanging status of the grounding wire in real time, and improve the work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0035] Figure 1 A schematic diagram of a flow chart of a ground wire status detection method provided in this application;
[0036] Figure 2 An interactive timing diagram of ground wire status detection provided exemplarily in this application;
[0037] Figure 3 A schematic diagram of Bluetooth communication provided as an example for this application;
[0038] Figure 4 A schematic diagram of a flow chart of a transmission status detection information provided as an example in this application;
[0039] Figure 5 A schematic diagram of a message queue telemetry transmission protocol application provided as an example for this application;
[0040] Figure 6 A schematic diagram of the structure of a positioning monitor provided as an example in this application;
[0041] Figure 7 A schematic diagram of the overall architecture of an embedded software system for a positioning monitor provided exemplarily in this application;
[0042] Figure 8 A schematic diagram of the structure of a ground wire status detection device provided in this application;
[0043] Fig. 9 A schematic diagram of the structure of an electronic device provided in this application.
[0044] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0045] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0046] A ground wire is a wire used in power systems and electrical equipment to connect the housing of an equipment or circuit to the earth. In power systems, ground wires help protect equipment from overcurrent and voltage fluctuations. By providing a path for fault current to be discharged, ground wires can prevent equipment from being damaged. When a fault occurs in the equipment (such as insulation damage), the ground wire can conduct the leakage current to the earth, thereby preventing people from touching live parts.
[0047] However, in actual applications, grounding wires are highly dependent on manual labor and have delayed status monitoring. In some cases, it is necessary to confirm the current status of the grounding wire before continuing the power operation based on the status of the grounding wire. If manual on-site verification is performed, it will not only be time-consuming and laborious, but may also result in errors and omissions.
[0048] The inventor proposed a technical concept that can deploy sensors and other equipment on the grounding wire to monitor in real time whether the grounding wire is in a hooked state, and summarize the status of the grounding wire that needs to be confirmed to the power control system through transmission between devices, so as to deploy the next task according to the status of the grounding wire.
[0049] However, some lines are complex in design, and it is difficult to efficiently sense and report the grounding wire status. For example, in a three-phase system (taking phases A, B, and C as an example), not only is it necessary to set a corresponding device on each of the three phases of the grounding wire to sense the grounding wire status, but it is also necessary to set an additional positioning device around the insulating operating rod. This positioning device can play a role in locating the grounding wire and summarizing the grounding wire status of the three phases, but how the positioning device can summarize the grounding wire status of each phase in a timely manner is a major problem. The inventor took into account the scenario where the grounding wire may be deployed outdoors, and connected each phase sensing device to the positioning device through a wire to transmit information such as the grounding wire status to the positioning device, but this requires three wires to be drawn from the positioning device to connect to the monitoring device at the grounding wire end. The additional connection may interfere with the original lines such as the grounding wire and the connection between the power equipment. If the original lines are relatively dense, the newly added connections are likely to cause safety risks.
[0050] The inventor therefore thought of configuring Bluetooth modules on the positioning device and the devices that monitor the grounding wires of each phase, so that the positioning device can obtain the status of the grounding wire from the device that monitors the grounding wire through Bluetooth. By configuring the relevant equipment in advance in this way, the real-time monitoring and reporting of the grounding wire status can be achieved without the need for the staff to connect the communication wires, so that the grounding wire status can be confirmed in time, improving work efficiency and reducing safety risks.
[0051] Based on this, the present application proposes a ground wire status detection method, device, equipment, storage medium and program product.
[0052] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0053] Figure 1 A schematic diagram of a grounding wire status detection method provided in this application Figure 1 ,like Figure 1As shown, the method includes:
[0054] Step S101, obtaining a device identification of a positioning monitor, and associating the positioning monitor with a ground wire to be tested according to the device identification.
[0055] The ground wire status detection method provided in the embodiment of the present application can be applied to a ground wire monitoring device, which includes a positioning monitor and a hooking status monitor.
[0056] The ground wire monitoring device can be applied to the monitoring of one or a group of ground wires. The positioning monitor can include a positioning module, a battery, a Bluetooth module, etc. The hooking status monitor can include a sensor, a battery, a Bluetooth module, etc. The sensor can be used to sense the hooking status of the ground wire.
[0057] Optionally, the hook-up status monitor can be installed at the conductor clamp of the ground wire, and the positioning monitor can be installed at the insulating operating rod.
[0058] Optionally, the battery module is a detachable structure so that the battery can be replaced when the battery of the positioning monitor and the hooking status monitor is low.
[0059] Step S102, setting a hooking state monitor to monitor the hooking state of the ground wire to be tested, and performing hooking and unhooking operations on the ground wire to be tested.
[0060] Step S103, controlling the positioning monitor to obtain the status detection information of the ground wire to be tested from the hooked status monitor via Bluetooth.
[0061] Step S104, transmitting the status detection information to the power control system.
[0062] In an embodiment of the present application, the unique identity of the positioning monitor can be confirmed in advance through the device identifier of the positioning monitor, and it can be associated with a grounding wire to be monitored in a background system, so that the system can identify the actual grounding wire corresponding to the received grounding wire status based on the association between the positioning monitor and the grounding wire.
[0063] The working principle of the ground wire status detection method in the embodiment of the present application is explained below with reference to a specific example.
[0064] Figure 2 A schematic diagram of an interactive timing involved in a ground wire status detection method provided in the present application.
[0065] For example, Figure 2As shown, first, the terminal device can be a smart phone, etc., which can send the scheduling operation to the terminal device used by relevant personnel, and determine the grounding wire involved and the grounding wire monitoring device used (including the positioning monitor and the hanging status monitor) according to the scheduling operation. By scanning the QR code and other identifications on the positioning monitor, its unique identity (such as the device ID of the positioning monitor) can be confirmed and associated with the grounding wire and synchronized to the system.
[0066] Secondly, after the equipment association is completed, the operator can hang or remove the grounding wire on site. After the hanging status monitor equipped at the grounding wire end senses the change in the state of the grounding wire (such as the grounding wire becomes hung state or becomes removed state), the hanging status monitor will first feedback the state of the grounding wire to the positioning monitor via Bluetooth, and the positioning monitor will summarize and report it to the power control system.
[0067] Finally, the power control system can display and process the grounding wire status reported by the underlying positioning monitor. If an abnormality occurs, it can also prompt relevant personnel to handle the abnormality.
[0068] In some possible implementations, the information reported by the positioning monitor may include, in addition to the ground wire status (attached or removed), positioning information (latitude, longitude, altitude, etc.), identity information such as the device ID of the positioning monitor, and the power level of the positioning monitor and the attachment status monitor.
[0069] In the above embodiment, the identity of the grounding wire can be identified by obtaining the device identification of the positioning monitor and associating it with the grounding wire, setting a hooking state monitor to monitor the hooking state of the grounding wire to be tested and performing hooking and disassembly operations on the grounding wire to be tested, and then controlling the positioning monitor to obtain the grounding wire status information from the hooking state monitor via Bluetooth and transmit it to the power control system. The hooking state monitor can sense the state changes of the grounding wire in real time, and the hooking state monitor and the positioning monitor can communicate via pre-configured Bluetooth without adding additional wires, which can reduce line safety risks, confirm the hooking state of the grounding wire in real time, and improve work efficiency.
[0070] Based on the usage scenario of the grounding wire, the hanging status monitor is installed at the conductor clamp of the grounding wire. In some cases, in order to ensure the three-phase hanging status detection, hanging status monitors need to be installed on phases A, B, and C, and the ground wire positioning monitor is installed at the insulating operating rod, so only one needs to be installed.
[0071] According to the inventive concept of this application, the hook-up status monitor and the positioning monitor can communicate via Bluetooth, but the Bluetooth device will occupy the resources of the Bluetooth chip when establishing a connection with other devices, and can generally only communicate with one device. Based on this, this application proposes a multi-point Bluetooth communication solution to achieve multi-way communication.
[0072] Figure 3 This is a schematic diagram of Bluetooth communication provided as an example in this application. Figure 3 As shown, the positioning monitor can be set to the master device mode, and multiple hooking status monitors can be set to the slave device mode. In this way, the positioning monitor can realize multi-channel communication with multiple hooking status monitors to meet the application requirements of the grounding wire monitoring device.
[0073] In one embodiment, the ground wire to be tested includes a plurality of ground wires corresponding to different phases, the positioning monitor has a built-in Bluetooth master controller, and the hook-up status monitor has a built-in Bluetooth slave controller;
[0074] The positioning monitor is configured to simultaneously establish independent Bluetooth connections with multiple hooking status monitors that monitor different phase grounding lines through a Bluetooth main controller, and obtain the hooking status of the corresponding phase grounding line from the hooking status monitor through the Bluetooth connection.
[0075] Exemplarily, the positioning monitor with a built-in Bluetooth master controller is the master device, and the attachment status monitor with a built-in Bluetooth slave controller is the slave device. The master device initiates pairing requests with each slave device in turn through time-division multiplexing to establish an independent point-to-point Bluetooth link. Each link is assigned an independent communication channel (Channel) or logical link identifier to ensure data isolation. Each slave device transmits the attachment status of its corresponding phase (such as attached or not attached) to the master device through a dedicated GATT (full name Generic Attribute Profile) service. Each slave device can enter a low-power mode during non-communication periods to save energy.
[0076] The master device adopts an event-driven mechanism (such as interrupt response) or a polling scheduling algorithm to ensure priority processing when the ground line status is updated.
[0077] In the above embodiment, the multi-connection management capability of the master device is used to realize physical layer time-sharing processing and logical simultaneous communication, and the sleep mode of the slave device during the idle period can adapt to the monitoring scenario with limited power, so that the present application scheme has the characteristics of concurrency and low power consumption. In addition, the independent communication link between the positioning monitor and the hook status monitor can avoid data conflicts and ensure the reliability of ground wire status transmission.
[0078] In one embodiment, the hooking state monitor is configured to: in response to detecting that the hooking and removing operation is completed, sense the hooking state of the ground wire to be tested; send the hooking state to a preset Bluetooth broadcast channel;
[0079] The positioning monitor is configured to: periodically scan the Bluetooth broadcast channel, parse the scanned broadcast packets, and generate status detection information according to the parsing results.
[0080] For example, if the operator performs a hooking or removal operation on the ground wire, the corresponding hooking status monitor can send the address and status information to the preset Bluetooth broadcast channel through a periodic broadcast packet after sensing the change in the ground wire state. The positioning monitor scans the Bluetooth broadcast channel, receives the broadcast data packet, and performs subsequent operations based on the information in the packet, such as integrating the ground wire hooking state into status detection information and whether to report to the power control system.
[0081] In the above embodiments, a multi-point Bluetooth communication solution is proposed for the situation in which the positioning monitor and the hanging status monitor are deployed on the same line or the same group of ground wires in actual application scenarios and are close to each other. The solution has the advantages of low power consumption, strong real-time performance, and no need for connection, and is suitable for scenarios with high response time requirements.
[0082] In one embodiment, Figure 4 As shown, transmitting the status detection information to the power control system may include:
[0083] Step S401, obtaining an interactive topic set based on the message queue telemetry transmission protocol MQTT.
[0084] Among them, MQTT (Message Queuing Telemetry Transport) is a message protocol based on the publish-subscribe model.
[0085] Step S402: Generate a data packet according to the device identification and the status detection information and publish it to the interactive topic, so that the power control system subscribing to the interactive topic can obtain the status detection information by parsing the data packet.
[0086] Figure 5 A schematic diagram of a message queue telemetry transmission protocol application provided for this application.
[0087] like Figure 5 As shown, the power control system can create products and devices as the platform domain of MQTT. The created device is a grounding wire monitoring device, and an interactive topic is set for communicating with the device at the grounding wire end.
[0088] For example, the interactive theme settings can refer to the following table:
[0089] equipment theme Function Ground wire monitoring device / iot / {deviceId} / {deviceType} / device / data Positioning monitor information upload Ground wire monitoring device / iot / {deviceId} / {deviceType} / device / reply Positioning monitor information response
[0090] The information sent through the interactive topic may include device identification, device ID, longitude and latitude of positioning information, ground wire attachment status, power level of the attachment status monitor, and power level of the positioning monitor.
[0091] In some possible implementations, the method further includes: setting a will message through the MQTT agent, and when a network abnormality or a client abnormality occurs in the positioning monitor, automatically publishing the will message to the interactive topic, and the will message is used to notify the power control system that the positioning monitor is in a communication interruption state.
[0092] The grounding wire monitoring device is used in conjunction with the system through 4G in a distribution network environment, and the network condition cannot be reliably guaranteed. In response to this situation, the positioning monitor can preset the Last Will message parameters, including the Will Topic and the Will Message, when establishing a connection with the MQTT proxy server. When the positioning monitor is abnormally disconnected due to network anomalies or client failures, the MQTT proxy server automatically publishes the Will message to the preset Will topic. The power control system can learn from the corresponding topic that the positioning monitor is disconnected, and take measures such as restarting the device or notifying relevant personnel to investigate, reduce the impact of network factors, and try to avoid communication failures due to network or client anomalies.
[0093] In the above embodiment, by adopting a message protocol in a publish-subscribe mode, one-to-many message publishing can be provided, and application coupling can be released, so that the communication between multiple grounding wire monitoring devices and a single server running the power control system can be satisfied. In addition, a small transmission method such as MQTT is adopted, which has lower overhead, which is in line with the situation that the grounding wire monitoring device is based on 4G transmission and is mostly used outdoors, thereby reducing network traffic.
[0094] In one embodiment, generating a data packet according to the device identification and the status detection information and publishing the data packet to the interaction topic may include:
[0095] An encryption chip is used to perform link encryption on the network transmission layer of the data packet to generate a session key; a preset encryption algorithm is used to perform group encryption on the plaintext data in the data packet to generate ciphertext data; the session key, the ciphertext data and the algorithm parameters are packaged in the format of the interactive topic and then published.
[0096] The encryption algorithm may be SM4 algorithm, which is a block encryption algorithm.
[0097] In the embodiment of the present application, the ground wire monitoring device transmits data with the background power control system, and the transmission content includes but is not limited to the ground wire connection status, ground wire positioning information, timestamp, equipment identification information, etc. In order to ensure the confidentiality, integrity and non-tamperability of the data transmission of the ground wire monitoring device and ensure the security of the data during transmission, a hierarchical structure can be used for encryption, which can specifically include two levels: hardware and software. The hardware part can use a dedicated encryption chip and network interface, and the software part is responsible for the relevant algorithms for data encryption and decryption.
[0098] Exemplarily, the SM4 national encryption algorithm can be used at the software level to encrypt data content, specifically including: generating an extended key based on a preset key, performing 32 rounds of iterative operations through the key extension module of the SM4 algorithm to generate a round key; inputting the data to be encrypted into the SM4 basic round function in 128-bit groups, performing 32 rounds of nonlinear transformation and obfuscation operations in combination with the round key to generate ciphertext data; transmitting the encrypted ciphertext data to the background system through the MQTT protocol, carrying the hardware encryption identifier and the SM4 algorithm version number for decryption verification during transmission.
[0099] In one embodiment, a specific design scheme of a grounding wire monitoring device is provided in combination with the application scenario of the grounding wire monitoring device. Considering certain specific limitations such as safety insulation distance, equipment installation time, usage scenario, fixing method, etc., the terminal using electricity mainly uses batteries as the power supply, and the grounding wire monitoring device of the present application is powered by batteries.
[0100] With the same amount of power, the terminal can work longer with a low-power design and is more suitable for grounding wire application scenarios. Whether from a cost perspective or a product performance perspective, it is essential to reduce power consumption for grounding wire monitoring devices.
[0101] Figure 6 The schematic diagram of the structure of a positioning monitor provided as an example in this application, wherein GNSS (Global Navigation Satellite System) is a global satellite navigation system, and the Beidou navigation system can be selected.
[0102] For example, to achieve low power consumption design, the following technical means can be used to achieve this goal:
[0103] a. Select a high-efficiency DC / DC power supply circuit and equip it with a suitable filter circuit to achieve high efficiency and low power ripple and improve the efficiency of electric energy utilization;
[0104] b. Considering both chip price and low power consumption, choose low power consumption chips and circuit designs to reduce power consumption from the device link;
[0105] c. Choose an MCU chip with appropriate computing power, strong anti-interference ability, and low power consumption as the main control. Under the premise of taking into account the response speed, set the appropriate main frequency and try to reduce the main frequency. Try to turn off the circuit parts of the MCU that are not used temporarily to reduce the power consumption of the MCU;
[0106] d. Set reasonable sleep and wake-up time intervals and methods for MCU to reduce MCU power consumption;
[0107] e. Determine various detailed technical solutions and implement them into product design, refine hardware design and embedded software design, and obtain the optimal low-power solution and low-power product design.
[0108] Based on the above technical means, from the current MCU model, the ground wire positioning monitor of the ground wire monitoring device can choose the STM32L431 ultra-low power microcontroller, which is based on the high-performance Arm ® Cortex ® -M4 32-bit RISC core ultra-low power microcontroller, operating frequency up to 80 MHz, designed to meet the functional performance requirements of this solution. The hardware composition includes MCU and its peripheral systems, Bluetooth communication module, 4G communication module, encryption module, audio module, vibration sensor, indicator light, power control, watchdog, debug serial port, debug JTAG, etc.
[0109] Figure 7 This is a schematic diagram of the overall architecture of an embedded software system for a positioning monitor provided by this application. Figure 7 The architecture of an exemplary location monitor is described.
[0110] (1) Application layer and components
[0111] System management: responsible for global equipment configuration, task scheduling and resource management, and coordinating the collaborative work of various modules.
[0112] Status collection: Real-time acquisition of the ground wire’s connection status (such as through sensor signals), location data (Beidou positioning) and timestamp.
[0113] MQTT: Implements an encrypted communication protocol with the background power control system to report grounding wire status data and receive control instructions.
[0114] FinSH: A command-line interactive component for embedded systems that supports debugging command input and running status monitoring (such as viewing logs and modifying parameters).
[0115] AT Device can be a software package consisting of porting implementations and sample files of different AT devices, which can be used with AT components of RT-Thread.
[0116] SFUD (Serial Flash Universal Driver) is an open source serial SPI Flash universal driver library that supports different types and specifications of Flash.
[0117] In addition, it can also include operation libraries such as FlexibleButton (key processing library) that support multiple key operations and event processing.
[0118] (2) System layer
[0119] RT-Thread: A lightweight real-time operating system (RTOS) that provides core functions such as multi-task scheduling, memory management, and file system to ensure the real-time and reliability of tasks such as status acquisition and communication.
[0120] (3) Driver layer
[0121] Device driver framework: RT-Thread has a built-in standardized driver interface that uniformly manages the underlying hardware drivers (such as Bluetooth and 4G modules) and simplifies device control logic.
[0122] (4) HAL layer
[0123] HAL library (Hardware Abstraction Layer): encapsulates the operation details of the underlying hardware (such as MCU peripherals), provides a unified API for the driver layer to call, and enhances code portability (such as adaptation to different MCU models).
[0124] (5) Hardware layer
[0125] UART: Serial communication module, used to connect sensors or debugging terminals that sense the ground status.
[0126] BLE: Bluetooth low energy module, establishes multi-point connection with the hook-up status monitor (Phase A / Phase B / Phase C) to transmit the status of the phase ground wire.
[0127] 4G: Cellular network module, remotely communicates with the background system through the MQTT protocol.
[0128] AUDIO: Audio module, which can be used to issue an alarm sound to indicate that the grounding wire status is abnormal.
[0129] KEY: Physical key input, supports manual triggering of status reporting or switching of working modes.
[0130] LED: Status indicator (e.g. green - normal, red - fault) providing local visual feedback.
[0131] In addition, chips such as CCM3310 can also be used to encrypt transmitted content.
[0132] Figure 8 The schematic diagram of the structure of a ground wire status detection device provided by the present application is shown in FIG. The ground wire status detection device can be applied to a ground wire monitoring device, and the ground wire monitoring device includes a positioning monitor and a hooking status monitor. Figure 8 As shown, the ground wire state detection device 800 provided in this embodiment includes:
[0133] The acquisition module 801 is used to acquire the device identification of the positioning monitor, and associate the positioning monitor with the ground wire to be tested according to the device identification;
[0134] The execution module 802 is used to set the hooking state monitor to monitor the hooking state of the ground wire to be tested, and perform a hooking and removing operation on the ground wire to be tested;
[0135] A positioning control module 803, used to control the positioning monitor to obtain the status detection information of the ground wire to be tested from the hook status monitor via Bluetooth;
[0136] The transmission module 804 is used to transmit the status detection information to the power control system.
[0137] In a possible implementation, the transmission module 804 is also used to: obtain an interactive topic set based on the message queue telemetry transmission protocol MQTT; generate a data packet based on the device identifier and the status detection information and publish it to the interactive topic, so that the power control system that subscribes to the interactive topic can obtain the status detection information by parsing the data packet.
[0138] In a possible implementation, the transmission module 804 is also used to: set a will message through the MQTT agent, and when a network abnormality or a client abnormality occurs in the positioning monitor, the will message is automatically published to the interaction topic, and the will message is used to notify the power control system that the positioning monitor is in a communication interruption state.
[0139] In a possible implementation, the transmission module 804 is also used to: use an encryption chip to perform link encryption on the network transmission layer of the data packet to generate a session key; perform group encryption on the plaintext data in the data packet through a preset encryption algorithm to generate ciphertext data; and package the session key, the ciphertext data and the algorithm parameters in the format of the interactive topic and publish them.
[0140] The ground wire status detection device provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.
[0141] Fig. 9This is a schematic diagram of the structure of an electronic device provided in this application. Fig. 9 As shown, the electronic device 90 provided in this embodiment includes: at least one processor 901 and a memory 902. Optionally, the device 90 further includes a communication component 903. The processor 901, the memory 902 and the communication component 903 are connected via a bus 904.
[0142] In a specific implementation process, at least one processor 901 executes the computer execution instructions stored in the memory 902, so that at least one processor 901 executes the above method.
[0143] The specific implementation process of the processor 901 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0144] In the above embodiments, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the invention can be directly implemented as a hardware processor, or can be implemented by a combination of hardware and software modules in the processor.
[0145] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage.
[0146] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.
[0147] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0148] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.
[0149] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0150] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0151] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0152] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0153] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0154] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0155] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0156] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A ground wire status detection method, characterized in that: Using a grounding wire monitoring device, the grounding wire monitoring device includes a positioning monitor and a hooking status monitor, and the method includes: Obtaining a device identification of the positioning monitor, and associating the positioning monitor with the ground wire to be tested according to the device identification; The hooking state monitor is set to monitor the hooking state of the grounding wire to be tested, and perform hooking and removing operations on the grounding wire to be tested; Controlling the positioning monitor to obtain the status detection information of the ground wire to be tested from the hooking status monitor via Bluetooth; The status detection information is transmitted to the power control system.
2. The method according to claim 1, characterized in that The ground wire to be tested includes a plurality of ground wires corresponding to different phases, the positioning monitor has a built-in Bluetooth master controller, and the hooking status monitor has a built-in Bluetooth slave controller; The positioning monitor is configured to simultaneously establish independent Bluetooth connections with multiple hooking status monitors that monitor grounding lines of different phases through the Bluetooth main controller, and obtain the hooking status of the corresponding phase grounding line from the hooking status monitor through the Bluetooth connection.
3. The method according to claim 1 or 2, characterized in that: The hooking state monitor is configured to: in response to detecting that the hooking and removing operation is completed, sense the hooking state of the ground wire to be tested; and send the hooking state to a preset Bluetooth broadcast channel; The positioning monitor is configured to: periodically scan the Bluetooth broadcast channel, parse the scanned broadcast packets, and generate status detection information according to the parsing results.
4. The method according to claim 1 or 2, characterized in that: The step of transmitting the state detection information to the power control system comprises: Get the interaction topic set based on the message queue telemetry transmission protocol MQTT; A data packet is generated according to the device identification and the status detection information and is published to the interactive topic, so that a power control system subscribing to the interactive topic can obtain the status detection information by parsing the data packet.
5. The method according to claim 4, characterized in that Also includes: A will message is set through the MQTT proxy. When the positioning monitor has a network anomaly or a client anomaly, the will message is automatically published to the interactive topic. The will message is used to notify the power control system that the positioning monitor is in a communication interruption state.
6. The method according to claim 4, characterized in that The step of generating a data packet according to the device identification and the status detection information and publishing the data packet to the interaction topic includes: Using an encryption chip to perform link encryption on the network transport layer of the data packet to generate a session key; Performing block encryption on the plaintext data in the data packet using a preset encryption algorithm to generate ciphertext data; The session key, the ciphertext data and the algorithm parameters are packaged in the format of the interactive topic and then published.
7. A grounding wire status detection device, characterized in that: A grounding wire monitoring device is used, the grounding wire monitoring device includes a positioning monitor and a hooking state monitor, and the grounding wire state detection device includes: An acquisition module, used for acquiring a device identification of the positioning monitor, and associating the positioning monitor with a ground wire to be tested according to the device identification; An execution module, used for setting the hooking state monitor to monitor the hooking state of the ground wire to be tested, and performing a hooking and removing operation on the ground wire to be tested; A positioning control module, used for controlling the positioning monitor to obtain the status detection information of the ground wire to be tested from the hooking status monitor via Bluetooth; The transmission module is used to transmit the status detection information to the power control system.
8. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.
10. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 6 when being executed by a processor.
Citation Information
Cited By
Multi-signal fusion grounding wire state detection method, device and equipment based on edge cloud computing
CN121500178A