CN101710734A - Dual-network switching monitoring equipment of transformer substation - Google Patents
Dual-network switching monitoring equipment of transformer substation Download PDFInfo
- Publication number
- CN101710734A CN101710734A CN200910110122A CN200910110122A CN101710734A CN 101710734 A CN101710734 A CN 101710734A CN 200910110122 A CN200910110122 A CN 200910110122A CN 200910110122 A CN200910110122 A CN 200910110122A CN 101710734 A CN101710734 A CN 101710734A
- Authority
- CN
- China
- Prior art keywords
- network
- net
- module
- event
- dual
- 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.)
- Granted
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S10/00—Systems supporting electrical power generation, transmission or distribution
- Y04S10/16—Electric power substations
Landscapes
- Computer And Data Communications (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses dual-network switching monitoring equipment of a transformer substation, aiming at solving the technical problem that data are transmitted without omission and redundance during the dual-network switching of a monitoring server. The monitoring server arranged on the equipment is provided with a real-time library module, a work network, a standby network; a dual-network information synchronization module is arranged between a message analyzing module and the real-time library module for the real-time library module to extract updated event messages; a network driving module is provided with an event item structure array for storing the item number of the latest event messages, and the item number is used as initial points from which a direct connecting device starts to transmit the event messages to a switched network. Compared with the prior art, the dual-network information synchronization module confirms and filters and arrays the analyzed event messages and then retransmits the event messages to the real-time library module, and the network driving module extracts a report from the last added event message of an event array during the dual-network switching and reconnection, thus data can be transmitted without omission and redundance during the dual-network switching.
Description
Technical field
The present invention relates to the watch-dog of a kind of watch-dog of electric power system, particularly a kind of transformer station.
Technical background
In monitoring system of electric substation; monitoring server is responsible for collecting the data of all protections, measuring and controlling equipment in the transformer station; and demonstration, deposit, statistics and the printing of realization data; receive the order that the operator issues simultaneously and be forwarded to measure and control device; realize distant place controlled function, monitoring server has critical role in monitoring system of electric substation, so the supervisory control of substation server is configured to two web frame patterns of working net and standby net usually; two nets are standby each other, to improve reliability.Under two web frame patterns, it is a very important problem that two nets of monitoring server switch.Under the usual manner, if working net receive that information that field apparatus sends does not up also have enough time to show and the situation of depositing under just carry out switching between working net and the standby net, the meeting drop-out, and long more from beginning to switch to the time interval of finishing between the switching, the probability of drop-out is high more.As shown in Figure 1, the structure that the monitoring server of prior art adopts the network-driven module of working net and standby net to be connected with real-time library module through the packet parsing module, the network-driven module connects direct-connected device.In the monitoring server information process, the link that may make mistakes when working net and standby net switch:
1, network-driven module, because having only working net just sets up and being connected of direct-connected device or front end processor, receive the message of direct-connected device when working net and still be untreated when just switching to standby net that the information that is kept in the original working net network-driven module network interface card buffering area will be lost.
For the direct-connected device of 103 stipulations, because monitoring server analytic message not as yet confirms can not for direct-connected device, when taking place, network switches, can retransmission of information when itself and backup network connect message, so can drop-out at this level, but can't guarantee not multiple information.
Direct-connected device for 61850 stipulations, usually adopt in the Information Report service and send four distant and event informations, Information Report service is not have the service of affirmation, switches when network takes place, as do not have effectively two net synchronization mechanisms, the report in the handoff procedure will all be lost.
General 104 stipulations that adopt of front end processor; out of Memory except that protection information; all do not have retransmission mechanism as remote signalling displacement, information journal, if switch this moment, the be untreated remote signalling displacement and the information journal that finish of working net network-driven module will be lost.
2, packet parsing module, the message that packet parsing module parses network-driven module is received, with information stores in its database and send to real-time library module.The packet parsing module sends confirmation message must could for after information has sent to real-time library module direct-connected device, the message handled does not have enough time after switching like this, the network retransmits information that direct-connected device can connect after switching is finished, so can drop-out, but can't guarantee that data are not multiple at this level.
3, real-time library module (real-time data base), the Data Source in the real-time data base is the event data that the packet parsing module produces, when monitoring server generation working net and the switching of standby net, the information that does not store in the real-time data base can be lost.
As seen from the above analysis, under the prior art processing method, the two net switching of working net and standby net hourglass is sent out, multiple data are inevitable, its reason is, for the communication protocol that does not have affirmation mechanism, in case taking place, two nets switch, the network-driven module can't realize the breakpoint transmission of data.
Summary of the invention
The purpose of this invention is to provide a kind of dual-network switching monitoring equipment of transformer substation, the technical problem that solve is that the two nets of monitoring server do not leak when switching and send out not multiple data.
The present invention is by the following technical solutions: a kind of dual-network switching monitoring equipment of transformer substation, be provided with monitoring server, monitoring server is provided with real-time library module, working net that can switch mutually and standby net, working net and standby net are provided with network-driven module and packet parsing module, the network-driven module of working net and standby net is connected with direct-connected device, being used to detect network connects, the event message that direct-connected device is sent passes to the packet parsing module, the packet parsing module is resolved the event message of receiving, and to real-time library module transmission, library module is used to store and transmit the event message of parsing in real time, be provided with two net information synchronization modules between described packet parsing module and the real-time library module, be used for the event message after the packet parsing module parses is upgraded, and the network of reception network-driven module monitors connects signal, the two net switchings of startup under the situation of network failure; Described real-time library module extracts the event message after two net information synchronization modules are upgraded; Be provided with the event entries structural array in the network-driven module of working net and standby net, be used for preserving in real time the entry number of the event message that send on the last direct-connected device that receives, when two nets switch, send the initial point of event message on the network-driven module after this entry number begins after switching as direct-connected device.
Event message after the present invention upgrades is the event message after the buffer memory record is resolved in pair event synchronization formation of net information synchronization modules setting.
The of the present invention pair of net information synchronization module will be after the parsing that the packet parsing module receives buffer memory event message event message and the event synchronization formation mate, filter, add newly-increased incident to the event synchronization formation.
Real-time library module of the present invention extracts the event message after two net information synchronization modules are upgraded, for reading the event message after the parsing in the event synchronization formation.
Coupling of the present invention is one by one to the state value of event message, markers and data quality contrast.
State value, markers and data quality and the existing message that is filtered into newly-increased event message of the present invention is in full accord, and then looking and increasing event message newly is repetition message, filtering.
The of the present invention pair of net information synchronization module regularly upgraded in 30 seconds in the network-driven module of working net and standby net the event entries structural array once.
The present invention upgrades the start sequence number value that the event entries structural array in the network-driven module is reported for direct-connected device in the entry number value refresh events entry structure array with the last event message that receives.
The network-driven module of working net of the present invention in the course of the work, do not receive the message that direct-connected device sends at 5 seconds, this network-driven module sends heartbeat detection message to direct-connected device, if confiscated the answer message of direct-connected device in 10 seconds, send 3 times continuously, all detect network linking and lost efficacy, the network-driven module reports that to two net information synchronization modules two net information synchronization modules start two nets and switch.
Heartbeat detection message frequency of the present invention be per 10 seconds once.
The present invention compared with prior art, between packet parsing module and real-time library module, two net information synchronization modules are set, the event synchronization formation is set therein, event information after resolving is confirmed, promptly to behind the information analysis from direct-connected device, be transferred to real-time library module storage after before writing real-time storehouse, filtering earlier, line up again, when the network-driven module is switched the reconstruction connection at the two nets of generation, extract report from the last event message that adds of event queue, realize with this that two nets do not leak when switching and send out not multiple data.
Description of drawings
Fig. 1 is the structure chart of the dual-network switching monitoring equipment of transformer substation of prior art.
Fig. 2 is the structure chart of the dual-network switching monitoring equipment of transformer substation of the embodiment of the invention.
Fig. 3 is the work sheet of the dual-network switching monitoring equipment of transformer substation of the embodiment of the invention.
Embodiment
Below in conjunction with drawings and Examples the present invention is described in further detail.As shown in Figure 2, dual-network switching monitoring equipment of transformer substation of the present invention is provided with monitoring server, and the two net configurations of monitoring server are provided with real-time library module, two net information synchronization module and working net that can switch mutually and standby net.The network-driven module of working net and standby net is connected with two net information synchronization modules through its packet parsing module, and two net information synchronization modules are connected with real-time library module, and simultaneously two net information synchronization modules are connected with the network-driven module of working net and standby net.Two net information synchronization modules are used for the event information after resolving is regularly upgraded, and receive the network connection signal of network-driven module monitors, start two nets and switch under the situation of network failure.The network-driven module of working net and standby net is connected with the direct-connected device of protection, measuring and controlling equipment, detects network and connects, and the event message that direct-connected device is sent passes to the packet parsing module.The packet parsing module is resolved the event message of receiving, and sends to two net information synchronization modules.Library module extracts the event information after two net information synchronization modules are upgraded in real time, and library module has the function of storage and data information in real time.During working net work, standby net does not receive the message of jockey.
As shown in Figure 3, dual-network switching monitoring equipment of transformer substation of the present invention, in the network-driven module of working net and standby net, be provided with " event entries structural array ", be used for preserving in real time the entry number of the event message of accusing of delivering newspaper on the last direct-connected device that receives.Be provided with " event synchronization formation " in the two net information synchronization modules that between packet parsing module and real-time library module, are provided with, as the transfer buffer area of resolving the back event message, the buffer memory event message after record is resolved in chronological order.Every event message all comprises state value, markers (message produces the corresponding constantly UTC time) and three member's data of data quality (validity of reflection event message).Two net information synchronization modules will be after the parsing that the packet parsing module receives buffer memory event message after the parsing event message and the event synchronization formation begin forward to contrast one by one from the nearest time, state value, markers and data quality and existing message as newly-increased event message are in full accord, then looking newly-increased event message is repetition message, filtering, newly-increased incident after the filtration is added the event synchronization formation to, in real time library module reads the event message after the parsing in the event synchronization formation, thereby event information is seldom reported when having guaranteed switching.Simultaneously two net information synchronization modules are according to the event message that adds in the event synchronization formation, regularly upgraded the event entries structural array in the network-driven module of working net and standby net in 30 seconds, the start sequence number value of direct-connected device report in the entry number value refresh events entry structure array of the last event message that receives of employing, the start sequence number value is that two net information synchronization modules are put down in writing the start sequence number of the event entries structural array set of direct-connected device report after two net switchings take place or when initial.The network-driven module of working net in the course of the work, if do not receive any message that direct-connected device sends at 5 seconds, comprise event message, heartbeat detection is replied, this network-driven module can send heartbeat detection message to this direct-connected device, sense cycle is 10s, if confiscated the answer message of direct-connected device in 10 seconds, think that network linking lost efficacy, so continuous transmission 3 times, and all detect network linking and lost efficacy, then the network-driven module is reported to two net information synchronization modules, starts two nets by two net information synchronization modules and switches, working net network-driven module is closed, and standby net network-driven module is opened.
After the two nets of monitoring server switched, former working net switched to standby net, and former standby net switches to working net.After standby net connects, two net information synchronization modules read the event entries structural array from the network-driven module, accuse the numerical value of the input parameter entry number EntryID that asks as delivering newspaper on the direct-connected device, the request of the reporting events message of on the network-driven module of direct-connected device initiation after switching, delivering newspaper, according to communication protocol, the initial point of the reporting events message of delivering newspaper on the network-driven module after the numerical value of entry number EntryID will begin after switching as direct-connected device, the later direct-connected device of event data of this initial point will initiatively send on the network-driven module again, thereby guarantee that event information is not failed to report in two net handoff procedures.The message that the network-driven module of the working net after the switching will be received from jockey stores the event synchronization formation of two net information synchronization modules into after the packet parsing module parses.Standby net after the switching is not accepted the message of jockey.
The course of work of dual-network switching monitoring equipment of transformer substation of the present invention is described with the information processing in the snowslide process of the test below, and the snowslide test begins before switching, just finishes after switching.
One, switch preceding processing:
1. the network-driven module of monitoring server working net receives message from direct-connected device, standby net not with direct-connected device communication.
2. the network-driven module of working net receives message from direct-connected device, passes to the packet parsing module parses, and the event entries structural array of the network-driven module of working net and standby net is simultaneously preserved the direct-connected event entries sent on the last time number of installing.
3. packet parsing module parses message extracts event message, and on send two net information synchronization modules.
4. the event synchronization formation in two net information synchronization modules, transfer buffer area as event message, event message after resolving in temporary two net information synchronization module, be used for resolve in its back after event message compare, the event message after the newly-increased parsing is added in the event synchronization formation.
5. event message after the parsing that two net information synchronization modules will receive and the message in the event synchronization formation are mated, and filter the repeated and redundant incident.
6. two net information synchronization modules are added the newly-increased incident after filtering to the event synchronization formation.
7. two net information synchronization modules are according to the event message that adds in the event synchronization formation, regularly upgrade the event entries structural array in the network-driven module of working net and standby net, and timing is 30 seconds.
8. the event synchronization formation that real-time library module reads two net information synchronization modules.
9. library module is preserved event information to being installed in same the physical database on the machine in real time.
Two, the processing in the switching:
1. the network-driven module of working net in the course of the work, if do not receive any message that direct-connected device sends at 5 seconds, this network-driven module can send heartbeat detection message to this direct-connected device, if confiscated the answer message of direct-connected device in 10 seconds, thinks that network linking lost efficacy; All detect the network linking inefficacy continuous 3 times, then the two net information synchronization modules of network-driven module report start two the net by two net information synchronization modules and switch.
2. working net switches to standby net, and the working net network-driven module before switching is closed the network-driven related linear program, closes the web socket Socket with direct-connected device.
3. standby net switched to working net in 3~5 seconds, the network-driven module of the working net after the switching starts the related work thread, initiated the connection request to direct-connected device.
4. after working net after switching and direct-connected device connect, working net network-driven module reads the event entries structural array, as on the deliver newspaper numerical value of input parameter entry number EntryID of the request of accusing, on direct-connected device is initiated, deliver newspaper to accuse and ask, according to communication protocol, the initial point of delivering newspaper on entry number EntryID numerical value will begin as direct-connected device and accusing, the later whole event data devices of this initial point are delivered to the working net network-driven module after the switching on will be initiatively.
5. the real-time library module after switching begins to receive the event message after the parsing that event synchronization lines up.
Three, the processing after the switching:
Switch the standby net in back and switch to working net, working net switches to standby net.
Embodiment 1: dual-network switching monitoring equipment of transformer substation of the present invention, and monitoring server hardware using DELL company 745 model main frames, the main control software system adopts ISA master server 300+V3.20, adopts C++ and C language hybrid programming to realize.
After filtering the message data of receiving, two net information synchronization modules add the order of event synchronization formation to:
BOOL?CDualEventMng::IfSoeExistAndRefresh(CSOELog?soeLog)
{
MaintainSoeCount();
if(soeLog.nValueType==2)
soeLog.nValueType=0;
CString?str;
Str.Format (" %d, %s=%d, %d divides %d %d second milli during %d:%d %d month %d day %d
Second " ,-1, " SIGNALID ",
soeLog.VarID,soeLog.nValueType,
soeLog.EventTime.year,
soeLog.EventTime.month,
soeLog.EventTime.day,
soeLog.EventTime.hour,
soeLog.EventTime.minute,
soeLog.EventTime.second,
soeLog.EventTime.ms);
// temporary pointer
void*pPointer;
WaitForSingleObject(m_mutexHandle,INFINITE);
BOOL?bRes=m_soeMap.Lookup(str,pPointer);
if(bRes==FALSE)
{
m_soeList.AddTail(str);
m_soeMap.SetAt(str,NULL);
}
ReleaseMutex(m_mutexHandle);
return?bRes;
}
// protection event information is handled
BOOL CDualEventMng::IfRelaySoeExistAndRefresh(CRelaySOELog
relaySoeLog)
{
MaintainRelaySoeCount();
CString?str;
Str.Format (" %d, %s=%d, %d divides %d %d second millisecond during %s:%d %d month %d day %d
″,relaySoeLog.UnitID,″EVENTID″,relaySoeLog.EventPointID,relaySoeLog.EventN
ame,
relaySoeLog.EventTime.ye?ar,
relaySoeLog.EventTime.month,
relaySoeLog.EventTime.day,
relaySoeLog.EventTime.hour,
relaySoeLog.EventTime.minute,
relaySoeLog.EventTime.second,
relaySoeLog.EventTime.ms);
// temporary pointer
void*pPointer;
WaitForSingleObject(m_mutexHandle,INFINITE);
BOOL?bRes=m_relaySoeMap.Lookup(str,pPointer);
if(bRes==FALSE)
{
m_relaySoeList.AddTail(str);
m_relaySoeMap.SetAt(str,NULL);
}
ReleaseMutex(m_mutexHandle);
return?bRes;
}
The order of the two up-to-date event entries information that once receive of net information synchronization module real-time update of working net:
void?C61850FifoExplainMng::DealSoeFifo()
{
static?CMap<DWORD,DWORD,CString,CString&>entryIDMap;
static?bInitialized=FALSE;
if(bInitialized==FALSE)
{
entryIDMap.InitHashTable(3000);
bInitialized=TRUE;
}
tagSOERpt?soeRpt;
while(m_soeFifo.IsEmpty()==FALSE)
{
ASSERT(m_soeFifo.GetHead(soeRpt));
Non-1,2,3 of reason of // transmission does not show formation
if(soeRpt.ReasonCode!=1)
continue;
CRTSignal*pRTSignal=GetRTSignalFromIndex(soeRpt.SN);
if(pRTSignal==NULL) continue;
// renewal EntryID
DWORD
dwIndex=MAKELPARAM(pRTSignal->wUnitID,WORD(soeRpt.nRcbIndex));
CString?strEntryID;
if(entryIDMap.Lookup(dwIndex,strEntryID)==FALSE)
{
char?chEntryID[100];
ZeroMemory(chEntryID,sizeof(chEntryID));
// string format: AEntryID is low, and 4 AEntryID are high four, and BEntryID low 4
BEntryID is high four in the position
_snprintf(chEntryID,100,″%d %d,%d
%d″,soeRpt.nAEntryID[0],soeRpt.nAEntryID[0],soeRpt.nBEntryID[0],soeRpt.nBEnt
ryID[0]);
strEntryID=chEntryID;
entryIDMap.SetAt(dwIndex,strEntryID);
}
else
{
// the EntryID that obtains storing
int
nStoredAEntryIDLow,nStoredAEntryIDHigh,nStoredBEntryIDLow,nStoredBEntryI
DHigh;
int nResult=sscanf(strEntryID,″%d %d,%d
%d″,&nStoredAEntryIDLow,&nStoredAEntryIDHigh,&nStoredBEntryIDLow,&nSt
oredBEntryIDHigh);
ASSERT(nResult==4);
// judge whether this SOE EntryID changes
BOOL?bAEntryIDChanged=FALSE,bBEntryIDChanged=FALSE;
if((nStoredAEntryIDLow!=soeRpt.nAEntryID[0])||
(nStoredAEntryIDHigh!=soeRpt.nAEntryID[1]))
bAEntryIDChanged=TRUE;
if((nStoredBEntryIDLow!=soeRpt.nBEntryID[0])||
(nStoredBEntryIDHigh!=soeRpt.nBEntryID[1]))
bBEntryIDChanged=TRUE;
// EntryID that changes is write shared drive
if(bAEntryIDChanged||bBEntryIDChanged)
{
CSingleEntryIDInfo?singleEntryIDInfp;
singleEntryIDInfo.nUnitID=pRTSignal->wUnitID;
singleEntryIDInfo.nRCBIndex=soeRpt.nRcbIndex;
if(bAEntryIDChanged)
{
singleEntryIDInfo.dwArrayAEntryID[0]=nStoredAEntryIDLow;
singleEntryIDInfo.dwArrayAEntryID[1]=nStoredAEntryIDHigh;
}
if(bBEntryIDChanged)
{
singleEntryIDInfo.dwArrayBEntryID[0]=nStoredBEntryIDLow;
singleEntryIDInfo.dwArrayBEntryID[1]=nStoredBEntryIDHigh;
}
if(pRTSignal->wUnitID==4)
{
TRACE(″UnitID=4 low 4 BYte=%x,high 4
byte=%x″,soeRpt.nAEntryID[0],soeRpt.nAEntryID[1]);
}
m_pSysVirtualNode61850->m_pCfg61850Mng->WriteSingle61850EntryIDI
nfo(pRTSignal->wUnitID,singleEntryIDInfo);
// up-to-date EntryID is preserved
char?chEntryID[100];
ZeroMemory(chEntryID,sizeof(chEntryID));
// string format: AEntryID is low, and 4 AEntryID are high four, BEntryID
Low 4 BEntryID are high four
_snprintf(chEntryID,100,″%d %d,%d
%d″,soeRpt.nAEntryID[0],soeRpt.nAEntryID[1],soeRpt.nBEntryID[0],soeRpt.nBEnt
ryID[1]);
strEntryID=chEntryID;
entryIDMap.SetAt(dwIndex,strEntryID);
}
}
Standby net is rebuild the entry number of the event message that send on the direct-connected device that the last time receives when connecting, and begins to send on the network-driven module behind the switching back order of the initial point of event message as direct-connected device:
VOID?StartRCB(ST_INT?nACSI,ST_INT?nNet)
{
tagTableControl*pTable;
tagDevice*pDevice;
tagRCBTable*pRCB;
ST_INT i,numRCB,len,nIdx,RCBNO;
ST_CHAR?rcbName[NAMESIZE];
ST_CHAR?*prcbName,*pLDName;
pTable?=(tagTableControl*)pmemSCADA;
pDevice=(tagDevice*)CorrectPointer((ST_LONG)pmemSCADA,
(ST_LONG)pTable->pDeviceStart);
numRCB=pDevice[nACSI+sACSI].nRCBTableNum;
pRCB =(tagRCBTable*)CorrectPointer((ST_LONG)pmemSCADA,
(ST_LONG)pDevice[nACSI+sACSI].pRCBTableStart);
if(CONST_A_NET==nNet)RCBNO=ARCBNO;
else?if(CONST_B_NET==nNet)RCBNO=BRCBNO;
else return;
nIdx=GetAcsiIdx(nACSI,nNet);
for(i=0;i<numRCB;i++)
{
strcpy(rcbName,pRCB[i].RCBName);
prcbName=strpbrk(rcbName,″/″);
//*(prcbName++)=0;
*prcbName=0;
prcbName++;
pLDName=rcbName;
len=strlen(prcbName);
if(len<=0)continue;
// judge whether last two of rcb is numbering, if then replace to the numbering of configuration
if(isdigit(prcbName[len-1])&&isdigit(prcbName[len-2]))
{
prcbName[len-1]=(ST_CHAR)(0x30+RCBNO%10);
prcbName[len-2]=(ST_CHAR)(0x30+RCBNO/10);
}
if(strstr(prcbName,″$BR$″))
start_iec_brcb((MVL_NET_INFO*)acsi_ctrl_table[nIdx].pnet_info,
pLDName,
prcbName,
″″,
&rpt_typeids,
i,
nNet);
else
start_iec_urcb((MVL_NET_INFO*)acsi_ctrl_table[nIdx].pnet_info,
pLDName,
prcbName,
&rpt_typeids,
i,
nNet);
}
}
Embodiment 2: dual-network switching monitoring equipment of transformer substation of the present invention, and the monitoring server hardware using SUN ULTRA45 of company model main frame, the main control software system adopts PRS master server 700U, adopts the QT program language to realize.
Two net information synchronization modules are filtered the message data of receiving, add to the order of event synchronization formation:
void?C61850DualEventMng::MaintainSoeListSize()
{
if(m_SoeList.size()<MAX_DUALEVENT_MAP_COUNT)
return;
for(int?i=0;i<MAX_DUALEVENT_MAP_COUNT/5;i++)
{
QStringList::iterator?it=m_SoeList.erase(m_SoeList.begin());
m_SoeMap.erase((*it));
}
}
void?C61850DualEventMng::MaintainRelaySoeListSize()
{
if(m_RelaySoeList.size()<MAX_DUALEVENT_MAP_COUNT)
return;
for(int?i=0;i<MAX_DUALEVENT_MAP_COUNT/5;i++)
{
QStringList::iterator?it=m_RelaySoeList.erase(m_RelaySoeList.begin());
m_RelaySoeMap.erase(*it);
}
}
void?C61850DualEventMng::SaveSoeLogToScada(CSoeLog&soeLog)
{
QString?strKey;
// the signal that comes from protective device be if separating brake then may be changed to the protection tripping operation by serviced device,
// for avoiding same signal nValueType inconsistent, unified assignment is 0
if(soeLog.nValueType==2)
soeLog.nValueType=0;
StrKey=strKey.sprintf (" %d, %s=%d, %d branch during %d:%d %d month %d day %d
%d %d second millisecond " ,-1, " SIGNALID ",
soeLog.VarID,soeLog.nValueType,
soeLog.EventTime.year,
soeLog.EventTime.month,
soeLog.EventTime.day,
soeLog.EventTime.hour,
soeLog.EventTime.minute,
soeLog.EventTime.second,
soeLog.EventTime.ms
);
QStringMap::iterator?it=m_SoeMap.find(strKey);
if(it==m_SoeMap.end())
{
m_SoeList.push_back(strKey);
m_SoeMap.insert(strKey,0);
}
}
void C61850DualEventMng::SaveRelaySoeLogToScada(CRelaySoeLog
&relaySoeLog)
{
QString?strKey;
StrKey=strKey.sprintR%d, %s=%d, %d branch during %s:%d %d month %d day %d
%d %d second millisecond ",
relaySoeLog.UnitID,″EVENTID″,
relaySoeLog.EventPointID,
relaySoeLog.EventName,
relaySoeLog.EventTime.year,
relaySoeLog.EventTime.month,
relaySoeLog.EventTime.day,
relaySoeLog.EventTime.hour,
relaySoeLog.EventTime.minute,
relaySoeLog.EventTime.second,
relaySoeLog.EventTime.ms
);
QStringMap::iterator?it=m_RelaySoeMap.find(strKey);
if(it==m_RelaySoeMap.end())
{
m_RelaySoeList.push_back(strKey);
m_RelaySoeMap.insert(strKey,0);
}
}
The order of the two up-to-date event entries information that once receive of net information synchronization module real-time update of working net:
ST_VOID?UpdataEntryID(ST_INT?nACSI,ST_INT?nNet)
{
tagTableControl*pTable;
tagDevice *pDevice;
tagRCBTable *pRCB;
ST_INT i,nIdx,len,nRCBNum=0;
ST_UCHAR *pEntryID,zeroEntryID[8];
ST_CHAR rcbName[NAMESIZE];
memset(zeroEntryID,0,sizeof(zeroEntryID));
nIdx =GetAcsiIdx(nACSI,nNet);
pTable =(tagTableControl*)pmemSCADA;
pDevice?=(tagDevice*)CorrectPointer((ST_LONG)pmemSCADA,
(ST_LONG)pTable->pDeviceStart);
pRCB =(tagRCBTable*)CorrectPointer((ST_LONG)pmemSCADA,
(ST_LONG)pDevice[nACSI+sACSI].pRCBTableStart);
nRCBNum=pDevice[nACSI+sACSI].nRCBTableNum;
if(nRCBNum>MAX_RCB_NUM)
return;
for(i=0;i<nRCBNum;i++)
{
strcpy(rcbName,pRCB[i].RCBName);
len=strlen(rcbName);
if(len<=0) continue;
if(!isdigit(rcbName[len-1]))continue;
if(CONST_A_NET==nNet)
pEntryID=(ST_UCHAR*)&(pDevice[nACSI+sACSI].nAEntryID[i*2]);
if(CONST_B_NET==nNet)
pEntryID=(ST_UCHAR*)&(pDevice[nACSI+sACSI].nBEntryID[i*2]);
if(SD_TRUE==pTable->bIsMain)
memcpy(pEntryID,acsi_ctrl_table[nIdx].EntryID[i],8);
if(SD_FALSE==pTable->bIsMain)
{
If (memcmp (pEntryID, zeroEntryID, sizeof (zeroEntryID))) // prevent
Behind the startup of server, main clothes sign is not put, and the client mistake brushes the operation variable to EntryID from the shared drive district
memcpy(acsi_ctrl_table[nIdx].EntryID[i],pEntryID,8);
}
}
}
Standby net is rebuild the entry number of the event message that send on the direct-connected device that the last time receives when connecting, and begins to send on the network-driven module behind the switching back order of the initial point of event message as direct-connected device:
ST_VOID?StartRCB(ST_INT?nACSI,ST_INT?nNet,ST_BOOLEAN?isBR)
{
MVL_NET_INFO *net_info;
tag61850RCBTable *pRCB;
tag61850TypeSet *pTypeSet;
tag61850LDTable *pLDTable;
ST_INT i,j,nIdx,iUnitBaseRCB=0;
ST_INT Base_LD=0,End_LD=0;
ST_INT Base_RCB=0,End_RCB=0;
ST_INT len=0;
ST_CHAR rcbName[NAMESIZE];
ST_CHAR *prcbName,*pLDName;
if(nACSI>g_t61850SysSet.w61850UnitNum)
{
printf(″StartRCB()nACSI?exceed\n″);
return;
}
nIdx=GetAcsiIdx(nACSI,nNet);
net_info=(MVL_NET_INFO*)(acsi_ctrl_table[nIdx].pnet_info);
if(net_info==NULL) return;
pTypeSet=g_t61850UnitVal[nACSI].pt61850TypeSet;
Base_LD =pTypeSet->wBaseCfg_LD;
End?LD =pTypeSet->wBaseCfg_LD+pTypeSet->wLD_Num;
for(i=Base_LD;i<End_LD;i++)
{
pLDTable?=&g_t61850LDTable[i];
Base_RCB?=pLDTable->wBaseCfg_RCB;
End_RCB =pLDTable->wBaseCfg_RCB+pLDTable->wRCB_Num;
If (i==Base_LD) iUnitBaseRCB=Base_RCB; The initial Rcb subscript of // device
for(j=Base_RCB;j<End_RCB;j++)
{
pRCB=&g_t61850RCBTable[j];
strcpy(rcbName,pRCB->cRCBName);
prcbName=strpbrk(rcbName,″/″);
if(!prcbName)
{
printf(″RCB′s?Name?is?wrong!\n″);
continue;
}
*(prcbName++)=0;
pLDName=rcbName;
len=strlen(prcbName);
if(len<=0) continue;
// judge whether last two of rcb is numbering, if then replace to the numbering of configuration
if(isdigit(prcbName[len-1])&&isdigit(prcbName[len-2]))
{
prcbName[len-1] =
(ST_CHAR)(0x30+g_t61850SysSet.byRcbNo[nNet-CONST_A_NET]%10);
prcbName[len-2] =
(ST_CHAR)(0x30+g_t61850SysSet.byRcbNo[nNet-CONST_A_NET]/10);
}
if(strstr(prcbName,″$BR$″))
{
if(!isBR)continue;
start_iec_brcb(net_info,
pLDName,
prcbName,
″″,
&rpt_typeids,
j-iUnitBaseRCB,
iUnitB?aseRCB);
}else
{
if(isBR)continue;
start_iec_urcb(net_info,
pLDName,
prcbName,
&rpt_typeids,
j-iUnitBaseRCB,
iUnitBaseRCB);
}
g_t61850UnitVal[nACSI].wSponseGITimes[j-iUnitBaseRCB][nNet-CONST_A
_NET]=0;
g_t61850UnitVal[nACSI].dwRptRevTimer[j-iUnitBaseRCB][nNet-CONST_A_
NET]=time(NULL);
}
}
}。
Claims (10)
1. dual-network switching monitoring equipment of transformer substation, be provided with monitoring server, monitoring server is provided with real-time library module, working net that can switch mutually and standby net, working net and standby net are provided with network-driven module and packet parsing module, the network-driven module of working net and standby net is connected with direct-connected device, being used to detect network connects, the event message that direct-connected device is sent passes to the packet parsing module, the packet parsing module is resolved the event message of receiving, and to real-time library module transmission, library module is used to store and transmit the event message of parsing in real time, it is characterized in that: be provided with two net information synchronization modules between described packet parsing module and the real-time library module, be used for the event message after the packet parsing module parses is upgraded, and the network of reception network-driven module monitors connects signal, the two net switchings of startup under the situation of network failure; Described real-time library module extracts the event message after two net information synchronization modules are upgraded; Be provided with the event entries structural array in the network-driven module of working net and standby net, be used for preserving in real time the entry number of the event message that send on the last direct-connected device that receives, when two nets switch, send the initial point of event message on the network-driven module after this entry number begins after switching as direct-connected device.
2. dual-network switching monitoring equipment of transformer substation according to claim 1 is characterized in that: the event message after the described renewal is the event message after the buffer memory record is resolved in the event synchronization formation of two net information synchronization modules settings.
3. dual-network switching monitoring equipment of transformer substation according to claim 2, it is characterized in that: the described pair of net information synchronization module will be after the parsing that the packet parsing module receives buffer memory event message event message and the event synchronization formation mate, filter, add newly-increased incident to the event synchronization formation.
4. dual-network switching monitoring equipment of transformer substation according to claim 3 is characterized in that: described real-time library module extracts the event message after two net information synchronization modules are upgraded, for reading the event message after the parsing in the event synchronization formation.
5. dual-network switching monitoring equipment of transformer substation according to claim 4 is characterized in that: described coupling is for one by one to the state value of event message, markers and data quality contrast.
6. dual-network switching monitoring equipment of transformer substation according to claim 5 is characterized in that: describedly be filtered into as state value, markers and data quality and the existing message of newly-increased event message in full accordly, then looking and increasing event message newly is repetition message, filtering.
7. dual-network switching monitoring equipment of transformer substation according to claim 6 is characterized in that: the described pair of net information synchronization module regularly upgraded in 30 seconds in the network-driven module of working net and standby net the event entries structural array once.
8. dual-network switching monitoring equipment of transformer substation according to claim 7 is characterized in that: the event entries structural array in the described renewal network-driven module is the start sequence number value of direct-connected device report in the entry number value refresh events entry structure array with the last event message that receives.
9. dual-network switching monitoring equipment of transformer substation according to claim 8, it is characterized in that: the network-driven module of described working net in the course of the work, do not receive the message that direct-connected device sends at 5 seconds, this network-driven module sends heartbeat detection message to direct-connected device, if confiscated the answer message of direct-connected device in 10 seconds, send continuously 3 times, all detect network linking and lost efficacy, the network-driven module reports that to two net information synchronization modules two net information synchronization modules start two nets and switch.
10. dual-network switching monitoring equipment of transformer substation according to claim 9 is characterized in that: described heartbeat detection message frequency be per 10 seconds once.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101101225A CN101710734B (en) | 2009-11-06 | 2009-11-06 | Dual-network switching monitoring equipment of transformer substation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101101225A CN101710734B (en) | 2009-11-06 | 2009-11-06 | Dual-network switching monitoring equipment of transformer substation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101710734A true CN101710734A (en) | 2010-05-19 |
CN101710734B CN101710734B (en) | 2011-12-14 |
Family
ID=42403500
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009101101225A Active CN101710734B (en) | 2009-11-06 | 2009-11-06 | Dual-network switching monitoring equipment of transformer substation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101710734B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102694713A (en) * | 2011-03-21 | 2012-09-26 | 鸿富锦精密工业(深圳)有限公司 | Network communication multi-channel selection method and system |
CN103701788A (en) * | 2013-12-20 | 2014-04-02 | 深圳市金宏威技术股份有限公司 | Cross-platform flexible bus communication device and flexible bus |
CN104320291A (en) * | 2014-11-19 | 2015-01-28 | 国家电网公司 | High-reliability message transmission method and system |
CN110350661A (en) * | 2019-07-12 | 2019-10-18 | 南京国电南自电网自动化有限公司 | Virtual measurement and control unit and entity observing and controlling seamless handover method |
CN116320092A (en) * | 2023-03-20 | 2023-06-23 | 广东保伦电子股份有限公司 | Protocol transmission method, device, electronic equipment and storage medium |
CN117103122A (en) * | 2023-10-08 | 2023-11-24 | 宜兴市科兴光电材料有限公司 | Molybdenum sheet polishing detection conveying device and working method thereof |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5486805A (en) * | 1993-07-06 | 1996-01-23 | Distribution Control Systems, Inc. | Method of receiving unsolicited messages on an electrical distribution network communications system |
CN101304181B (en) * | 2008-07-08 | 2010-09-22 | 国电南瑞科技股份有限公司 | Double-network control method for transformer substation case mechanism based on facing all-purpose object |
CN101388570A (en) * | 2008-07-08 | 2009-03-18 | 国电南瑞科技股份有限公司 | Data stream fast reliable interaction method for transformer plant automatic system |
-
2009
- 2009-11-06 CN CN2009101101225A patent/CN101710734B/en active Active
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102694713A (en) * | 2011-03-21 | 2012-09-26 | 鸿富锦精密工业(深圳)有限公司 | Network communication multi-channel selection method and system |
CN102694713B (en) * | 2011-03-21 | 2015-08-05 | 鸿富锦精密工业(深圳)有限公司 | Network communication multi-channel selection method and system |
CN103701788A (en) * | 2013-12-20 | 2014-04-02 | 深圳市金宏威技术股份有限公司 | Cross-platform flexible bus communication device and flexible bus |
CN103701788B (en) * | 2013-12-20 | 2017-09-26 | 深圳市金宏威技术股份有限公司 | A kind of communicator and flexible bus of cross-platform flexible bus |
CN104320291A (en) * | 2014-11-19 | 2015-01-28 | 国家电网公司 | High-reliability message transmission method and system |
CN110350661A (en) * | 2019-07-12 | 2019-10-18 | 南京国电南自电网自动化有限公司 | Virtual measurement and control unit and entity observing and controlling seamless handover method |
CN116320092A (en) * | 2023-03-20 | 2023-06-23 | 广东保伦电子股份有限公司 | Protocol transmission method, device, electronic equipment and storage medium |
CN117103122A (en) * | 2023-10-08 | 2023-11-24 | 宜兴市科兴光电材料有限公司 | Molybdenum sheet polishing detection conveying device and working method thereof |
CN117103122B (en) * | 2023-10-08 | 2024-02-23 | 宜兴市科兴光电材料有限公司 | Molybdenum sheet polishing detection conveying device and working method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN101710734B (en) | 2011-12-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101710734B (en) | Dual-network switching monitoring equipment of transformer substation | |
CN107025344B (en) | Power distribution automation simulation system and simulation method for power distribution DTS | |
CN100414466C (en) | Multi-event sequential recording and testing system | |
CN102170342B (en) | IEC (integrated Ethernet chip) 104 communication host-standby switching method under high redundancy configuration | |
CN113066276B (en) | Communication fault monitoring method and device for electricity consumption information acquisition system and storage medium | |
CN101262147B (en) | Dual-machine switching device for remote workstation | |
CN101923138B (en) | AT (Autotransformer) line fault ranging system with built-bin GPS (Global Positioning System) module | |
CN109542977B (en) | Future state distribution network graph data processing method based on IEC standard | |
CN109888922A (en) | A kind of fault wave recording device, decentralization fault recording system and method | |
CN110034840A (en) | A kind of network clock synchronous device and system | |
CN102621954A (en) | Self-adaptive multi-signal-source time synchronization card device for smart grid and message analysis system | |
CN104076807A (en) | Method of debugging automation system of intelligent substation | |
CN104065935A (en) | Automatic time synchronization system for transformer substation video monitoring mainframe and time synchronization method thereof | |
CN103744901A (en) | Intelligent substation double-host history data synchronously-storing system and device | |
CN101262325B (en) | Switching device for monitoring dual hosts at translation station | |
CN202486606U (en) | Adaptive multi-signal-source timing equipment in intelligent power grid and report analysis system | |
CN110737722B (en) | Substation monitoring background database, SCD and RCD synchronization system and method | |
CN108306989B (en) | Main and standby machine data synchronization method for railway dispatching centralized system | |
CN103441880A (en) | Method for preventing data from being lost for system having data access with IEC61859 intelligent device during switching of main system and standby system | |
CN103576014A (en) | Clock monitoring device and monitoring method of transformer substation | |
CN112737863A (en) | Intelligent measurement and control system capable of automatically correcting errors | |
CN106656395B (en) | Based on the improved power grid time synchronized measurement system of self study and method | |
CN209297298U (en) | Merging unit | |
CN202353575U (en) | Time synchronization real-time monitoring device | |
CN111521966A (en) | Method and device for monitoring time out-of-tolerance of district electric meter, monitoring terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C56 | Change in the name or address of the patentee |
Owner name: CYG SUNRI CO., LTD. Free format text: FORMER NAME: SHENZHEN NARI CO., LTD. |
|
CP01 | Change in the name or title of a patent holder |
Address after: 518057, Shenzhen Province, Nanshan District hi tech Industrial Park, North Hill Road, No. 1, No. 6, building, floor, No. 3 Patentee after: CYG Sunri Automation Co., Ltd. Address before: 518057, Shenzhen Province, Nanshan District hi tech Industrial Park, North Hill Road, No. 1, No. 6, building, floor, No. 3 Patentee before: Shenzhen NARI Co., Ltd. |