Initialization method, system, device and storage medium of anti-electricity theft collection workstation

By verifying the legitimacy of the acquisition equipment and electronic certificate system in the anti-powered power collection workstation, and initializing and uploading data, the problem of ensuring the safety of the workstation and preventing power theft accidents is solved, and the reliability of the workstation and the authenticity of the data are achieved.

CN116112358BActive Publication Date: 2025-05-09SHENZHEN ZHILAI SCI & TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211502137.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-28
Publication Date
2025-05-09
Estimated Expiration
2042-11-28

AI Technical Summary

Technical Problem

In anti-power stolen collection workstations, it is necessary to ensure the legality of the collection equipment and electronic certificate system to prevent the occurrence of power stolen accidents.

Method used

Verify the legality by obtaining the device attribute information of the acquisition device and initializing the acquisition device according to the local configuration file. At the same time, obtain the secret certificate of the electronic certificate system for verification. If it is passed, establish a connection with the electronic certificate system, and bind the monitoring data to the requested work order and upload it to the electronic certificate system.

Benefits of technology

Ensure the safety and reliability of the anti-power stolen collection workstation, prevent the occurrence of power stolen accidents, and effectively identify the person responsible for power stolen through the electronic certificate system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116112358B_ABST
    Figure CN116112358B_ABST
Patent Text Reader

Abstract

The present invention proposes an initialization method, system, device and storage medium for an anti-electricity theft collection workstation, the method comprising: judging whether the collection device is legal according to the device attribute information; obtaining the local configuration file according to the specified path; sending the secret key certificate to the digital certificate certification authority for verification, and obtaining the verification result; if the verification result is passed, sending the site information to the electronic certificate system so that the electronic certificate system returns the matching result according to the site information, if the matching result is passed, establishing a connection with the electronic certificate system, and judging whether the connection is successful; if it is judged that the connection is successful, receiving the request work order sent by the electronic certificate system, obtaining the monitoring data related to the request work order in the initialized collection device according to the request work order, and uploading the monitoring data to the electronic certificate system after binding the monitoring data with the request work order. The embodiment of the present invention can effectively prevent the occurrence of electricity theft accidents.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electric power technology, and in particular to an initialization method, system, device and storage medium of an anti-electricity theft collection workstation. Background Art

[0002] In recent years, with the advancement of science and technology, the means of stealing electricity have become more sophisticated and more covert, especially some large users stealing electricity, which will cause huge economic losses to power supply companies. Therefore, an anti-electricity theft monitoring system is established to realize real-time monitoring of users' electricity load. At the same time, the collected monitoring data is uploaded to the electronic evidence system. The electronic evidence system stores the collected monitoring data to avoid legal disputes in the future, thereby solving the increasingly serious problem of electricity theft.

[0003] The anti-electricity theft collection workstation can manage the collection equipment, extract the collection equipment data in a timely manner, and archive it by binding it with the outbound work order, and upload it to the electronic evidence system. The electronic evidence system stores each device data and outbound work order to form an effective chain of evidence. When an electricity theft accident occurs, the person responsible for the electricity theft can be identified by searching the corresponding historical archived data in the electronic evidence system.

[0004] In the process of electricity theft collection workstation, the electricity theft collection workstation needs to manage the collection equipment and send work order requests and other information to the electronic evidence system. The interaction between the electricity theft collection workstation and the collection equipment and the electronic evidence system is very frequent. It is also very important to ensure the legitimacy of the collection equipment and the electronic evidence system during the operation of the electricity theft collection workstation. Therefore, an initialization method for the anti-electricity theft collection workstation is urgently needed. Summary of the invention

[0005] The present invention provides an initialization method, system, device and storage medium of an anti-electricity theft collection workstation, the main purpose of which is to ensure the legitimacy of the collection equipment and the electronic evidence system in the anti-electricity theft collection workstation, and effectively ensure the security of the anti-electricity theft collection workstation.

[0006] In a first aspect, an embodiment of the present invention provides an initialization method for an anti-electricity theft collection workstation, comprising:

[0007] Acquire device attribute information of the collection device, and determine whether the collection device is legal based on the device attribute information;

[0008] If it is determined that the acquisition device is legal, a local configuration file is obtained according to a specified path, and acquisition device configuration information of the acquisition device is obtained from the local configuration file, so that the acquisition device is initialized according to the acquisition device configuration information;

[0009] Obtain the secret key certificate sent by the electronic certificate system, send the secret key certificate to the digital certificate certification authority for verification, and obtain the verification result;

[0010] If the verification result is passed, register with the electronic certificate system, establish a connection with the electronic certificate system, and determine whether the connection is successful;

[0011] If it is determined that the connection is successful, a request work order sent by the electronic certificate system is received, and monitoring data related to the request work order in the initialized collection device is obtained according to the request work order. The monitoring data is bound to the request work order and uploaded to the electronic certificate system.

[0012] Preferably, the acquiring device attribute information of the acquisition device and judging whether the acquisition device is legal according to the device attribute information include:

[0013] Sending a device query instruction to the acquisition device, so that the acquisition device returns the device attribute information according to the device query instruction, the device attribute information including the number, device manufacturer, and factory number of the acquisition device;

[0014] The device attribute information is received, and the device attribute information is matched with the preset attribute information of the acquisition device. If a match is found, the acquisition device is determined to be legal; otherwise, the acquisition device is determined to be illegal.

[0015] Preferably, the acquiring a local configuration file according to a specified path, and acquiring the acquisition device configuration information of the acquisition device from the local configuration file, comprises:

[0016] According to the specified path, checking whether the storage module of the target anti-electricity theft collection workstation has the local configuration file, and if so, obtaining the local configuration file;

[0017] If not, sending a configuration request to the electronic certificate system, and receiving the local configuration file returned by the electronic certificate system according to the configuration request, wherein the configuration request includes the device fingerprint of the target anti-electricity theft collection workstation;

[0018] Parsing the local configuration file, assigning configuration information in the local configuration file to a preset configuration category, wherein the configuration information in the preset configuration category is saved in the form of a key-value pair;

[0019] According to the function of the acquisition device, a target configuration category is selected from the preset configuration categories, and according to the key value of the acquisition device, the target configuration category is searched to obtain the acquisition device configuration information.

[0020] Preferably, the step of obtaining a local configuration file according to a specified path and obtaining the acquisition device configuration information of the acquisition device from the local configuration file further includes:

[0021] Receiving the modified acquisition device configuration information sent by the acquisition device;

[0022] Upload the modified acquisition device configuration information to the electronic certificate system;

[0023] The device fingerprint of the target anti-electricity theft collection workstation is bound to the modified collection device configuration information, and the bound collection device configuration information is uploaded to the electronic evidence system.

[0024] Preferably, the step of obtaining a local configuration file according to a specified path and obtaining the acquisition device configuration information of the acquisition device from the local configuration file further includes:

[0025] The acquisition device configuration information in the preset configuration category is serialized, and the preset configuration category is stored in the local configuration file in the form of a file stream.

