Disclosure of Invention
In view of the above, it is necessary to provide a block chain-based underground cable fault detection method and apparatus capable of ensuring accuracy of underground cable fault detection.
A method of block chain based underground cable fault detection, the method comprising:
judging whether the underground cable is in fault or not according to the current environmental data and the current operation data acquired by the underground cable acquisition device;
when the underground cable is in fault, acquiring block chain link points corresponding to the fault underground cable;
performing coin punching operation on the address corresponding to the block chain link point;
receiving a repairing result corresponding to the fault underground cable uploaded by a responsible person terminal;
and when the repair result meets the requirement, transferring the digital money in the address to the address corresponding to the responsible person terminal.
In one embodiment, the coin punching operation performed on the address corresponding to the block link point includes:
acquiring the fault type and the geographical position of the faulted underground cable;
obtaining a currency value according to the fault type and the geographic position;
and performing coin punching operation on the address corresponding to the block link point according to the currency value.
In one embodiment, before the receiving the repair result corresponding to the faulty underground cable uploaded by the responsible person terminal, the method further includes:
receiving a fault processing request sent by a responsible person terminal, wherein the fault processing request carries a responsible person identifier;
judging the processing frequency of the responsible person according to the responsible person identifier;
and when the processing frequency meets the requirement, sending the geographical position of the faulted underground cable and the fault type to the responsible person terminal.
In one embodiment, after receiving the repair result corresponding to the faulty underground cable uploaded by the responsible person terminal, the method further includes:
receiving an underground cable image acquired by the responsible person terminal through a robot, wherein the underground cable image comprises two-dimensional code information;
identifying the two-dimension code information to obtain an address corresponding to a block link point;
and sending the address corresponding to the block chain link point to the responsible person terminal so that the responsible person terminal accesses the address corresponding to the block chain link point.
In one embodiment, before the step of transferring the digital money in the address to the address corresponding to the responsible person terminal when the repair result meets the requirement, the method further includes:
and judging whether the restoration result meets the requirement or not according to the restored environment data and the restored operation data acquired by the underground cable acquisition device.
An underground cable fault detection apparatus based on a blockchain, the apparatus comprising:
the first judgment module is used for judging whether the underground cable is in fault or not according to the current environmental data and the current operation data acquired by the underground cable acquisition device;
the block chain node acquisition module is used for acquiring a block chain link point corresponding to the underground cable with the fault when the underground cable has the fault;
the coin punching operation module is used for performing coin punching operation on the address corresponding to the block chain link point;
the first receiving module is used for receiving a repairing result which is uploaded by a responsible person terminal and corresponds to the underground cable with the fault;
and the transfer module is used for transferring the digital money in the address to the address corresponding to the responsible person terminal when the repair result meets the requirement.
In one embodiment, the coin operation module comprises:
the position acquisition unit is used for acquiring the fault type and the geographical position of the faulted underground cable;
the currency value calculating unit is used for obtaining a currency value according to the fault type and the geographic position;
and the coin punching operation unit is used for performing coin punching operation on the address corresponding to the block link point according to the currency value.
In one embodiment, the apparatus further comprises:
the second receiving module is used for receiving a fault processing request sent by the responsible person terminal, wherein the fault processing request carries a responsible person identifier;
the second judgment module is used for judging the processing frequency of the responsible person according to the responsible person identifier;
and the first sending module is used for sending the geographical position and the fault type of the faulty underground cable to the responsible person terminal when the processing frequency meets the requirement.
A computer device comprising a memory storing a computer program and a processor implementing the steps of any of the methods when the processor executes the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of any of the methods.
According to the underground cable fault detection method and device based on the block chain, whether the underground cable is in fault or not is judged according to current environment data and current operation data collected by the underground cable collecting device, if the underground cable is in fault, the block chain link point corresponding to the underground cable in fault is obtained, the server firstly conducts coin punching operation on the block chain link point, then after the responsible person terminal conducts detection, the server can transfer digital money in the address to the address corresponding to the responsible person terminal, the responsible person is guaranteed to actually detect the underground cable, and accuracy of underground cable fault detection is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The underground cable fault detection method based on the block chain can be applied to the application environment shown in fig. 1. In which a person in charge terminal 102 communicates with a server 104 through a network. The server 104 is further in communication with the corresponding block link point 106, wherein the server 104 can receive current environment data and current operation data acquired by the underground cable acquisition device 108, judge whether the underground cable is in fault according to the current environment data and the current operation data, and acquire the block link point 106 corresponding to the underground cable in fault if the underground cable is in fault, so that the server 104 performs a coin punching operation for an address corresponding to the block link point to be used as a responsible person terminal to determine a fault reason of the underground cable in fault and reward for performing corresponding repair operation. The server 104 waits for the corresponding responsible person terminal to upload the repair result corresponding to the faulty underground cable, and thus when the repair result meets the requirement, the digital money in the address is transferred to the address corresponding to the responsible person terminal. Therefore, the method ensures that the responsible person really detects the underground cable, and further improves the accuracy of underground cable fault detection. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a block chain-based underground cable fault detection method is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
s202: and judging whether the underground cable is in fault or not according to the current environmental data and the current operation data acquired by the underground cable acquisition device.
Wherein, the current environment data includes one or more of temperature data, water sensitive data, environmental gas data and displacement data, the operation data includes but is not limited to partial discharge signals, and the current operation data can also refer to the current magnitude in the underground cable. Underground cable collection systems are installed underground, for example, at the junction of underground cables, and are used for collecting environmental data and operational data at the junction of underground cables. After the underground cable acquisition system acquires the environmental data and the operation data of the underground cable, the environmental data and the operation data are sent to the server, so that the server can judge whether the underground cable breaks down or not after processing. In order to ensure the data queryability, the underground cable acquisition system and the geographical position of the underground cable are sent to the server together when sending data, and optionally, the label of the underground cable can be preset, and the corresponding relation between the label and the position of the underground cable is established, so that when the service receives the data sent by the underground cable acquisition system with a certain label, the geographical position information corresponding to the underground cable can be queried according to the label.
The server may determine whether the underground cable is faulty according to the current environment data and the current operation data, for example, calculate a relationship between the current environment data and the current operation data and a threshold value, and determine that the underground cable is faulty when the current environment data and the current operation data are greater than the threshold value, otherwise, the underground cable is not faulty.
S204: and when the underground cable has a fault, acquiring the block chain node corresponding to the faulty underground cable.
S206: and performing coin punching operation on the address corresponding to the block link point.
Specifically, the block link point corresponds to the underground cable, for example, one geographical location corresponds to one block link node, so that when the underground cable at a certain geographical location fails, the corresponding block link point can be acquired. Therefore, the server can carry out coin punching operation on the block link point in advance, and the server can be used as a responsible person terminal for determining the fault reason of the fault underground cable and carrying out reward of corresponding repair operation.
S208: and receiving a repairing result which is uploaded by the responsible person terminal and corresponds to the underground cable with the fault.
Specifically, the server may generate a plurality of tasks for repairing the faulty underground cable, so that the responsible person terminal selects a corresponding task to execute and obtain a corresponding repair result, and uploads the repair result to the server, so that the server determines whether the repair task is completed.
S210: and when the repair result meets the requirement, transferring the digital money in the address to the address corresponding to the responsible person terminal.
Specifically, when the server judges whether the repair result meets the requirement, the server may obtain the current environment data and the current operation data of the underground cable with the fault again, so that whether the underground cable has the fault is judged again according to the current environment data and the current operation data, if the underground cable does not have the fault, the repair result meets the requirement, and thus the server transfers the digital money in the address corresponding to the block link point to the address corresponding to the responsible person terminal, so as to be used as the reward of the responsible person terminal.
According to the underground cable fault detection method based on the block chain, whether an underground cable is in fault or not is judged according to current environment data and current operation data collected by an underground cable collecting device, if the underground cable is in fault, a block chain link point corresponding to the underground cable in fault is obtained, so that a server firstly conducts coin punching operation on the block chain link point, then after a responsible person terminal conducts detection, the server can transfer digital money in an address to the address corresponding to the responsible person terminal, and therefore the responsible person is guaranteed to really detect the underground cable, and accuracy of underground cable fault detection is improved.
In one embodiment, the coin punching operation performed on the address corresponding to the block link point includes: acquiring the fault type and the geographical position of the faulted underground cable; obtaining a currency value according to the fault type and the geographic position; and performing coin punching operation on the address corresponding to the block link point according to the currency value.
Specifically, the number of the monetary values is related to the geographical position and the fault type, for example, at a position unsuitable for construction or a position difficult to construct, the monetary values are correspondingly increased, and the monetary values of different fault types are also different, the server can determine the basic monetary value, and then adjust the basic monetary value according to the geographical position and the step length corresponding to the fault type to obtain the monetary value required to be coined, so that the coin printing operation is performed on the address corresponding to the block link point according to the monetary value.
In one embodiment, before the receiving the repair result corresponding to the faulty underground cable uploaded by the responsible person terminal, the method further includes: receiving a fault processing request sent by a responsible person terminal, wherein the fault processing request carries a responsible person identifier; judging the processing frequency of the responsible person according to the responsible person identifier; and when the processing frequency meets the requirement, sending the geographical position of the faulted underground cable and the fault type to the responsible person terminal.
Specifically, in order to ensure construction safety, the processing frequency of the responsible person may be limited to prevent the responsible person from working under overload for a long time, which may cause danger, for example, when the server receives a fault processing request sent by the responsible person terminal, first extract a responsible person identifier from the fault processing request, then query the number of times of faults processed by the responsible person in a preset time period according to the responsible person identifier to obtain the processing frequency, if the processing frequency is less than a set threshold, the server sends the geographical location and the fault type of the faulty underground cable to the responsible person terminal, otherwise, sends a notification of rejecting task allocation to the responsible person terminal, and waits for the next responsible person terminal to execute the fault processing request.
In one embodiment, after receiving the repair result corresponding to the faulty underground cable uploaded by the responsible person terminal, the method further includes: receiving an underground cable image acquired by the responsible person terminal through a robot, wherein the underground cable image comprises two-dimensional code information; identifying the two-dimension code information to obtain an address corresponding to a block link point; and sending the address corresponding to the block chain link point to the responsible person terminal so that the responsible person terminal accesses the address corresponding to the block chain link point.
Specifically, the server receives an underground cable image acquired by the responsible person terminal through the robot, wherein the image contains two-dimensional code information, and an address corresponding to a block chain link point is obtained by identifying the two-dimensional code information, so that the server directly sends the address corresponding to the block chain link point to the responsible person terminal, and the responsible person terminal accesses the address corresponding to the block chain link point, and accordingly money punching operation is performed.
Optionally, the two-dimensional code information cannot be identified in the terminal of the responsible person in the underground cable image, that is, the two-dimensional code information in the underground cable image is encrypted, so that only the encrypted two-dimensional code information is uploaded to the server, and the server decrypts the encrypted information in the underground cable image by using a preset key to obtain the two-dimensional code information, so that the two-dimensional code information can obtain the address corresponding to the block link point.
In the above embodiment, the address of the block chain corresponding to the underground cable image is determined by the two-dimensional code, which is convenient to operate.
In one embodiment, before the step of transferring the digital money in the address to the address corresponding to the responsible person terminal when the repair result meets the requirement, the method further includes: and judging whether the restoration result meets the requirement or not according to the restored environment data and the restored operation data acquired by the underground cable acquisition device.
Specifically, the repaired environmental data includes one or more of temperature data, water-sensitive data, environmental gas data, and displacement data, the repaired operation data includes, but is not limited to, partial discharge signals, and the current operation data may also refer to the magnitude of current in the underground cable. Underground cable collection systems are installed underground, for example, at the junction of underground cables, and are used for collecting environmental data and operational data at the junction of underground cables. After the underground cable acquisition system acquires the repaired environmental data and the repaired operating data of the underground cable, the repaired environmental data and the repaired operating data are sent to the server so as to judge whether the underground cable breaks down or not after the server processes the repaired environmental data and the repaired operating data. In order to ensure the data queryability, the underground cable acquisition system and the geographical position of the underground cable are sent to the server together when sending data, and optionally, the label of the underground cable can be preset, and the corresponding relation between the label and the position of the underground cable is established, so that when the service receives the data sent by the underground cable acquisition system with a certain label, the geographical position information corresponding to the underground cable can be queried according to the label.
The server judges whether the underground cable is in fault or not according to the repaired environment data and the repaired operation data, if no fault exists, the repair result meets the requirement, and therefore the server transfers the digital money in the address corresponding to the block link point to the address corresponding to the responsible person terminal to be used as the reward of the responsible person terminal.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 3, there is provided a block chain-based underground cable fault detection apparatus including:
the first judging module 100 is configured to judge whether the underground cable fails according to current environmental data and current operating data acquired by the underground cable acquisition device;
the block link point acquisition module 200 is configured to, when an underground cable fails, acquire a block link point corresponding to the failed underground cable;
the coin punching operation module 300 is used for performing coin punching operation on the address corresponding to the block link point;
the first receiving module 400 is configured to receive a repair result corresponding to the faulty underground cable uploaded by the terminal of the responsible person;
a transferring module 500, configured to transfer the digital currency in the address to an address corresponding to the responsible person terminal when the repair result meets the requirement.
In one embodiment, the block chain-based underground cable fault detection apparatus may further include:
the position acquisition unit is used for acquiring the fault type and the geographical position of the faulted underground cable;
the currency value calculating unit is used for obtaining a currency value according to the fault type and the geographic position;
and the coin punching operation unit is used for performing coin punching operation on the address corresponding to the block link point according to the currency value.
In one embodiment, the block chain-based underground cable fault detection apparatus may further include:
the second receiving module is used for receiving a fault processing request sent by the responsible person terminal, wherein the fault processing request carries a responsible person identifier;
the second judgment module is used for judging the processing frequency of the responsible person according to the responsible person identifier;
and the first sending module is used for sending the geographical position and the fault type of the faulty underground cable to the responsible person terminal when the processing frequency meets the requirement.
In one embodiment, the block chain-based underground cable fault detection apparatus may further include:
the third receiving module is used for receiving an underground cable image acquired by the responsible person terminal through the robot, wherein the underground cable image comprises two-dimensional code information;
the identification module is used for identifying the two-dimension code information to obtain an address corresponding to the block chain link point;
and the second sending module is used for sending the address corresponding to the block link point to the responsible person terminal so that the responsible person terminal can access the address corresponding to the block link point.
In one embodiment, the block chain-based underground cable fault detection apparatus may further include:
and the third judgment module is used for judging whether the repair result meets the requirement or not according to the repaired environment data and the repaired operation data acquired by the underground cable acquisition device.
For specific definition of the block chain-based underground cable fault detection device, reference may be made to the above definition of the block chain-based underground cable fault detection method, and details are not repeated here. The modules in the block chain-based underground cable fault detection device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing underground cable work data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a block chain based underground cable fault detection method.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: judging whether the underground cable is in fault or not according to the current environmental data and the current operation data acquired by the underground cable acquisition device; when the underground cable is in fault, acquiring block chain link points corresponding to the fault underground cable; performing coin punching operation on the address corresponding to the block chain link point; receiving a repairing result corresponding to the fault underground cable uploaded by a responsible person terminal; and when the repair result meets the requirement, transferring the digital money in the address to the address corresponding to the responsible person terminal.
In one embodiment, the coin-punching operation performed by the processor when executing the computer program to the address corresponding to the block link point includes: acquiring the fault type and the geographical position of the faulted underground cable; obtaining a currency value according to the fault type and the geographic position; and performing coin punching operation on the address corresponding to the block link point according to the currency value.
In one embodiment, before the receiving the repair result corresponding to the faulty underground cable uploaded by the responsible party terminal when the processor executes the computer program, the method further includes: receiving a fault processing request sent by a responsible person terminal, wherein the fault processing request carries a responsible person identifier; judging the processing frequency of the responsible person according to the responsible person identifier; and when the processing frequency meets the requirement, sending the geographical position of the faulted underground cable and the fault type to the responsible person terminal.
In one embodiment, after the receiving the repair result corresponding to the faulty underground cable uploaded by the responsible party terminal when the processor executes the computer program, the method further includes: receiving an underground cable image acquired by the responsible person terminal through a robot, wherein the underground cable image comprises two-dimensional code information; identifying the two-dimension code information to obtain an address corresponding to a block link point; and sending the address corresponding to the block chain link point to the responsible person terminal so that the responsible person terminal accesses the address corresponding to the block chain link point.
In one embodiment, before the performing, by a processor executing a computer program, when the repair result meets the requirement, transferring the digital money in the address to the address corresponding to the responsible person terminal, the method further includes: and judging whether the restoration result meets the requirement or not according to the restored environment data and the restored operation data acquired by the underground cable acquisition device.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: judging whether the underground cable is in fault or not according to the current environmental data and the current operation data acquired by the underground cable acquisition device; when the underground cable is in fault, acquiring block chain link points corresponding to the fault underground cable; performing coin punching operation on the address corresponding to the block chain link point; receiving a repairing result corresponding to the fault underground cable uploaded by a responsible person terminal; and when the repair result meets the requirement, transferring the digital money in the address to the address corresponding to the responsible person terminal.
In one embodiment, the coin-punching operation performed by the computer program when executed by the processor to the address corresponding to the block link point includes: acquiring the fault type and the geographical position of the faulted underground cable; obtaining a currency value according to the fault type and the geographic position; and performing coin punching operation on the address corresponding to the block link point according to the currency value.
In one embodiment, before the receiving the repair result corresponding to the faulty underground cable uploaded by the responsible party terminal, the computer program when executed by the processor further comprises: receiving a fault processing request sent by a responsible person terminal, wherein the fault processing request carries a responsible person identifier; judging the processing frequency of the responsible person according to the responsible person identifier; and when the processing frequency meets the requirement, sending the geographical position of the faulted underground cable and the fault type to the responsible person terminal.
In one embodiment, the computer program, when executed by a processor, further comprises, after receiving a repair result corresponding to the faulty underground cable uploaded by a responsible party terminal: receiving an underground cable image acquired by the responsible person terminal through a robot, wherein the underground cable image comprises two-dimensional code information; identifying the two-dimension code information to obtain an address corresponding to a block link point; and sending the address corresponding to the block chain link point to the responsible person terminal so that the responsible person terminal accesses the address corresponding to the block chain link point.
In one embodiment, before the step of transferring the digital money in the address to the address corresponding to the responsible person terminal when the repair result meets the requirement when the computer program is executed by the processor, the method further comprises: and judging whether the restoration result meets the requirement or not according to the restored environment data and the restored operation data acquired by the underground cable acquisition device.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.