CN105045970B - Analogue system and its implementation based on Unity dynamic generation three-dimensional scenic - Google Patents

Analogue system and its implementation based on Unity dynamic generation three-dimensional scenic Download PDF

Info

Publication number
CN105045970B
CN105045970B CN201510376403.0A CN201510376403A CN105045970B CN 105045970 B CN105045970 B CN 105045970B CN 201510376403 A CN201510376403 A CN 201510376403A CN 105045970 B CN105045970 B CN 105045970B
Authority
CN
China
Prior art keywords
dimensional scenic
model
module
equipment
library
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.)
Active
Application number
CN201510376403.0A
Other languages
Chinese (zh)
Other versions
CN105045970A (en
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.)
State Grid Corp of China SGCC
State Grid Hebei Electric Power Co Ltd
Beijing Kedong Electric Power Control System Co Ltd
Training Center of State Grid Hebei Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Hebei Electric Power Co Ltd
Beijing Kedong Electric Power Control System Co Ltd
Training Center of State Grid Hebei Electric Power 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 State Grid Corp of China SGCC, State Grid Hebei Electric Power Co Ltd, Beijing Kedong Electric Power Control System Co Ltd, Training Center of State Grid Hebei Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201510376403.0A priority Critical patent/CN105045970B/en
Publication of CN105045970A publication Critical patent/CN105045970A/en
Application granted granted Critical
Publication of CN105045970B publication Critical patent/CN105045970B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

It include three-dimensional simulation model library, scene configuration library, three-dimensional scenic emulation module and data communication module the invention discloses a kind of analogue system based on Unity dynamic generation three-dimensional scenic;The three-dimensional scenic emulation module includes scene display module and scene operation module;The output of the three-dimensional simulation model library and scene configuration library terminates the data input pin of the scene display module;Its implementation is as follows: 1, creating threedimensional model;2, custom profile is read in Unity, automatically generates three-dimensional scenic emulation module;3, listening thread is created in three-dimensional scenic emulation module, and required external real time data is obtained from external device emulation program;4, equipment or prosthetic appliance failure are operated in three-dimensional scenic, and operation information is sent to external device emulation program, carry out simulation calculation and judgement.It is an advantage of the invention that observation is intuitive, energy real-time tranception emulates data, is tightly combined with practical power systems communication work.

Description

