CN117742924A - Intelligent station energy management and control system task generation method, device and equipment - Google Patents

Intelligent station energy management and control system task generation method, device and equipment Download PDF

Info

Publication number
CN117742924A
CN117742924A CN202311817468.5A CN202311817468A CN117742924A CN 117742924 A CN117742924 A CN 117742924A CN 202311817468 A CN202311817468 A CN 202311817468A CN 117742924 A CN117742924 A CN 117742924A
Authority
CN
China
Prior art keywords
acquisition task
acquisition
target
data
database
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311817468.5A
Other languages
Chinese (zh)
Inventor
王传启
陈欢
张振华
张�浩
崔金旭
张雄雄
窦新月
张燕红
李锦涛
喻常洪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin Keyvia Electric Co ltd
Original Assignee
Tianjin Keyvia Electric Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianjin Keyvia Electric Co ltd filed Critical Tianjin Keyvia Electric Co ltd
Priority to CN202311817468.5A priority Critical patent/CN117742924A/en
Publication of CN117742924A publication Critical patent/CN117742924A/en
Pending legal-status Critical Current

Links

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The application discloses a task generation method and device for an intelligent station energy management and control system, computer equipment and a storage medium. The method can be applied to the technical field of acquisition task generation, and specifically comprises the following steps: acquiring target information corresponding to a target acquisition task of a target meter in a database; the target information is loaded from a database at regular time, and whether the updating time of the database is changed or not is judged; if not, the table numbers with the same acquisition task template ID in the target information are stored in the same group, and the register address corresponding to the same acquisition task template ID is obtained; and generating an acquisition task according to the register address. According to the scheme, the acquisition task templates of the acquisition tasks of the various types of meters are efficiently and uniformly arranged.

Description

