[ Invention ]
One of the technical problems to be solved by the invention is to provide a generation method of an Internet of things acquisition model of a power distribution station room for enhancing equipment state control force.
The second technical problem to be solved by the invention is to provide a generation device of an Internet of things acquisition model of a power distribution station room for enhancing the equipment state management and control force.
The invention is realized in the following way:
a generation method of a power distribution station house internet of things acquisition model, wherein the acquisition model generates a resource object through configuration, defines data to be acquired, a data acquisition method and a data processing rule, and specifically comprises the following steps:
step 1: alarm model:
The alarm model is a module for judging whether the data is correct or not according to the data change;
the alarm model is divided into two types of telemetry and remote signaling according to data types; the telemetry, which refers to an analog quantity, has a continuously varying value; the remote signaling finger state column is a value which changes between constants;
the telemetry alarm model is divided into an upper limit, a lower limit and a lower limit according to the change of the value, wherein a normal data interval is arranged between the upper line and the lower line, and the upper limit and the lower limit are processing modes of which the data exceeds or is lower than a normal value too much;
The remote signaling alarm model is a processing mode which changes from one state to another state according to the value;
the alarm grade is classified into a general grade, a serious grade and a significant grade according to the severity;
The output mode of the alarm is divided into voice broadcasting, mobile phone short messages, voice phones and picture pushing; the voice broadcasting and the picture pushing refer to an alarm output mode adopted in a duty desk mode, and the mobile phone short message and the voice telephone are started in the background and can be executed no matter whether the duty desk exists or not;
step 2: and (3) measuring a model:
The measurement model is an abstraction of a data domain and comprises measurement names, attribute descriptions, data types, measurement units, alarm types, application ranges and whether important data exist or not; the data types are classified into remote signaling and remote measurement, and the application range is used for matching the alarm model and a user follow-up protocol model accurately; the name of the measurement model has uniqueness;
Step 3: protocol model:
the protocol model comprises a communication mode and a communication protocol;
The communication mode is divided into serial ports, networks and wireless;
the communication protocol comprises an operation process of information exchange and a data format, wherein data transmission in communication is carried out according to a stipulated format, and the transmitting and receiving ends mutually stipulate the transmission speed, the synchronous mode and the data structure in advance;
Step 4: device model and equipment model:
The device model refers to class abstraction of a front-end processor or an edge gateway processor, and describes device products of the same model, and comprises a manufacturer, a model, the number of serial ports, the number of network ports, CPU main frequency, hard disk capacity, memory capacity, appearance size, appearance photo and protocol model;
The equipment model refers to general description of acquisition equipment, the acquisition equipment performs data acquisition through a sensor, the acquired data is stored in a corresponding register address according to a data structure, the acquisition equipment communicates with an acquisition device, a protocol command set is issued by the acquisition device, and the acquisition equipment returns corresponding register data after analysis to finish data uploading; the attributes of the equipment model include: collecting types, equipment manufacturers, product models, appearance sizes, appearance photos and protocol models; the acquisition type is a sensor type of acquisition equipment and is divided into an environment type, a security type and an electric power equipment type; the environment class includes: humiture, water logging, smoke sense, gas, soil, hydrology, wind-force, noise, security protection class includes: camera, infrared, power equipment class includes: electric energy meter, multi-functional ammeter, transformer temperature controller, current-voltage transformer, intelligent acquisition terminal.
Further, in the remote signaling alarm model, the state before the change is not set, which means that any state changed to the set state is an alarm; the changed state is not set, and the starting state is alarmed no matter what state is changed; the pre-change state and the post-change state cannot be set to null at the same time.
The utility model provides a generating device of distribution substation room thing allies oneself with collection model, the collection model is through the configuration production resource object, has defined data, data acquisition's method and data processing's rule that need gather, specifically includes: an alarm model module, a measurement model module, a protocol model module, a device model module and an equipment model module;
the alarm model module is used for judging whether the data is correct or not according to the data change;
The alarm model module is divided into two types of telemetry and remote signaling according to data types; the telemetry, which refers to an analog quantity, has a continuously varying value; the remote signaling finger state column is a value which changes between constants;
the telemetry alarm model is divided into an upper limit, a lower limit and a lower limit according to the change of the value, wherein a normal data interval is arranged between the upper line and the lower line, and the upper limit and the lower limit are processing modes of which the data exceeds or is lower than a normal value too much;
The remote signaling alarm model is a processing mode which changes from one state to another state according to the value;
the alarm grade is classified into a general grade, a serious grade and a significant grade according to the severity;
The output mode of the alarm is divided into voice broadcasting, mobile phone short messages, voice phones and picture pushing; the voice broadcasting and the picture pushing refer to an alarm output mode adopted in a duty desk mode, and the mobile phone short message and the voice telephone are started in the background and can be executed no matter whether the duty desk exists or not;
The measurement model module is used for abstracting a data domain and comprises measurement names, attribute descriptions, data types, measurement units, alarm types, application ranges and whether important data are important or not; the data types are classified into remote signaling and remote measurement, and the application range is used for matching the alarm model and a user follow-up protocol model accurately; the name of the measurement model has uniqueness;
The protocol model module comprises a communication mode and a communication protocol;
The communication mode is divided into serial ports, networks and wireless;
the communication protocol comprises an operation process of information exchange and a data format, wherein data transmission in communication is carried out according to a stipulated format, and the transmitting and receiving ends mutually stipulate the transmission speed, the synchronous mode and the data structure in advance;
The device model module refers to class abstraction of a front end processor or an edge gateway processor, and describes device products of the same model, including manufacturer, model, serial port number, network port number, CPU main frequency, hard disk capacity, memory capacity, appearance size, appearance photo and protocol model;
The equipment model module refers to general description of acquisition equipment, the acquisition equipment performs data acquisition through a sensor, the acquired data is stored in a corresponding register address according to a data structure, the acquisition equipment communicates with an acquisition device, a protocol command set is issued by the acquisition device, and the acquisition equipment returns corresponding register data after analysis to finish data uploading; the attributes of the equipment model include: collecting types, equipment manufacturers, product models, appearance sizes, appearance photos and protocol models; the acquisition type is a sensor type of acquisition equipment and is divided into an environment type, a security type and an electric power equipment type; the environment class includes: humiture, water logging, smoke sense, gas, soil, hydrology, wind-force, noise, security protection class includes: camera, infrared, power equipment class includes: electric energy meter, multi-functional ammeter, transformer temperature controller, current-voltage transformer, intelligent acquisition terminal.
Further, in the remote signaling alarm model, the state before the change is not set, which means that any state changed to the set state is an alarm; the changed state is not set, and the starting state is alarmed no matter what state is changed; the pre-change state and the post-change state cannot be set to null at the same time.
The invention has the advantages that: the state control force and penetration force of equipment are enhanced, the power distribution lean management level is improved, and the safe and reliable power supply and high-quality service are ensured. Professional parameters are simply and conveniently finished through a guide mode through the model, complex parameter setting is reduced, field debugging difficulty and technical requirements are reduced, and field implementation work is more convenient and efficient.
[ Detailed description ] of the invention
The power distribution station room acquisition system is divided into three units, namely an acquisition model, a resource object and operation data. The collection model is configured to generate resource objects, the resource objects generate service data through operation, the implementation main bodies of the three units are different, the collection model is configured by system developers, the resource objects are configured by engineering implementation personnel, and the service data are generated through operation of the system.
The present embodiment relates to a method for generating an acquisition model, where the acquisition model includes an alarm model, a measurement model, a device model, an equipment model, and a protocol model, as shown in fig. 1. The resource object includes a device object and a device object. The business data comprises real-time data, history curves, alarm output, acquisition links, statistical analysis and operation logs. As shown in fig. 2, there is a logic diagram of model object operation, in each unit and between units there is a connection, in each unit is a weak connection, in each unit is a strong connection, the model is a high abstraction of the object, the object is an instantiation of the model, all the models are collectively called as collection models, all the objects are collectively called as resource objects, the collection models should be built according to the requirements in the business engineering, and the resource objects are created through guidance, so as to finally reach the operation data required by the business engineering.
The acquisition model is the key of an acquisition system, and defines data to be acquired, a data acquisition method and a data processing rule. When the acquisition model is established, corresponding acquisition protocols are customized or configured according to the data acquisition modes of acquisition devices and acquisition equipment products on the market, the acquisition devices are also used as a special acquisition object for more complete acquisition management, namely, the operation data of the acquisition devices also need to be configured with the corresponding acquisition protocols and alarm rules, and the configuration sequence is as follows: alarm model- > measurement model- > protocol model- > device model- > equipment model. The acquisition model is a basis of an acquisition system and is also a core unit, the accuracy of service data is directly affected by the configured acquisition model, engineering construction staff can construct a device model and an equipment model of a resource object according to the device model and the equipment model, and the configuration is required according to the condition of site construction during the establishment. The business data is automatically generated according to the configuration of the acquisition model and the resource object, and is also the purpose of construction of business engineering.
Each model in the acquisition model is in a weak relation, intelligent matching is carried out between the models through model names and application ranges, the application ranges represent the application range of the data, for example, the voltage application range is a specific grade of voltage, and the temperature application range is a region where the temperature is located. The model names are strictly matched, the application range is intelligent matching, the intelligent matching is the same as the preferential matching, if the matching is successful if the matching is only, if a plurality of models exist, the highest score in other parameters is obtained, each model has a respective parameter scoring algorithm, if no matching model exists, the matching is performed through the empty application range, and if the matching is not successful, the model matching is reminded to fail. The name rule of the model is simplified through the joint matching mode, so that the gravity center of the model configuration is biased to an application scene, and the engineering is facilitated.
The design of each module is described in detail below:
1. Alarm model:
The alarm model is a strategy model adopted for data change to judge whether the data is correct. Two types of telemetry and telemetry are classified according to data types. Telemetry refers to analog quantity having a continuously varying value, such as temperature; the remote signaling refers to a status bar, which is a value that varies between constants, such as water logging.
The telemetry alarm model is divided into an upper limit, a lower limit and a lower limit according to the change of the value, wherein a normal data interval is arranged between the upper limit and the lower limit, and the upper limit and the lower limit emphasize the processing strategy that the data exceeds or is lower than the normal value too much.
As shown in FIG. 4, the remote signaling alarm model is a processing strategy for changing a value from one state to another state, the state before the change can not be set to be an alarm for indicating that any state is changed to the set state, the state after the change can not be set to be an alarm for indicating that the starting state is regardless of the state to which the change is performed, and the state before the change and the state after the change cannot be set to be null at the same time.
Tables 1 and 2 are telemetry alert model samples and telemetry alert model samples, respectively:
Table 1:
table 2:
Name of the name |
Description of the invention |
Start state |
End state |
Application range |
RevDir_phsA |
Phase A tide reverse |
Positive direction |
Negative pole |
|
RevDir_phsB |
Phase B tide reverse |
Positive direction |
Negative pole |
|
RevDir_phsC |
C-phase tide reverse direction |
Positive direction |
Negative pole |
|
Alarms are classified into general, serious, and significant three categories according to severity. The general grade indicates that the data in the state is abnormal, has potential safety hazard, can continue to run, and can be processed together when being maintained next time; the severity level refers to the data defect in the state, and the abnormality needs to be repaired, so that the abnormality can be repaired on line; the significant level refers to the data fault in the state, and the operation needs to be stopped immediately, so that the problem data can not be operated until the data is recovered.
The alarm processing strategies are divided into voice broadcasting, mobile phone short messages, voice phones and picture pushing. The voice broadcasting and the picture pushing refer to an alarm output mode adopted in the watch desk mode, and the mobile phone short message and the voice telephone are started in the background and can be executed no matter whether the watch desk exists or not.
The data change also contains two special jump values and dead data. The jump value data is far beyond a reasonable value or the change occurs in the state data which does not exist, the dead data means that the telemetry value is not changed for a long time, and the two types of data are not in the alarm category.
2. And (3) measuring a model:
the measurement model is an abstraction of the data domain, and comprises measurement names, attribute descriptions, data types, measurement units, alarm models, application ranges and whether important data exist. The data types are remote signaling and remote measurement, and the application range is used for accurately matching the police model and the follow-up protocol model of the user.
The name of the measurement model is unique, all the devices are not provided with own value field names, the problem that the names defined by the data fields of all the factories are inconsistent is solved, for example, the A-phase voltage of an electric meter of an X manufacturer is represented by Ua, the A-phase voltage of an electric meter of a Y manufacturer is represented by UA, different names represent the same data field, and the use of a unified measurement model also simplifies the alarm configuration workload of the devices of different manufacturers and also simplifies the subsequent operation and maintenance work.
The measurement model is built so that data exchange between different system platforms is simplified, names of equipment of different manufacturers are shielded, an external interface has a unique data domain name, and the expression is readable. Table 3 shows some of the data of the metrology model, and the system should continue to expand new metrology models as the application does not expand.
Table 3:
3. Protocol model:
In communication, data transmission should be performed according to a predetermined format, and the transmitting and receiving ends should deal with the transmission rate, synchronization mode, data structure and the like in advance and follow each other, and these conventions are called communication conventions. The protocol model comprises a communication mode and a communication protocol, wherein the communication mode is also called an acquisition link, comprises a physical channel and data communication characteristics, and the communication protocol is also called an exchange rule and comprises an operation process and a data format of information exchange. Fig. 4 is a schematic diagram of a protocol model communication mode.
The communication modes are divided into serial ports, networks and wireless. The most important parameters for serial communication are baud rate, data bits, stop bits and parity, which must be matched for the two ports communicating, more commonly (9600, n,8, 1).
Communication conventions are divided into standard conventions and proprietary conventions. The standard specifications include the Modbus specifications of the industry, IEC101, IEC104, DL/T645 of power, and the like. The proprietary specifications are self-designed according to each manufacturer's product, and support for a southbound interface (Southbound Interface) and a northbound interface (Northbound Interface) is required for access to be compatible with third party specifications.
The communication protocol not only describes a synchronous mode but also comprises a data structure, sometimes called a point table, different manufacturers use the same protocol mode, but the data structure is inconsistent, the protocol model solves the problem that the different manufacturers are inconsistent in the data structure by introducing the measurement model, the data structure only exists in the protocol model, only provides measurement data externally, namely has uniform data names, such as DL/T645 protocol is adopted by electric meters, single X electric meter manufacturer UA is stored at 0001 register addresses, Y electric meter manufacturer UA is stored at 0088 register addresses, and the external data acquired by different electric meter positions of different data names of different manufacturers are provided as measurement model data, namely only comprises standard Ua measurement data. Table 4 is a protocol model data structure example.
Table 4:
Address of |
Parameters (parameters) |
Read-write attributes |
Numerical range |
Data type |
130H |
Frequency F |
R |
4500~6500 |
word |
131H |
Phase voltage V1 |
R |
0~65535 |
word |
132H |
Phase voltage V2 |
R |
0~65535 |
word |
133H |
Phase voltage V3 |
R |
0~65535 |
word |
134H |
Average value Vvavg of phase voltages |
R |
0~65535 |
word |
135H |
Line voltage V12 |
R |
0~65535 |
word |
136H |
Line voltage V23 |
R |
0~65535 |
word |
137H |
Line voltage V31 |
R |
0~65535 |
word |
138H |
Line voltage average Vlavg |
R |
0~65535 |
word |
139H |
Phase (line) current I1 |
R |
0~65535 |
word |
13AH |
Phase (line) current I2 |
R |
0~65535 |
word |
4. Device model and equipment model:
The device model refers to the class abstraction of the acquisition front-end processor or the edge gateway machine, and describes the device products of the same model, including manufacturer, model, serial port number, network port number, CPU main frequency, hard disk capacity, memory capacity, appearance size, appearance photo and protocol model.
The manufacturer + model is used as a unique model identifier, that is, the devices of the same manufacturer and the same model have the same physical attribute, the protocol model of the device is configured in advance, the device is selected, the devices of different models possibly use the same protocol model, the protocol model is configured according to the communication protocol of the device, and the operation attribute of the device is configured in the device object.
The acquisition device is a core component of the acquisition system, the system performs data acquisition through the acquisition device, the acquisition device body also belongs to operation equipment, the operation condition of the acquisition device body also needs to be monitored, the acquisition device comprises a hard disk utilization rate, a memory CPU load rate, the resource condition occupied by an internal acquisition program, a network load and the like, and a daemon is also required to be included to be responsible for monitoring the internal acquisition process.
The acquisition device and the acquisition equipment communicate through an acquisition link, the acquisition link is commonly used as a serial port link, a network port link and a wireless link, and the corresponding acquisition device is the serial port, the network port and the wireless interface. The serial port can only be opened by one thread at a time, the baud rate, the data bit, the stop bit and the parity check are set during communication, and the acquisition device model is reversely assigned by the acquisition equipment after being instantiated. The network port link is different from the serial port link, a plurality of linear operation is allowed, one network acquisition device which is connected with the network port link in a hanging way is a communication link, and all physical network port links can form a plurality of logic network links. One acquisition link does not allow devices of different acquisition protocols to be hooked up, and the validity judgment is performed when devices are installed under the link for the same baud rate, data bit, stop bit and parity check of the devices under the same serial port link.
The equipment model refers to the general description of the acquisition equipment, the acquisition equipment performs data acquisition through a sensor, the data is stored in a corresponding register address according to a data structure after acquisition, the acquisition equipment communicates with an acquisition device, a protocol command set is issued by the acquisition device, and the acquisition equipment returns corresponding register data after analysis to finish data uploading.
The equipment model attributes include acquisition type, equipment manufacturer, product model, appearance size, appearance photo and protocol model. The acquisition type is the sensor type of the acquisition equipment and is divided into an environment type, a security type and a power equipment type. Environmental classes: humiture, water logging, smoke perception, gas, soil, hydrology, wind power, noise, security class: camera, infrared, power equipment: electric energy meter, multi-functional ammeter, transformer temperature controller, current-voltage transformer, intelligent acquisition terminal. The equipment manufacturer is a full scale of units, one equipment manufacturer produces multiple types of acquisition equipment, operation, maintenance and searching are convenient through the full scale, the product model depends on the manufacturer, and the equipment manufacturer and the product model have unique identifiers. The appearance size and the appearance photo are used for visual display of the configuration, and both the station building layout plan and the acquisition link diagram can be used. The protocol model is a reference relation, and is derived from an object established in a protocol model section, the protocol model can be referenced for multiple times, the protocol model in the equipment model managed by the protocol model is also changed after the content of the protocol model is changed, the referenced protocol model is not allowed to be deleted, and the protocol model is established according to the communication protocol of the acquisition equipment, for example, the communication protocol contains the attribute when allowed and needs to be dynamically analyzed in running, such as an equipment address and the like.
The engineering implementation personnel configures resource objects according to the acquisition model, wherein the resource objects comprise device objects and equipment objects, and the details are described below:
Device object:
the device object is an instantiation of the device model, as shown in fig. 6, an interface instance is automatically created according to the number of interfaces of the device model, the interface name rule is from interface type + number, the number starts from 1, for example, the serial ports are COM1 and COM2, and the network ports are TCP1 and TCP2. Communication parameters of the serial port do not need to be set, the collection equipment hung on the downstream is reversely assigned, the IP address of the network port does not need to be designed, the system automatically selects the network port through the address of the downstream equipment, the serial port network port and other related physical equipment still need to be set, and the follow-up hung physical equipment needs to be kept consistent.
The device object comprises operation attributes such as a device name, a geographic coordinate, a communication address, an operation number, a service number and a production date besides the physical attribute of the device model, the name and the operation number of the device are firstly reported when the device object is connected with a cloud, the operation number uses a GUID format to ensure global uniqueness, the geographic coordinate is a theodolite format and can be used for GIS deployment and display, the communication address is an IP address of a device body, the service number and the production date are parameters when the device is shipped, when the device is replaced, only new shipment parameters are maintained, and other attribute values are kept unchanged.
The device object content contains an operating program and configuration information, the operating program is provided by a manufacturer, and the configuration information is maintained by engineering implementation. The device can independently run and can access to the cloud for running, the program and configuration management can be carried out through a built-in browser during independent running, the C/S tool can be used for management through an operation and maintenance workstation, the cloud is used for carrying out program and configuration management, version checking is firstly carried out when the cloud is used for managing the program and the configuration in a cloud mode, whether the cloud version is consistent with the device version or not is checked, if the cloud version is inconsistent with the device version, the cloud configuration is required to be covered by the device configuration number according to the version number judgment, and meanwhile the cloud configuration is updated to the version number of the device, if the cloud version number is newer than the device, the manager is required to judge which side of the configuration is selected as a unified version, in principle, the device should always be always the latest version, no matter whether the program or the cloud version is configured is manually released, the system does not support automatic downloading of the new version, and stable running of the device is guaranteed, and a device version conflict strategy schematic diagram is shown in fig. 7.
When a device object is newly added in the cloud mode, other running information of the device is filled in after a manufacturer, a model and a geographic position are selected in a guide mode, and a warning is sent to the name of the same-name device or the system of the same geographic position. Configuration information is already generated when leaving the factory in the independent operation mode.
Device object:
The equipment object is instantiated through the equipment model, the equipment object also comprises an equipment name and a communication address besides the physical attribute of the equipment model, the equipment name can be empty, the equipment type and the same type of numbers are used for the empty province, the communication address is divided into a serial Port type and a network Port type, the communication address is an address number of 1-255 in the serial Port type, and the communication address is an IP (Internet protocol) Port format in the network Port type.
When the equipment is newly added, the interface of the acquisition device is required to be selected firstly, the guide type is newly added through the selection of equipment types, equipment manufacturers and product models, the baud rate, data bits, stop bits and parity check of the first equipment under the link of the serial port mode are reversely assigned to the serial port link, the equipment under the same link under the serial port is compared with the equipment with the same communication parameters and communication protocols, when the subsequent equipment is newly added, the comparison is carried out with the link, whether the comparison is consistent or not is carried out, and the communication parameters and the communication protocols of the link are removed after all the equipment on the serial port link are deleted. Fig. 8 is a schematic diagram of a device link deletion communication strategy.
After the equipment is newly added, the system automatically generates an acquisition link diagram, wherein the link diagram comprises an acquisition device, an acquisition link, acquisition equipment and connection relations thereof, and real-time values of important measurement are displayed on the device, the link and the equipment, so that a history curve of the measurement can be checked in detail. Fig. 9 is a schematic diagram of a link communication strategy of the added device.
And alarming is carried out on the acquisition link when all the devices under the link fail in communication, the acquisition device judges whether the operation data is normal or not through an alarm model associated with the device model, and the alarm of the operation data of the device always carries out red and black flickering on the alarm data aiming at the measurement model, namely the numerical value range, the acquisition link diagram and the plane layout diagram until the alarm is reset.
Another embodiment is a generating device for an acquisition model, specifically including: the specific contents of the alarm model module, the measurement model module, the protocol model module, the device model module and the equipment model module are the same as those of the generation method of the acquisition model, and are not described herein again.
The invention enhances the state control force and penetration force of the equipment, improves the power distribution lean management level, and ensures the safe and reliable power supply and high-quality service. Professional parameters are simply and conveniently finished through a guide mode through the model, complex parameter setting is reduced, field debugging difficulty and technical requirements are reduced, and field implementation work is more convenient and efficient.
The foregoing is merely illustrative of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.