[0026] Preferably, the step of obtaining the secret key certificate sent by the electronic certificate system, sending the secret key certificate to a digital certificate certification authority for verification, and obtaining the verification result includes:

[0027] According to the location path of the electronic certificate system, a web page request is sent to the electronic certificate system to obtain the secret key certificate, where the secret key certificate is obtained by the digital certification authority digitally signing the electronic public key of the electronic certificate system using a digital private key;

[0028] Sending the secret key certificate to the digital certificate certification authority so that the digital certification authority verifies the secret key certificate using the digital public key;

[0029] Receive the verification result sent by the digital certification authority.

[0030] Preferably, if the verification result is passed, sending site information to the electronic certificate system so that the electronic certificate system returns a matching result according to the site information, and if the matching result is passed, establishing a connection with the electronic certificate system includes:

[0031] Sending site information to the electronic certificate system so that the electronic certificate system matches the site information with the preset registered site information and returns the matching result;

[0032] If the matching result is passed, register with the electronic certificate system, establish a connection with the electronic certificate system, and regularly send heartbeat messages to the electronic certificate system. If an offline message is received, re-register with the electronic certificate system according to the offline message. The offline message is sent by the electronic certificate system when the heartbeat message is not received within a preset time period.

[0033] In a second aspect, an embodiment of the present invention provides an initialization system for an anti-electricity theft collection workstation, comprising:

[0034] A legal module, used to obtain device attribute information of a collection device, and determine whether the collection device is legal based on the device attribute information;

[0035] A configuration module, configured to obtain a local configuration file according to a specified path if it is determined that the acquisition device is legal, and obtain acquisition device configuration information of the acquisition device from the local configuration file, so that the acquisition device is initialized according to the acquisition device configuration information;

[0036] The verification module is used to obtain the secret key certificate sent by the electronic certificate system, send the secret key certificate to the digital certificate certification authority for verification, and obtain the verification result;

[0037] A registration module, configured to, if the verification result is passed, send site information to the electronic certificate system so that the electronic certificate system returns a matching result according to the site information, and if the matching result is passed, establish a connection with the electronic certificate system;

[0038] The work order module is used to receive the request work order sent by the electronic certificate system if it is determined that the connection is successful, obtain the monitoring data related to the request work order in the initialized collection device according to the request work order, bind the monitoring data with the request work order, and upload it to the electronic certificate system.

[0039] In a third aspect, an embodiment of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned initialization method of an anti-electricity theft collection workstation when executing the computer program.

[0040] In a fourth aspect, an embodiment of the present invention provides a computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the initialization method of the anti-electricity theft collection workstation are implemented.

[0041] The present invention proposes an initialization method, system, device and storage medium for an anti-electricity theft collection workstation. The device attribute information of the collection device is verified to determine whether the collection device connected to the anti-electricity theft collection workstation is legal. After verifying that the collection device is legal, the collection device is initialized according to a local configuration file. Then, the legality of the electronic fixed evidence system is verified according to the key certificate of the electronic fixed evidence system. If the verification is successful, a connection is established with the electronic fixed evidence system to facilitate the sending and receiving of messages. The monitoring data collected by the initialized collection device is bound to a request work order and uploaded to the electronic fixed evidence system. A method for an anti-electricity theft collection workstation provided by an embodiment of the present invention verifies the legitimacy of the collection device and the electronic evidence system before interacting with the collection device and the electronic evidence system. Only authenticated devices can be used, thereby ensuring the safety and reliability of the anti-electricity theft collection workstation and ensuring the confidentiality of information and the authenticity and validity of data, thereby preventing electricity theft accidents. Furthermore, the bound monitoring data is uploaded to the electronic evidence system. When an electricity theft accident occurs, the work order data corresponding to the electricity theft accident can be found through the electronic evidence system, thereby facilitating the investigation of the person responsible for the electricity theft accident and further preventing the electricity theft accident. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 A flowchart of an initialization method for an anti-electricity theft collection workstation provided by an embodiment of the present invention;

[0043] Figure 2 Schematic diagram of the system architecture of an anti-electricity theft collection workstation in an embodiment of the present invention;

[0044] Figure 3 It is a flowchart of initializing various acquisition devices in an embodiment of the present invention;

[0045] Figure 4 A flowchart for determining whether a collection device is legal provided by an embodiment of the present invention;

[0046] Figure 5 A flowchart of obtaining configuration information of a collection device in an embodiment of the present invention;

[0047] Figure 6 A flowchart of obtaining a verification result in an embodiment of the present invention;

[0048] Figure 7 A flow chart of establishing a connection between a target anti-electricity theft collection workstation and an electronic evidence system in an embodiment of the present invention;

[0049] Figure 8 This is a flow chart of verifying the legitimacy of the electronic certificate system of the target anti-electricity theft collection workstation in an embodiment of the present invention;

[0050] Fig. 9This is a flow chart of the target anti-electricity theft collection workstation registering to the electronic evidence system in an embodiment of the present invention;

[0051] Fig.10 A flowchart of an initialization method of an anti-electricity theft collection workstation provided by an embodiment of the present invention;

[0052] Fig.11 A structural schematic diagram of an initialization system of an anti-electricity theft collection workstation provided by an embodiment of the present invention;

[0053] Fig.12 The present invention is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention.

[0054] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0055] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0056] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0057] Figure 1 A flowchart of an initialization method of an anti-electricity theft collection workstation provided by an embodiment of the present invention, such as Figure 1 As shown, the method includes:

[0058] S110, obtaining device attribute information of a collection device, and judging whether the collection device is legal according to the device attribute information;

[0059] The executor of the embodiment of the present invention is an anti-electricity theft collection workstation. Any anti-electricity theft collection workstation is referred to as a target anti-electricity theft collection workstation. After the target anti-electricity theft collection workstation is powered on, the device attribute information of the collection device connected to the target anti-electricity theft collection workstation is first obtained. The collection devices in the embodiment of the present invention include power supply service recorders, electricity consumption testers, anti-electricity theft monitoring terminal devices, etc., which can be determined according to actual conditions, and the embodiment of the present invention does not make specific limitations on this. The device attribute information includes but is not limited to the device number, device manufacturer, factory number, etc., which can be determined according to actual conditions, and the embodiment of the present invention does not make specific limitations on this. In the embodiment of the present invention, the target anti-electricity theft collection workstation stores the registration attribute information of the collection device connected to it in advance, and the registration attribute information includes device attribute information.

[0060] In the specific implementation process, after the collection device is powered on, the target anti-electricity theft collection workstation sends query information to the collection device. After receiving the query information, the collection device sends the device attribute information to the target anti-electricity theft collection workstation. After receiving the device attribute information, the target anti-electricity theft collection workstation compares the device attribute information with the registered attribute information in advance at the target anti-electricity theft collection workstation. If they match, the collection device is judged to be legal, otherwise, the collection device is judged to be illegal.

