Data collection method, device, electronic device and computer-readable storage medium

By setting up a virtual collector on an electronic device and configuring multiple scenario tasks, the problem of single function of the physical collector is solved, and flexible data acquisition is achieved to adapt to multiple scenario requirements.

CN115278401BActive Publication Date: 2025-08-12NINGBO SANXING INTELLIGENT ELECTRIC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210884494.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-25
Publication Date
2025-08-12
Estimated Expiration
2042-07-25

AI Technical Summary

Technical Problem

The existing physical collector functions are fixed and single, and cannot meet the different needs of multiple application scenarios.

Method used

Set up a virtual collector on an electronic device, configure tasks in different scenarios, determine the target task by triggering events, and control the virtual collector to run the target task, obtain and send the target data.

Benefits of technology

It adapts to different needs in multiple scenarios, overcomes the problem of single function of the physical collector and realizes flexible data acquisition capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115278401B_ABST
    Figure CN115278401B_ABST
Patent Text Reader

Abstract

The present application provides a data acquisition method, apparatus, electronic device, and computer-readable storage medium, relating to the field of virtual collectors. The electronic device is provided with a virtual collector configured with tasks for different scenarios. Upon receiving a trigger event for a target scenario, the electronic device determines a target task corresponding to the target scenario. The device controls the virtual collector to execute the target task, obtain target acquisition data, and transmits the target acquisition data to an acquisition terminal, which then transmits the target acquisition data to a collection master station. This method can adapt to the diverse needs of various scenarios, overcoming the problem in existing technologies where the single function of physical collectors prevents the device from meeting the diverse needs of various application scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of virtual collectors, and in particular to a data collection method, device, electronic device and computer-readable storage medium. Background Art

[0002] Currently, in power systems, data is often obtained from multiple electricity meters through physical collectors, and the obtained data is sent to a collection terminal.

[0003] However, the functions of the physical collector are relatively fixed and single. Therefore, the existing method of obtaining data through the physical collector and sending it to the collection terminal cannot meet the different needs in various application scenarios. Summary of the Invention

[0004] In view of this, the purpose of this application is to provide a data collection method, device, electronic device and computer-readable storage medium to solve the problem in the prior art that the physical collector has fixed and single functions and cannot meet the different needs in various application scenarios.

[0005] In order to achieve the above objectives, the technical solutions adopted in the embodiments of the present application are as follows:

[0006] In a first aspect, the present application provides a data collection method, which is applied to an electronic device, wherein the electronic device is communicatively connected to a collection terminal, and the collection terminal is communicatively connected to a collection master station. The electronic device is provided with a virtual collector, and the virtual collector is configured with tasks for different scenarios. The method includes:

[0007] When a triggering event of a target scene is obtained, a target task corresponding to the target scene is determined;

[0008] The virtual collector is controlled to run the target task, obtain target acquisition data, and send the target acquisition data to the acquisition terminal, so that the acquisition terminal sends the target acquisition data to the acquisition master station.

[0009] In an optional embodiment, when a triggering event of a target scene is acquired, determining a target task corresponding to the target scene includes:

[0010] When a trigger event of a simulated power outage / power-on scenario is obtained, determining that a target task corresponding to the simulated power outage / power-on scenario is a simulated power outage / power-on task;

[0011] The controlling the virtual collector to run the target task and obtain target acquisition data includes:

[0012] The virtual collector is controlled to run the simulated power-off task to simulate a smart meter and a physical collector, and obtain the power-off status of the smart meter and / or the power-off status of the physical collector to generate simulated power-off data.

[0013] In an optional embodiment, the virtual collector is configured with a meter reading solution, and when a triggering event of a target scenario is obtained, determining a target task corresponding to the target scenario includes:

[0014] When a trigger event of a simulated meter reading scenario is obtained, determining that a target task corresponding to the simulated meter reading scenario is a simulated meter reading task;

[0015] The controlling the virtual collector to run the target task and obtain target acquisition data includes:

[0016] Control the virtual collector to run the simulated meter reading task, so as to simulate multiple physical collectors and multiple smart meters when the simulated meter reading task is a multi-threaded task, and control the simulated multiple physical collectors to perform concurrent meter reading on the simulated multiple smart meters according to the meter reading scheme to obtain simulated concurrent meter reading data; and when the simulated meter reading task is a single-threaded task, simulate a physical collector and at least one smart meter, and control the simulated physical collectors to perform meter reading on the simulated smart meters according to the meter reading scheme to obtain simulated meter reading data.

[0017] In an optional embodiment, when a triggering event of a target scene is acquired, determining a target task corresponding to the target scene includes:

[0018] When a triggering event of a simulated event scenario is obtained, determining a target task corresponding to the simulated event scenario as a simulated event task;

[0019] The controlling the virtual collector to run the target task and obtain target acquisition data includes:

[0020] The virtual collector is controlled to run the simulated event task to simulate a physical collector and a smart meter, and the simulated physical collector is controlled to perform event detection on the simulated smart meter to obtain simulated event data.

[0021] In an optional embodiment, when a triggering event of a target scene is acquired, determining a target task corresponding to the target scene includes:

[0022] When a trigger event of a suspected power outage detection scenario is obtained, determining that a target task corresponding to the suspected power outage detection scenario is a suspected power outage detection task;

[0023] The controlling the virtual collector to run the target task and obtain target acquisition data includes:

[0024] Controlling the virtual collector to run the suspected power outage detection task to simulate a physical collector, and controlling the simulated physical collector to send a detection signal to the smart meter at a preset time interval, and determining whether a feedback signal from the smart meter is received;

[0025] When the number of times the feedback signal is not received reaches a preset number, determining that the smart meter is in a suspected power outage state and generating suspected power outage data;

[0026] In the case where it is determined that the smart meter is in a suspected power-off state, if a feedback signal from the smart meter is received, the smart meter is determined to be in a suspected power-on state, and suspected power-on data is generated.

[0027] In an optional embodiment, when a triggering event of a target scene is acquired, determining a target task corresponding to the target scene includes:

[0028] When a trigger event of a meter reading scenario is obtained, determining that a target task corresponding to the meter reading scenario is a meter reading task;

[0029] The controlling the virtual collector to run the target task and obtain target acquisition data includes:

[0030] The virtual collector is controlled to run the meter reading task to simulate a physical collector, and the simulated physical collector is controlled to collect data from the smart meter according to a pre-configured meter reading scheme to obtain meter reading data.

[0031] In an optional embodiment, the method further comprises:

[0032] Controlling the simulated physical collector to detect whether a target event occurs in the smart meter when executing the meter reading task;

[0033] When a target event occurs in the smart meter, the simulated physical collector is controlled to obtain event data of the target event and send the event data to the collection terminal, so that the collection terminal sends the event data to the collection master station.

[0034] In a second aspect, the present application provides a data acquisition device, which is applied to an electronic device, wherein the electronic device is communicatively connected to a collection terminal, and the collection terminal is communicatively connected to a collection master station. The electronic device is provided with a virtual collector, and the virtual collector is configured with tasks for different scenarios. The device includes:

[0035] A determination module, configured to determine a target task corresponding to a target scenario when a triggering event of the target scenario is obtained;

[0036] The control module is used to control the virtual collector to run the target task, obtain target acquisition data, and send the target acquisition data to the acquisition terminal, so that the acquisition terminal sends the target acquisition data to the acquisition master station.

[0037] In a third aspect, the present application provides an electronic device comprising a processor and a memory, wherein the memory stores a computer program executable by the processor, and the processor can execute the computer program to implement any of the methods described in the aforementioned embodiments.

[0038] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method as described in any one of the aforementioned embodiments.

[0039] The data acquisition method, device, electronic device, and computer-readable storage medium provided in the embodiments of the present application are provided with a virtual collector on the electronic device, and the virtual collector is configured with tasks for different scenarios. On this basis, when the electronic device obtains a trigger event for the target scenario, it determines the target task corresponding to the target scenario, thereby controlling the virtual collector to run the target task, obtain target acquisition data, and send the target acquisition data to the acquisition terminal, so that the acquisition terminal can send the target acquisition data to the acquisition master station. By configuring tasks for different scenarios in the virtual collector, when the trigger event for the target scenario is obtained, it is possible to determine the target task corresponding to the target scenario, control the virtual collector to run the target task, obtain target acquisition data, and send it to the acquisition terminal. Therefore, it is possible to adapt to different needs in multiple scenarios, overcoming the problem in the prior art that the physical collector has a single function and cannot meet different needs in multiple application scenarios.

[0040] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.

[0042] Figure 1 shows a block diagram of an acquisition system;

[0043] Figure 2 A block diagram of an electronic device provided in an embodiment of the present application is shown;

[0044] Figure 3 A schematic diagram of a process of a data collection method provided in an embodiment of the present application is shown;

[0045] Figure 4 Another flow chart of the data acquisition method provided in the embodiment of the present application is shown;

[0046] Figure 5 Another flow chart of the data acquisition method provided in the embodiment of the present application is shown;

[0047] Figure 6 Another flow chart of the data acquisition method provided in the embodiment of the present application is shown;

[0048] Figure 7 A functional module diagram of the data acquisition device provided in an embodiment of the present application is shown.

[0049] Icon: 10-acquisition system; 100-electronic equipment; 101-memory; 102-processor; 103-communication module; 110-acquisition terminal; 120-acquisition master station; 130-smart meter; 200-determination module; 210-control module. DETAILED DESCRIPTION

[0050] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Generally, the components of the embodiments of the present application described and shown in the drawings herein can be arranged and designed in various different configurations.

[0051] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for protection, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making any creative efforts shall fall within the scope of protection of the present application.

[0052] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.

[0053] Please refer to Figure 1 , is a block diagram of a collection system 10, which includes an electronic device 100, a collection terminal 110, a collection master station 120, and at least one smart meter 130, wherein the electronic device 100 is communicatively connected to the smart meter 130 and the collection terminal 110, and the collection terminal 110 is communicatively connected to the collection master station 120.

[0054] Alternatively, in one possible implementation, the electronic device 100 may be connected to the data collection terminal 110 via an HPLC (High Speed Power Line Carrier Communication) physical communication mode, and to the smart meter 130 via an RS485 communication mode. In another possible implementation, the electronic device 100 may be communicatively connected to the data collection terminal 110 and the smart meter 130 via the RS485 communication mode. Optionally, the electronic device 100 is provided with a virtual data collector, which may be configured with tasks for different scenarios, and the electronic device may support the State Grid 698-45 / 645-07 communication protocol.

[0055] Optionally, the acquisition terminal 110 may be configured to receive data sent by the electronic device 100 and send the data to the acquisition master station 120. In one possible implementation, the acquisition terminal may be a PC.

[0056] Optionally, if the electronic device 100 is connected to the acquisition terminal 110 via the HPLC physical communication mode, the acquisition terminal 110 may be provided with a carrier CCO (Central Coordinator) communication module, and the electronic device 100 may be provided with a STA (Stattion) communication module, wherein the STA module is used to send data to the acquisition terminal, and the carrier CCO module is used to receive data sent by the electronic device 100.

[0057] Optionally, the smart meter 130 can collect the user's electricity usage data; the collection master station 120 can receive and save the data sent by the collection terminal.

[0058] For further information, see Figure 2 , is a block diagram of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 includes a memory 101, a processor 102, and a communication module 103. The memory 101, processor 102, and communication module 103 are electrically connected to each other directly or indirectly to enable data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses or signal lines.

[0059] The memory 101 is used to store programs or data. The memory 101 can be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.

[0060] The processor 102 is used to read / write data or programs stored in the memory and execute corresponding functions.

[0061] The communication module 103 is used to establish a communication connection between the server and other communication terminals through the network, and to send and receive data through the network.

[0062] It should be understood that Figure 2 The structure shown is only a schematic diagram of the structure of the electronic device 100. The electronic device may also include Figure 2 More or fewer components than shown, or with Figure 2 Different configurations shown. Figure 2 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0063] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the data acquisition method provided in the embodiment of the present application can be implemented.

[0064] Next, the above Figure 1The electronic device 100 is the execution subject, and the data collection method provided in the embodiment of the present application is exemplarily introduced in combination with the flow chart. Specifically, Figure 3 A flow chart of the data collection method provided in the embodiment of the present application is shown in FIG. Figure 3 , the method comprising:

[0065] Step S20, when a triggering event of a target scene is obtained, determining a target task corresponding to the target scene;

[0066] Optionally, the trigger event is an event that can trigger the target scene. In one possible implementation method, the trigger event may be an instruction issued by a staff member to instruct the electronic device to enter the corresponding scene; in another possible implementation method, the trigger event may be the data in the smart meter obtained by the virtual collector during operation or the status of the smart meter actively detected.

[0067] Optionally, the target scene may be the scene pointed to by the trigger event; the target task is the task that the virtual collector should perform in the target scene.

[0068] Step S21 , controlling the virtual collector to run the target task, obtaining target collected data, and sending the target collected data to the collection terminal, so that the collection terminal sends the target collected data to the collection master station.

[0069] Optionally, the target collection data is data acquired by the virtual collector when running the target task.

[0070] In one possible implementation, the electronic device may actively send the target collection data to the collection terminal; in another possible implementation, the collection terminal may send a collection instruction to the electronic device according to a preset time length to request to obtain the target collection data. After receiving the collection instruction, the electronic device may send the target collection data to the collection terminal.

[0071] In this embodiment, the electronic device can receive a trigger event of the target scene, thereby determining the target task corresponding to the target scene, and then control the virtual collector to run the target task, obtain target acquisition data, and then send the target acquisition data to the acquisition terminal, and the acquisition terminal can send the target acquisition data to the acquisition master station.

[0072] The data acquisition method provided by the embodiment of the present application is provided with a virtual collector on the electronic device, and the virtual collector is configured with tasks for different scenarios. On this basis, when the electronic device obtains the trigger event of the target scene, it can determine the target task corresponding to the target scene, thereby controlling the virtual collector to run the target task, obtain target acquisition data, and send the target acquisition data to the acquisition terminal, so that the acquisition terminal sends the target acquisition data to the acquisition master station. By configuring tasks for different scenarios in the virtual collector, when the trigger event of the target scene is obtained, the target task corresponding to the target scene can be determined, the virtual collector can be controlled to run the target task, the target acquisition data can be obtained and sent to the acquisition terminal. Therefore, it can adapt to different needs in multiple scenarios, overcoming the problem in the prior art that the physical collector has a single function and cannot meet different needs in multiple application scenarios.

[0073] Optionally, the virtual collector may store relevant data of the smart meter and the physical collector, and the electronic device may control the virtual collector to simulate the smart meter and the physical collector according to the corresponding data, thereby obtaining corresponding simulation data from the simulated smart meter by controlling the operation of the simulated physical collector.

[0074] On this basis, in one possible implementation, the target scenario may be a simulated power outage scenario, the target task corresponding to the target scenario may be a simulated power outage task, and the target collected data may be simulated power outage data. Figure 3 On the basis of Figure 4 For another flow chart of the data collection method provided in the embodiment of the present application, please refer to Figure 4 , the above step S20 can also be implemented by the following steps:

[0075] Step S20-1, when a trigger event of a simulated power outage / on-on scenario is obtained, determining that a target task corresponding to the simulated power outage / on-on scenario is a simulated power outage / on-on task;

[0076] Optionally, the triggering event for the simulated power-off / on scenario may be the electronic device receiving a simulated power-off / on command. The simulated power-off / on command may be a command issued by a staff member to the electronic device, instructing the electronic device to enter the simulated power-off / on scenario, or may be a command sent by the collection terminal to the virtual collector upon receiving a simulated power-off / on data call-up command sent by the collection master station.

[0077] Optionally, after a trigger event of a simulated power outage / power-on scenario is acquired, a target task corresponding to the simulated power outage / power-on scenario may be determined from different tasks under different scenarios configured in the virtual collector.

[0078] In this embodiment, the target task corresponding to the simulated power outage and power-on scenario is a simulated power outage and power-on task.

[0079] On this basis, please continue to see Figure 4 , the above step S21 can also be implemented by the following steps:

[0080] Step S21-1, control the virtual collector to run the simulated power-on / off task to simulate the smart meter and the physical collector, and obtain the power-on / off status of the smart meter and / or the power-on / off status of the physical collector, and generate simulated power-on / off data.

[0081] Optionally, after determining that the target task is a simulated power-off task, the electronic device can control the virtual collector to run the simulated power-off task, and the virtual collector can simulate the smart meter and the physical collector, and the simulated physical collector obtains the power-off status of the simulated smart meter and / or the power-off status of the simulated physical collector, and generates power-off data.

[0082] Optionally, the virtual collector may be pre-configured with at least one meter reading plan, which may be sent by the collection master station to the collection terminal, and then sent by the collection terminal to an electronic device, which then configures the meter reading plan into the virtual collector.

[0083] In one example, the meter reading solution may include minute-freeze reading, curve data reading, daily-freeze reading, etc.

[0084] Based on this, in another possible implementation, the target scenario can also be a simulated meter reading scenario, and the target task corresponding to the target scenario can be a simulated meter reading task, and the target collection data can include simulated concurrent meter reading data and simulated meter reading data. Figure 3 On the basis of, the above step S20 can also be implemented by the following steps:

[0085] When a trigger event of a simulated meter reading scenario is obtained, determining that a target task corresponding to the simulated meter reading scenario is a simulated meter reading task;

[0086] Optionally, the triggering event for the simulated meter reading scenario may be the electronic device receiving a simulated meter reading instruction. The simulated meter reading instruction may be a command issued by a staff member to the electronic device, instructing the electronic device to enter the simulated meter reading scenario, or it may be a command sent by the collection terminal to the virtual collector upon receiving a simulated meter reading data call instruction sent by the collection master station. Based on this, the above step S21 may also be implemented by the following steps:

[0087] Control the virtual collector to run the simulated meter reading task, so that when the simulated meter reading task is a multi-threaded task, multiple physical collectors and multiple smart meters are simulated, and the simulated multiple physical collectors are controlled to perform concurrent meter reading on the simulated multiple smart meters according to the meter reading plan to obtain simulated concurrent meter reading data; and when the simulated meter reading task is a single-threaded task, a physical collector and at least one smart meter are simulated, and the simulated physical collectors are controlled to read the simulated smart meters according to the meter reading plan to obtain simulated meter reading data.

[0088] Optionally, the simulated meter reading instruction may include a multi-threaded simulated meter reading instruction and a single-threaded simulated meter reading instruction. It is understood that in this case, if the simulated meter reading instruction is a multi-threaded simulated meter reading instruction, the electronic device may determine that the simulated meter reading scenario is a multi-threaded simulated meter reading scenario and the target task is a multi-threaded simulated meter reading task; if the simulated meter reading instruction is a single-threaded simulated meter reading instruction, the electronic device may determine that the simulated meter reading scenario is a single-threaded simulated meter reading scenario and the target task is a single-threaded simulated meter reading task.

[0089] In this embodiment, if the simulated meter reading task is a multi-threaded simulated meter reading task, the electronic device can control the virtual collector to simulate multiple physical collectors and multiple smart meters, and control the simulated multiple physical collectors to perform concurrent meter reading on the simulated multiple smart meters according to the meter reading plan, thereby obtaining simulated concurrent meter reading data.

[0090] Optionally, the concurrent meter reading may be to control multiple simulated physical collectors to run the meter reading solution simultaneously, thereby obtaining simulated concurrent data from multiple smart meters.

[0091] In this embodiment, each simulated physical collector can respectively collect data from one or more simulated smart meters, and specific settings can be made according to actual needs.

[0092] In this embodiment, if the simulated meter reading task is a single-threaded simulated meter reading task, the electronic device can control the virtual collector to simulate the physical collector and at least one smart meter, thereby controlling the simulated physical collector to read the simulated at least one smart meter according to the meter reading plan, thereby obtaining simulated meter reading data.

[0093] Optionally, the meter reading plan can be determined according to the simulated meter reading instruction. In one possible implementation, the simulated meter reading instruction can also include a simulated meter reading task type, such as a minute collection task, a curve collection task, or a daily frozen collection task.

[0094] It is understood that each task type corresponds to a corresponding meter reading plan. For example, the minute collection task corresponds to minute freeze reading, the curve collection task corresponds to curve data reading, and the day freeze collection task corresponds to day freeze reading. Based on this, the electronic device can determine the meter reading plan to be executed according to the task type of the simulated meter reading.

[0095] For example, if the simulated meter reading instruction is a multi-threaded simulated meter reading instruction, and the multi-threaded simulated meter reading instruction represents that the task type of the simulated meter reading is a minute collection task, then the electronic device can control the virtual collector to simulate multiple physical collectors and multiple smart meters, control the simulated multiple physical collectors to freeze readings according to minutes, and perform concurrent meter readings on the simulated multiple smart meters, thereby obtaining simulated concurrent meter reading data.

[0096] In another possible implementation, the target scenario may be a simulated event scenario, the target task corresponding to the target scenario may be a simulated event task, and the target collected data may be simulated event data. Figure 3 On the basis of, the above step S20 can also be implemented by the following steps:

[0097] When a trigger event of a simulated event scenario is obtained, a target task corresponding to the simulated event scenario is determined to be a simulated event task;

[0098] Optionally, the triggering event of the simulated event scenario may be the electronic device receiving a simulated event instruction. The simulated event instruction may be an instruction issued by a staff member to the electronic device, instructing the electronic device to enter the simulated event scenario, or may be an instruction sent by the collection terminal to the virtual collector upon receiving a simulated event data call instruction sent by the collection master station.

[0099] Optionally, after a triggering event of a simulated event scenario is acquired, a target task corresponding to the simulated event scenario may be determined from different tasks under different scenarios configured in the virtual collector.

[0100] In this embodiment, the target task corresponding to the simulated event scenario is a simulated event task.

[0101] On this basis, the above step S21 can also be implemented by the following steps:

[0102] The virtual collector is controlled to run the simulated event task to simulate the physical collector and the smart meter, and the simulated physical collector is controlled to perform event detection on the simulated smart meter to obtain simulated event data.

[0103] Optionally, when it is determined that the target task is a simulated event task, the electronic device can control the virtual collector to run the simulated event task. The virtual collector can simulate the physical collector and the smart meter, thereby controlling the simulated physical collector to perform event detection on the simulated smart meter to obtain simulated event data.

[0104] In this embodiment, the electronic device can control the simulated smart meter to generate corresponding events, such as pressure loss events, overcurrent events, phase failure events, etc., and the simulated physical collector can perform event detection on the simulated smart meter to obtain simulated event data.

[0105] Optionally, the smart meter and physical collector are simulated through a virtual collector, so that by controlling the operation of the simulated physical collector, corresponding simulation data can be obtained from the simulated smart meter, which can be used to implement the testing of the collection terminal and the R&D testing of the smart meter, and improve the testing efficiency.

[0106] For example, by controlling the virtual collector through electronic equipment to run simulated event tasks and sending the simulated event data to the collection terminal through active reporting, the physical collector can collect events in the smart meter and actively report the service test for the collection terminal.

[0107] Optionally, the electronic device may also control the operation of a virtual collector to obtain real data from the smart meter in an actual application environment and send the data to a collection terminal.

[0108] On this basis, in one possible implementation scenario, the target scenario may be a suspected power outage detection scenario, the target task corresponding to the target scenario may be a suspected power outage detection task, and the target collected data may be suspected power outage data.

[0109] Specifically, in Figure 3 On the basis of Figure 5 For another flow chart of the data collection method provided in the embodiment of the present application, please refer to Figure 5 , the above step S20 can also be implemented by the following steps:

[0110] Step S20-2: upon obtaining a trigger event for a suspected power outage detection scenario, determining that the target task corresponding to the suspected power outage detection scenario is a suspected power outage detection task;

[0111] Optionally, the triggering event of the suspected power outage / restart scenario may be that the electronic device receives a suspected power outage / restart detection instruction, or a corresponding event generated during the operation of the virtual collector.

[0112] Optionally, the suspected power-off detection instruction may be an instruction issued by a staff member to an electronic device when inspecting a smart meter; the corresponding event generated by the virtual collector during operation may be an event generated when the virtual collector interacts with the smart meter for data.

[0113] Optionally, the suspected power-off and power-on scenario may include a suspected power-off scenario and a suspected power-on scenario.

[0114] Optionally, when the electronic device obtains a trigger event for a suspected power outage detection scenario, it can be determined that the smart meter may have a power outage, and therefore it is necessary to control the virtual collector to perform suspected power outage detection. For example, if the virtual collector cannot receive feedback information from the smart meter during data interaction with the smart meter, it is determined that it is necessary to enter the suspected power outage detection scenario at this time.

[0115] Optionally, if it is determined that the smart meter is in a suspected power-off state, a suspected power-on detection scenario should be entered at this time, so it is necessary to control the virtual collector to perform a suspected power-on detection on the smart meter.

[0116] On this basis, please continue to see Figure 5 , the above step S21 can also be implemented by the following steps:

[0117] Step S21-2: Control the virtual collector to run a suspected power outage detection task to simulate a physical collector, control the simulated physical collector to send a detection signal to the smart meter at a preset time interval, and determine whether a feedback signal from the smart meter is received;

[0118] Optionally, the electronic device may control the virtual collector to run a suspected power outage detection task, and the simulated physical collector may send a detection signal to the smart meter at a preset time interval and determine whether a feedback signal from the smart meter is received.

[0119] Optionally, the preset time interval may be set in advance and stored in the electronic device.

[0120] Step S21-3: If the number of times that the feedback signal is not received reaches a preset number, determining that the smart meter is in a suspected power outage state, and generating suspected power outage data;

[0121] Step S21 - 4 : When the smart meter is determined to be in a suspected power-off state, if a feedback signal from the smart meter is received, the smart meter is determined to be in a suspected power-on state, and suspected power-on data is generated.

[0122] Optionally, if the simulated physical collector fails to receive the feedback signal from the smart meter for a preset number of times, it is determined that the smart meter is in a suspected power outage state, and suspected power outage data is generated.

[0123] Optionally, the preset number of times can be set in advance and stored in the electronic device.

[0124] Understandably, at this point, the electronic device should control the virtual collector to enter a suspected power-on detection scenario. Then, if the simulated physical collector determines that the smart meter is in a suspected power-off state, it can still send a detection signal to the smart meter at a preset time interval and determine whether it has received a feedback signal from the smart meter. If a feedback signal is received from the smart meter, the smart meter is determined to be in a suspected power-on state and suspected power-on data is generated.

[0125] In another possible implementation, the target scenario may be a meter reading scenario, the target task corresponding to the target scenario may be a meter reading task, and the target collected data may be meter reading scenario data. Figure 3 On the basis of Figure 6 For another flow chart of the data collection method provided in the embodiment of the present application, please refer to Figure 6 , the above step S20 can also be implemented by the following steps:

[0126] Step S20-3: when a triggering event of a meter reading scenario is obtained, determining that the target task corresponding to the meter reading scenario is a meter reading task;

[0127] Optionally, the triggering event of the meter reading scenario may be that the electronic device receives a meter reading instruction.

[0128] Optionally, the meter reading instruction can be an instruction sent by a staff member to an electronic device, or an instruction sent by a collection terminal to an electronic device. Figure 6 , the above step S21 can also be implemented by the following steps:

[0129] Step S21 - 5 , controlling the virtual collector to run the meter reading task to simulate a physical collector, and controlling the simulated physical collector to collect data from the smart meter according to a pre-configured meter reading plan to obtain meter reading data.

[0130] Optionally, the meter reading plan may be a meter reading plan pre-configured in the virtual collector.

[0131] Optionally, in one possible implementation, there is no pre-configured meter reading plan in the virtual collector, and the meter reading instruction may include a meter reading task type and a corresponding meter reading plan. In this case, the electronic device may obtain the corresponding meter reading plan from the meter reading instruction.

[0132] In this embodiment, the electronic device can control the virtual collector to run the meter reading task, thereby simulating a physical collector, and control the simulated physical collector to collect data from the smart meter according to the meter reading plan, thereby obtaining meter reading data.

[0133] Optionally, the electronic device can also control the virtual collector to detect events in the smart meter while reading the meter, and obtain event data of the target event when it is determined that the target event occurs in the smart meter. Specifically, Figure 6 On the basis of

[0134] The simulated physical collector is controlled to detect whether a target event occurs in the smart meter when performing a meter reading task; when a target event occurs in the smart meter, the simulated physical collector is controlled to obtain event data of the target event and send the event data to the collection terminal so that the collection terminal sends the event data to the collection master station.

[0135] Optionally, the target event is an event currently occurring in the smart meter, such as a voltage loss event, an overcurrent event, a phase failure event, etc.

[0136] Optionally, the simulated physical collector can detect whether a target event occurs in the smart meter while performing the meter reading task. If so, the simulated physical collector is controlled to obtain event data of the target event and send the event data to the collection terminal so that the collection terminal sends the event data to the collection master station.

[0137] Optionally, the event data may include the time data of the corresponding event, the data type identifier, the specific data of the event, etc. For example, the event data corresponding to the decompression event may include the time of the event, the decompression event data identifier, the specific decompression value, etc.

[0138] In order to execute the corresponding steps in the above embodiments and various possible methods, a data acquisition device is provided below. Figure 7 , Figure 7 This is a functional block diagram of a data acquisition device provided in an embodiment of the present application. It should be noted that the basic principles and technical effects of the data acquisition device provided in this embodiment are the same as those of the aforementioned embodiments. For the sake of brevity, any details not mentioned in this embodiment are referred to the corresponding contents of the aforementioned embodiments. The data acquisition device includes a determination module 200 and a control module 210.

[0139] The determination module 200 is used to determine the target task corresponding to the target scene when a triggering event of the target scene is obtained;

[0140] It can be understood that the determination module 200 can be used to perform the above step S20;

[0141] The control module 210 is used to control the virtual collector to run the target task, obtain the target collection data, and send the target collection data to the collection terminal so that the collection terminal sends the target collection data to the collection master station.

[0142] It can be understood that the control module 210 can be used to execute the above step S21.

[0143] Optionally, the determining module 200 is further configured to, when a triggering event of a simulated power-off / on scenario is acquired, determine that the target task corresponding to the simulated power-off / on scenario is a simulated power-off / on task;

[0144] It is understandable that the determination module 200 can also be used to perform the above step S20-1;

[0145] Optionally, the control module 210 is also used to control the virtual collector to run a simulated power-on / off task to simulate a smart meter and a physical collector, and obtain the power-on / off status of the smart meter and / or the power-on / off status of the physical collector to generate simulated power-on / off data.

[0146] It is understandable that the control module 210 can also be used to execute the above step S21-1.

[0147] Optionally, the determination module 200 is further configured to determine that the target task corresponding to the simulated meter reading scenario is a simulated meter reading task when a triggering event of the simulated meter reading scenario is obtained;

[0148] Optionally, the control module 210 is also used to control the virtual collector to run a simulated meter reading task, so that when the simulated meter reading task is a multi-threaded task, multiple physical collectors and multiple smart meters are simulated, and the simulated multiple physical collectors are controlled to perform concurrent meter reading on the simulated multiple smart meters according to the meter reading plan to obtain simulated concurrent meter reading data; and when the simulated meter reading task is a single-threaded task, a physical collector and at least one smart meter are simulated, and the simulated physical collectors are controlled to perform meter reading on the simulated smart meters according to the meter reading plan to obtain simulated meter reading data.

[0149] Optionally, the determination module 200 is further configured to, when a triggering event of a simulated event scenario is acquired, determine that a target task corresponding to the simulated event scenario is a simulated event task;

[0150] Optionally, the control module 210 is further configured to control the virtual collector to run a simulated event task to simulate a physical collector and a smart meter, and control the simulated physical collector to perform event detection on the simulated smart meter to obtain simulated event data.

[0151] Optionally, the determining module 200 is further configured to, when a triggering event of a suspected power outage detection scenario is obtained, determine that the target task corresponding to the suspected power outage detection scenario is a suspected power outage detection task;

[0152] It can be understood that the determination module 200 can also be used to perform the above step S20-2;

[0153] Optionally, the control module 210 is also used to control the virtual collector to run a suspected power outage detection task to simulate a physical collector, and control the simulated physical collector to send a detection signal to the smart meter at a preset time interval, and determine whether a feedback signal from the smart meter is received; if the number of times the feedback signal is not received reaches a preset number, the smart meter is determined to be in a suspected power outage state, and suspected power outage data is generated; if the smart meter is determined to be in a suspected power outage state, if a feedback signal from the smart meter is received, the smart meter is determined to be in a suspected power-on state, and suspected power-on data is generated.

[0154] It is understandable that the control module 210 can also be used to execute the above steps S21 - 2 to S21 - 4.

[0155] Optionally, the determination module 200 is further configured to determine that the target task corresponding to the meter reading scenario is a meter reading task when a triggering event of the meter reading scenario is obtained;

[0156] It can be understood that the determination module 200 can also be used to perform the above step S20-3;

[0157] Optionally, the control module 210 is further configured to control the virtual collector to run a meter reading task to simulate a physical collector, and control the simulated physical collector to collect data from the smart meter according to a pre-configured meter reading scheme to obtain meter reading data.

[0158] It is understandable that the control module 210 can also be used to execute the above step S21-5.

[0159] Optionally, the control module 210 is also used to control the simulated physical collector to detect whether a target event occurs in the smart meter when performing a meter reading task; when a target event occurs in the smart meter, the simulated physical collector is controlled to obtain event data of the target event and send the event data to the collection terminal so that the collection terminal sends the event data to the collection master station.

[0160] The data acquisition device provided in the embodiment of the present application determines the target task corresponding to the target scene when the determination module obtains the trigger event of the target scene; controls the virtual collector to run the target task through the control module, obtains the target acquisition data, and sends the target acquisition data to the acquisition terminal so that the acquisition terminal sends the target acquisition data to the acquisition master station. It can adapt to different needs in various scenarios and overcomes the problem in the prior art that the physical collector has a single function and cannot meet the different needs in various application scenarios.

[0161] Optionally, the above modules can be stored in the form of software or firmware. Figure 2 The memory shown in FIG. 1 or the operating system (OS) of the electronic device may be fixed therein and may be Figure 2 Meanwhile, the data and program codes required to execute the above modules may be stored in the memory.

[0162] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or can be implemented using a combination of dedicated hardware and computer instructions.

[0163] In addition, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0164] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0165] The above description is merely a preferred embodiment of the present application and is not intended to limit the present application. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present application shall be included within the scope of protection of the present application.

Claims

1. A data collection method, characterized in that: Applied to an electronic device, the electronic device is communicatively connected to a collection terminal, the collection terminal is communicatively connected to a collection master station, the electronic device is provided with a virtual collector, and the virtual collector is configured with tasks in different scenarios, the method includes: When a triggering event of a target scene is obtained, a target task corresponding to the target scene is determined; Controlling the virtual collector to run the target task, obtain target acquisition data, and send the target acquisition data to the acquisition terminal, so that the acquisition terminal sends the target acquisition data to the acquisition master station; When a triggering event of a target scene is obtained, determining a target task corresponding to the target scene includes: When a trigger event of a simulated power outage / power-on scenario is obtained, determining that a target task corresponding to the simulated power outage / power-on scenario is a simulated power outage / power-on task; The controlling the virtual collector to run the target task and obtain target acquisition data includes: The virtual collector is controlled to run the simulated power-off task to simulate a smart meter and a physical collector, and the power-off status of the smart meter and the power-off status of the physical collector are obtained to generate simulated power-off data.

2. The method according to claim 1, characterized in that The virtual collector is configured with a meter reading solution. When a triggering event of a target scenario is obtained, determining a target task corresponding to the target scenario includes: When a trigger event of a simulated meter reading scenario is obtained, determining that a target task corresponding to the simulated meter reading scenario is a simulated meter reading task; The controlling the virtual collector to run the target task and obtain target acquisition data includes: Controlling the virtual collector to run the simulated meter reading task, so as to simulate multiple physical collectors and multiple smart meters when the simulated meter reading task is a multi-threaded task, and controlling the multiple simulated physical collectors to concurrently read the multiple simulated smart meters according to the meter reading scheme to obtain simulated concurrent meter reading data; And when the simulated meter reading task is a single-threaded task, a physical collector and at least one smart meter are simulated, and the simulated physical collector is controlled to read the simulated smart meter according to the meter reading scheme to obtain simulated meter reading data.

3. The method according to claim 1, characterized in that When a triggering event of a target scene is obtained, determining a target task corresponding to the target scene includes: When a triggering event of a simulated event scenario is obtained, determining a target task corresponding to the simulated event scenario as a simulated event task; The controlling the virtual collector to run the target task and obtain target acquisition data includes: The virtual collector is controlled to run the simulated event task to simulate a physical collector and a smart meter, and the simulated physical collector is controlled to perform event detection on the simulated smart meter to obtain simulated event data.

4. The method according to claim 1, wherein When a triggering event of a target scene is obtained, determining a target task corresponding to the target scene includes: When a trigger event of a suspected power outage detection scenario is obtained, determining that a target task corresponding to the suspected power outage detection scenario is a suspected power outage detection task; The controlling the virtual collector to run the target task and obtain target acquisition data includes: Controlling the virtual collector to run the suspected power outage detection task to simulate a physical collector, and controlling the simulated physical collector to send a detection signal to the smart meter at a preset time interval, and determining whether a feedback signal from the smart meter is received; When the number of times the feedback signal is not received reaches a preset number, determining that the smart meter is in a suspected power outage state and generating suspected power outage data; In the case where it is determined that the smart meter is in a suspected power-off state, if a feedback signal from the smart meter is received, the smart meter is determined to be in a suspected power-on state, and suspected power-on data is generated.

5. The method according to claim 1, wherein When a triggering event of a target scene is obtained, determining a target task corresponding to the target scene includes: When a trigger event of a meter reading scenario is obtained, determining that a target task corresponding to the meter reading scenario is a meter reading task; The controlling the virtual collector to run the target task and obtain target acquisition data includes: The virtual collector is controlled to run the meter reading task to simulate a physical collector, and the simulated physical collector is controlled to collect data from the smart meter according to a pre-configured meter reading scheme to obtain meter reading data.

6. The method according to claim 5, characterized in that The method further comprises: Controlling the simulated physical collector to detect whether a target event occurs in the smart meter when executing the meter reading task; When a target event occurs in the smart meter, the simulated physical collector is controlled to obtain event data of the target event and send the event data to the collection terminal, so that the collection terminal sends the event data to the collection master station.

7. A data acquisition device, characterized in that: Applied to an electronic device, the electronic device is communicatively connected to a collection terminal, the collection terminal is communicatively connected to a collection master station, the electronic device is provided with a virtual collector, and the virtual collector is configured with tasks in different scenarios, the device comprises: A determination module, configured to determine a target task corresponding to a target scenario when a triggering event of the target scenario is obtained; A control module, configured to control the virtual collector to execute the target task, obtain target acquisition data, and send the target acquisition data to the acquisition terminal, so that the acquisition terminal sends the target acquisition data to the acquisition master station; The determining module is further configured to, when a triggering event of a simulated power-off / on scenario is acquired, determine that the target task corresponding to the simulated power-off / on scenario is a simulated power-off / on task; The control module is also used to control the virtual collector to run the simulated power-off task to simulate the smart meter and the physical collector, and obtain the power-off status of the smart meter and the power-off status of the physical collector to generate simulated power-off data.

8. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program that can be executed by the processor, and the processor can execute the computer program to implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Electric energy acquisition and operation management system and method based on platform zone centralized service terminal

    CN101354408A

  • Whole-event acquisition testing system of intelligent ammeter based on virtual ammeter module

    CN105279952A