Analogue system and its implementation based on Unity dynamic generation three-dimensional scenic
Technical field
The invention belongs to communication of power system simulation technical fields, and in particular to one kind is three-dimensional based on Unity dynamic generation The analogue system and its implementation of scene, all kinds of communications equipment rooms and telecommunication transmission equipment suitable for power communication analogue system Three-dimensional scenic emulation, be mainly used for communication of power system staff, communication equipment operation and maintenance and checking experiment personnel Training.
Background technique
With the development of power system automation technology, electric power communication network becomes information transmission and automation control Key factor.This requires the simulation training systems trained for communication of power system staff more to modernize, more Add and gear to actual circumstances, to reach the training purpose of efficient real training.
In current communication simulation software systems, it is mainly based upon Principle of Communication and carries out virtual network emulation, it can not be true The actual conditions for simulating the actual environment locating for the power communication machine room and communication equipment of net operation and scene in fact, in training It is unfavorable for communications equipment room and communication equipment that communication staff is better understood by scene.And under communications equipment room site environment into Row training is not only easily damaged expensive device and causes very big economic loss, but also is easy to make to cause not in the service disconnection of net operation The serious consequence that can be estimated.But currently based on true site environment and can dynamic generation power communication three-dimensional scenic it is visual Change simulation training system there is no.
Summary of the invention
Technical problem to be solved by the invention is to provide a kind of observations intuitive, real-time tranception emulation data and reality The analogue system and implementation method based on Unity dynamic generation three-dimensional scenic that communication of power system work is combined closely.
The present invention adopts the following technical scheme:
A kind of analogue system based on Unity dynamic generation three-dimensional scenic comprising three-dimensional simulation model library, scene configuration Library, three-dimensional scenic emulation module and data communication module;The three-dimensional scenic emulation module include scene display module and Scene operation module, the command input of the control output end access scene display module of the scene operation module;Described three Tie up the data input pin of the output termination scene display module of simulation model library and scene configuration library, the scene behaviour Make module to communicate through data communication module and external device emulation program.
The three-dimensional simulation model library includes communications equipment room model library and communication equipment models library;
The communications equipment room model library includes provincial dispatching center communications equipment room threedimensional model, the communication of prefecture-level control centre The plant stand communications equipment room threedimensional models at different levels such as computer room threedimensional model, 110KV/220KV/500KV;The communication equipment models library packet It includes telecommunication transmission equipment machine frame and veneer threedimensional model, route exchange device threedimensional model, Communication Power Equipment threedimensional model, lead to Believe terminal device model, distributing frame threedimensional model, communicate fine cable threedimensional model and instrument and meter threedimensional model.These model libraries In model be stored in the form of model file in analogue system resource file library.
The scene configuration library is made of custom profile, and the configuration file is because of communication simulation training case Different and different, these custom profiles are stored in analogue system configuration file library.
The three-dimensional scenic emulation module includes scene display module and scene operation module, which is actual communication machine The virtualization visual simulating scene in room, start-up can complete to make an inspection tour and operate the functions such as equipment in this scenario.
The scene display module is dynamically read from scene configuration library according to the demand of communication simulation training case And specified custom profile is parsed, according to the data after parsing, related three-dimensional mould is transferred from three-dimensional simulation model library Type file, to show three-dimensional scenic emulation module.
The scene operation module is for realizing the operating function to device model in three-dimensional scenic emulation module.
The data communication module sends program by real-time data base and message sink and forms, and the module is imitative for three-dimensional scenic Data communication between true module and peripherals simulation program provides interface, is that three-dimensional scenic emulation module can obtain in real time The operating status of external emulator is taken, and is arranged and modifies the shape of each threedimensional model in three-dimensional scenic emulation module accordingly State, at the same time, the operation information that the scene operation module in three-dimensional scenic emulation module is done is also by the data communication Module is sent to external device emulation program.
Using the implementation method of the analogue system based on Unity dynamic generation three-dimensional scenic, implementation step is as follows:
Step 1, creation threedimensional model:
Specific creation includes: the threedimensional model of communications equipment room, communication equipment, and the communication equipment includes equipment subrack, list Plate and optical fiber;
1-1, three-dimensional dimension data and computer room structure figure according to communications equipment room and communication equipment, in 3DMAX modeling tool According to 1:1 size creation communications equipment room and communication equipment threedimensional model;And according to communications equipment room interior trim figure, communication equipment Outside drawing and communication equipment layout, creation communications equipment room, communication equipment material render communications equipment room and communication equipment Threedimensional model effect;
1-2, the establishing resource file in Unity, and it is classified as communications equipment room model library and communication equipment models library;It will Communications equipment room threedimensional model file created is dragged in communications equipment room model library in 3DMAX, by communication equipment three-dimensional mould Type file is dragged in communication equipment models library;
The threedimensional model initial position co-ordinates of the computer room of every kind of specification in communications equipment room model library are set in Unity, if The threedimensional model initial position co-ordinates of setting each type of equipment in communication equipment models library, by the above-mentioned initial coordinate that sets Communications equipment room model and communication equipment models, which save, becomes preset model file, and is stored to the communications equipment room model of Unity respectively In library and communication equipment models library;
Step 2 creates C# program reading custom profile in Unity, automatically generates three-dimensional scenic emulation module:
2-1, computer room type, network element number, the equipment of each network element are defined by different level in the custom profile The veneer model of each slot position of model, equipment;
2-2, custom profile is read, parsed as follows in the custom profile: data center computer room title, Device name, veneer name and NE quantity;
Computer room title, device name, veneer name and the network element that 2-3, basis are read from custom profile Quantity is loaded into function by model resource file in C# program recursive call Unity, from the communications equipment room model library in Unity With the model file preset before being loaded into communication equipment models library;
Step 3 creates listening thread in three-dimensional scenic emulation module, the Message Channel of real-time data base is subscribed to, from outer External real time data needed for the device emulation program in portion obtains generation three-dimensional scenic emulation module,
3-1, three-dimensional scenic emulation module and external device emulation program, pass through " subscription/publication " of Redis database Mechanism carries out the transmission of message and data, and three-dimensional scenic emulation module is according to ordered Message Channel, outside monitoring reception The message that device emulation program is sent, and according to the content in message, equipment mould in real-time update three-dimensional scenic emulation module The state of the indicator light of type;
3-2, three-dimensional scenic emulation module receive the message from external device emulation program and are parsed, this solution The protocol format of the message is precipitated are as follows: " Status Flag _ fault type _ network element device ID_ equipment slot position ID ";
The protocol format that 3-3, basis parse, judges whether the operating status of external emulator is normal, such as different Chang Ze further determines that fault type and abort situation, aobvious finally by the indicator light for corresponding to abort situation model in three-dimensional scenic Show that it, for alarm status, is shown the indicator light shape of regular refresh three dimensional device model if normal by the indicator light of normal condition State;
Step 4 operates equipment or prosthetic appliance failure in three-dimensional scenic, and operation information is sent to external equipment Simulated program carries out simulation calculation and judgement:
4-1, in three-dimensional scenic according to alarm indicate, corresponding failure location lookup cause alarm faulty equipment, and Corresponding repair is carried out according to fault type to operate;
4-2, it completes after repairing operation, three-dimensional scenic emulation module sends operation information to external device emulation program, It includes the ID of prosthetic appliance and the type of operation;Its message format are as follows: " action type _ network element device ID_ equipment slot position ID ";
Listening thread in 4-3, three-dimensional scenic emulation module receives the emulation meter that external device emulation program is sent Calculate result:
If repair before, operation is errorless, and the listening thread in the three-dimensional scenic emulation module can receive normal condition Message, so that the indicator light for updating relevant device in three-dimensional scenic is restored to normal condition;If failover operation before Wrong, then the listening thread in the three-dimensional scenic emulation module will receive the message of abnormality, phase in three-dimensional scenic Answer the indicator light of equipment still to show abnormality, at this point, return continuation sequence execute step 4-1, carry out failure inspection and Operation information is repaired and sends, circulation executes.
Further, the specification of the power communication machine room includes provincial dispatching center communications equipment room, in prefecture-level scheduling Heart communications equipment room and 110KV/220KV/500KV plant stand communications equipment rooms at different levels;The model of the communication equipment includes Huawei OSN1500, Huawei OSN2500, Huawei OSN3500 and Huawei OSN7500 series.
Further, definition refers to that first layer defines the title of computer room type by different level in the custom profile With the number of network element;Its second layer defines network element number, the device type title of different network elements;It is each that its third layer defines equipment Slot position number and corresponding board type title.
Further, it includes: to set that external real time data needed for generating three-dimensional scenic emulation module is obtained in the step 3 Standby plane LED status, equipment current alert state, equipment optical module and the current optical power value of optical fiber;
According to the equipment veneer LED status data of acquisition, indicated veneer model in three-dimensional scenic emulation module is arranged The display color of lamp;
According to the current alert state data of acquisition, opening for device model alerting tone in three-dimensional scenic emulation module is arranged It opens or closes;
According to the current optical power value data of the equipment optical module and optical fiber of acquisition, to be arranged in three-dimensional scenic emulation module The optical power value of equipment light block models and fiber model.
Beneficial effects of the present invention are as follows:
(1) present invention operates in power communication analogue system in the analogue system based on Unity dynamic generation three-dimensional scenic In, by carrying out three-dimensional modeling to the communications equipment rooms such as true all kinds of substations, control centre at different levels and telecommunication transmission equipment, and The network connection situation of real simulation scene computer room is created that the three-dimensional artificial scene of each true power communication machine room;With This simultaneously, which can be communicated with the communication equipment emulation module in power communication analogue system, Real-time reception and the operating status and data for sending emulator.
(2) being giveed training operation in three-dimensional scenic emulation module using skilled addressee of the present invention is had well now True feeling solves the problems, such as that training mutually disconnects with practical caused by net operation communication equipment is inconvenient to operate, and improves training Efficiency and training quality are instructed, the training period is shortened, the technical level of communication maintenance personnel can be greatlyd improve.
(3) present invention applies in power communication three-dimensional visual simulation training system, real using 3D modeling emulation technology The creation of existing power communication machine room and communication equipment correlation model.
(4) present invention can automatically generate corresponding power communication three-dimensional artificial scene by reading custom profile, Strong sense of reality.
(5) communication mechanism in the present invention between three-dimensional scenic emulation module and the device emulation program of outside, passes through reality When the messaging bus that provides of database complete, can guarantee in three-dimensional artificial module the status display of each device model and outer The operating status of portion's emulator is synchronous, to be that communication simulation training is made to be more nearly reality.
(6) present invention can display real-time the equipment operation in communication equipment emulation module in three-dimensional scenic emulation module State, and can neatly carry out trouble shooting and the operation of fault restoration.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of analogue system in the present invention.
Fig. 2 is the work flow diagram of implementation method in the present invention.
Fig. 3 is the hierarchical chart of custom profile in the present invention.
Fig. 4 is the work flow diagram of listening thread in the present invention.
Specific embodiment
1 ~ 4 the invention will be further described with reference to the accompanying drawing.
Embodiment, referring to Fig.1 ~ 4: it includes three-dimensional simulation model library, scene configuration library, three-dimensional scenic emulation module And data communication module;The three-dimensional scenic emulation module includes scene display module and scene operation module, the scene behaviour Make the command input of the control output end access scene display module of module;The three-dimensional simulation model library and scene configuration text The output in part library terminates the data input pin of the scene display module, and the scene operation module is through data communication module and outside The device emulation program in portion communicates.
The three-dimensional simulation model library includes communications equipment room model library and communication equipment models library;
The communications equipment room model library includes provincial dispatching center communications equipment room threedimensional model, the communication of prefecture-level control centre The plant stand communications equipment room threedimensional models at different levels such as computer room threedimensional model, 110KV/220KV/500KV;The communication equipment models library packet It includes telecommunication transmission equipment machine frame and veneer threedimensional model, route exchange device threedimensional model, Communication Power Equipment threedimensional model, lead to Believe terminal device model, distributing frame threedimensional model, communicate fine cable threedimensional model and instrument and meter threedimensional model.These model libraries In model be stored in the form of model file in analogue system resource file library.
The scene configuration library is made of custom profile, and the configuration file is because of communication simulation training case Different and different, these custom profiles are stored in analogue system configuration file library.
The three-dimensional scenic emulation module includes scene display module and scene operation module, which is actual communication machine The virtualization visual simulating scene in room, start-up can complete to make an inspection tour and operate the functions such as equipment in this scenario.
The scene display module is dynamically read from scene configuration library according to the demand of communication simulation training case And specified custom profile is parsed, according to the data after parsing, related three-dimensional mould is transferred from three-dimensional simulation model library Type file, to show three-dimensional scenic emulation module.
The scene operation module is for realizing the operating function to device model in three-dimensional scenic emulation module.
The data communication module sends program by real-time data base and message sink and forms, and the module is imitative for three-dimensional scenic Data communication between true module and peripherals simulation program provides interface, is that three-dimensional scenic emulation module can obtain in real time The operating status of external emulator is taken, and is arranged and modifies the shape of each threedimensional model in three-dimensional scenic emulation module accordingly State, at the same time, the operation information that the scene operation module in three-dimensional scenic emulation module is done is also by the data communication Module is sent to external device emulation program.
A kind of implementation method of the analogue system based on Unity dynamic generation three-dimensional scenic comprising following steps:
Step 1, creation threedimensional model comprising communications equipment room model and communication equipment models, the communication equipment include Equipment subrack, veneer and optical fiber.
1-1, communication of power system computer room specification have: provincial dispatching center communications equipment room, prefecture-level control centre's communication equipment The plant stand communications equipment rooms at different levels such as room, 110KV/220KV/500KV;Communication equipment model has: Huawei OSN1500, Huawei The series such as OSN2500, Huawei OSN3500, Huawei OSN7500.
Data is built by the actual measurement and communications equipment room to live different communication computer room and communication equipment and communication is set Standby manual data, obtains the three-dimensional dimension, communications equipment room structure chart, communications equipment room interior trim of each communications equipment room and communication equipment Figure, communications equipment room device layout figure and equipment appearance figure.The three-dimensional dimension of the communication equipment i.e. its length, width and height Degree.
According to true communications equipment room and communication equipment dimension data and computer room structure figure, pressed in 3DMAX modeling tool According to the threedimensional model of size the creation communications equipment room and communication equipment of 1:1;And according to communications equipment room interior trim figure, communication equipment appearance Figure and communication equipment layout, creation communications equipment room, communication equipment material render the three-dimensional of communications equipment room and communication equipment Modelling effect.
1-2, the establishing resource file in Unity, and it is classified as communications equipment room model library and communication equipment models library.It will Communications equipment room .FBX threedimensional model file created is dragged in communications equipment room model library in 3DMAX, by communication equipment .FBX threedimensional model file is dragged in communication equipment models library.
By the computer room threedimensional model initial position co-ordinates (x, y, z) of every kind of specification in computer room model library, setting in Unity For (0,0,0);By equipment threedimensional model initial position co-ordinates (x, y, z) each type of in device model library, be set as (33, ), 1.7,3.8 this coordinate is origin coordinates specified when equipment is put in computer room model.By the above-mentioned initial coordinate of setting Computer room model and device model, which save, becomes .prefab preset model file, and is stored to the computer room model library of Unity respectively and sets In standby model library.
Step 2. creates C# program reading custom profile in Unity, automatically generates three-dimensional scenic.
Defined by different level in 2-1, custom profile computer room type, network element number, the device model of each network element, The veneer model of each slot position of equipment, as shown in Figure 2.
The first layer of the custom profile defines the title of computer room type and the number of network element;Its second layer is fixed Network element number, the device type title of justice different network elements;Its third layer defines each slot position number of equipment and corresponding list Plate type designations.
The hierarchical structure of the custom profile is as shown in Figure 2.
Following is the configuration file definition format in an application example:
[220kv_2]
<1_OSN7500>
Slot_1_SL16A
Slot_2_NULL
Slot_38_NULL
<2_OSN7500>
Slot_1_SL16A
Slot_2_NULL
Slot_38_NULL
In [220kv_2], " 220kv " is computer room specification title, and " 2 " are network element number;
In<1_OSN7500>and<2_OSN7500>, " 1 " and " 2 " is network element number, and " OSN7500 " is network element number pair The device model title answered,
In Slot_1_SL16A and Slot_2_NULL, " Slot " is equipment slot position name keys, and " 1 " and " 2 " is to set Standby slot number, " SL16A " are the model name of the plug in veneer of the slot position, and " NULL " indicates that the slot position is inserted into empty veneer.
2-2, the custom profile is read, parses the data in this document:
" [] " in file is scanned, is ended processing if not finding " [] ";If it is found, taking out the character in " [] " String, and the computer room name variable and cyclic variable dividing the character string and data before and after " _ ", and being assigned in program respectively;
"<>" in file is scanned, takes out the character string in "<>", and divide the data and character string before and after " _ ", and The cyclic variable and implementor name variable being assigned in program respectively;
Scan " Slot " keyword, data and character string before and after segmentation " _ ", and the circulation being assigned in program respectively Variable and veneer name variable;
Computer room title, device name, veneer name and the NE quantity that 2-3, basis are read from file, pass through C# Resources.Load (Name) method in program recursive call Unity, from the computer room model library and device model in Unity The .prefab model preset before being loaded into library;Computer room model and the device model of first loading will be according to setting before The position set is put in three-dimensional scenic, and the device model for recycling loading later will be according in Unity Transform.position=new Vector3 ((float) (33.0-2.0*i), 1.7f, 3.8f) method, again automatically Set corresponding position.
Step 3, as shown in figure 4, in three-dimensional scenic emulation module create listening thread, subscribe to the message of real-time data base Channel obtains the real-time messages of emulator operating status in communication equipment emulation module.
3-1, three-dimensional scenic emulation module and communication equipment emulation module pass through " subscription/publication " machine of Redis database System carries out the transmission of message and data, and three-dimensional scenic emulation module is according to ordered Message Channel, monitoring reception communication equipment The message that emulation module is sent, and according to the content in message, the state of the indicator light of real-time update device model.
3-2, three-dimensional scenic emulation module receive the message from communication equipment emulation module and are parsed, this message Protocol format are as follows: " Status Flag _ fault type _ network element device ID_ equipment slot position ID ".
After three-dimensional scenic emulation module receives message, message is parsed: being split message according to " _ ", It first determines whether state flag bit, if it is 0, belongs to normal condition, rule brush is shown according to the indicator light of normal condition at this time The LED status of new three dimensional device model;If flag bit is 1, belongs to abnormality, continues to judge fault type at this time, It include: disconnected fine, optical fiber deterioration, offline, the veneer damage of veneer etc.;After determining fault type, judge fault point: network element device ID and Equipment slot position ID, the display rule of indicator light, changes the indicator light of corresponding failure point model when thereafter according to equipment failure state For alarm status.
It is as follows that listening thread receives message examples:
" 1_ break fibre _ 2_8 ";
" 1 " indicates at this time to be malfunction, and fault type is " disconnected fibre ", and fault point is the 8th slot position of the corresponding equipment of network element 2 The optical fiber that veneer is connect.
Step 4 operates equipment or prosthetic appliance failure in three-dimensional scenic, and operation information is sent to communication equipment and is imitated True module carries out simulation calculation and judgement.
4-1, it is indicated in three-dimensional scenic according to alarm, the faulty equipment for causing alarm, and root is searched in corresponding failure point It carries out corresponding repair according to fault type to operate, comprising: replacement optical fiber, replacement veneer etc.;
Failover operation step are as follows: the main camera model in Keyboard Control Unity scene is moved to failure point device Location, mouse choose the device model to be repaired, a mouse click right button, the selection operation item in the menu of pop-up, It such as " more exchange device ", is then chosen in interface in the equipment of pop-up, the equipment for selecting respective model, clicks replacement button, complete The operation of more exchange device.
4-2, it completes after repairing operation, three-dimensional scenic emulation module sends operation information, packet to communication equipment emulation module Include the ID of prosthetic appliance and the type of operation.Its message format are as follows: " action type _ network element device ID_ equipment slot position ID ".
It is as follows:
" replacement optical fiber _ 2_8 ";
This message indicates, has replaced the optical fiber that the 8th slot position veneer of 2 equipment of network element is connect.
Listening thread in 4-3, three-dimensional scenic emulation module, the simulation calculation that receiving communication device emulation module is sent As a result:
If repaired before, operation is errorless, and the listening thread in three-dimensional scenic emulation module can receive normal condition Message, so that the indicator light for updating relevant device in three-dimensional scenic is restored to normal condition;If failover operation before Wrong, then the listening thread in three-dimensional scenic emulation module will receive the message of abnormality, accordingly set in three-dimensional scenic Standby indicator light still shows abnormality, at this point, step 4 can be continued to execute, carries out the inspection of failure and reparation and sends behaviour Make message, so instruction circulation executes.
Embodiment described above is merely a preferred embodiment of the present invention, and the simultaneously exhaustion of the feasible implementation of non-present invention.It is right For persons skilled in the art, any aobvious to made by it under the premise of without departing substantially from the principle of the invention and spirit and The change being clear to should be all contemplated as falling within claims of the invention.