[0061] Figure 2 Schematic diagram of the system architecture of the anti-electricity theft collection workstation in an embodiment of the present invention. Figure 2 As shown, the collection equipment of the embodiment of the present invention includes a power supply service recorder, an electricity consumption inspection instrument and an anti-electricity theft monitoring device. Each anti-electricity theft collection workstation manages its own collection equipment. The anti-electricity theft collection workstation collects monitoring data based on the monitoring data collected by its own collection equipment and uploads the monitoring data to the anti-electricity theft collection workstation. After receiving the monitoring data, the anti-electricity theft collection workstation binds it with the request work order and uploads it to the electronic evidence system. In the embodiment of the present invention, the anti-electricity theft collection workstation is mainly used to manage the collection equipment, and complete the evidence storage by extracting the data of the collection equipment and uploading it to the electronic evidence system. In the embodiment of the present invention, the electronic evidence system mainly includes two modules: the collection workstation equipment management module and the electronic evidence module. The collection workstation equipment management module is mainly used to manage each anti-electricity theft collection workstation, and the electronic evidence module is mainly used to process the archived evidence files uploaded by the anti-electricity theft collection workstation and submit them to the blockchain to complete the evidence archiving.

[0062] In the embodiment of the present invention, the device attribute information of the collection device is used to verify whether the collection device is legitimate. Only after the collection device is verified to be legitimate can the information sent by the collection device be received, thereby ensuring the legitimacy of the collection device and preventing the use of fake devices to steal electricity.

[0063] S120, if it is determined that the acquisition device is legal, obtain a local configuration file according to a specified path, and obtain acquisition device configuration information of the acquisition device from the local configuration file, so that the acquisition device is initialized according to the acquisition device configuration information;

[0064] If it is determined that the collection device is legal, the local configuration file is obtained according to the specified path. In an embodiment of the present invention, the target anti-electricity theft collection workstation includes a storage module, which includes a local database and a file system, and is used to save various parameter configuration information and evidence files of the target anti-electricity theft collection workstation, and the evidence file is the monitoring data uploaded by the collection device. In an embodiment of the present invention, the specified path is the path where the storage module in the target anti-electricity theft collection workstation stores local configuration information, and the local configuration file in the storage module can be found according to the specified path. The local configuration file includes the collection device configuration information, and the collection device configuration information includes the initialization parameters of the collection device, which can be specifically determined according to the actual situation, and the embodiment of the present invention does not specifically limit this.

[0065] After receiving the collection device configuration information, the collection device is initialized according to the collection device configuration information, so that the collection device can enter the working state at any time. It should be noted that the local configuration file in the embodiment of the present invention also includes workstation configuration information and peripheral hardware configuration information. After the target anti-electricity theft collection workstation receives the workstation configuration information, it is initialized according to the workstation configuration information; after the target anti-electricity theft collection workstation receives the peripheral hardware configuration information, it is initialized according to the peripheral hardware configuration information.

[0066] The initialization of the collection equipment in the embodiment of the present invention includes the initialization of the power supply service recorder, the initialization of the power consumption inspection instrument, and the initialization of the anti-electricity theft monitoring terminal.

[0067] Figure 3 This is a flowchart of initializing various acquisition devices in an embodiment of the present invention. Figure 3 As shown, the power supply service recorder in the embodiment of the present invention is mainly used by operators to record the actual situation of outdoor operations in the form of video, audio, and pictures, and retain evidence when abnormalities occur. For the initialization of the power supply service recorder, first call the power supply service recorder SDK to obtain the device attribute information of the power supply service recorder. The device attribute information includes but is not limited to the device number, device manufacturer, factory number, etc. After the device attribute information is successfully obtained, the target anti-electricity theft collection workstation terminal will verify the obtained device attribute information with the power supply service recorder device information pre-registered in the local storage module of the target anti-electricity theft collection workstation. If the verification is successful, the power supply service recorder device is successfully registered and can be used normally. If the verification fails, the power supply service recorder device is in an unavailable state and the user is not allowed to take it away.

[0068] In the embodiment of the present invention, the electricity inspection instrument is mainly used to collect the current and voltage data of the electric energy meter, analyze the inspection results, and save them in the electricity inspection instrument. When the electricity inspection instrument is initialized, it first establishes a connection with the Bluetooth module of the electricity inspection instrument. After the connection is successful, the target anti-electricity theft collection workstation terminal sends a command to the electricity inspection instrument to query the device attribute information. After the device attribute information is successfully obtained, the target anti-electricity theft collection workstation terminal will obtain the device attribute information and verify it with the electricity inspection instrument device information pre-registered in the local storage module of the collection workstation. If the verification is successful, the electricity inspection instrument device is successfully registered and can be used normally. If the verification fails, the electricity inspection instrument device is in an unusable state and the user is not allowed to take it away.

[0069] The anti-electricity theft monitoring terminal in the embodiment of the present invention is mainly used to collect the current curve of the electric energy meter and save it to the anti-electricity theft monitoring terminal. When the anti-electricity theft monitoring terminal is initialized, it first sends a command to the anti-electricity theft monitoring terminal to query the device attribute information. The target anti-electricity theft collection workstation terminal verifies the acquired device attribute information with the anti-electricity theft monitoring terminal device information pre-registered in the local storage module of the target anti-electricity theft collection workstation. If the verification is successful, the anti-electricity theft monitoring terminal device is successfully registered and can be used normally. If the verification fails, the anti-electricity theft monitoring terminal device is in an unavailable state and the user is not allowed to take it away.

[0070] The embodiment of the present invention initializes the acquisition device after the verification of legality, so as to facilitate the subsequent acquisition device to enter the working state.

[0071] S130, obtaining a secret key certificate sent by the electronic certificate system, sending the secret key certificate to a digital certificate certification authority for verification, and obtaining a verification result;

[0072] In the embodiment of the present invention, the electronic certificate system has a set of key pairs, which are an electronic public key and an electronic private key. The electronic public key is used to encrypt data, and the electronic private key is used to decrypt data encrypted with the public key. The electronic certificate system logs the electronic public key to the digital certificate certification authority (CA certification authority). The CA certification authority uses its own digital private key to sign a digital signature to the electronic public key of the electronic certificate system and issues a key certificate.

[0073] In an embodiment of the present invention, after the target anti-electricity theft collection workstation initializes the storage module, it initiates an https request to the electronic certificate system through the URL address of the electronic certificate system to obtain the secret key certificate. Here, the URL address is the location path, and the https request is the web page request. After the target anti-electricity theft collection workstation successfully obtains the secret key certificate, it uses the digital public key of the CA certification agency to verify the digital signature on the secret key certificate with the CA certification agency to confirm the authenticity of the electronic public key of the electronic certificate system. If the verification is successful, the target anti-electricity theft collection workstation has completed the verification of the electronic certificate system. Thereafter, the target anti-electricity theft collection workstation will use the electronic public key of the electronic certificate system to encrypt all transmission messages, requests, messages, etc., and the electronic certificate system will use the electronic private key to decrypt the messages, requests, messages, etc. to ensure the security and reliability of the transmission process of messages, requests, messages, etc. If the verification fails, it means that the electronic certificate system may be a pseudo-device used for stealing electricity, and the connection between the electronic certificate system and the target anti-electricity theft collection workstation is cut off.

[0074] In the embodiment of the present invention, the legitimacy of the electronic certificate system is verified through a secret key certificate to ensure the confidentiality of information and the authenticity and validity of data.

[0075] S140, if the verification result is passed, sending the site information to the electronic certificate system, so that the electronic certificate system returns a matching result according to the site information, and if the matching result is passed, establishing a connection with the electronic certificate system;

[0076] If the verification result is passed, it means that the electronic fixed certificate system is legal. After verifying that the electronic fixed certificate system is legal, the target anti-electricity theft collection workstation registers with the electronic fixed certificate system and establishes a connection with the electronic fixed certificate system.

[0077] In the embodiment of the present invention, the target anti-electricity theft collection workstation needs to register and log in to the electronic evidence system before it can interact with the electronic evidence system data and upload evidence files. In order to ensure the legitimacy of the target anti-electricity theft collection workstation, the target anti-electricity theft collection workstation first registers with the electronic evidence system. If the registration is successful, it means that the target anti-electricity theft collection workstation is legal. If the registration fails, it means that the target anti-electricity theft collection workstation is illegal.

[0078] In the specific implementation process, first, the target anti-electricity theft collection workstation initiates an https request to the electronic certificate system, requesting to log in to the electronic certificate system. The request message body includes but is not limited to the target anti-electricity theft collection workstation site number, site name, longitude and latitude of the site, target anti-electricity theft collection workstation software version, target anti-electricity theft collection workstation address, etc. Then the electronic certificate system verifies the site information of the collection workstation registered in advance in the electronic certificate system to confirm whether the target anti-electricity theft collection workstation is allowed to connect. If the verification is successful, the electronic certificate system identifies the collection workstation as online and returns the verification success and site number to the collection workstation. The embodiment of the present invention matches the site information of the target anti-electricity theft collection workstation with the site information registered in advance in the electronic certificate system. If a match is found, it means that the target anti-electricity theft collection workstation is legal. If a match is not found, it means that the target anti-electricity theft collection workstation is illegal.

[0079] In the embodiment of the present invention, the target anti-electricity theft collection workstation is registered in the electronic evidence system in advance to ensure that the target anti-electricity theft collection workstation can quickly pass the electronic evidence system verification, keep the data link unobstructed, upload evidence data in time, ensure the timeliness of the data, and save the local memory of the collection workstation. In the embodiment of the present invention, the legality of the collection workstation is verified by the electronic evidence system to ensure the confidentiality of information and the authenticity and validity of data.

[0080] S150, if it is determined that the connection is successful, receive the request work order sent by the electronic certificate system, obtain the monitoring data related to the request work order in the initialized collection device according to the request work order, bind the monitoring data with the request work order and upload it to the electronic certificate system.

[0081] If the connection is judged to be successful, the query work order information is sent to the electronic fixed certificate system. After receiving the query work order information, the electronic fixed certificate system stores it in the storage module and returns the request work order based on the query work order information. After the target anti-electricity theft collection workstation receives the request work order, the staff operates the relevant initialized collection equipment according to the request work order, and based on the monitoring data of the initialized collection equipment, binds the monitoring data with the request work order and uploads it to the electronic fixed certificate system.

[0082] The present invention proposes an initialization method for an anti-electricity theft collection workstation, which verifies the device attribute information of the collection device, thereby judging whether the collection device connected to the anti-electricity theft collection workstation is legal. After verifying that the collection device is legal, the collection device is initialized according to the local configuration file; then the legality of the electronic solid certificate system is verified according to the key certificate of the electronic solid certificate system. If the verification is successful, a connection is established with the electronic solid certificate system to facilitate the sending and receiving of messages; and the monitoring data collected by the initialized collection device is bound to the request work order and uploaded to the electronic solid certificate system. The method of an anti-electricity theft collection workstation provided by an embodiment of the present invention verifies the legality of the collection device and the electronic solid certificate system before interacting with the collection device and the electronic solid certificate system. Only authenticated devices can be used, ensuring the safety and reliability of the anti-electricity theft collection workstation and ensuring the confidentiality of information and the authenticity and validity of data, so as to prevent the occurrence of electricity theft accidents; and the bound monitoring data is uploaded to the electronic solid certificate system. When an electricity theft accident occurs, the work order data corresponding to the electricity theft accident can be found through the electronic solid certificate system, which is convenient for checking the person responsible for the electricity theft accident and further preventing the electricity theft accident.

[0083] Based on the above embodiments, preferably, Figure 4 The flowchart of judging whether the acquisition device is legal is provided in the embodiment of the present invention, such as Figure 4 As shown, in step S110, the device attribute information of the acquisition device is obtained, and according to the device attribute information, whether the acquisition device is legal is determined, including:

[0084] S111, sending a device query instruction to the collection device, so that the collection device returns the device attribute information according to the device query instruction, and the device attribute information includes the number of the collection device, the device manufacturer, and the factory number;

[0085] S112, receiving the device attribute information, matching the device attribute information with the preset attribute information of the acquisition device, and if a match is found, determining that the acquisition device is legal, otherwise, determining that the acquisition device is illegal.

[0086] In the embodiment of the present invention, device attribute information of a collection device is obtained, and whether the collection device is legal is judged according to the device attribute information of the collection device. The specific steps are as follows: first, the target anti-electricity theft collection workstation sends a device query instruction to the collection device. After the collection device receives the device query instruction, it obtains the device attribute information and sends the device attribute information to the target anti-electricity theft collection workstation; after the target anti-electricity theft collection workstation receives the device attribute information, it matches it with the preset attribute information stored in advance. If a match is found, it is determined that the collection device is legal; if a match is not found, it is determined that the collection device is not legal.

[0087] Based on the above embodiments, preferably, Figure 5 FIG. 1 is a flow chart of obtaining the configuration information of the acquisition device in an embodiment of the present invention. Figure 5 As shown, in step S120, the process of obtaining a local configuration file according to a specified path and obtaining the acquisition device configuration information of the acquisition device from the local configuration file includes:

[0088] S121, checking whether the storage module of the target anti-electricity theft collection workstation has the local configuration file according to the specified path, and if so, obtaining the local configuration file;

[0089] S122, if it does not exist, sending a configuration request to the electronic certificate system, and receiving the local configuration file returned by the electronic certificate system according to the configuration request, wherein the configuration request includes the device fingerprint of the target anti-electricity theft collection workstation;

[0090] S123, parsing the local configuration file, assigning configuration information in the local configuration file to a preset configuration category, wherein the configuration information in the preset configuration category is saved in the form of a key-value pair;

[0091] S124, selecting a target configuration category from the preset configuration categories according to the function of the acquisition device, and searching in the target configuration category according to the key value of the acquisition device to obtain the acquisition device configuration information.

[0092] Specifically, after the target anti-electricity theft collection workstation completes registration with the electronic fixed evidence system, the local configuration file of the storage module of the target anti-electricity theft collection workstation is first searched according to the specified path. If the local configuration file in the storage module exists, the step of downloading the local configuration file from the electronic fixed evidence system is skipped, and the local configuration file is directly obtained from the storage module; if the local configuration file does not exist in the storage module, the target anti-electricity theft collection workstation initiates an https request message to the electronic fixed evidence system. The request message carries the device fingerprint of the target anti-electricity theft collection workstation. The electronic fixed evidence system matches the parameter configuration information of the target anti-electricity theft collection workstation according to the device fingerprint in the request message, and sends it to the target anti-electricity theft collection workstation, that is, receives the local configuration file returned by the electronic fixed evidence system.

[0093] After receiving the local configuration file, the target anti-electricity theft collection workstation parses the local configuration file. Specifically, the configuration information in the local configuration file can be divided into communication, basic information, face recognition configuration, fingerprint recognition configuration, and system configuration, etc. After classifying the configuration information in the local configuration file, save the configuration items of each category in the form of key-value pairs, define a key value for each configuration item, and the key value should correspond to the value of the configuration item. After completing the above operations, serialize all the classified configuration information and save it in the configuration file under the specified path in the form of a file stream. If the file does not exist, create the configuration file first and then save it.

[0094] Since the local configuration file contains the configuration parameters of each collection device, the target anti-electricity theft collection workstation, and the hardware peripherals connected to the target anti-electricity theft collection workstation, when the configuration information of the collection device needs to be obtained, the target configuration category is selected from the preset configuration categories according to the function of the collection device, and the target configuration category is searched according to the key value of the collection device to obtain the collection device configuration information.

[0095] In the specific implementation process, the target anti-electricity theft collection workstation reads the configuration information of the local configuration file under the specified path, first deserializes the local configuration file, then configures all parameters under the configuration information category, and then extracts the collection device configuration information according to the key value. In the embodiment of the present invention, serialization and deserialization can save storage space and facilitate transmission, and at the same time, can prevent the collection device configuration information from being easily tampered with, and the use of key-value pairs can facilitate the parsing of configuration files.

[0096] In an embodiment of the present invention, in addition to the collection device configuration information, the local configuration file also includes the configuration information of the anti-electricity theft collection workstation and the hardware peripheral configuration information of the anti-electricity theft collection workstation. Specifically, the configuration information of the local configuration file includes the serial port and baud rate of the PCB control board, the communication serial port and baud rate of the collection device, the designated path for file upload, face / fingerprint recognition configuration parameters, the total number of grid ports, the number of rows and columns, the grid port type, the log upload address of the target anti-electricity theft collection workstation, the log retention time, etc.

[0097] It should also be noted that the initialization of the target anti-electricity theft collection workstation also includes the initialization of the PCB control board, the initialization of the identity authentication module and the initialization of the barcode scanning hardware of the collection device.

[0098] The PCB control board is mainly used to control the opening of the target anti-electricity theft collection workstation grid, and to query whether items are placed in the grid, so as to realize the collection equipment management of the target anti-electricity theft collection workstation and assist practitioners in operations such as the entrance and exit of the collection equipment; for the initialization of the PCB control board, the PCB control board initialization first opens the configuration item to save the PCB board serial port, and sends a query command to the PCB control board to query the information of the PCB control board, and the PCB control board information includes but is not limited to the firmware version number, device number, etc.; if the query is successful, a query status command is sent to the PCB control board at regular intervals, and the query status includes the door status and item status of the PCB control grid.

[0099] The identity authentication module includes but is not limited to the face recognition module, fingerprint recognition module, and IC card identity recognition module. The identity authentication module is used to identify the identity of the operating personnel. Only the operating personnel who have registered their identity information in the collection workstation in advance can pass the identity authentication and complete the collection equipment collection and return, evidence archiving and other operations on the target anti-electricity theft collection workstation. The identity authentication module initialization mainly calls the SDK interface provided by the identity authentication module to complete the power-on initialization of the hardware equipment to ensure the normal operation of the equipment.

[0100] The barcode scanning hardware of the collection device is mainly used to scan the barcode number affixed to the collection device and input it into the target anti-electricity theft collection workstation. The target anti-electricity theft collection workstation identifies the collection device according to the barcode number of the collection device to determine whether the collection device belongs to the target anti-electricity theft collection workstation. The barcode scanning hardware initialization of the collection device mainly loads the barcode scanning hardware driver and turns on the scanning hardware always-on mode, indicating that the collection device is always in working condition.

[0101] Based on the above embodiment, preferably, the obtaining of the local configuration file according to the specified path and obtaining the acquisition device configuration information of the acquisition device from the local configuration file further includes:

[0102] Receiving the modified acquisition device configuration information sent by the acquisition device;

[0103] Upload the modified acquisition device configuration information to the electronic certificate system;

[0104] The device fingerprint of the target anti-electricity theft collection workstation is bound to the modified collection device configuration information, and the bound collection device configuration information is uploaded to the electronic evidence system.

[0105] The configuration information in the embodiment of the present invention is mainly stored in the local configuration file. When the configuration is performed for the first time or the configuration information of the collection device is changed or modified, the modified configuration information of the collection device needs to be uploaded to the electronic evidence system. In addition to the collection device configuration information, the uploaded message also includes the device fingerprint of the anti-electricity theft collection workstation. The device fingerprint is the unique serial number of the hardware of the anti-electricity theft collection workstation machine, which can be used as a unique identification code to identify the device characteristics of the collection device and has the characteristic of being difficult to tamper with.

[0106] In the embodiment of the present invention, the device fingerprint of the anti-electricity theft collection workstation and the collection device configuration information are bound and uploaded to the electronic certificate system for storage, which can effectively prevent the problem of configuration parameter loss caused by system reinstallation or disk damage of the anti-electricity theft collection workstation.

[0107] Based on the above embodiments, preferably, Figure 6 FIG. 1 is a flowchart of obtaining verification results in an embodiment of the present invention. Figure 6 As shown, in step S130, the key certificate sent by the electronic certificate system is obtained, the key certificate is sent to a digital certificate certification authority for verification, and the verification result is obtained, including:

[0108] S131, according to the location path of the electronic certificate system, sending a webpage request to the electronic certificate system to obtain the secret key certificate, where the secret key certificate is obtained by the digital certification authority digitally signing the electronic public key of the electronic certificate system using a digital private key;

[0109] S132, sending the secret key certificate to the digital certificate certification authority, so that the digital certification authority verifies the secret key certificate using the digital public key;

[0110] S133, receiving the verification result sent by the digital certification authority.

[0111] In the embodiment of the present invention, the target anti-electricity theft collection workstation first initiates an https web page request to the electronic fixed evidence system through the URL address of the electronic fixed evidence system according to the positioning path of the electronic fixed evidence system, which is a URL address. After the electronic fixed evidence system receives the web page request, it sends the secret key certificate to the target anti-electricity theft collection workstation, and the target anti-electricity theft collection workstation obtains the secret key certificate; wherein, the secret key certificate is obtained by a digital certification agency using a digital private key to digitally sign the electronic public key of the electronic fixed evidence system, that is, before the target anti-electricity theft collection workstation sends a web page request to the electronic fixed evidence system, the electronic fixed evidence system first sends the electronic public key to the digital certification agency, and after the digital certification agency receives the electronic public key, it uses the digital private key of the digital certification agency to sign the electronic public key to obtain the secret key certificate, and finally the digital certification agency sends the key certificate to the electronic fixed evidence system.

[0112] After the target anti-electricity theft collection workstation receives the key certificate, in order to verify that the electronic fixed certificate system is legal and not forged, the target anti-electricity theft collection workstation sends the key certificate to the digital certification agency. After receiving the key certificate, the digital certification agency uses the digital public key to verify the key certificate and sends the verification result to the digital certification agency. If the verification result is successful, it means that the electronic fixed certificate system is legal. If the verification result is failed, it means that the electronic fixed certificate system is illegal.

[0113] Based on the above embodiments, preferably, Figure 7 FIG. 1 is a flow chart of establishing a connection between a target anti-electricity theft collection workstation and an electronic evidence system in an embodiment of the present invention. Figure 7 As shown, in step S140, if the verification result is passed, the site information is sent to the electronic certificate system so that the electronic certificate system returns a matching result according to the site information, and if the matching result is passed, a connection is established with the electronic certificate system, including:

[0114] S141, sending site information to the electronic certificate system, so that the electronic certificate system matches the site information with preset registered site information and returns a matching result;

[0115] S142, if the matching result is passed, register with the electronic certificate system, establish a connection with the electronic certificate system, and regularly send heartbeat messages to the electronic certificate system. If an offline message is received, re-register with the electronic certificate system according to the offline message. The offline message is sent by the electronic certificate system when the heartbeat message is not received within a preset time period.

[0116] Since there are multiple anti-electricity theft collection workstations connected to an electronic fixed certificate system, before the target anti-electricity theft collection workstation is connected to the electronic fixed certificate system, it is also necessary to verify the target anti-electricity theft collection workstation itself to prevent the target anti-electricity theft collection workstation from being illegal. Specifically, before starting work, all target anti-electricity theft collection workstations are assigned a site information, and the site information of each anti-electricity theft collection workstation is registered in the electronic fixed certificate system. When the target anti-electricity theft collection workstation needs to be verified, the target anti-electricity theft collection workstation sends the site information to the electronic fixed certificate system. After receiving the site information, the electronic fixed certificate system matches the site information with the pre-registered site information and returns the matching result; if the matching result is passed, it means that the target anti-electricity theft collection workstation is legal; the target anti-electricity theft collection workstation establishes a connection with the electronic fixed certificate system and sends a heartbeat message to the electronic fixed certificate. If the heartbeat message can always be normal, it means that the connection remains normal; if an offline message is received, it means that the connection between the target anti-electricity theft collection workstation and the electronic fixed certificate system is disconnected, and it is necessary to re-register with the electronic fixed certificate system and re-establish the connection.

[0117] In the specific implementation process, Figure 8 FIG. 1 is a flow chart of verifying the legitimacy of the electronic certificate system of the target anti-electricity theft collection workstation in an embodiment of the present invention. Figure 8 As shown, first, the electronic certificate system is initialized, and the electronic certificate system sends the electronic public key to the digital certification authority (i.e., CA certification authority). Then, after the digital certification structure receives the electronic public key, it uses its own digital private key to encrypt the electronic public key to obtain a secret key certificate, and sends the secret key certificate to the electronic certificate system. The target anti-electricity theft collection workstation sends a request to the electronic certificate system, and the electronic certificate system downloads the secret key certificate according to the request and returns the secret key certificate to the target anti-electricity theft collection workstation; after the target anti-electricity theft collection workstation receives the secret key certificate, it sends the secret key certificate to the CA certification authority, and the CA certification authority verifies the secret key certificate to see if the secret key certificate is valid, and returns the verification result to the target anti-electricity theft collection workstation. If the verification result is passed, it means that the electronic certificate system is legal. If the verification result is not passed, it means that the electronic certificate system is illegal, thereby completing the verification of the electronic certificate system.

[0118] Fig. 9 FIG. 1 is a flowchart of registering a target anti-electricity theft collection workstation to an electronic certificate system in an embodiment of the present invention. Fig. 9As shown, the target anti-electricity theft collection workstation first sends site information to the electronic fixed certificate system, so that the electronic fixed certificate system matches the site information with the preset registration site information and returns the matching result. If the matching result is passed, it means that the target anti-electricity theft collection workstation is legal, and then registers with the electronic fixed certificate system and establishes a connection with the electronic fixed certificate system; and the target anti-electricity theft collection workstation regularly sends heartbeat messages to the electronic fixed certificate system; if the electronic fixed certificate system can always receive the heartbeat message, it means that the connection has been established, and the registration is completed. If the electronic fixed certificate system does not receive the heartbeat message within the preset time period, it means that the connection between the target anti-electricity theft collection workstation and the electronic fixed certificate system is disconnected, and the target anti-electricity theft collection workstation re-registers with the electronic fixed certificate system according to the offline message and re-establishes a connection with the electronic fixed certificate system; and for the target anti-electricity theft collection workstation in the offline state, the electronic fixed certificate system will not reply to its uploaded message.

[0119] Fig.10 A flowchart of an initialization method of an anti-electricity theft collection workstation provided by an embodiment of the present invention is shown in FIG. Fig.10 As shown, after the anti-electricity theft collection workstation is powered on, it first obtains the device attribute information of the collection device, and then determines whether the collection device is legal based on the device attribute information of the collection device. If it is legal, it starts to read the local configuration file under the specified path. If the local configuration file does not exist, it requests the electronic certificate system to download the local configuration file. After the local configuration file is read, it starts to initialize the hardware devices connected to the target anti-electricity theft collection workstation, such as PCB control board, face / fingerprint device, scanning device and other external devices; and interacts with the hardware device to obtain hardware device information, such as hardware version, hardware initialization status, etc., to ensure that all hardware devices are powered on normally and can be used normally. After the hardware device is initialized, the collection device is initialized; the collection device includes but is not limited to power supply service recorder, electricity consumption inspection instrument, anti-electricity theft monitoring terminal, and the device legality and availability are determined by obtaining the collection device information and verifying the device information pre-registered in the collection workstation.

[0120] After the verification is passed, the target anti-electricity theft collection workstation reads the URL path of the electronic fixed certificate system, requests the electronic fixed certificate system to download the secret key certificate, and after downloading the secret key certificate, verifies the secret key certificate with the CA certification body to confirm whether the electronic fixed certificate system is legal. After the verification is passed, a registration request is initiated to the electronic fixed certificate system to register the device information of the target anti-electricity theft collection workstation. After successful registration, the electronic fixed certificate system returns the site number to the target anti-electricity theft collection workstation terminal. At this point, the target anti-electricity theft collection workstation successfully joins the electronic fixed certificate system. Subsequently, the target anti-electricity theft collection workstation requests a task work order from the electronic fixed certificate system, and the electronic fixed certificate system issues all request work orders for the site; the target anti-electricity theft collection workstation saves all request work orders to the local data storage module, and binds the request work order with the monitoring data related to the request work order in the initialized collection device, and uploads the bound data to the electronic fixed certificate system.

[0121] In summary, the embodiment of the present invention provides an initialization method for an anti-electricity theft collection workstation, which verifies the legitimacy of the collection equipment through the target anti-electricity theft collection workstation, and only the authenticated equipment can be added to the target anti-electricity theft collection workstation, thereby ensuring the safety and reliability of the collection workstation; the target anti-electricity theft collection workstation is registered in the electronic evidence system in advance, thereby ensuring that the target anti-electricity theft collection workstation can quickly pass through the electronic evidence system; the legitimacy of the target anti-electricity theft collection workstation is verified through the electronic evidence system, thereby ensuring the confidentiality of information and the authenticity and validity of data; the configuration information of the target anti-electricity theft collection workstation is uploaded to the electronic evidence system, and when the target anti-electricity theft collection workstation system is reinstalled or the disk is damaged, the configuration information can still be loaded through the electronic evidence system, thereby ensuring that the configuration information is not lost; the public key of the electronic evidence system is verified through the CA certification agency, thereby ensuring the legitimacy of the electronic evidence system; the data link is verified and kept unobstructed, and the evidence data is uploaded in time to ensure the timeliness of the data, and the local memory of the collection workstation can be saved.

[0122] Fig.11 A schematic diagram of the structure of an initialization system of an anti-electricity theft collection workstation provided by an embodiment of the present invention, such as Fig.11 As shown, the system includes a legal module 1110, a configuration module 1120, a verification module 1130, a registration module 1140 and a work order module 1150, wherein:

[0123] The legal module 1110 is used to obtain device attribute information of the acquisition device, and determine whether the acquisition device is legal based on the device attribute information;

[0124] The configuration module 1120 is used to obtain the local configuration file according to the specified path if it is determined that the acquisition device is legal, and obtain the acquisition device configuration information of the acquisition device from the local configuration file, so that the acquisition device is initialized according to the acquisition device configuration information;

[0125] The verification module 1130 is used to obtain the secret key certificate sent by the electronic certificate system, send the secret key certificate to the digital certificate certification authority for verification, and obtain the verification result;

[0126] The registration module 1140 is used to send site information to the electronic certificate system if the verification result is passed, so that the electronic certificate system returns a matching result according to the site information, and if the matching result is passed, establish a connection with the electronic certificate system;

[0127] The work order module 1150 is used to receive a request work order sent by the electronic certificate system if it is determined that the connection is successful, obtain monitoring data related to the request work order in the initialized collection device according to the request work order, bind the monitoring data with the request work order, and upload it to the electronic certificate system.

[0128] This embodiment is a system embodiment corresponding to the above method, and its specific implementation process is the same as that of the above method embodiment. For details, please refer to the above method embodiment, and this system embodiment will not elaborate on it.

[0129] Based on the above embodiment, preferably, the legal module includes a query unit and a matching unit, wherein:

[0130] The query unit is used to send a device query instruction to the acquisition device, so that the acquisition device returns the device attribute information according to the device query instruction, and the device attribute information includes the number, device manufacturer, and factory number of the acquisition device;

[0131] The matching unit is used to receive the device attribute information, and match the device attribute information with the preset attribute information of the acquisition device. If a match is found, the acquisition device is determined to be legal; otherwise, the acquisition device is determined to be illegal.

[0132] Based on the above embodiment, preferably, the configuration module includes a path unit, a request unit, a parsing unit and a key value unit, wherein:

[0133] The path unit is used to check whether the storage module of the target anti-electricity theft collection workstation has the local configuration file according to the specified path, and if so, obtain the local configuration file;

[0134] The request unit is used to send a configuration request to the electronic certificate system if it does not exist, and receive the local configuration file returned by the electronic certificate system according to the configuration request, wherein the configuration request includes the device fingerprint of the target anti-electricity theft collection workstation;

[0135] The parsing unit is used to parse the local configuration file, and assign the configuration information in the local configuration file to a preset configuration category, wherein the configuration information in the preset configuration category is saved in the form of a key-value pair;

[0136] The key value unit is used to select a target configuration category from the preset configuration categories according to the function of the acquisition device, and search in the target configuration category according to the key value of the acquisition device to obtain the acquisition device configuration information.

[0137] On the basis of the above embodiment, preferably, the configuration module further includes a receiving unit, an uploading unit and a binding unit, wherein:

[0138] The receiving unit is used to receive the modified acquisition device configuration information sent by the acquisition device;

[0139] The uploading unit is used to upload the modified acquisition device configuration information to the electronic certificate system;

[0140] The binding unit is used to bind the device fingerprint of the target anti-electricity theft collection workstation with the modified collection device configuration information, and upload the bound collection device configuration information to the electronic evidence system.

[0141] On the basis of the above embodiment, preferably, the configuration module further includes a serialization unit, wherein:

[0142] The serialization unit is used to serialize the acquisition device configuration information in the preset configuration category, and store the preset configuration category in the local configuration file in the form of a file stream.

[0143] Based on the above embodiment, preferably, the verification module includes a path unit, an authentication unit and a result unit, wherein:

[0144] The path unit is used to send a webpage request to the electronic certificate system according to the location path of the electronic certificate system to obtain the secret key certificate, where the secret key certificate is obtained by the digital certification authority digitally signing the electronic public key of the electronic certificate system using a digital private key;

[0145] The authentication unit is used to send the secret key certificate to the digital certificate authentication authority, so that the digital authentication authority verifies the secret key certificate using the digital public key;

[0146] The result unit is used to receive the verification result sent by the digital certification authority.

[0147] Based on the above embodiment, preferably, the registration module includes a site unit and a registration unit, wherein:

[0148] The site unit is used to send site information to the electronic certificate system, so that the electronic certificate system matches the site information with the preset registered site information and returns the matching result;

[0149] The registration unit is used to register with the electronic certificate system if the matching result is passed, establish a connection with the electronic certificate system, and regularly send heartbeat messages to the electronic certificate system. If an offline message is received, re-register with the electronic certificate system according to the offline message. The offline message is sent by the electronic certificate system when the heartbeat message is not received within a preset time period.

[0150] Each module in the initialization system of the anti-electricity theft collection workstation can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0151] Fig.12 FIG. 1 is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig.12 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a computer storage medium and an internal memory. The computer storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the computer storage medium. The database of the computer device is used to store data generated or obtained during the execution of the initialization method of the anti-electricity theft collection workstation, such as device attribute information and local configuration files. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an initialization method for an anti-electricity theft collection workstation is implemented.

[0152] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the initialization method of the anti-electricity theft collection workstation in the above embodiment are implemented. Alternatively, when the processor executes the computer program, the functions of each module / unit in the embodiment of the initialization system of the anti-electricity theft collection workstation are implemented.

[0153] In one embodiment, a computer storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the initialization method of the anti-electricity theft collection workstation in the above embodiment are implemented. Alternatively, when the computer program is executed by a processor, the functions of each module / unit in the embodiment of the initialization system of the anti-electricity theft collection workstation are implemented.

[0154] 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 memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. 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. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0155] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0156] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for initializing an anti-electricity theft collection workstation, characterized in that: include: Acquire device attribute information of the collection device, and determine whether the collection device is legal based on the device attribute information; If it is determined that the acquisition device is legal, a local configuration file is obtained according to a specified path, and acquisition device configuration information of the acquisition device is obtained from the local configuration file, so that the acquisition device is initialized according to the acquisition device configuration information; Obtain the secret key certificate sent by the electronic certificate system, send the secret key certificate to the digital certificate certification authority for verification, and obtain the verification result; If the verification result is passed, the site information is sent to the electronic certificate system so that the electronic certificate system returns a matching result according to the site information; if the matching result is passed, a connection is established with the electronic certificate system, and it is determined whether the connection is successful; If it is determined that the connection is successful, a request work order sent by the electronic certificate system is received, monitoring data related to the request work order in the initialized acquisition device is obtained according to the request work order, and the monitoring data is bound to the request work order and uploaded to the electronic certificate system; The step of obtaining a local configuration file according to a specified path and obtaining the acquisition device configuration information of the acquisition device from the local configuration file includes: According to the specified path, checking whether the storage module of the target anti-electricity theft collection workstation has the local configuration file, and if so, obtaining the local configuration file; If not, sending a configuration request to the electronic certificate system, and receiving the local configuration file returned by the electronic certificate system according to the configuration request, wherein the configuration request includes the device fingerprint of the target anti-electricity theft collection workstation; Parsing the local configuration file, assigning configuration information in the local configuration file to a preset configuration category, wherein the configuration information in the preset configuration category is saved in the form of a key-value pair; According to the function of the acquisition device, a target configuration category is selected from the preset configuration categories, and according to the key value of the acquisition device, the target configuration category is searched to obtain the acquisition device configuration information.

2. The initialization method of the anti-electricity theft collection workstation according to claim 1 is characterized in that: The acquiring device attribute information of the acquisition device and judging whether the acquisition device is legal according to the device attribute information include: Sending a device query instruction to the acquisition device, so that the acquisition device returns the device attribute information according to the device query instruction, the device attribute information including the number, device manufacturer, and factory number of the acquisition device; The device attribute information is received, and the device attribute information is matched with the preset attribute information of the acquisition device. If a match is found, the acquisition device is determined to be legal; otherwise, the acquisition device is determined to be illegal.

3. The initialization method of the anti-electricity theft collection workstation according to claim 1 is characterized in that: The step of obtaining the local configuration file according to the specified path and obtaining the acquisition device configuration information of the acquisition device from the local configuration file also includes: Receiving the modified acquisition device configuration information sent by the acquisition device; Upload the modified acquisition device configuration information to the electronic certificate system; The device fingerprint of the target anti-electricity theft collection workstation is bound to the modified collection device configuration information, and the bound collection device configuration information is uploaded to the electronic evidence system.

4. The initialization method of the anti-electricity theft collection workstation according to claim 1 is characterized in that: The method further comprises: obtaining a local configuration file according to a specified path, and obtaining the acquisition device configuration information of the acquisition device from the local configuration file; and then: The acquisition device configuration information in the preset configuration category is serialized, and the preset configuration category is stored in the local configuration file in the form of a file stream.

5. The initialization method of the anti-electricity theft collection workstation according to claim 1, characterized in that: The step of obtaining the secret key certificate sent by the electronic certificate system, sending the secret key certificate to a digital certificate certification authority for verification, and obtaining the verification result includes: According to the location path of the electronic certificate system, a web page request is sent to the electronic certificate system to obtain the secret key certificate, where the secret key certificate is obtained by the digital certificate certification authority digitally signing the electronic public key of the electronic certificate system using a digital private key; Sending the secret key certificate to the digital certificate certification authority so that the digital certificate certification authority verifies the secret key certificate using the digital public key; Receive the verification result sent by the digital certificate certification authority.

6. The initialization method of the anti-electricity theft collection workstation according to claim 1, characterized in that: If the verification result is passed, the site information is sent to the electronic certificate system so that the electronic certificate system returns a matching result according to the site information, and if the matching result is passed, a connection is established with the electronic certificate system, including: Sending site information to the electronic certificate system so that the electronic certificate system matches the site information with the preset registered site information and returns the matching result; If the matching result is passed, register with the electronic certificate system, establish a connection with the electronic certificate system, and regularly send heartbeat messages to the electronic certificate system. If an offline message is received, re-register with the electronic certificate system according to the offline message. The offline message is sent by the electronic certificate system when the heartbeat message is not received within a preset time period.

7. An initialization system for an anti-electricity theft collection workstation, characterized in that: include: A legal module, used to obtain device attribute information of a collection device, and determine whether the collection device is legal based on the device attribute information; A configuration module, configured to obtain a local configuration file according to a specified path if it is determined that the acquisition device is legal, and obtain acquisition device configuration information of the acquisition device from the local configuration file, so that the acquisition device is initialized according to the acquisition device configuration information; The verification module is used to obtain the secret key certificate sent by the electronic certificate system, send the secret key certificate to the digital certificate certification authority for verification, and obtain the verification result; A registration module, configured to, if the verification result is passed, send site information to the electronic certificate system so that the electronic certificate system returns a matching result according to the site information, and if the matching result is passed, establish a connection with the electronic certificate system; A work order module is used to receive a request work order sent by the electronic certificate system if it is determined that the connection is successful, obtain monitoring data related to the request work order in the initialized collection device according to the request work order, bind the monitoring data with the request work order, and upload them to the electronic certificate system; The step of obtaining a local configuration file according to a specified path and obtaining the acquisition device configuration information of the acquisition device from the local configuration file includes: According to the specified path, checking whether the storage module of the target anti-electricity theft collection workstation has the local configuration file, and if so, obtaining the local configuration file; If not, sending a configuration request to the electronic certificate system, and receiving the local configuration file returned by the electronic certificate system according to the configuration request, wherein the configuration request includes the device fingerprint of the target anti-electricity theft collection workstation; Parsing the local configuration file, assigning configuration information in the local configuration file to a preset configuration category, wherein the configuration information in the preset configuration category is saved in the form of a key-value pair; According to the function of the acquisition device, a target configuration category is selected from the preset configuration categories, and according to the key value of the acquisition device, the target configuration category is searched to obtain the acquisition device configuration information.

8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the initialization method of the anti-electricity theft collection workstation according to any one of claims 1 to 6 are implemented.

9. A computer storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the initialization method of the anti-electricity theft collection workstation as claimed in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Data uploading method, device and system

    CN106105154A

  • Electronic data management method and device based on alliance chain and storage medium

    CN111651794A