Broadband carrier module expansion device, data acquisition method, acquisition terminal and system
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-06
- Publication Date
- 2026-08-11
AI Technical Summary
[0004]为克服难以满足光伏数据高频采集的问题,本申请实施例提供了宽带载波模块扩展装置、数据采集方法、采集终端及系统
[0049]可以理解的是,上述第二方面至第四方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。
Smart Images

Figure CN116886781B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of data acquisition technology, and in particular relates to broadband carrier module expansion devices, data acquisition methods, acquisition terminals and systems. Background Technology
[0002] Distributed photovoltaic (PV) high-frequency data collection requires acquisition terminals to collect PV data at a frequency of one minute or even higher. Each additional distributed PV substation in a distribution area is equivalent to adding 15 traditional residential users. Therefore, when a substation adds more than 10 PV users, the data collection load quickly reaches its limit. Although broadband carrier modules use concurrent communication technology to improve data acquisition capabilities, it is still difficult to meet the high-frequency acquisition requirements of PV data after adding distributed PV substations to the existing area.
[0003] In related technologies, adding high-frequency data acquisition tasks is often used to address the difficulty in meeting the high-frequency acquisition requirements of photovoltaic data. However, after adding high-frequency data acquisition tasks, the communication load of the broadband carrier module is almost at its limit. Although it can barely meet the acquisition of full data from 96 points for ordinary users and high-frequency photovoltaic data, data loss will occur if the communication link becomes unstable due to interference. Alternatively, if some event data is generated by user meters in the distribution area, causing a short-term increase in communication pressure, data loss or event data loss will also occur. Therefore, a solution is still needed to address the difficulty in meeting the high-frequency acquisition requirements of photovoltaic data. Summary of the Invention
[0004] To overcome the problem of difficulty in meeting the high-frequency acquisition requirements of photovoltaic data, embodiments of this application provide a broadband carrier module expansion device, a data acquisition method, an acquisition terminal, and a system.
[0005] This application is achieved through the following technical solution:
[0006] In a first aspect, embodiments of this application provide a broadband carrier module extension device, including: a high-voltage access module, a low-voltage access module, and a conversion module; the broadband carrier module supports a first communication protocol, and the acquisition terminal supports a second communication protocol;
[0007] The high-voltage access module is used to transmit power line carrier communication signals between the broadband carrier module and the mains power line; the low-voltage access module is used to transmit communication signals conforming to the first communication protocol between the broadband carrier module and the conversion module.
[0008] The conversion module is used to convert the communication signal of the first communication protocol transmitted by the low-voltage access module into the communication signal of the second communication protocol and transmit it to the acquisition terminal, and to convert the communication signal of the second communication protocol transmitted by the acquisition terminal into the communication signal of the first communication protocol and transmit it to the low-voltage access module.
[0009] In some embodiments, the first communication protocol is the RS232 communication protocol, and the second communication protocol is the RS485 communication protocol.
[0010] In some embodiments, the broadband carrier module extension device further includes a power supply module;
[0011] The power module is connected to both the high-voltage access module and the low-voltage access module.
[0012] The high-voltage access module is also used to draw power from the mains power line to supply power to the high-voltage part of the broadband carrier module, and to transmit the mains power from the mains power line to the power supply module.
[0013] The power module is used to convert the mains power into a first DC power for use by the low-voltage access module and a second DC power for use by the low-voltage part of the broadband carrier module, to power the low-voltage access module through the first DC power, and to transmit the second DC power to the low-voltage access module.
[0014] The low-voltage access module is also used to supply power to the low-voltage part of the broadband carrier module via the second DC power.
[0015] Secondly, embodiments of this application provide a data acquisition method applied to an acquisition terminal, wherein the acquisition terminal is connected to a broadband carrier module extension device as described in any of the first aspects, the broadband carrier module extension device is connected to a first broadband carrier module, and the acquisition terminal is equipped with a second broadband carrier module; the method includes:
[0016] Receive the user's collection frequency from the main station;
[0017] The user type is determined based on the sampling frequency, and the user type includes distributed photovoltaic users and ordinary users;
[0018] When the user is a distributed photovoltaic user, the user's power data is collected based on the first broadband carrier module;
[0019] When the user is a regular user, the user's power data is collected based on the second broadband carrier module;
[0020] The user's electricity data is stored in a database.
[0021] In some embodiments, the collection of the user's power data based on the first broadband carrier module / the second broadband carrier module includes:
[0022] Set the initial values for the number of tasks and commands based on the size of the distribution area and the number of smart meters to be collected;
[0023] Based on the initial values of the number of tasks and the number of commands, the power data of the distributed photovoltaic users and the ordinary users are collected in the first round based on the first broadband carrier module / the second broadband carrier module, and the duration of the first round of collection is recorded;
[0024] Increment the initial value of the task count by 1, collect the power data of the distributed photovoltaic users / ordinary users based on the first broadband carrier module, and record the collection duration;
[0025] By comparing the data collection time of the current round with that of the previous round, the relationship between the data collection time of the current round and that of the previous round is determined. The relationship includes increase, decrease, and no improvement.
[0026] If the collection time in this round is shorter than that in the previous round, and the number of tasks in this round is greater than that in the previous round, the number of tasks is incremented by 1; if the number of tasks in this round is less than that in the previous round, the number of tasks is decremented by 1; then proceed to the step of collecting power data of the distributed photovoltaic users / ordinary users based on the first broadband carrier module / the second broadband carrier module and recording the collection time.
[0027] If the collection time of this round is longer than that of the previous round, and the number of tasks in this round is greater than that in the previous round, the number of tasks will be reduced by 1; if the number of tasks in this round is less than that in the previous round, the number of tasks will be increased by 1; then proceed to the step of collecting power data of the distributed photovoltaic users / ordinary users based on the first broadband carrier module / the second broadband carrier module and recording the collection time.
[0028] If the collection time in this round is not improved compared to the collection time in the previous round, the number of tasks in this round is determined to be the optimal number of tasks.
[0029] In some embodiments, after determining that the number of tasks in this round is the optimal number of tasks, the method further includes:
[0030] Increment the initial value of the command count by 1;
[0031] The power data of the distributed photovoltaic users and the ordinary users are collected based on the first broadband carrier module / the second broadband carrier module, and the collection duration is recorded.
[0032] Compare the data collection time of this round with the data collection time of the previous round;
[0033] If the collection time in this round is shorter than that in the previous round, and the number of commands in this round is greater than that in the previous round, increment the number of commands by 1; if the number of commands in this round is less than that in the previous round, decrement the number of commands by 1; then proceed to the step of collecting power data of the distributed photovoltaic users / ordinary users based on the first broadband carrier module / the second broadband carrier module and recording the collection time.
[0034] If the collection time of this round is longer than that of the previous round, and the number of commands in this round is greater than that in the previous round, the number of commands is decreased by 1; if the number of commands in this round is less than that in the previous round, the number of commands is increased by 1; then jump to the step of collecting power data of the distributed photovoltaic users / ordinary users based on the first broadband carrier module / the second broadband carrier module and recording the collection time.
[0035] If the collection time in this round is not improved compared to the collection time in the previous round, the number of commands in this round is determined to be the optimal number of commands.
[0036] Based on the optimal number of tasks, power data of the distributed photovoltaic users and the ordinary users are collected using the first broadband carrier module / the second broadband carrier module.
[0037] In some embodiments, the collection time of the current round is reduced compared to the collection time of the previous round, such that the difference between the collection time of the current round and the collection time of the previous round is greater than or equal to a preset allowable time deviation, and the collection time of the current round is less than the collection time of the previous round.
[0038] The current round of data collection duration is longer than the previous round of data collection duration. The difference between the current round of data collection duration and the previous round of data collection duration is greater than or equal to the preset allowable duration deviation, and the current round of data collection duration is longer than the previous round of data collection duration.
[0039] The fact that the current round of data collection time is not improved compared to the previous round means that the difference between the current round of data collection time and the previous round of data collection time is less than the preset allowable time deviation.
[0040] In some embodiments, determining the user type based on the collection frequency includes:
[0041] Compare the sampling frequency with the preset sampling frequency;
[0042] When the sampling frequency is greater than the preset sampling frequency, the user's user type is determined to be the ordinary user;
[0043] When the sampling frequency is less than or equal to the preset sampling frequency, the user type of the user is determined to be the distributed photovoltaic user;
[0044] The step of storing the user's electricity data in a database includes:
[0045] A locking mechanism is used to allow multiple threads to compete to enter the critical section, and the power data carried by the threads entering the critical section is written into the database.
[0046] If the current thread's write time exceeds the preset maximum waiting time, the current thread will exit and re-compete for entry into the critical section, and the write permission will be transferred to the next thread to enter the critical section.
[0047] Thirdly, embodiments of this application provide a data acquisition terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the data acquisition method as described in any of the second aspects.
[0048] Fourthly, embodiments of this application provide a data acquisition system, the data acquisition system comprising: an acquisition terminal as described in the fourth aspect, a broadband carrier module extension device as described in any one of the first aspects, and a first broadband carrier module, wherein the acquisition terminal is equipped with a second broadband carrier module.
[0049] It is understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here.
[0050] The beneficial effects of this application embodiment compared with related technologies are as follows: The broadband carrier module expansion device provided in this application embodiment includes: a high-voltage access module, a low-voltage access module, and a conversion module. The high-voltage access module transmits power line carrier communication signals between the broadband carrier module and the mains power line, and can also provide protection for the broadband carrier module to prevent damage from surges, pulses, etc. on the mains power line; the low-voltage access module transmits communication signals conforming to a first communication protocol between the broadband carrier module and the conversion module; the conversion module converts the communication signals of the first communication protocol transmitted by the low-voltage access module into communication signals of a second communication protocol and transmits them to the acquisition terminal, and converts the communication signals of the second communication protocol transmitted by the acquisition terminal into communication signals of the first communication protocol and transmits them to the low-voltage access module. The conversion module is used to realize the mutual conversion between the communication signals of the first communication protocol and the communication protocols of the second communication protocol. The broadband carrier module expansion device provided in this application embodiment can extend a broadband carrier module outside the acquisition terminal, and can enable two broadband carrier modules to perform data acquisition simultaneously to meet the high-frequency acquisition requirements of photovoltaic data.
[0051] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this specification. Attached Figure Description
[0052] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0053] Figure 1 This is a schematic diagram of the structure of a broadband carrier module expansion device provided in an embodiment of this application;
[0054] Figure 2 This is a schematic diagram of the structure of a broadband carrier module expansion device provided in another embodiment of this application;
[0055] Figure 3 This is a top view of a carrier coupling interface provided in an embodiment of this application;
[0056] Figure 4 This is a top view of a low-voltage interface provided in an embodiment of this application;
[0057] Figure 5 This is a schematic flowchart of a data acquisition method provided in an embodiment of this application;
[0058] Figure 6 This is a flowchart illustrating the optimized acquisition speed provided in one embodiment of this application;
[0059] Figure 7 This is a flowchart illustrating the optimized acquisition speed provided in another embodiment of this application;
[0060] Figure 8 This is a schematic diagram of the structure of the data acquisition device provided in the embodiments of this application;
[0061] Figure 9 This is a schematic diagram of the data acquisition terminal provided in the embodiments of this application. Detailed Implementation
[0062] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0063] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0064] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0065] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0066] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0067] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0068] Distributed photovoltaic (PV) high-frequency data collection requires acquisition terminals to collect PV data at a frequency of one minute or even higher. Each additional distributed PV substation in a distribution area is equivalent to adding 15 traditional residential users. Therefore, when a substation adds more than 10 PV users, the data collection load quickly reaches its limit. Although broadband carrier modules use concurrent communication technology to improve data acquisition capabilities, it is still difficult to meet the high-frequency acquisition requirements of PV data after adding distributed PV substations to the existing area.
[0069] In related technologies, adding high-frequency data acquisition tasks is often used to address the difficulty in meeting the high-frequency acquisition requirements of photovoltaic data. However, after adding high-frequency data acquisition tasks, the communication load of the broadband carrier module is almost pushed to its limit. If the communication link becomes unstable due to interference, data loss will occur. Alternatively, if user meters in the distribution area generate event data, causing a short-term increase in communication pressure, data loss or event data loss will also occur. Therefore, related technologies still cannot fully meet the high-frequency acquisition requirements of photovoltaic data.
[0070] Based on the above problems, this application proposes a broadband carrier module extension device. By adding a broadband carrier module outside the acquisition terminal through the extension device, two broadband carrier modules can be used to acquire data simultaneously, thereby meeting the high-frequency acquisition requirements of photovoltaic data.
[0071] Figure 1 This is a schematic diagram of the structure of a broadband carrier module expansion device provided in an embodiment of this application, with reference to... Figure 1 The broadband carrier module expansion device includes: a high-voltage access module 101, a low-voltage access module 102, and a conversion module 103.
[0072] The high-voltage access module 101 is connected to the mains power line and the broadband carrier module 104 respectively, and the low-voltage access module 102 is connected to the broadband carrier module 104 and the conversion module 103 respectively. The conversion module 103 is also connected to the acquisition terminal 105.
[0073] Among them, the broadband carrier module 104 supports the first communication protocol, and the acquisition terminal 105 supports the second communication protocol.
[0074] The high-voltage access module 101 is used to transmit power line carrier communication signals between the broadband carrier module 104 and the mains power line;
[0075] The low-voltage access module 102 is used to transmit communication signals conforming to the first communication protocol between the broadband carrier module 104 and the conversion module 103.
[0076] The conversion module 103 is used to convert the communication signal of the first communication protocol transmitted by the low-voltage access module 102 into the communication signal of the second communication protocol and transmit it to the acquisition terminal 105, and to convert the communication signal of the second communication protocol transmitted by the acquisition terminal 105 into the communication signal of the first communication protocol and transmit it to the low-voltage access module 102.
[0077] Optionally, the conversion module 103 includes an RS323-RS485 signal conversion circuit designed with a conversion chip and an RS485 signal isolation circuit designed with a high-speed isolation optocoupler, used to realize the mutual conversion between RS232 communication protocol communication signals and RS485 communication protocol communication signals.
[0078] In some embodiments, the first communication protocol may be the RS232 communication protocol, and the second communication protocol may be the RS485 communication protocol.
[0079] Reference Figure 1 as well as Figure 2 In the embodiments of this application, the high-voltage access module 101 transmits power line carrier communication signals between the broadband carrier module 104 and the mains power line, and protects the broadband carrier module 104 from damage caused by surges, pulses, etc. on the mains power line; the low-voltage input module 102 transmits communication signals conforming to the RS232 communication protocol between the broadband carrier module 104 and the conversion module 103; the conversion module 103 converts the RS232 communication protocol signals transmitted by the low-voltage access module 102 into RS485 communication protocol signals and transmits them to the acquisition terminal 105, and converts the RS485 communication protocol signals transmitted by the acquisition terminal 105 into RS232 communication protocol signals and transmits them to the low-voltage access module 102. By adding a broadband carrier module 104 outside the acquisition terminal 105 through the expansion device, two broadband carrier modules can simultaneously perform data acquisition, thereby meeting the high-frequency acquisition requirements of photovoltaic data.
[0080] In some embodiments of this application, the broadband carrier module extension device may further include a power supply module 106.
[0081] The power module 106 is connected to the high-voltage access module 101 and the low-voltage access module 102 respectively.
[0082] The high-voltage access module 101 is also used to draw power from the mains line to supply power to the high-voltage part of the broadband carrier module 104, and to transmit the mains power from the mains line to the power supply module 106.
[0083] The power module 106 is used to convert mains power into a first DC power for use by the low-voltage access module 102 and a second DC power for use by the low-voltage part of the broadband carrier module 104, to power the low-voltage access module 102 with the first DC power, and to transmit the second DC power to the low-voltage access module 102.
[0084] The low-voltage access module 102 is also used to supply power to the low-voltage part of the broadband carrier module 104 via a second DC power supply.
[0085] In the embodiments of this application, the high-voltage access module 101 draws power from the mains line to power the high-voltage part of the broadband carrier module 104, and also transmits the mains power from the mains line to the power supply module 106; the power supply module 106 converts the mains power into a first DC power (DC5V) for use by the low-voltage access module 102 and a second DC power (DC12V) for use by the low-voltage part of the broadband carrier module 104, and supplies power to the low-voltage access module 102 through DC5V; the low-voltage access module 102 transmits DC12V to the low-voltage part of the broadband carrier module 104.
[0086] The high-voltage access module 101 also includes a carrier coupling interface that meets the requirements of Q / GDW 1376.2 "Part 2: Interface Protocol for Concentrator Local Communication Modules". This interface uses a 2*10 dual-row pin connector. A top view of the carrier coupling interface is shown in the appendix. Figure 2 The pin definitions and descriptions for the carrier coupling interface are detailed in Table 1.
[0087] Table 1. Pin definitions and descriptions of the carrier coupling interface
[0088]
[0089] The low-voltage access module 102 also includes a local communication low-voltage interface that meets the requirements of Q / GDW 1376.2 "Part 2: Concentrator Local Communication Module Interface Protocol". This interface uses 2*13 dual-row pins as connectors and can also configure the operating environment of the broadband carrier module. A top view of the low-voltage interface is shown in the appendix. Figure 3 For pin definitions and descriptions of low-voltage interfaces, please refer to Table 2.
[0090] Table 2 Pin definitions and descriptions for low-voltage interfaces
[0091]
[0092]
[0093]
[0094] This application embodiment also provides a data acquisition method, which is applied to an acquisition terminal 105. The acquisition terminal 105 is connected to the aforementioned broadband carrier module extension device, the broadband carrier module extension device is connected to a first broadband carrier module, and the acquisition terminal 105 is equipped with a second broadband carrier module.
[0095] Figure 4 This is a flowchart illustrating a data acquisition method provided in an embodiment of this application, with reference to... Figure 4 The data acquisition method is described in detail below:
[0096] S501: Receives the user's collection frequency from the main station.
[0097] S502: Determine the user type based on the sampling frequency. User types include distributed photovoltaic users and ordinary users.
[0098] In some embodiments of this application, when determining the user type based on the sampling frequency, the sampling frequency can be compared with a preset sampling frequency; when the sampling frequency is greater than the preset sampling frequency, the user type is determined to be a regular user; when the sampling frequency is less than or equal to the preset sampling frequency, the user type is determined to be a distributed photovoltaic user.
[0099] The preset sampling frequency is used to distinguish between ordinary users and distributed photovoltaic users. The preset sampling frequency can be set according to actual needs or actual conditions, such as 1 minute.
[0100] For example, the system receives the user's collection frequency from the main station, compares the collected frequency with 1 minute, and determines that the user's user type is a regular user when the collected frequency is greater than 1 minute; and determines that the user's user type is a distributed photovoltaic user when the collected frequency is less than or equal to 1 minute.
[0101] S503: When the user is a distributed photovoltaic user, the user's power data is collected based on the first broadband carrier module.
[0102] In the embodiments of this application, the power data of the distributed photovoltaic user is collected based on the first broadband carrier module after receiving the user's collection frequency from the master station and determining the user type as a distributed photovoltaic user according to the collection frequency.
[0103] S504: When the user is a regular user, the user's power data is collected based on the second broadband carrier module.
[0104] In the embodiments of this application, the power data of ordinary users is collected based on the second broadband carrier module after receiving the user's collection frequency sent by the master station and determining the user type as an ordinary user according to the collection frequency.
[0105] S505: Stores user power data in a database.
[0106] In some embodiments of this application, when storing user power data in a database, a locking mechanism can be used to allow multiple threads to compete to enter a critical section. The power data carried by the thread entering the critical section is then written to the database. If the current thread's writing time exceeds a preset maximum waiting time, the current thread exits and re-competes to enter the critical section, and the write permission is transferred to the next thread to enter the critical section.
[0107] The preset maximum waiting time is the longest waiting time for the database to be in a locked state. The preset maximum waiting time can be set according to the actual situation or actual needs, and no specific limit is made here.
[0108] In the embodiments of this application, after collecting user power data based on the first broadband carrier module / second broadband carrier module, a locking mechanism is used to allow multiple threads to compete for entry into the critical section, ensuring that only one thread executes the code to write to the database at any given time. If the current thread's writing time exceeds a preset maximum waiting time, the current thread exits and recompetes for entry into the critical section, transferring the write permission to the next thread entering the critical section. If the current thread writes data to the database before the preset maximum waiting time, the current thread exits, and the write permission is transferred to the next thread entering the critical section. Using a locking mechanism to write power data to the database can prevent write conflicts and other anomalies.
[0109] Using the aforementioned broadband carrier module expansion device, a broadband carrier module is extended outside the acquisition terminal 105. The acquisition terminal 105 uses different threads to manage the operation of the two broadband carrier modules. The initialization, operation, and management of the two broadband carrier modules do not affect each other. If one broadband carrier module malfunctions, it will not affect the normal operation of the other broadband carrier module.
[0110] In some embodiments of this application, when collecting user power data based on the first broadband carrier module, the collection speed can be optimized. Details of the optimization steps are provided in the appendix. Figure 5 , refer to Figure 5 The optimization steps are as follows:
[0111] S601: Set the initial values for the number of tasks and commands based on the size of the distribution area and the number of smart meters to be collected.
[0112] S602: Based on the initial values of the number of tasks and the number of commands, collect the power data of distributed photovoltaic users in the first round based on the first broadband carrier module, and record the duration of the first round of collection.
[0113] S603: Increment the initial value of the number of tasks by 1.
[0114] S604: Collect power data from distributed photovoltaic users based on the first broadband carrier module and record the collection duration.
[0115] S605: By comparing the data collection duration of the current round with that of the previous round, determine the relationship between the two rounds of data collection duration. The relationship between the current round's data collection duration and the previous round's data collection duration includes increases, decreases, and no improvement.
[0116] S606: If the collection time of this round is lower than that of the previous round, and the number of tasks in this round is greater than that in the previous round, increment the number of tasks by 1; if the number of tasks in this round is less than that in the previous round, decrement the number of tasks by 1; then proceed to step S604.
[0117] S607: If the collection time of this round is longer than that of the previous round, and the number of tasks in this round is greater than the number of tasks in the previous round, decrease the number of tasks by 1; if the number of tasks in this round is less than the number of tasks in the previous round, increase the number of tasks by 1; then proceed to step S604.
[0118] S608: When the collection time of this round is not improved compared with the collection time of the previous round, the number of tasks in this round is determined to be the optimal number of tasks.
[0119] In some embodiments of this application, after determining that the number of tasks in this round is the optimal number of tasks, the number of commands will also be optimized, as shown in the following example. Figure 6 The steps to optimize the number of commands are as follows:
[0120] S701: Increment the initial value of the command number by 1.
[0121] S702: Collects power data from distributed photovoltaic users based on the first broadband carrier module and records the collection duration.
[0122] S703: By comparing the current collection time with the previous collection time, determine the relationship between the current collection time and the previous collection time.
[0123] S704: If the acquisition time of this round is lower than that of the previous round, and the number of commands in this round is greater than that in the previous round, increment the number of commands by 1; if the number of commands in this round is less than that in the previous round, decrement the number of commands by 1; then proceed to step S702.
[0124] S705: If the acquisition time of this round is longer than that of the previous round, and the number of commands in this round is greater than the number of commands in the previous round, decrease the number of commands by 1; if the number of commands in this round is less than the number of commands in the previous round, increase the number of commands by 1; then proceed to step S702.
[0125] S706: When the acquisition time of the current round is not improved compared with the acquisition time of the previous round, the number of commands in the current round is determined to be the optimal number of commands.
[0126] S707: Based on the optimal number of tasks and the optimal number of tasks, collect power data of distributed photovoltaic users based on the first broadband carrier module.
[0127] In the embodiments of this application, by optimizing the acquisition speed of the first broadband carrier module for collecting power data from distributed photovoltaic users, the acquisition time can be effectively reduced and the average acquisition speed of data from each distributed photovoltaic user can be increased.
[0128] Accordingly, in some embodiments of this application, when collecting user power data based on the second broadband carrier module, the collection speed can also be optimized. The optimization steps are as follows:
[0129] Step 1: Set the initial values for the number of tasks and commands based on the size of the distribution area and the number of smart meters to be collected.
[0130] Step 2: Based on the initial values of the number of tasks and commands, collect the power data of ordinary users in the first round using the second broadband carrier module, and record the duration of the first round of collection.
[0131] Step 3: Increment the initial value of the number of tasks by 1.
[0132] Step 4: Collect power data from ordinary users based on the second broadband carrier module and record the collection duration.
[0133] Step 5: By comparing the data collection time of this round with that of the previous round, determine the relationship between the two rounds of data collection. The relationship between the current and previous rounds of data collection time can be categorized as an increase, a decrease, or no improvement.
[0134] Step 6: If the collection time of this round is shorter than that of the previous round, and the number of tasks in this round is greater than that in the previous round, increment the number of tasks by 1; if the number of tasks in this round is less than that in the previous round, decrement the number of tasks by 1; then proceed to the step of collecting power data of ordinary users based on the second broadband carrier module and recording the collection time.
[0135] Step 7: If the collection time of this round is longer than that of the previous round, and the number of tasks in this round is greater than that in the previous round, decrease the number of tasks by 1; if the number of tasks in this round is less than that in the previous round, increase the number of tasks by 1; then proceed to the step of collecting power data of ordinary users based on the second broadband carrier module and recording the collection time.
[0136] Step 8: If the collection time in this round is not improved compared to the collection time in the previous round, determine that the number of tasks in this round is the optimal number of tasks.
[0137] In some embodiments of this application, after step 8, the number of commands can be optimized, and the optimization steps are as follows:
[0138] Step 9: Increment the initial value of the command number by 1.
[0139] Step 10: Collect power data from ordinary users based on the second broadband carrier module and record the collection duration.
[0140] Step 11: By comparing the collection time of this round with the collection time of the previous round, determine the relationship between the collection time of this round and the collection time of the previous round.
[0141] Step 12: If the collection time of this round is shorter than that of the previous round, and the number of commands in this round is greater than that in the previous round, increment the number of commands by 1; if the number of commands in this round is less than that in the previous round, decrement the number of commands by 1; then proceed to step 10.
[0142] Step 13: If the collection time of this round is longer than that of the previous round, and the number of commands in this round is greater than the number of commands in the previous round, decrease the number of commands by 1; if the number of commands in this round is less than the number of commands in the previous round, increase the number of commands by 1; then proceed to step 10.
[0143] Step 14: If the acquisition time of this round is not improved compared with the acquisition time of the previous round, determine that the number of commands in this round is the optimal number of commands.
[0144] Step 15: Based on the optimal number of tasks and the optimal number of tasks, collect power data from ordinary users using the second broadband carrier module.
[0145] In the embodiments of this application, by optimizing the acquisition speed of the second broadband carrier module for collecting power data from ordinary users, the acquisition time can be effectively reduced and the average acquisition speed of data for each ordinary user can be increased.
[0146] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0147] Corresponding to the data acquisition method described in the above embodiments, Figure 8 A structural block diagram of a data acquisition device provided in an embodiment of this application is shown. For ease of explanation, only the parts related to the embodiment of this application are shown.
[0148] See Figure 8 The data acquisition device in this application embodiment may include a receiving module 801, a judging module 802, a first acquisition module 803, a second acquisition module 804, and a storage module 805.
[0149] The receiving module 801 is used to receive the user's collection frequency sent by the main station.
[0150] The judgment module 802 is used to determine the user type based on the acquisition frequency. The user type includes distributed photovoltaic users and ordinary users.
[0151] The first acquisition module 803 is used to acquire the user's power data based on the first broadband carrier module when the user is a distributed photovoltaic user.
[0152] The second acquisition module 804 is used to acquire the user's power data based on the second broadband carrier module when the user is a regular user.
[0153] Storage module 805 is used to store user power data in a database.
[0154] Optionally, the first acquisition module 803 / second acquisition module 804 is specifically used to: set the initial values of the number of tasks and the number of commands according to the size of the transformer area and the number of smart meter data to be collected.
[0155] Based on the initial values of the number of tasks and commands, the power data of distributed photovoltaic users and ordinary users are collected in the first round using the first broadband carrier module / second broadband carrier module, and the duration of the first round of collection is recorded.
[0156] Increment the initial value of the task number by 1, collect power data of distributed photovoltaic users / ordinary users based on the first broadband carrier module, and record the collection duration.
[0157] By comparing the data collection time of the current round with that of the previous round, the relationship between the two rounds can be determined. The relationship can be either an increase, a decrease, or no improvement.
[0158] If the data collection time in this round is shorter than that in the previous round, and the number of tasks in this round is greater than that in the previous round, increment the number of tasks by 1; if the number of tasks in this round is less than that in the previous round, decrement the number of tasks by 1; then proceed to the step of collecting power data from distributed photovoltaic users / ordinary users based on the first broadband carrier module / second broadband carrier module and recording the collection time.
[0159] If the data collection time in this round is longer than that in the previous round, and the number of tasks in this round is greater than that in the previous round, then the number of tasks will be reduced by 1; if the number of tasks in this round is less than that in the previous round, then the number of tasks will be increased by 1; then proceed to the step of collecting power data from distributed photovoltaic users / ordinary users based on the first broadband carrier module / second broadband carrier module and recording the collection time.
[0160] If the collection time in this round is not improved compared to the collection time in the previous round, the number of tasks in this round is determined to be the optimal number of tasks.
[0161] Optionally, after determining that the number of tasks in this round is the optimal number of tasks in the first acquisition module 803 / second acquisition module 804, it can also be used to: increment the initial value of the command number by 1.
[0162] Power data from distributed photovoltaic users and ordinary users is collected using the first broadband carrier module / second broadband carrier module, and the collection duration is recorded.
[0163] Compare the data collection time of this round with the data collection time of the previous round.
[0164] If the acquisition time of this round is shorter than that of the previous round, and the number of commands in this round is greater than that in the previous round, increment the number of commands by 1; if the number of commands in this round is less than that in the previous round, decrement the number of commands by 1; then proceed to the step of acquiring power data of distributed photovoltaic users / ordinary users based on the first broadband carrier module / second broadband carrier module and recording the acquisition time.
[0165] If the data collection time in this round is longer than that in the previous round, and the number of commands in this round is greater than that in the previous round, then the number of commands is decreased by 1; if the number of commands in this round is less than that in the previous round, then the number of commands is increased by 1; then jump to the step of collecting power data of distributed photovoltaic users / ordinary users based on the first broadband carrier module / second broadband carrier module and recording the collection time.
[0166] If the acquisition time in this round is not improved compared to the acquisition time in the previous round, the number of commands in this round is determined to be the optimal number of commands.
[0167] Based on the optimal number of tasks and the optimal number of tasks, power data of distributed photovoltaic users / ordinary users are collected using the first broadband carrier module / second broadband carrier module.
[0168] Optionally, the acquisition duration of the current round in the first acquisition module 803 / second acquisition module 804 is reduced compared to the acquisition duration of the previous round, such that the difference between the acquisition duration of the current round and the acquisition duration of the previous round is greater than or equal to the preset allowable duration deviation, and the acquisition duration of the current round is less than the acquisition duration of the previous round.
[0169] The collection time for this round is longer than that for the previous round. The difference between the collection time for this round and the collection time for the previous round is greater than or equal to the preset allowable time deviation, and the collection time for this round is longer than that for the previous round.
[0170] The data collection time in this round did not improve compared to the previous round, and the difference between the data collection time in this round and the previous round was less than the preset allowable time deviation.
[0171] Optionally, the judgment module 802 is specifically used to compare the sampling frequency with the preset sampling frequency; when the sampling frequency is greater than the preset sampling frequency, it determines that the user's user type is a regular user; when the sampling frequency is less than or equal to the preset sampling frequency, it determines that the user's user type is a distributed photovoltaic user.
[0172] Optionally, the storage module 805 is specifically used to employ a locking mechanism to allow multiple threads to compete for entry into the critical section, and to write the power data carried by the threads entering the critical section into the database; if the current thread's writing time exceeds a preset maximum waiting time, the current thread exits and recompetes for entry into the critical section, transferring the write privilege to the next thread entering the critical section.
[0173] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.
[0174] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to 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. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0175] This application also provides a data acquisition terminal, see [link to relevant documentation] Figure 9 The acquisition terminal may include: at least one processor 910, a memory 920, and a computer program stored in the memory 920 and executable on the at least one processor 910. When the processor 910 executes the computer program, it implements the steps in any of the above method embodiments, for example... Figure 5 Steps S501 to S505 in the illustrated embodiment.
[0176] For example, a computer program can be divided into one or more modules / units, one or more of which are stored in memory 920 and executed by processor 910 to complete this application. The one or more modules / units can be a series of computer program segments capable of performing specific functions, which describe the execution process of the computer program in the acquisition terminal.
[0177] Those skilled in the art will understand that Figure 7 This is merely an example of a data acquisition terminal and does not constitute a limitation on the terminal device. It may include more or fewer components than shown in the figure, or combine certain components, or different components, such as input / output devices, network access devices, buses, etc.
[0178] The processor 910 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0179] The memory 920 can be an internal storage unit of the acquisition terminal or an external storage device of the terminal device, such as a plug-in hard drive, a smart media card (SMC), a secure digital (SD) card, or a flash card. The memory 920 is used to store the computer program and other programs and data required by the acquisition terminal. The memory 920 can also be used to temporarily store data that has been output or will be output.
[0180] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0181] The data acquisition method provided in this application can be applied to terminal devices such as computers, wearable devices, in-vehicle devices, tablet computers, laptop computers, netbooks, personal digital assistants (PDAs), augmented reality (AR) / virtual reality (VR) devices, and mobile phones. This application does not impose any restrictions on the specific type of terminal device.
[0182] This application embodiment also provides a data acquisition system, which includes: the above-mentioned acquisition terminal, the above-mentioned broadband carrier module extension device, and a first broadband carrier module, wherein the acquisition terminal is equipped with a second broadband carrier module.
[0183] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0184] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0185] In the embodiments provided in this application, it should be understood that the disclosed apparatus / network devices and methods can be implemented in other ways. For example, the apparatus / network device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0186] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0187] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A broadband carrier module expansion device, characterized in that, include: The system includes a high-voltage power access module, a low-voltage power access module, and a conversion module. The high-voltage power access module is connected to the mains power line and a first broadband carrier module. The low-voltage power access module is connected to the first broadband carrier module and the conversion module. The conversion module is also connected to a data acquisition terminal. The data acquisition terminal is equipped with a second broadband carrier module. The first broadband carrier module supports a first communication protocol, and the data acquisition terminal supports a second communication protocol. The high-voltage access module is used to transmit power line carrier communication signals between the first broadband carrier module and the mains power line; the low-voltage access module is used to transmit communication signals conforming to the first communication protocol between the first broadband carrier module and the conversion module. The conversion module is used to convert the communication signal of the first communication protocol transmitted by the low-voltage access module into the communication signal of the second communication protocol and transmit it to the acquisition terminal, and to convert the communication signal of the second communication protocol transmitted by the acquisition terminal into the communication signal of the first communication protocol and transmit it to the low-voltage access module.
2. The broadband carrier module expansion device as described in claim 1, characterized in that, The first communication protocol is RS232, and the second communication protocol is RS485.
3. The broadband carrier module expansion device as described in claim 1, characterized in that, The broadband carrier module expansion device also includes a power supply module; The power module is connected to both the high-voltage access module and the low-voltage access module. The high-voltage access module is also used to draw power from the mains power line to supply power to the high-voltage part of the first broadband carrier module, and to transmit the mains power from the mains power line to the power supply module. The power module is used to convert the mains power into a first DC power for use by the low-voltage access module and a second DC power for use by the low-voltage part of the first broadband carrier module, to power the low-voltage access module through the first DC power, and to transmit the second DC power to the low-voltage access module. The low-voltage access module is also used to supply power to the low-voltage part of the first broadband carrier module via the second DC power.
4. A data acquisition method, characterized in that, The method is applied to a data acquisition terminal, wherein the data acquisition terminal is connected to a broadband carrier module extension device as described in any one of claims 1 to 3, the broadband carrier module extension device is connected to a first broadband carrier module, and the data acquisition terminal is equipped with a second broadband carrier module. The method includes: Receive the user's collection frequency from the main station; The user type is determined based on the sampling frequency, and the user type includes distributed photovoltaic users and ordinary users; When the user is a distributed photovoltaic user, the user's power data is collected based on the first broadband carrier module; When the user is a regular user, the user's power data is collected based on the second broadband carrier module; The user's electricity data is stored in a database.
5. The method as described in claim 4, characterized in that, The process of collecting the user's power data based on the first broadband carrier module / the second broadband carrier module includes: Set the initial values for the number of tasks and commands based on the size of the distribution area and the number of smart meters to be collected; Based on the initial values of the number of tasks and the number of commands, the power data of the distributed photovoltaic users and the ordinary users are collected in the first round based on the first broadband carrier module / the second broadband carrier module, and the duration of the first round of collection is recorded; Increment the initial value of the task count by 1, collect the power data of the distributed photovoltaic users / ordinary users based on the first broadband carrier module, and record the collection duration; By comparing the data collection time of the current round with that of the previous round, the relationship between the data collection time of the current round and that of the previous round is determined. The relationship includes increase, decrease, and no improvement. If the collection time in this round is shorter than that in the previous round, and the number of tasks in this round is greater than that in the previous round, the number of tasks is incremented by 1; if the number of tasks in this round is less than that in the previous round, the number of tasks is decremented by 1; then proceed to the step of collecting power data of the distributed photovoltaic users / ordinary users based on the first broadband carrier module / the second broadband carrier module and recording the collection time. If the collection time of this round is longer than that of the previous round, and the number of tasks in this round is greater than that in the previous round, the number of tasks will be reduced by 1; if the number of tasks in this round is less than that in the previous round, the number of tasks will be increased by 1; then proceed to the step of collecting power data of the distributed photovoltaic users / ordinary users based on the first broadband carrier module / the second broadband carrier module and recording the collection time. If the collection time in this round is not improved compared to the collection time in the previous round, the number of tasks in this round is determined to be the optimal number of tasks.
6. The method as described in claim 5, characterized in that, After determining that the number of tasks in this round is the optimal number of tasks, the process also includes: Increment the initial value of the command count by 1; The power data of the distributed photovoltaic users and the ordinary users are collected based on the first broadband carrier module / the second broadband carrier module, and the collection duration is recorded. Compare the data collection time of this round with the data collection time of the previous round; If the collection time in this round is shorter than that in the previous round, and the number of commands in this round is greater than that in the previous round, increment the number of commands by 1; if the number of commands in this round is less than that in the previous round, decrement the number of commands by 1; then proceed to the step of collecting power data of the distributed photovoltaic users / ordinary users based on the first broadband carrier module / the second broadband carrier module and recording the collection time. If the collection time of this round is longer than that of the previous round, and the number of commands in this round is greater than that in the previous round, the number of commands is decreased by 1; if the number of commands in this round is less than that in the previous round, the number of commands is increased by 1; then jump to the step of collecting power data of the distributed photovoltaic users / ordinary users based on the first broadband carrier module / the second broadband carrier module and recording the collection time. If the collection time in this round is not improved compared to the collection time in the previous round, the number of commands in this round is determined to be the optimal number of commands. Based on the optimal number of tasks, power data of the distributed photovoltaic users and the ordinary users are collected using the first broadband carrier module / the second broadband carrier module.
7. The method as described in any one of claims 5 or 6, characterized in that, The current round of data collection time is reduced compared to the previous round of data collection time, and the difference between the current round of data collection time and the previous round of data collection time is greater than or equal to the preset allowable time deviation, and the current round of data collection time is less than the previous round of data collection time. The current round of data collection duration is longer than the previous round of data collection duration. The difference between the current round of data collection duration and the previous round of data collection duration is greater than or equal to the preset allowable duration deviation, and the current round of data collection duration is longer than the previous round of data collection duration. The fact that the current round of data collection time is not improved compared to the previous round means that the difference between the current round of data collection time and the previous round of data collection time is less than the preset allowable time deviation.
8. The method as described in claim 4, characterized in that, The step of determining the user type based on the collection frequency includes: Compare the sampling frequency with the preset sampling frequency; When the sampling frequency is greater than the preset sampling frequency, the user's user type is determined to be the ordinary user; When the sampling frequency is less than or equal to the preset sampling frequency, the user type of the user is determined to be the distributed photovoltaic user; The step of storing the user's electricity data in a database includes: A locking mechanism is used to allow multiple threads to compete to enter the critical section, and the power data carried by the threads entering the critical section is written into the database. If the current thread's write time exceeds the preset maximum waiting time, the current thread will exit and re-compete for entry into the critical section, and the write permission will be transferred to the next thread to enter the critical section.
9. A data acquisition terminal, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 4 to 8.
10. A data acquisition system, characterized in that, The data acquisition system includes: an acquisition terminal as described in claim 9, a broadband carrier module extension device as described in any one of claims 1 to 3, and a first broadband carrier module, wherein the acquisition terminal is equipped with a second broadband carrier module.
Citation Information
Patent Citations
Broadband carrier meter-reading module based on power line carrier communication
CN203433667U
A power line broadband carrier communication module that is used for low pressure to concentrate terminal of checking meter
CN205318606U
Smart converter based on power line carrier
CN206775651U