Intelligent station energy management and control system task generation method, device and equipment
Technical Field
The application relates to the technical field of task acquisition task generation, in particular to a task generation method, device, computer equipment and storage medium of an intelligent station energy management and control system.
Background
Along with the acceleration of the urban process and the increase of urban traffic pressure, subway construction is rapidly developed. However, along with expansion of subway lines and increase of passenger flow, energy consumption of a subway system is continuously increased, and huge energy pressure is brought to subway operation. Along with the continuous development and application of technologies such as sensing technology, internet of things and cloud computing, technologies are provided for energy conservation and emission reduction of subway pushing, corresponding energy conservation control systems are generated, and on one hand, the energy conservation control systems reduce part of energy consumption and on the other hand, the load of subway operation and maintenance is partially reduced.
However, these energy-saving control systems only perform energy-saving control on a certain aspect or a certain system, and cannot perform global energy-saving control, and lack a scheme for establishing a unified acquisition task template and generating an acquisition task for each type of meter in each system in a subway station, and a scheme for rapidly realizing different acquisition task settings for different levels of objects in the subway station as data collection and interaction services between different systems of the subway increase.
Disclosure of Invention
Based on the above, it is necessary to provide a task generating method, device, computer equipment and storage medium for an intelligent station energy management and control system, which can efficiently and uniformly set an acquisition task template of an acquisition task of each type of meter.
In a first aspect, the present application provides a method for generating a task of an energy management and control system of an intelligent station, which is characterized in that the method includes:
acquiring target information corresponding to a target acquisition task of a target meter in a database; the target information includes a collection task template ID (Identity document, identification number), a protocol number of protocol configuration data, and a channel ID of communication configuration data; the target meters are multiple, and each target meter corresponds to multiple acquisition tasks;
loading target information from the database at regular time, and judging whether the updating time of the database changes or not;
if not, the table numbers with the same acquisition task template ID in the target information are stored in the same group, and register addresses corresponding to the same acquisition task template ID are acquired;
and generating an acquisition task according to the register address.
In one embodiment, generating the acquisition task from the register address includes:
generating a data frame of the acquired communication message through the register address and the protocol number of the protocol configuration data;
establishing communication connection through the channel ID and the port number of the communication configuration data;
and sending the communication message data frame to the terminal through the communication connection and waiting for a response message to generate an acquisition task.
In one embodiment, the method includes:
when the update time of the database has changed, the target information after the change of the update time is stored in the database.
In one embodiment, the method further comprises:
selecting a pre-established acquisition task template for a target acquisition task of a target meter;
and storing the ID of the acquisition task template corresponding to the target acquisition task in a database in correspondence with the pre-established protocol number of the pre-established protocol configuration data of the target acquisition task and the channel ID of the communication configuration data.
In one embodiment, before obtaining the target information corresponding to the target acquisition task of the target meter in the database, the method further includes:
an acquisition task template, protocol configuration data, and communication configuration data are created.
In a second aspect, the present application further provides a task generating device of an intelligent station energy management and control system, where the device includes:
the acquisition module is used for acquiring target information corresponding to a target acquisition task of a target meter in the database; the target information comprises a task template ID, a protocol number of protocol configuration data and a channel ID of communication configuration data; the target meters are multiple, and each target meter corresponds to multiple acquisition tasks;
the loading module is used for loading the target information from the database at regular time and judging whether the updating time of the database changes or not;
the first storage module is used for storing the table numbers with the same acquisition task template ID in the target information in the same group if not, and acquiring the register address corresponding to the same acquisition task template ID;
and the generating module is used for generating an acquisition task according to the register address.
In a third aspect, the present application further provides a computer device, where the computer device includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the intelligent station energy management and control system task generating method when executing the computer program.
In a fourth aspect, the present application further provides a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements the steps of the above-mentioned intelligent station energy management and control system task generating method.
In a fifth aspect, the present application further provides a computer program product, where the computer program product includes a computer program, and when executed by a processor, implements the steps of the intelligent station energy management system task generating method described above.
According to the intelligent station energy management and control system task generation method, the intelligent station energy management and control system task generation device, the computer equipment and the storage medium, the target information corresponding to the target acquisition task of the target meter in the database is obtained, then the target information is loaded from the database at regular time, whether the update time of the database is changed or not is judged, under the condition that the update time of the database is not changed, meter numbers with the same acquisition task template ID in the target information are stored in the same group, register addresses corresponding to the same acquisition task template ID are obtained, and finally the acquisition task is generated according to the register addresses. The intelligent station energy management and control system task generation method can be used for efficiently and uniformly setting the acquisition task templates of the acquisition tasks of various meters.
Drawings
Fig. 1 is a flow chart of a task generating method of an intelligent station energy management and control system in an embodiment;
FIG. 2 is a flow diagram of generating acquisition tasks in one embodiment;
fig. 3 is a flow chart of a task generating method of the intelligent station energy management and control system in another embodiment;
fig. 4 is a block diagram of a task generating device of the intelligent station energy management and control system in one embodiment;
fig. 5 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Along with the acceleration of the urban process and the increase of urban traffic pressure, subway construction is rapidly developed. However, along with expansion of subway lines and increase of passenger flow, energy consumption of a subway system is continuously increased, and huge energy pressure is brought to subway operation. Along with the continuous development and application of technologies such as sensing technology, internet of things and cloud computing, technologies are provided for energy conservation and emission reduction of subway pushing, corresponding energy conservation control systems are generated, and on one hand, the energy conservation control systems reduce part of energy consumption and on the other hand, the load of subway operation and maintenance is partially reduced. However, these energy-saving control systems only perform energy-saving control on a certain aspect or a certain system, and cannot perform global energy-saving control, and lack a scheme for establishing a unified acquisition task template and generating an acquisition task for each type of meter in each system in a subway station, and a scheme for rapidly realizing different acquisition task settings for different levels of objects in the subway station as data collection and interaction services between different systems of the subway increase. Based on this, the embodiment of the application provides a task generating method of an intelligent station energy management and control system, so as to improve the technical problems.
In one embodiment, fig. 1 is a flowchart of a task generating method of an intelligent station energy management and control system according to an embodiment of the present application, and the method is applied to a server for illustration, and the method includes the following steps:
s101, responding to target information corresponding to a target acquisition task of a target meter in an acquisition database.
Optionally, the target information includes a task template ID, a protocol number of protocol configuration data, and a channel ID of communication configuration data; the target table is multiple, and each target table corresponds to multiple acquisition tasks.
Optionally, an acquisition task setting interface is opened, and the acquisition task setting interface provides acquisition task setting for all meters under the station, all meters under the line and three levels of a single meter, and provides acquisition task setting for all meters under the station, all meters under the line and a single meter, so that the acquisition task setting is convenient and flexible.
Optionally, when all meters under the station need to be set for acquisition tasks, the station can be selected to issue the acquisition tasks on the corresponding interface of the network end; when the acquisition task setting is required to be carried out on all meters under a certain line under a station, the acquisition task can be issued by selecting the line at the corresponding interface of the network side. Thus, the meters do not need to be set one by one, and the meters can be set rapidly in batches.
Optionally, when setting the acquisition task for the station, selecting the station to be set, then selecting an acquisition task template, and finally selecting the effective time and the weight of the acquisition task; when the acquisition task is set on the line, the line in the station to be set is selected, then the acquisition task template is selected, and finally the effective time and the weight of the acquisition task can be selected. When the acquisition task is set for the single meter, a specific meter in the station to be set is selected, then an acquisition task template is selected, and finally the effective time and the weight of the acquisition task can be selected. The acquisition task effective time can be set to be the past time or the future time, and when the acquisition task effective time is set to be the future time, the acquisition task is an acquisition task effective at fixed time; when set to the past or current time, the acquisition task will be performed in the next acquisition task period. The acquisition task weight is configured with different acquisition task execution priority levels, and is mainly set aiming at different scenes of the acquisition tasks of different meters in the same terminal, even if the same meter has different meter reading acquisition tasks, the corresponding different acquisition tasks also need different execution priority levels, and through the acquisition task weight configuration, the acquisition tasks can be correspondingly adjusted according to the actual effect of realizing the acquisition task execution after being executed, so that the execution of all the acquisition tasks and the proper adjustment of the execution sequence of the acquisition tasks are ensured to be completed in the acquisition task execution period.
Further, after the setting of the above content, a storage process for storing the acquisition task is entered. Triggering multithreading to respectively acquire the table numbers of the table numbers in the selected hierarchy, loading acquisition task templates, protocol configuration data and channel configuration data corresponding to the table numbers from a database, and finally storing the IDs of the acquisition task templates, the protocol numbers of the protocol configuration data, the channel IDs of the channel configuration data and the modification time into the database tables corresponding to the acquisition tasks. Each meter corresponds to a plurality of acquisition tasks, the acquisition tasks are set by taking the meter as an object, wherein the same meter can set a plurality of different acquisition tasks, but the same acquisition task cannot be repeatedly set. The terminal ID may obtain configuration information of an acquisition device in communication with the meter, where the acquisition device communicates with the meter in real time to obtain data of the meter, and aggregates related data of the meter to store in a machine memory. After the database related to the acquisition task template and the acquisition task setting is modified, the latest modification time is marked in an independent record operation record table of the system. The configured acquisition tasks can be inquired according to the station, the line and the meter level through the network terminal interface, and the acquisition tasks can be selected on the interface after inquiry to delete or modify the acquisition tasks. The creation and maintenance operation of the acquisition task can be conveniently carried out through the network terminal interface.
S102, loading target information from the database at regular time, and judging whether the update time of the database is changed or not.
Optionally, after the target information is loaded from the database at regular time, whether the target information after the update time has changed is loaded from the database is determined by judging whether the update time of the database has changed.
And S103, if not, storing the table numbers with the same acquisition task template ID in the target information in the same group, and acquiring the register address corresponding to the same acquisition task template ID.
Optionally, in the case that the update time of the database is unchanged, no operation needs to be performed; when the update time of the database has changed, the target information after the change of the update time is stored in the database. And then, the table numbers with the same acquisition task template ID in the target information are stored in the same group, and the register addresses corresponding to the same acquisition task template ID are acquired.
In this way, when the external acquisition task is newly added, modified or deleted, the whole acquisition module can be prevented from closing and re-opening the program to load the acquisition task, the acquisition task is updated online, and meanwhile, the data of the modified or newly added acquisition task template, the data of the acquisition task and the protocol configuration data are only subjected to channel configuration data loading content, so that all data are prevented from being loaded into a memory, and the technical effects of reducing the load of a server and the complexity of a system program are achieved.
Furthermore, the acquisition module generates acquisition tasks at regular time, starts generating the acquisition tasks when the effective time is reached, and sequentially acquires an acquisition task template, all data of the acquisition tasks, protocol configuration data and channel configuration data from a database. Firstly, the information of the acquisition task repository is loaded, the ID of the acquisition task template of each acquisition task, the protocol number of the protocol configuration data, the ID of the channel configuration and the acquisition task weight are acquired, and the acquisition task weight is used for controlling the execution process of acquisition task generation. The ID of the acquisition task template can be used for further searching the acquisition task template data in the repository, acquiring the acquisition task template data corresponding to the ID, further acquiring the acquired data identification, and knowing the specific meter equipment address and information corresponding to the acquisition task through meter numbering.
Specifically, the acquisition module stores table numbers with the same ID in all data associated acquisition task templates of the acquisition task in one set Map in the database, and performs classified storage according to the acquisition task template ID. And the acquisition module acquires the corresponding data identifier according to the acquisition task template ID and searches the corresponding register address.
S104, generating an acquisition task according to the register address.
Specifically, task communication message data frames can be collected in groups through a protocol number and a register address in protocol configuration data. The communication link is established by acquiring the communication terminal IP (Internet Protocol ) address and port number by the channel ID of the communication configuration data. The communication message data frame can be sent to the terminal through the communication connection and the response message is waited for so as to generate the acquisition task.
According to the intelligent station energy management and control system task generation method, the target information corresponding to the target acquisition task of the target meter in the database is acquired, then the target information is loaded from the database at regular time, whether the update time of the database is changed or not is judged, the meter numbers with the same acquisition task template ID in the target information are stored in the same group under the condition that the update time of the database is not changed is judged, the register addresses corresponding to the same acquisition task template ID are acquired, and finally the acquisition task is generated according to the register addresses. The intelligent station energy management and control system task generation method can be used for efficiently and uniformly setting the acquisition task templates of the acquisition tasks of various meters.
On the basis of the above embodiment, the step of generating the acquisition task is decomposed and refined by fig. 2. Optionally, as shown in fig. 2, the following implementation process is included:
s201, generating an acquisition communication message data frame through a register address and a protocol number of protocol configuration data.
Optionally, after the register address is obtained by the collecting module, a communication message data frame can be collected by combining with a protocol number of the protocol configuration data.
S202, establishing communication connection through the channel ID and the port number of the communication configuration data.
Optionally, after obtaining the channel ID of the communication configuration data from the database, a communication connection can be established in combination with the port number.
S203, sending the communication message data frame to the terminal through the communication connection and waiting for a response message to generate an acquisition task.
Optionally, after obtaining the communication connection between the server and the terminal, the server sends the acquired communication message data frame to the terminal through the communication connection, waits for a response message returned by the terminal, and when the terminal receives the response message, the acquisition task can be generated.
It can be understood that the specific mode of generating the acquisition task is provided in the embodiment, the operation is simple and easy, the acquisition task is automatically completed by the server and the terminal, and the efficiency is high.
In one embodiment, for convenience of subsequent use, information pertaining to the target acquisition task needs to be grouped together, and specifically, the ID of the acquisition task template corresponding to the target acquisition task is stored in the database in correspondence with the protocol number of the pre-created protocol configuration data of the pre-stored target acquisition task and the channel ID of the communication configuration data.
In one embodiment, before acquiring target information corresponding to a target acquisition task of a target meter in a database, an acquisition task template, protocol configuration data and communication configuration data need to be created first, so as to acquire a channel ID of the acquisition task template ID, a protocol number of the protocol configuration data and the communication configuration data, namely target information.
The contents of the created acquisition task template, the protocol configuration data and the communication configuration data are respectively described:
1) An acquisition task template is created on the network side.
The acquisition task template stores different types of acquisition task data, and besides traditional acquisition task data, the acquisition task template also comprises equipment control content, and the meter reading template mainly comprises task types, task classification, uploading intervals, acquisition modes, data types and data identification codes. Wherein:
1.1 task type: curve task, day freezing task, month freezing task, meter reading day task and control task.
1.2 task classification: a first class of task and a second class of task. Wherein one class of tasks represents real-time tasks and the second class of tasks represents historical tasks.
1.3 upload intervals: 1 minute, 15 minutes, 30 minutes, 1 hour, 1 day, 1 month, 12 months.
1.4 acquisition interval: 1 minute, 15 minutes, 30 minutes, 1 hour, 1 day, 1 month, 12 months.
1.5 acquisition mode: and (5) actively uploading and collecting by a master station.
1.6 data types: history, real time.
1.7 data identification code. The data identification contains current data. Curve data, day frozen data, meter reading day data, month frozen data and control data. The method comprises the following steps:
1.7.1 current data (real-time data): electrical energy data, thermal energy data, load data, statistics, environmental data, other data. Specific data identifications are as follows:
1.7.1.1 the power data comprises power data.
1.7.1.2 thermal energy data comprises data for a heat meter device.
1.7.1.2 load data includes voltage, current, power factor, demand, frequency.
1.7.1.3 statistical data includes open-phase data, phase angle, reactive compensation input time and times, and harmonic data.
1.7.1.4 environmental data includes sensor data, temperature, humidity, CO2 concentration, PM2.5 values.
1.7.1.5 other data includes device operating status, rate, operating time, alarm event.
1.7.2 curve data (history data): electrical energy data, thermal energy data, load data, environmental data, terminal data. Specific data identifications are as follows:
1.7.2.1 the power data comprises power data.
1.7.2.2 thermal energy data comprises data for a heat meter device.
1.7.2.3 load data includes voltage, current, power factor, demand, frequency.
1.7.2.4 environmental data includes sensor data, temperature, humidity, CO2 concentration, PM2.5 values.
1.7.2.5 terminal data: terminal status, terminal information.
Frozen data 1.7.3 days (data collected once every day at zero): electric energy data, heat energy data, load data, statistical data and terminal data. Specific data identifications are as follows:
1.7.3.1 the electrical energy data comprises electrical power data.
1.7.3.2 thermal energy data comprises data for a heat meter device.
1.7.3.3 load data includes voltage, current, power factor, demand, frequency.
1.7.3.4 statistical data includes open-phase data, phase angle, reactive compensation input time and times, and harmonic data.
1.7.3.5 terminal data: terminal status, terminal information.
1.7.4 meter reading day data (data collected on a given day): electrical energy data, thermal energy data, load data. Specific data identifications are as follows:
1.7.4.1 the power data comprises power data.
1.7.4.2 thermal energy data comprises data for a heat meter device.
1.7.4.3 load data includes voltage, current, power factor, demand, frequency.
1.7.5 month frozen data (data collected once every month at the beginning of zero): electric energy data, heat energy data, load data, statistical data and terminal data. Specific data identifications are as follows:
1.7.5.1 the power data comprises power data.
1.7.5.2 thermal energy data comprises data for a heat meter device.
1.7.5.3 load data includes voltage, current, power factor, demand, frequency.
1.7.5.4 statistical data includes open-phase data, phase angle, reactive compensation input time and times, and harmonic data.
1.7.5.5 terminal data: terminal status, terminal information.
1.7.6 control data (issuing control command parameters): start control, stop control, frequency control.
The above data type is actually the data item code specified in the communication protocol, and it is this data item code that is stored by the final acquisition task template. The register address of the corresponding data item can be queried through the data item code, and the register address is associated with the corresponding type of acquisition task template and is used for generating a communication message. And simultaneously, providing a data identifier configuration interface, wherein the interface is newly added with a corresponding data type according to the data type defined in the field communication protocol and is used for updating options in the data identifier, and then a corresponding acquisition task template can be created.
The acquisition task template can be newly created through a network terminal interface, and after the network terminal configures the parameter information, the task types, the task classifications, the uploading intervals, the acquisition modes, the data types and the data identification codes are stored in a database table corresponding to the acquisition task template. Meanwhile, the configured acquisition task template can be inquired according to the task type, the task template can be selected on the interface after inquiry, deleting or modifying operation can be carried out, and the creation and maintenance operation of the acquisition task template can be conveniently carried out through the configuration interface of the network side.
2) Creating protocol configuration data at a network end
The protocol is the communication protocol employed between the device and the server. The protocol configuration data includes a protocol library file name, a maximum length of a data frame, a communication type, a number of resets, and a timeout time.
2.1 protocol library file name: when the program executes the acquisition task, corresponding protocol files are loaded from the protocol library to realize different communication protocol data communication of different equipment terminals.
2.2 maximum length of data frame: the data length of the communication protocol is limited, and when the data volume is too large for one time, the collected data items are automatically equally divided, or intercepted according to the data length, so that the function of collecting data by a plurality of communication messages for one time of collection tasks is realized.
2.3 communication types: the communication types are distinguished according to different hardware links, and the protocol types adopted in communication are generally classified into serial port master station communication, serial port slave station communication, TCP server communication, TCP client communication, wireless communication, internet of things communication and other communication modes.
2.4 reset times: when the number of times of reloading the protocol library file continuously exceeds the reset number of times due to timeout, the system stops the process of reloading the protocol and gives an alarm to the monitoring process.
2.5 timeout time: meaning that the system detects the time interval in which the terminal is not communicating, beyond which time the protocol will be reloaded. And when the task message cannot be issued due to breakdown in the running process of the program, the system automatically performs a recovery process.
And creating the protocol configuration data in a newly added mode through a network terminal interface, and storing the file name of the protocol library, the maximum length of a data frame, the communication type, the reset times and the overtime time into a database. Meanwhile, the configured protocol configuration data can be integrally queried, and the protocol configuration data can be selected on a network terminal interface after query to delete or modify.
3) Network creation channel configuration data
Channel configuration is a channel parameter required to configure different protocols for communication. The channel configuration comprises a main and standby mark, a protocol name, a connection mode, an encryption mode, a node, a transaction processing interval, a transaction timeout interval, a transaction retry number, an associated main channel, a channel type, a port number, an address, a serial number and the number of simultaneous processing tasks.
The main and standby marks: for setting whether the channel is a main channel or a standby channel. When the main and standby structures exist in the general communication equipment structure, the parameters can be configured, and when the main channel cannot be connected, the acquisition task acquisition program can be automatically switched to the standby channel for communication.
Protocol name: the protocol of the channel is used for associating corresponding protocol configuration data.
Connection mode: the type used to define the channel is divided into a persistent channel and a temporary channel.
Encryption mode: whether the message data in the communication protocol is further encrypted or not is configured in an encrypted manner.
The node: the device name of the protocol program of the channel is allowed to be executed, the data acquisition of the server-side device is limited, the device running the protocol program can be limited, and the communication safety is improved.
The transaction interval is as follows: the interval for sending the communication protocol messages of different acquisition tasks is configured, and the frequency for sending the messages cannot be smaller than the time point.
Thing timeout interval: and allowing a maximum time interval for which no reply communication protocol message is received when the acquisition task communication protocol message is sent.
Number of retries of things: when the acquisition task communication protocol message is sent, and the replied protocol communication message is not received within the time-out interval of things, the acquisition task communication protocol message is resent again, and the configuration item allows retry times.
Associating a main channel: when the primary and backup flags are "channeled," they are used herein to configure the associated primary channel names.
Channel type: the channel types of different communication links mainly comprise a TCP server mode, a TCP client mode, a serial port communication mode, a UDP communication mode, a serial port server communication mode, a wireless communication mode and an Internet of things communication mode.
Port number and address: an IP address and a port number required for communication with the opposite terminal.
Serial number: serial numbers of the communication channels are employed.
The number of simultaneous processing tasks: when the task amount is large, the configuration item can be used for starting a plurality of threads and processing the protocol data at the same time, so that the processing process of the acquisition task is quickened.
The channel configuration data can be newly created through the network interface, and the main and standby marks, the protocol names, the connection modes, the encryption modes, the nodes, the object processing intervals, the object overtime intervals, the object retry times, the associated main channels, the channel types, the port numbers, the addresses and the serial numbers and the number of simultaneous processing tasks are stored in a database. Meanwhile, the configured channel configuration data can be subjected to overall query, and the channel configuration can be selected on the interface after the query.
In one embodiment, a flow diagram of a task generating method of an intelligent station energy management and control system in another embodiment is shown in fig. 3, and in combination with the process shown in fig. 3, each stage specifically includes the following implementation processes:
s301, creating an acquisition task template, protocol configuration data and communication configuration data.
S302, obtaining target information corresponding to a target acquisition task of a target meter in a database.
Optionally, the target information includes a task template ID, a protocol number of protocol configuration data, and a channel ID of communication configuration data; the target table is multiple, and each target table corresponds to multiple acquisition tasks.
S303, loading the target information from the database at regular time, and judging whether the update time of the database is changed. If yes, go to step S304 and then go to step S305; if not, step S305 is directly performed.
S304, storing the target information after the update time is changed into a database.
S305, table numbers with the same acquisition task template ID in the target information are stored in the same group, and register addresses corresponding to the same acquisition task template ID are acquired.
S306, generating an acquisition communication message data frame through the register address and the protocol number of the protocol configuration data.
S307, a communication connection is established by the channel ID and the port number of the communication configuration data.
S308, sending the communication message data frame to the terminal through the communication connection and waiting for a response message to generate an acquisition task.
The specific process of S301 to S308 may refer to the description of the foregoing method embodiment, and its implementation principle and technical effects are similar, and are not repeated herein.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a task generating device of the intelligent station energy management and control system for realizing the task generating method of the intelligent station energy management and control system. The implementation scheme of the device for solving the problem is similar to the implementation scheme recorded in the method, so the specific limitation in the embodiment of the task generating device of the energy management and control system of one or more intelligent stations provided below can be referred to the limitation of the task generating method of the energy management and control system of the intelligent stations in the above description, and the description is omitted here.
In one embodiment, a block diagram of the task generating device of the intelligent station energy management and control system in one embodiment is shown by fig. 4. As shown in fig. 4, there is provided a smart station energy management and control system task generating device 4, the device 4 comprising: an acquisition module 40, a loading module 41, a first storage module 42 and a generation module 43, wherein:
the acquiring module 40 is configured to acquire target information corresponding to a target acquisition task of a target meter in the database; the target information comprises a task template ID, a protocol number of protocol configuration data and a channel ID of communication configuration data; the target meters are multiple, and each target meter corresponds to multiple acquisition tasks;
the loading module 41 is configured to regularly load the target information from the database, and determine whether the update time of the database changes;
the first storage module 42 is configured to store table numbers with the same acquisition task template ID in the target information in the same group if not, and obtain a register address corresponding to the same acquisition task template ID;
the generating module 43 is configured to generate an acquisition task according to the register address.
According to the intelligent station energy management and control system task generating device, the target information corresponding to the target acquisition task of the target meter in the database is acquired, then the target information is loaded from the database at regular time, whether the update time of the database is changed or not is judged, the meter numbers with the same acquisition task template ID in the target information are stored in the same group under the condition that the update time of the database is not changed is judged, the register addresses corresponding to the same acquisition task template ID are acquired, and finally the acquisition task is generated according to the register addresses. The intelligent station energy management and control system task generating device can be used for efficiently and uniformly setting the acquisition task templates of the acquisition tasks of various meters.
In one embodiment, the generating module 43 is specifically configured to:
generating a data frame of the acquired communication message through the register address and the protocol number of the protocol configuration data; establishing communication connection through the channel ID and the port number of the communication configuration data; and sending the communication message data frame to the terminal through the communication connection and waiting for a response message to generate an acquisition task.
In one embodiment, the apparatus 4 further includes:
and the second storage module is used for storing the target information after the update time of the database is changed into the database under the condition that the update time of the database is changed.
In one embodiment, the apparatus 4 further includes: are (1)
The selection module is used for selecting a pre-established acquisition task template for the target acquisition task of the target meter;
and the third storage module is used for storing the ID of the acquisition task template corresponding to the target acquisition task and the channel ID of the communication configuration data corresponding to the pre-created protocol configuration data of the pre-stored target acquisition task in the database.
In one embodiment, before obtaining the target information corresponding to the target acquisition task of the target meter in the database, the apparatus 4 further includes:
the creation module is used for creating an acquisition task template, protocol configuration data and communication configuration data.
All or part of each module in the intelligent station energy management and control system task generating device can be realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a transceiver connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The transceiver of the computer device is used for executing the operation of receiving data or transmitting data under the control of the processor. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data such as sample data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by the processor to realize a task generating method of the intelligent station energy management and control system.
It will be appreciated by those skilled in the art that the structure shown in fig. 5 is merely a block diagram of a portion of the structure associated with the present application and is not intended to limit the computer device to which the present application is applied, and in particular, the computer device may include more or less components than those shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided, including a memory and a processor, where the memory stores a computer program, and the processor implements principles and specific processes in each embodiment, which can be referred to in the foregoing embodiment of the task generating method of the intelligent station energy management and control system, and is not repeated herein.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the principles and specific procedures in each embodiment may be referred to in the foregoing description of the embodiment of the target detection method in the foregoing embodiment, which is not repeated herein.
In one embodiment, a computer program product is provided, which includes a computer program, where the principle and specific procedures in the embodiments are implemented when the computer program is executed by a processor, and reference is made to the description in the foregoing embodiment of the object detection method, which is not repeated herein.
It should be noted that, the information related to the present application (including, but not limited to, information in the total training set, multimodal fusion data, etc. in the present application) is information or data fully authorized by each party.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (9)

1. The intelligent station energy management and control system task generation method is characterized by comprising the following steps of:
acquiring target information corresponding to a target acquisition task of a target meter in a database; the target information comprises a task template ID, a protocol number of protocol configuration data and a channel ID of communication configuration data; the target meters are multiple, and each target meter corresponds to multiple acquisition tasks;
the target information is loaded from a database at regular time, and whether the updating time of the database is changed or not is judged;
if not, the table numbers with the same acquisition task template ID in the target information are stored in the same group, and the register address corresponding to the same acquisition task template ID is obtained;
and generating an acquisition task according to the register address.
2. The method of claim 1, wherein generating an acquisition task from the register address comprises:
generating an acquisition communication message data frame through the register address and the protocol number of the protocol configuration data;
establishing communication connection through the channel ID and the port number of the communication configuration data;
and sending the communication message data frame to a terminal through the communication connection and waiting for a response message to generate an acquisition task.
3. The method according to claim 1, characterized in that the method comprises:
and storing the target information after the update time is changed into the database under the condition that the update time of the database is changed.
4. The method according to claim 2, wherein the method further comprises:
selecting a pre-established acquisition task template for a target acquisition task of a target meter;
and storing the ID of the acquisition task template corresponding to the target acquisition task and the pre-created protocol number of the pre-created protocol configuration data of the target acquisition task and the channel ID of the communication configuration data in a database in a corresponding mode.
5. The method of claim 1, wherein prior to obtaining target information corresponding to a target acquisition task of a target meter in a database, the method further comprises:
an acquisition task template, protocol configuration data, and communication configuration data are created.
6. An intelligent station energy management and control system task generating device, which is characterized by comprising:
the acquisition module is used for acquiring target information corresponding to a target acquisition task of a target meter in the database; the target information comprises a task template ID, a protocol number of protocol configuration data and a channel ID of communication configuration data; the target meters are multiple, and each target meter corresponds to multiple acquisition tasks;
the loading module is used for loading the target information from the database at regular time and judging whether the updating time of the database is changed or not;
the first storage module is used for storing the table numbers with the same acquisition task template ID in the target information in the same group if not, and acquiring a register address corresponding to the same acquisition task template ID;
and the generating module is used for generating an acquisition task according to the register address.
7. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 5 when the computer program is executed.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 5.
9. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 5.
CN202311817468.5A 2023-12-27 2023-12-27 Intelligent station energy management and control system task generation method, device and equipment Pending CN117742924A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311817468.5A CN117742924A (en) 2023-12-27 2023-12-27 Intelligent station energy management and control system task generation method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311817468.5A CN117742924A (en) 2023-12-27 2023-12-27 Intelligent station energy management and control system task generation method, device and equipment

Publications (1)

Publication Number Publication Date
CN117742924A true CN117742924A (en) 2024-03-22

Family

ID=90259128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311817468.5A Pending CN117742924A (en) 2023-12-27 2023-12-27 Intelligent station energy management and control system task generation method, device and equipment

Country Status (1)

Country Link
CN (1) CN117742924A (en)

Similar Documents

Publication Publication Date Title
US11755604B2 (en) Building management system with declarative views of timeseries data
CN110413690A (en) Method of data synchronization, server, electronic equipment, the storage medium of database
CN105956723A (en) Logistics information management method based on data mining
CN115759295A (en) Collaborative training method and device based on longitudinal federal learning and storage medium
CN115934856A (en) Method and system for constructing comprehensive energy data assets
CN112084303B (en) HBase-based power grid operation data storage and access method and system
CN111581187B (en) Data management method, device, computer equipment and storage medium for intelligent park
CN116743790B (en) Device data acquisition, device data analysis method and device and computer device
CN105956816A (en) Cargo transportation information intelligent processing method
CN117742924A (en) Intelligent station energy management and control system task generation method, device and equipment
CN115865604A (en) Intelligent integration terminal for intelligent park
CN115221125A (en) File processing method and device, electronic equipment and readable storage medium
CN115766447B (en) Equipment function updating method and device
CN114596116B (en) Load aggregation business electric quantity prediction method and device and computer equipment
CN110737297A (en) Method and device for realizing remote multi-greenhouse environment control based on Internet of things
CN116088913B (en) Integrated device, method and computer program product for whole vehicle upgrade software
CN117132246B (en) Energy consumption statistical system, method, equipment and medium of flexible production line
CN118246790A (en) Quality control management plan determining method, device, computer equipment and storage medium
CN115617619A (en) Data monitoring method, data monitoring device, computer equipment, storage medium and program product
CN115203239A (en) Method and device for displaying perception data elements and storage medium
CN117593125A (en) Service data processing method, device, computer equipment and storage medium
CN117453695A (en) Method, system, medium and equipment for storing meter reading data based on low-voltage transformer area
CN115202814A (en) Business resource management and control method, device, computer equipment and storage medium
CN117251192A (en) Method, device, equipment and storage medium for managing enterprise-level system
CN116470493A (en) Multi-device scheduling control method and device and computer device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination