[go: up one dir, main page]

CN106018993A - Wave recording realization method of channel dynamic configuration - Google Patents

Wave recording realization method of channel dynamic configuration Download PDF

Info

Publication number
CN106018993A
CN106018993A CN201610300139.7A CN201610300139A CN106018993A CN 106018993 A CN106018993 A CN 106018993A CN 201610300139 A CN201610300139 A CN 201610300139A CN 106018993 A CN106018993 A CN 106018993A
Authority
CN
China
Prior art keywords
signal
recording
wave recording
channel
configuration
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
CN201610300139.7A
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.)
NR Electric Co Ltd
NR Engineering Co Ltd
Original Assignee
NR Electric Co Ltd
NR Engineering 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 NR Electric Co Ltd, NR Engineering Co Ltd filed Critical NR Electric Co Ltd
Priority to CN201610300139.7A priority Critical patent/CN106018993A/en
Publication of CN106018993A publication Critical patent/CN106018993A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a wave recording realization method of channel dynamic configuration. The method comprises the following steps: at an initialization phase, a system collecting all signal information, and according to static wave recording configuration, generating an online wave recording configuration table; at an operation phase, tool software firstly reading a current wave recording position and then sending adjustment commands of increasing and decreasing wave recording channels to the system; after the adjustment commands of the wave recording channels are received, the system dynamically modifying the online wave recording configuration table and performing data caching according to new wave recording configuration; and when wave recording trigger conditions are satisfied, the system automatically generating a wave recording file comprising new signals. The method can dynamically modify the wave recording configuration in an online mode, increases or decreases the wave recording channels, realizes real-time effectiveness, improves the flexibility of a wave recording function and improves the development efficiency.

Description

Wave recording implementation method for channel dynamic configuration
Technical Field
The invention relates to a technology for realizing power system fault disturbance recording, in particular to a method for realizing wave recording of channel dynamic configuration.
Background
For accurately analyzing the dynamic process of the fault or disturbance of the power system, the fault recorder and the relay protection device need to record the electrical quantities of the electrical equipment in real time, including analog quantities such as voltage and current and switching quantities such as the positions of a circuit breaker and a disconnecting link, and the electrical quantities are stored according to a standard COMTRADE (common format for transient data interchange of the power system) file format and are used for analyzing the process of the fault after the event. The recording is usually performed by the apparatus by solidifying or writing a signal to be monitored in a program code into a recording configuration file, and recording the signal according to the fixed recording configuration after the apparatus is started. The method for statically configuring the wave recording is not flexible enough and is difficult to meet the requirements of certain special application scenes. For example, in the development process of a relay protection device, developers often need to add different program module intermediate variables and internal signals into a recording channel, so as to more clearly show the protection control logic process. If the conventional static configuration mode is still used, developers need to repeatedly modify codes, recompile, re-download and restart the device to be effective, the time consumption is long, and the development and debugging efficiency is influenced.
Based on the above analysis, the present case has been made.
Disclosure of Invention
The invention aims to provide a wave recording implementation method for channel dynamic configuration, which can dynamically modify wave recording configuration on line, increase or delete wave recording channels, take effect in real time, improve the flexibility of the wave recording function and further improve the development efficiency.
In order to achieve the above purpose, the solution of the invention is:
a wave recording implementation method for channel dynamic configuration comprises the following steps:
step S100: in an initialization stage, the system collects all signal information and generates an online wave recording configuration table according to static wave recording configuration;
step S101: in the operation stage, the tool software reads the current wave recording configuration and then sends an adjustment command for increasing and deleting the wave recording channel to the system;
step S102: in the operation stage, after receiving the adjustment command of the wave recording channel, the system dynamically modifies the online wave recording configuration table and caches data according to the new wave recording configuration;
step S103: in the operation stage, when the wave recording triggering condition is met, the system automatically generates a wave recording file containing a new signal.
In the step S100, the signal information includes a signal name, a signal description, a signal address and a signal type, where the signal address is a memory address of the signal; the signal type is a data type of the signal and belongs to one of the group, char, short, int, long and float.
Before the step S100, the method further includes: the embedded distributed system defines a signal table, and the signal table consists of a signal sequence number, a signal name, a signal description, a signal address and a signal type; the system provides a signal table summarizing function to realize summarizing signals dispersed in different subsystems into a total signal table; and traversing the lookup signal table to find the signal description, the signal address and the signal type according to the signal name.
In step S100, the static recording configuration is stored in a program code solidification or configuration file form, and the recording configuration information includes a recording frequency, a number of switching value channels, a number of analog value channels, a recording trigger signal, and a signal name of each channel.
The details of the above step S101 are: the embedded system sends an internal online wave recording configuration table to tool software, and the tool software acquires the current wave recording frequency, the number of wave recording channels, the channel number of each wave recording signal, the signal name, the signal description, the signal address and the signal type and presents the wave recording frequency, the number of wave recording channels, the channel number of each wave recording signal, the signal name, the signal description, the signal address and the signal type to a user in a table form; and the user issues commands for adding, replacing or deleting the recording channel to the embedded system through the tool software according to the needs.
In the step S101, the adjustment command for adding the recording channel means that the tool issues a recording channel number and a signal name to be newly added or replaced to the system as a message; the command for deleting the recording channel means that the tool issues the recording channel number to be deleted to the system in a message.
In step S102, when receiving the adjustment command for adding a recording channel, the system first obtains the description, address, and type of the signal according to the signal name in the command, and then writes the signal name, description, address, and type into the entry corresponding to the channel number in the online recording configuration table according to the recording channel number in the command; when receiving the adjustment command of deleting the channel, the system empties the corresponding table entry in the online recording configuration table according to the recording channel number in the command.
In step S103, in the timing task, the system obtains the values of the signals according to the signal addresses and the signal types of the channels in the current online recording configuration table, and stores the signal values in the recording buffer area for buffering.
The above-mentioned obtaining the numerical value of each signal according to the signal address and the signal type of each channel means that the numerical value of the signal is obtained by judging the signal type first and then accessing by a pointer.
In step S103, when the recording trigger condition is satisfied, automatically generating a new recording file includes:
and when the wave recording triggering condition is met, converting the data of each channel in the wave recording buffer area according to the COMTRADE format specification of the transient data exchange of the power system to generate a new wave recording file.
After the scheme is adopted, the system collects all signal information in an initialization stage, and generates an online wave recording configuration table according to static wave recording configuration; in the operation stage, a command of adding or deleting a recording channel is sent to the system through tool software; after receiving the wave recording channel adjusting command, the system dynamically modifies the wave recording configuration, and when the wave recording triggering condition is met, a new wave recording file is automatically generated. Therefore, the configuration of the recording channel can be modified on line and dynamically and can take effect in real time, program codes do not need to be modified, recompiled, newly generated executable programs are downloaded, and the device is restarted, so that the time is saved, the development efficiency is effectively improved, and the method and the device can be applied to wider application environments.
Drawings
FIG. 1 is a flow chart of the present invention;
fig. 2 is a schematic diagram of an interaction process of channel dynamic configuration according to an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is explained in detail in the following with the accompanying drawings.
As shown in fig. 1, the present invention provides a method for implementing wave recording with dynamically configured channels, which includes the following steps:
step S100: in an initialization stage, the system collects all signal information and generates an online wave recording configuration table according to static wave recording configuration;
here, the signal information includes a signal name, a signal description, a signal address, a signal type; wherein,
the signal name is the unique identification of the signal in the system, and is usually a character string, such as 'Bay 1. Ia';
the signal description is a string of characters that can be used in chinese or other languages, such as "I interval a phase current" or "Bay 1_ Ia";
the signal address is a memory address of the signal;
the signal type is a data type of a signal and belongs to one of a pool, char, short, int, long and float.
Before step S100, the implementation method further includes: the embedded distributed system defines a signal table, as shown in table 1, the signal table is composed of signal sequence numbers, signal names, signal descriptions, signal addresses, and signal types. The system provides a signal table summarizing function, and the signals scattered in different subsystems are summarized into a total signal table. And traversing the lookup signal table to find information such as description, address, type and the like of the signal according to the signal name.
TABLE 1
Number of signals Name of signal Description of signals Signal address Type of signal
1
2
3
...
Here, the static recording configuration may be stored in the form of program code solidification or configuration file, and the recording configuration information includes recording frequency, switching value channel number, analog value channel number, recording trigger signal, and signal name of each channel.
In the initialization stage of the system, the signal names of the recording channels are obtained by analyzing the static recording configuration information in the solidified or configured file in the program codes, then the signal table is searched (as shown in the step I in fig. 2), the description, the address and the type of each signal are obtained, and finally the signal information of each recording channel is added into the online recording configuration table (as shown in the step II in fig. 2). The online wave recording configuration table comprises a plurality of table entries, and each table entry comprises a wave recording channel number, a signal name, a signal description, a signal address and a signal type.
Step S101: in the operation stage, the tool software reads the current wave recording configuration and then sends an adjustment command for increasing and deleting the wave recording channel to the system;
the tool software is a visual configuration tool, has the capability of communicating with the embedded system, and realizes a series of wave recording interactive operation commands, including reading the wave recording configuration of the current embedded system and sending commands for increasing or deleting wave recording channels. Wherein:
the embedded system sends the internal online wave recording configuration table to the tool software (as shown in the step three of fig. 2), and the tool software can know the current wave recording frequency, the number of wave recording channels, the channel number, the signal name, the signal description, the signal address and the signal type of each wave recording signal and friendly display the wave recording configuration table to the user in a table form. The user can issue commands for adding, replacing or deleting the recording channel to the embedded system through tool software according to the needs;
the command for adding the recording channel refers to that the tool sends a newly added or replaced recording channel number and a signal name to the system in a message (as shown in the step (iv) of fig. 2);
the command for deleting the recording channel means that the tool issues the recording channel number to be deleted to the system in a message (as shown in the step (r) in fig. 2).
Step S102: in the operation stage, after receiving the adjustment command of the wave recording channel, the system dynamically modifies the online wave recording configuration table and caches data according to the new wave recording configuration;
the system receives a command of adding a wave recording channel issued by tool software, searches a signal table according to a signal name in the command to acquire the description, the address and the type of the signal, and writes the signal name, the description, the address and the type into a table entry corresponding to the channel number in an online wave recording configuration table according to the wave recording channel number in the command;
the system receives the command of deleting the channel sent by the tool software, and clears the corresponding table entry in the online wave recording configuration table according to the wave recording channel number in the command.
Step S103: in the operation stage, when the wave recording triggering condition is met, the system automatically generates a wave recording file containing a new signal;
in the timing task, the system obtains the value of each signal according to the signal address and the signal type of each channel in the current online wave recording configuration table, and stores the signal values into a wave recording buffer area for buffering, wherein:
the step of obtaining the numerical value of each signal according to the signal address and the signal type of each channel refers to the step of obtaining the numerical value of each signal by judging the signal type and then accessing the signal type by using a pointer. Specifically, the signal address is sig _ addr, the signal type is Xtype, and the signal value is equal to (Xtype) sig _ addr. For example, when the signal address is 0x1000 and the signal type is short, the signal value is equal to × (short) × 0x 1000;
the recording buffer area is a circular buffer area of each recording channel, and the recording signal value at each moment is stored in the recording buffer area for buffering in consideration of recording signals before triggering (as shown in the fifth step of fig. 2);
here, automatically generating a new recording file when the recording trigger condition is satisfied includes:
when the wave recording triggering condition is met, according to the power system transient data exchange COMTRADE format specification, data of each channel in the wave recording buffer area is converted to generate a new wave recording file (as shown in step (c) of fig. 2).
The above embodiments are only for illustrating the technical idea of the present invention, and the protection scope of the present invention is not limited thereby, and any modifications made on the basis of the technical scheme according to the technical idea of the present invention fall within the protection scope of the present invention.

Claims (10)

1. A wave recording implementation method for channel dynamic configuration is characterized by comprising the following steps:
step S100: in an initialization stage, the system collects all signal information and generates an online wave recording configuration table according to static wave recording configuration;
step S101: in the operation stage, the tool software reads the current wave recording configuration and then sends an adjustment command for increasing and deleting the wave recording channel to the system;
step S102: in the operation stage, after receiving the adjustment command of the wave recording channel, the system dynamically modifies the online wave recording configuration table and caches data according to the new wave recording configuration;
step S103: in the operation stage, when the wave recording triggering condition is met, the system automatically generates a wave recording file containing a new signal.
2. The method for implementing recording of channel dynamic configuration as claimed in claim 1, wherein: in step S100, the signal information includes a signal name, a signal description, a signal address, and a signal type, where the signal address is a memory address of the signal; the signal type is a data type of the signal and belongs to one of the group, char, short, int, long and float.
3. The method for implementing recording of channel dynamic configuration as claimed in claim 1, wherein: the step S100 further includes: the embedded distributed system defines a signal table, and the signal table consists of a signal sequence number, a signal name, a signal description, a signal address and a signal type; the system provides a signal table summarizing function to realize summarizing signals dispersed in different subsystems into a total signal table; and traversing the lookup signal table to find the signal description, the signal address and the signal type according to the signal name.
4. The method for implementing recording of channel dynamic configuration as claimed in claim 1, wherein: in step S100, the static recording configuration is stored in a program code solidification or configuration file form, and the recording configuration information includes a recording frequency, a switching value channel number, an analog value channel number, a recording trigger signal, and a signal name of each channel.
5. The method for implementing recording of channel dynamic configuration as claimed in claim 1, wherein: the details of the step S101 are: the embedded system sends an internal online wave recording configuration table to tool software, and the tool software acquires the current wave recording frequency, the number of wave recording channels, the channel number of each wave recording signal, the signal name, the signal description, the signal address and the signal type and presents the wave recording frequency, the number of wave recording channels, the channel number of each wave recording signal, the signal name, the signal description, the signal address and the signal type to a user in a table form; and the user issues commands for adding, replacing or deleting the recording channel to the embedded system through the tool software according to the needs.
6. The method for implementing recording of channel dynamic configuration as claimed in claim 1, wherein: in the step S101, the adjustment command for adding the recording channel means that the tool issues a recording channel number and a signal name to be newly added or replaced to the system as a message; the command for deleting the recording channel means that the tool issues the recording channel number to be deleted to the system in a message.
7. The method for implementing recording of channel dynamic configuration as claimed in claim 1, wherein: in step S102, when receiving the adjustment command for adding a recording channel, the system first obtains the description, address, and type of the signal according to the signal name in the command, and then writes the signal name, description, address, and type into the entry corresponding to the channel number in the online recording configuration table according to the recording channel number in the command; when receiving the adjustment command of deleting the channel, the system empties the corresponding table entry in the online recording configuration table according to the recording channel number in the command.
8. The method for implementing recording of channel dynamic configuration as claimed in claim 1, wherein: in step S103, in the timing task, the system obtains the values of the signals according to the signal addresses and the signal types of the channels in the current online recording configuration table, and stores the signal values in the recording buffer area for buffering.
9. The method of claim 8 for implementing recording of dynamic channel configuration, wherein: the step of obtaining the numerical value of each signal according to the signal address and the signal type of each channel refers to the step of obtaining the numerical value of each signal by judging the signal type and then accessing the signal type by using a pointer.
10. The method for implementing recording of channel dynamic configuration as claimed in claim 1, wherein: in step S103, when the recording trigger condition is satisfied, automatically generating a new recording file includes:
and when the wave recording triggering condition is met, converting the data of each channel in the wave recording buffer area according to the COMTRADE format specification of the transient data exchange of the power system to generate a new wave recording file.
CN201610300139.7A 2016-05-09 2016-05-09 Wave recording realization method of channel dynamic configuration Pending CN106018993A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610300139.7A CN106018993A (en) 2016-05-09 2016-05-09 Wave recording realization method of channel dynamic configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610300139.7A CN106018993A (en) 2016-05-09 2016-05-09 Wave recording realization method of channel dynamic configuration

Publications (1)

Publication Number Publication Date
CN106018993A true CN106018993A (en) 2016-10-12

Family

ID=57099067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610300139.7A Pending CN106018993A (en) 2016-05-09 2016-05-09 Wave recording realization method of channel dynamic configuration

Country Status (1)

Country Link
CN (1) CN106018993A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106571964A (en) * 2016-11-03 2017-04-19 国网河南省电力公司平顶山供电公司 Fault wave-recording device key parameter remote configuration method based on reliable transmission network
CN110532258A (en) * 2019-07-17 2019-12-03 科华恒盛股份有限公司 Fault wave list updating method and fault wave transmission method
CN111123140A (en) * 2018-11-01 2020-05-08 台达电子企业管理(上海)有限公司 Time-sharing wave recording method
CN112147447A (en) * 2020-09-27 2020-12-29 广东电网有限责任公司佛山供电局 Recording triggering method and system used in relay protection device test based on input amount
CN114039327A (en) * 2021-10-22 2022-02-11 许昌许继软件技术有限公司 Sampling analog quantity data correlation method and device for relay protection visual configuration

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1674582A (en) * 2005-03-17 2005-09-28 北京北方烽火科技有限公司 Static configuration and dynamic configuration combination MAPsec configuration method
CN101183132A (en) * 2007-09-21 2008-05-21 江苏金智科技股份有限公司 Wave record method supporting electrical power system transient data interchange general format
CN101447698A (en) * 2008-12-08 2009-06-03 中国电力科学研究院 Centralized type wave recording system of digital transformer substation
CN103457609A (en) * 2013-08-20 2013-12-18 许继集团有限公司 Lossless compressing method and lossless uncompressing method of fault wave record data
CN104156221A (en) * 2014-08-29 2014-11-19 上海艾为电子技术有限公司 Chip and method and device for modifying chip configuration
US20160072667A1 (en) * 2014-01-08 2016-03-10 Telefonaktiebolaget L M Ericsson (Publ) Method, node and distributed system for configuring a network of cdn caching nodes

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1674582A (en) * 2005-03-17 2005-09-28 北京北方烽火科技有限公司 Static configuration and dynamic configuration combination MAPsec configuration method
CN101183132A (en) * 2007-09-21 2008-05-21 江苏金智科技股份有限公司 Wave record method supporting electrical power system transient data interchange general format
CN101447698A (en) * 2008-12-08 2009-06-03 中国电力科学研究院 Centralized type wave recording system of digital transformer substation
CN103457609A (en) * 2013-08-20 2013-12-18 许继集团有限公司 Lossless compressing method and lossless uncompressing method of fault wave record data
US20160072667A1 (en) * 2014-01-08 2016-03-10 Telefonaktiebolaget L M Ericsson (Publ) Method, node and distributed system for configuring a network of cdn caching nodes
CN104156221A (en) * 2014-08-29 2014-11-19 上海艾为电子技术有限公司 Chip and method and device for modifying chip configuration

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106571964A (en) * 2016-11-03 2017-04-19 国网河南省电力公司平顶山供电公司 Fault wave-recording device key parameter remote configuration method based on reliable transmission network
CN111123140A (en) * 2018-11-01 2020-05-08 台达电子企业管理(上海)有限公司 Time-sharing wave recording method
US11644974B2 (en) 2018-11-01 2023-05-09 Delta Electronics (Shanghai) Co., Ltd. Time-sharing wave recording method
CN110532258A (en) * 2019-07-17 2019-12-03 科华恒盛股份有限公司 Fault wave list updating method and fault wave transmission method
CN110532258B (en) * 2019-07-17 2022-06-10 科华恒盛股份有限公司 Fault wave transmission method and device
CN112147447A (en) * 2020-09-27 2020-12-29 广东电网有限责任公司佛山供电局 Recording triggering method and system used in relay protection device test based on input amount
CN112147447B (en) * 2020-09-27 2021-10-08 广东电网有限责任公司佛山供电局 Wave recording triggering method and system of relay protection device based on input amount
CN114039327A (en) * 2021-10-22 2022-02-11 许昌许继软件技术有限公司 Sampling analog quantity data correlation method and device for relay protection visual configuration

Similar Documents

Publication Publication Date Title
CN106018993A (en) Wave recording realization method of channel dynamic configuration
CN111240689B (en) Application program construction method, device, equipment and storage medium
CN112445729B (en) Operation address determination method, PCIe system, electronic device and storage medium
CN106919494B (en) Method and device for realizing android application log
CN109491873B (en) Cache monitoring method, medium, device and computing equipment
US11263139B2 (en) Hardware accelerators and access methods thereof
CN103530124A (en) Method and device for sharing hot plug device in Linux system
CN112162954A (en) User operation log generation method, user operation log generation device
CN104809063A (en) Test method and device of distributed system
CN103282855A (en) Framework for runtime power monitoring and management
CN111176663B (en) Data processing method, device, equipment and storage medium of application program
CN108153745B (en) Application data calling method and application development system
CN102662847A (en) System and method for program debugging of embedded system based on flash memory application
CN111625180B (en) Data writing method and device and storage medium
CN108491315A (en) The page is resident statistical method, device and the computer readable storage medium of duration
CN103457996B (en) A kind of Protocol Conformance Test System internal data store method and system
CN107168700B (en) Basic development framework of full-automatic form WEB background management system based on SQL-SELECT drive
CN113886087A (en) An application memory management method, device, device and storage medium
CN112380208B (en) Real-time data ID generation method, system and medium for power distribution automation system
CN111104053A (en) Method, apparatus and computer program product for storing data
CN111628996A (en) Electronic data communication method and system based on Internet of things
CN118432971A (en) Data processing method, system, computer device and storage medium
CN111177702B (en) Webpage content anti-shielding method, device, equipment and computer storage medium
CN110389751B (en) Data interface mock method applied to knowledge graph
CN111831620B (en) Method, apparatus and computer program product for storage management

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161012