Claims (8)

1. a kind of implementation method of the analogue system based on Unity dynamic generation three-dimensional scenic, it is characterised in that: described to be based on The analogue system of Unity dynamic generation three-dimensional scenic includes that three-dimensional simulation model library, scene configuration library, three-dimensional scenic are imitative True module and data communication module;The three-dimensional scenic emulation module includes scene display module and scene operation module, described The command input of the control output end access scene display module of scene operation module;The three-dimensional simulation model library and scene The output in configuration file library terminates the data input pin of the scene display module, and the scene operation module is through data communication mould Block is communicated with external device emulation program;
The step of implementation method of analogue system based on Unity dynamic generation three-dimensional scenic, is as follows:
Step 1, creation threedimensional model:
Specific creation includes: the threedimensional model of communications equipment room, communication equipment, the communication equipment include equipment subrack, veneer and Optical fiber;
1-1, three-dimensional dimension data and computer room structure figure according to communications equipment room and communication equipment, are pressed in 3DMAX modeling tool According to the threedimensional model of size the creation communications equipment room and communication equipment of 1:1;And according to communications equipment room interior trim figure, communication equipment outside See figure and communication equipment layout, creation communications equipment room, communication equipment material render the three of communications equipment room and communication equipment Dimension module effect;
1-2, the establishing resource file in Unity, and it is classified as communications equipment room model library and communication equipment models library;It will be Communications equipment room threedimensional model file created is dragged in communications equipment room model library in 3DMAX, by communication equipment threedimensional model File is dragged in communication equipment models library;
The threedimensional model initial position co-ordinates of the computer room of every kind of specification in communications equipment room model library are set in Unity, and setting is logical The threedimensional model initial position co-ordinates for believing each type of equipment in device model library, by the above-mentioned initial position co-ordinates that set Communications equipment room model and communication equipment models, which save, becomes preset model file, and is stored to the communications equipment room model of Unity respectively In library and communication equipment models library;
Step 2 creates C# program reading custom profile in Unity, automatically generates three-dimensional scenic emulation module:
2-1, defined by different level in the custom profile computer room type, network element number, the device model of each network element, The veneer model of each slot position of equipment;
2-2, custom profile is read, parsed as follows in the custom profile: data center computer room title, equipment Title, veneer name and NE quantity;
Computer room title, device name, veneer name and the NE quantity that 2-3, basis are read from custom profile, By in C# program recursive call Unity model resource file be loaded into function, from Unity communications equipment room model library and The model file preset before being loaded into communication equipment models library;
Step 3 creates listening thread in three-dimensional scenic emulation module, subscribes to the Message Channel of real-time data base, from outside Device emulation program obtains generate three-dimensional scenic emulation module needed for external real time data, obtain in the step 3 and generate three External real time data needed for tieing up scene simulation module includes: equipment veneer LED status, equipment current alert state, equipment Optical module and the current optical power value of optical fiber;
3-1, three-dimensional scenic emulation module and external device emulation program, pass through " subscription/publication " machine of Redis database System carries out the transmission of message and data, and three-dimensional scenic emulation module is according to ordered Message Channel, setting outside monitoring reception The message that standby simulated program is sent, and according to the content in message, device model in real-time update three-dimensional scenic emulation module Indicator light state;
3-2, three-dimensional scenic emulation module receive the message from external device emulation program and are parsed, this is parsed The protocol format of the message are as follows: " Status Flag _ fault type _ network element device ID_ equipment slot position ID ";
The protocol format that 3-3, basis parse, judges whether the operating status of external emulator is normal, if abnormal It further determines that fault type and abort situation, shows it finally by the indicator light for corresponding to abort situation model in three-dimensional scenic For alarm status, pressed if normal corresponding to abort situation model in the indicator light display regular refresh three-dimensional scenic of normal condition LED status;
Step 4 operates equipment or prosthetic appliance failure in three-dimensional scenic, and operation information is sent to external device emulation Program carries out simulation calculation and judgement:
4-1, in three-dimensional scenic according to alarm indicate, corresponding failure location lookup cause alarm faulty equipment, and according to Fault type carries out corresponding repair and operates;
4-2, it completes after repairing operation, three-dimensional scenic emulation module sends operation information, packet to external device emulation program Include the ID of prosthetic appliance and the type of operation;Its message format are as follows: " action type _ network element device ID_ equipment slot position ID ";
Listening thread in 4-3, three-dimensional scenic emulation module receives the simulation calculation knot that external device emulation program is sent Fruit:
If repair before, operation is errorless, and the listening thread in the three-dimensional scenic emulation module can receive disappearing for normal condition Breath, so that the indicator light for updating relevant device in three-dimensional scenic is restored to normal condition;If failover operation before is wrong, Then the listening thread in the three-dimensional scenic emulation module will receive the message of abnormality, relevant device in three-dimensional scenic Indicator light still show abnormality, at this point, return continuation sequence execute step 4-1 ~ 4-3, carry out the inspection of failure and repair Redoubling sends operation information, and circulation executes.
2. the implementation method of the analogue system based on Unity dynamic generation three-dimensional scenic according to claim 1, special Sign is: the three-dimensional simulation model library includes communications equipment room model library and communication equipment models library;The communications equipment room model Library includes provincial dispatching center communications equipment room threedimensional model, prefecture-level control centre's communications equipment room threedimensional model, 110KV/ 220KV/500KV grades of plant stand communications equipment room threedimensional models;The communication equipment models library includes telecommunication transmission equipment machine frame and list Plate threedimensional model, route exchange device threedimensional model, Communication Power Equipment threedimensional model, communication terminal device model, distributing frame Threedimensional model communicates fine cable threedimensional model and instrument and meter threedimensional model.
3. the implementation method of the analogue system based on Unity dynamic generation three-dimensional scenic according to claim 1, special Sign is: the scene configuration library is made of custom profile, and the parameter of the custom profile is according to reality The configuration of border communication simulation training case.
4. the implementation method of the analogue system based on Unity dynamic generation three-dimensional scenic according to claim 1, special Sign is: the scene display module is according to the demand of practical communication emulation training case, from the scene configuration library Dynamic reads and parses specified custom profile, according to the data after parsing, adjusts from the three-dimensional simulation model library Related threedimensional model file is taken, to show the virtualization visual simulating scene of actual communication computer room.
5. the implementation method of the analogue system based on Unity dynamic generation three-dimensional scenic according to claim 1, special Sign is: the scene operation module is for realizing the operating function to the device model in three-dimensional scenic emulation module.
6. the implementation method of the analogue system based on Unity dynamic generation three-dimensional scenic according to claim 1, special Sign is: the data communication module sends program by real-time data base and message sink and forms, and the data communication module is Data communication between three-dimensional scenic emulation module and the device emulation program of outside provides interface.
7. the implementation method of the analogue system according to claim 1 based on Unity dynamic generation three-dimensional scenic, special Sign is: definition refers to that first layer defines the title of computer room type and of network element by different level in the custom profile Number;Its second layer defines network element number, the device type title of different network elements;Its third layer define equipment each slot position number and Corresponding board type title.
8. the implementation method of the analogue system according to claim 1 based on Unity dynamic generation three-dimensional scenic,
It is characterized by: the specification of the communications equipment room includes provincial dispatching center communications equipment room, the communication of prefecture-level control centre Computer room and 110KV/220KV/500KV plant stand communications equipment rooms at different levels;The model of the communication equipment includes Huawei OSN1500, China For OSN2500, Huawei OSN3500 and Huawei OSN7500 series.
CN201510376403.0A 2015-07-01 2015-07-01 Analogue system and its implementation based on Unity dynamic generation three-dimensional scenic Active CN105045970B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510376403.0A CN105045970B (en) 2015-07-01 2015-07-01 Analogue system and its implementation based on Unity dynamic generation three-dimensional scenic

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510376403.0A CN105045970B (en) 2015-07-01 2015-07-01 Analogue system and its implementation based on Unity dynamic generation three-dimensional scenic

Publications (2)

Publication Number Publication Date
CN105045970A CN105045970A (en) 2015-11-11
CN105045970B true CN105045970B (en) 2019-01-25

Family

ID=54452513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510376403.0A Active CN105045970B (en) 2015-07-01 2015-07-01 Analogue system and its implementation based on Unity dynamic generation three-dimensional scenic

Country Status (1)

Country Link
CN (1) CN105045970B (en)

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105006017B (en) * 2015-07-01 2018-07-24 国家电网公司 Three-dimensional scenic emulation mode is generated based on Unity dynamic techniques
CN105844704A (en) * 2016-03-23 2016-08-10 深圳市欣横纵数码科技有限公司 Nuclear security 3D virtual simulation method
CN106095840A (en) * 2016-06-04 2016-11-09 山东天元信息技术股份有限公司 Pipe network and facility information three-dimensional display method in a kind of multi-purpose station three-dimensional station
CN108694259B (en) * 2017-04-10 2021-07-16 中国石油化工股份有限公司 Drilling underground simulation engine and method based on real-time data driving
CN107292955A (en) * 2017-07-06 2017-10-24 李长云 The methods of exhibiting and system of a kind of industrial equipment operation health status
CN107679281A (en) * 2017-09-05 2018-02-09 国家电网公司 Intelligent station three-dimensional scenic analogue system and implementation method based on Unity dynamic generations
CN107515993A (en) * 2017-09-07 2017-12-26 电子科技大学 GPU optimization methods based on Unity3D welding simulations
CN107744181A (en) * 2017-10-17 2018-03-02 晋江市嘉利服装织造有限公司 One kind gathers multi-functional underwear and its application method
CN108734775A (en) * 2018-05-22 2018-11-02 中国地质大学(武汉) A kind of the road asset automation fast modeling method and system of low cost
CN109165267A (en) * 2018-09-13 2019-01-08 国网技术学院 A kind of power communication transmission fault investigation operation experience system and method
CN109821240B (en) * 2018-12-05 2022-08-30 广州西山居世游网络科技有限公司 Method and device for realizing resource LOD (load on demand) classification based on Unity
CN109829205A (en) * 2019-01-08 2019-05-31 北京国电智深控制技术有限公司 A kind of scene creation method, apparatus and computer readable storage medium
CN110515812A (en) * 2019-08-13 2019-11-29 昆山达骐亚网络科技有限公司 Dummy emulation system construction method based on Unity+3D technology
CN110717248A (en) * 2019-09-11 2020-01-21 武汉光庭信息技术股份有限公司 Method and system for generating automatic driving simulation scene, server and medium
CN110826201B (en) * 2019-10-24 2023-11-03 深圳供电局有限公司 Three-dimensional visualization platform for operation and maintenance management system of data center
CN111223188A (en) * 2019-10-31 2020-06-02 中车青岛四方机车车辆股份有限公司 Production process display method and device
CN111723473A (en) * 2020-05-30 2020-09-29 同济大学 Three-dimensional visual collaborative simulation system
CN111832156A (en) * 2020-06-18 2020-10-27 国网河北省电力有限公司石家庄供电分公司 Electric power simulation system based on big data architecture
CN111898007A (en) * 2020-08-04 2020-11-06 广东电网有限责任公司电力科学研究院 Three-dimensional scene model construction system and method for transformer substation
CN112365597B (en) * 2020-10-20 2023-07-07 苏州同元软控信息技术有限公司 Modelica-based three-dimensional model creation and visual simulation method and device
CN113435709B (en) * 2021-06-07 2023-04-07 国家能源泰安热电有限公司 Safety management and control system for electrical operation of thermal power plant
CN114237135A (en) * 2021-11-30 2022-03-25 国网辽宁省电力有限公司信息通信分公司 Information communication machine room 3D visualization method and system based on digital twin technology

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8666704B2 (en) * 2007-07-30 2014-03-04 Aruba Networks, Inc. Visualization of radio frequency coverage
CN104318617A (en) * 2014-10-17 2015-01-28 福建师范大学 Three-dimensional geographical scene simulation method for virtual emergency exercises

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8666704B2 (en) * 2007-07-30 2014-03-04 Aruba Networks, Inc. Visualization of radio frequency coverage
CN104318617A (en) * 2014-10-17 2015-01-28 福建师范大学 Three-dimensional geographical scene simulation method for virtual emergency exercises

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Unity3D虚拟校园漫游的研究与实现;张明明;《中国优秀硕士学位论文全文数据库 信息科技辑》;20141215;第14-16、20、25-28页

Also Published As

Publication number Publication date
CN105045970A (en) 2015-11-11

Similar Documents

Publication Publication Date Title
CN105045970B (en) Analogue system and its implementation based on Unity dynamic generation three-dimensional scenic
CN105006017B (en) Three-dimensional scenic emulation mode is generated based on Unity dynamic techniques
CN105373655B (en) A kind of method of one electrical secondary system connection figure of organic association Intelligent transformer station
CN107679281A (en) Intelligent station three-dimensional scenic analogue system and implementation method based on Unity dynamic generations
CN112765258B (en) Power distribution network graph model checking management system and method thereof
CN104537908B (en) Multi-stage scheduling integrated simulation system based on model sharing and method
CN101661527A (en) Automatic switching system from geographical wiring diagram of distribution network to single line diagram
CN108520163A (en) Three-dimensional net rack method for automatic modeling based on CIM model and SVG figures
CN102510127A (en) Method for unifying models of on-line monitored first and secondary equipment of power grid
CN105207366B (en) Distribution terminal plug and play model configuration tool and its implementation based on IEC61850
CN204291050U (en) A kind of dispatching and monitoring information check system
CN105093017B (en) Intelligent substation GOOSE integrated testabilities device and its method of testing
CN108958216A (en) The automatic checkout system and method for new energy AGC or AVC control system
CN109215432A (en) A kind of power plant&#39;s operation training system based on VR virtual technology
CN105449668B (en) The dynamic modelling method of intelligent substation electric energy quality monitoring intelligent electronic device
CN103310668B (en) Electric equipment maintenance multi-task multi-role collaborative interaction implementation method
CN108875103A (en) A kind of powernet analogue system and method
CN108415266A (en) A kind of control method and system of nature imitation experiment device
CN107748672A (en) Secondary remote interface integrated management approach based on IEC61850 sites protection model
CN102800115A (en) Model-based animation producing system and method
CN106204326B (en) Power distribution terminal IED equipment detection method for power distribution system
CN107357900A (en) A kind of control method and device of electric power system model versions of data
CN113688059A (en) Automatic function detection system and method for stability control system
CN107039968B (en) A kind of distributed distribution automation hybrid simulation system based on RTDS
Li et al. Research on designing methods of the secondary system in digital substation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant